/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BASE */
body {
    font-family: system-ui, sans-serif;
    line-height: 1.6;
    color: #e6e6e6;
    background: #111;
    padding-top: 120px; /* space for taller stacked header */
    overflow-x: hidden;
}

/* HEADER */
.site-header {
    background: #000;
    border-bottom: 1px solid #222;
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    text-align: center;
}

.nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.logo img {
    height: 60px;
    width: auto;
}

/* NAV LINKS */
.nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav a {
    text-decoration: none;
    color: #e6e6e6;
    font-weight: 500;
    position: relative;
    padding-bottom: 4px;
}

/* Animated underline */
.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: #fff;
    transition: width 0.25s ease;
}

.nav a:hover::after {
    width: 100%;
}

/* HERO */
.hero {
    text-align: center;
    padding: 100px 20px 80px; /* tightened */
    background: #000;
    border-bottom: 1px solid #222; /* subtle anchor */
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #fff;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    color: #ccc;
}

.hero-narrow {
    padding: 100px 20px 60px; /* tightened */
}

/* BUTTONS */
.btn-primary,
.btn-group a {
    display: inline-block;
    padding: 12px 24px;
    background: #fff;
    color: #000;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
}

.btn-group a {
    margin: 0 10px;
}

/* GLOBAL SECTION SPACING */
section {
    padding: 80px 20px;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: #fff;
}

section h3 {
    font-size: 1.4rem;
    margin-top: 40px;
    margin-bottom: 10px;
    color: #fff;
}

section p {
    color: #ccc;
}

/* INTRO (optional homepage section) */
.intro {
    max-width: 700px;
    margin: 40px auto 0;
    text-align: center;
    color: #ccc;
    font-size: 1.2rem;
    line-height: 1.7;
}

/* SERVICE CARDS */
.service-cards {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 20px;
    display: grid;
    gap: 30px;
}

@media (min-width: 800px) {
    .service-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background: #181818;
    border: 1px solid #222;
    border-radius: 8px;
    padding: 24px 20px 28px;
    text-align: left;
}

.service-card img {
    width: 100%;
    height: auto;
    margin-bottom: 16px;
    border-radius: 4px;
}

.service-card h2 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.service-link {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid #fff;
}

.service-link:hover {
    opacity: 0.8;
}

/* PORTFOLIO GRID (2-COLUMN) */
.two-column {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 30px;
}

@media (min-width: 800px) {
    .two-column {
        grid-template-columns: 1fr 1fr;
    }
}

/* PORTFOLIO ITEMS */
.portfolio-item {
    background: #181818;
    border: 1px solid #222;
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 0 0 rgba(0,0,0,0);
}

.portfolio-item:hover {
    transform: translateY(-4px);
    border-color: #444;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.portfolio-item img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 16px;
    transition: opacity 0.25s ease;
    max-height: 220px;
    object-fit: cover;
}

.portfolio-item:hover img {
    opacity: 0.9;
}

.portfolio-item h2 {
    transition: color 0.25s ease;
}

/* GRID SPACING */
.portfolio-grid {
    margin-bottom: 60px;
}

/* CTA */
.cta {
    text-align: center;
    padding: 80px 20px;
    border-top: 1px solid #222;
    padding-top: 60px;
    max-width: 900px;
    margin: 0 auto;
}

/* FOOTER */
.site-footer {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    border-top: 1px solid #222;
    margin-top: 80px;
}
