:root {
    /* Premium Olive Palette */
    --olive-deep: #2C3622;
    /* Dark, rich olive */
    --olive-light: #4A5D3B;
    /* Lighter, muted olive */
    --cream-light: #F9F8F4;
    /* Warm off-white */
    --gold-accent: #E6C76C;
    /* Premium Champagne Gold */
    --text-dark: #1A1A1A;
    --text-light: #FFFFFF;

    /* Semantic Colors */
    --bg-color: var(--cream-light);
    --text-color: var(--olive-deep);
    --heading-color: var(--olive-deep);
    --border-color: #E0E0E0;
    --white: #FFFFFF;
    --secondary-text: #555555;

    /* Typography */
    --font-display: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --container-width: 1400px;
    --spacing-sm: 2rem;
    --spacing-md: 4rem;
    --spacing-lg: 5rem;
    --spacing-xl: 12rem;

    /* Transitions */
    --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--heading-color);
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
}

/* Utility Classes */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: var(--spacing-lg) 0;
}

/* Typography Utilities */
.display-text {
    font-size: clamp(3.5rem, 9vw, 9rem);
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 2.5rem;
    font-weight: 700;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    color: var(--olive-deep);
    font-weight: 600;
    letter-spacing: -0.03em;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    border: 1px solid var(--olive-deep);
    background: var(--olive-deep);
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.4s var(--ease-out);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background: transparent;
    color: var(--olive-deep);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    background: transparent;
    transition: background 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled {
    background: rgba(44, 54, 34, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Fixed Nav Background for Inner Pages */
body:not(.home-page) .navbar {
    background: var(--olive-deep);
}

body:not(.home-page) .navbar.scrolled {
    background: rgba(44, 54, 34, 0.8);
}

/* Content Padding for Fixed Nav */
body:not(.home-page) #main-content {
    padding-top: 120px;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: block;
    width: 160px;
    height: auto;
}

.logo img {
    width: 100%;
    height: auto;
    display: block;
}

/* Invert logo color for white/bright appearance on dark backgrounds */
.navbar.scrolled .logo img,
.navbar:not(.scrolled) .logo img,
body:not(.home-page) .navbar .logo img {
    filter: invert(1) brightness(2);
}

/* Glassmorphic Tabs */
.nav-links {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.5rem;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    list-style: none;
    margin: 0;
    padding-left: 0.5rem;
}

.nav-links a {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    position: relative;
    opacity: 0.9;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.nav-links a::after {
    display: none;
}

.nav-links a:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.15);
    color: var(--gold-accent);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 2001;
}

.hamburger span {
    width: 30px;
    height: 2px;
    background: var(--text-light);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--olive-deep);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(44, 54, 34, 0.4), rgba(20, 26, 15, 0.9));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--text-light);
    max-width: 1100px;
    padding: 0 2rem;
}

.hero-content h1,
.hero-content .display-text {
    color: var(--text-light);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 4px;
    margin-bottom: 3rem;
    margin-top: 12vh;
    text-transform: uppercase;
    color: var(--gold-accent);
}

.hero .btn {
    border-color: var(--text-light);
    background: transparent;
    color: var(--text-light);
}

.hero .btn:hover {
    background: var(--text-light);
    color: var(--olive-deep);
}

/* Services (Philosophy) - Redesigned as Grid */
.services-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.service-item {
    padding: 2rem;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    background: var(--bg-color);
    height: 100%;
}

.service-item:hover {
    background: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: var(--olive-deep);
    color: var(--olive-deep);
}

.service-content p {
    color: var(--secondary-text);
    font-size: 1rem;
    line-height: 1.7;
}

/* Process Section (How We Work) */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    position: relative;
}

.process-step {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem 1rem;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--olive-deep);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 1.5rem;
    font-family: var(--font-display);
    border: 4px solid var(--bg-color);
}

.process-step h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--olive-deep);
}

.process-step p {
    font-size: 0.95rem;
    color: var(--secondary-text);
}

/* Floating CTA (WhatsApp) */
.floating-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.floating-cta:hover {
    transform: scale(1.1);
    color: white;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
}

.project-item {
    cursor: pointer;
    position: relative;
}

.project-item:nth-child(even) {
    transform: translateY(4rem);
}

.project-img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/2;
    margin-bottom: 1.5rem;
}

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease-out);
}

.project-item:hover .project-img-wrapper img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 54, 34, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-item:hover .project-overlay {
    opacity: 1;
}

.project-overlay span {
    color: var(--text-light);
    border: 1px solid var(--text-light);
    padding: 1rem 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    background: rgba(44, 54, 34, 0.8);
    backdrop-filter: blur(5px);
}

.project-details h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--olive-deep);
}

.project-details p {
    color: var(--gold-accent);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 54, 34, 0.98);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: var(--text-light);
    font-size: 2rem;
    cursor: pointer;
    z-index: 2001;
    font-family: var(--font-body);
    font-weight: 300;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 3rem;
    cursor: pointer;
    padding: 2rem;
    z-index: 2001;
    transition: opacity 0.3s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 0.7;
}

.lightbox-prev {
    left: 0;
}

.lightbox-next {
    right: 0;
}

.lightbox-counter {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Footer */
.footer {
    background: var(--olive-deep);
    color: var(--text-light);
    padding: var(--spacing-lg) 0 var(--spacing-sm);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand h2 {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.footer-nav h3,
.footer-social h3 {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--gold-accent);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.fade-in-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* People Page Styles */
.people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 4rem;
    margin-bottom: 8rem;
}

.person-card {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
}

.person-image {
    margin-bottom: 2rem;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
    aspect-ratio: 4/5;
    overflow: hidden;
}

.person-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.person-card:hover .person-image {
    filter: grayscale(0%);
}

.person-name {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.person-role {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary-text);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.person-bio {
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.social-links a {
    margin-right: 1rem;
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 968px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--olive-deep);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateY(-100%);
        transition: transform 0.5s var(--ease-out);

        /* Reset glassmorphism for mobile full screen menu */
        border-radius: 0;
        padding: 0;
        border: none;
        backdrop-filter: none;
        box-shadow: none;
        gap: 3rem;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links a {
        font-size: 1.5rem;
        color: var(--text-light);
        padding: 0;
        background: transparent;
        box-shadow: none;
    }

    .nav-links a:hover {
        background: transparent;
        box-shadow: none;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-item:nth-child(even) {
        transform: none;
    }

    .display-text {
        font-size: 3.5rem;
    }

    /* Updated Responsive Styles for New Grids */
    .services-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .lightbox-prev:hover,
    .lightbox-next:hover {
        opacity: 0.7;
    }

    .lightbox-prev {
        left: 0;
    }

    .lightbox-next {
        right: 0;
    }

    .lightbox-counter {
        position: absolute;
        bottom: 2rem;
        left: 2rem;
        color: var(--text-light);
        font-family: var(--font-body);
        font-size: 0.9rem;
        letter-spacing: 1px;
    }

    /* Footer */
    .footer {
        background: var(--olive-deep);
        color: var(--text-light);
        padding: var(--spacing-lg) 0 var(--spacing-sm);
    }

    .footer-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        margin-bottom: 4rem;
    }

    .footer-brand h2 {
        font-size: 3rem;
        color: var(--text-light);
        margin-bottom: 1rem;
    }

    .footer-links {
        display: flex;
        gap: 2rem;
        margin-top: 2rem;
    }

    .footer-links a {
        color: rgba(255, 255, 255, 0.7);
    }

    .footer-links a:hover {
        color: var(--gold-accent);
    }

    /* Animations */
    .fade-in-up {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
    }

    .fade-in-up.in-view {
        opacity: 1;
        transform: translateY(0);
    }

    /* People Page Styles */
    .people-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 4rem;
        margin-bottom: 8rem;
    }

    .person-card {
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 2rem;
    }

    .person-image {
        margin-bottom: 2rem;
        filter: grayscale(100%);
        transition: filter 0.5s ease;
        aspect-ratio: 4/5;
        overflow: hidden;
    }

    .person-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .person-card:hover .person-image {
        filter: grayscale(0%);
    }

    .person-name {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .person-role {
        font-family: var(--font-body);
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--secondary-text);
        margin-bottom: 1.5rem;
        font-size: 0.9rem;
    }

    .person-bio {
        color: var(--text-color);
        margin-bottom: 1.5rem;
    }

    .social-links a {
        margin-right: 1rem;
        font-size: 1.2rem;
    }

    /* Updated Responsive Styles for New Grids */
    .services-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .service-item {
        /* Resetting any specific grid/flex props if needed, but default flex-col works */
    }

    .process-steps {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .process-steps::before {
        display: none;
    }

    .process-step {
        text-align: left;
        display: flex;
        align-items: flex-start;
        gap: 1.5rem;
        padding: 0;
    }

    .step-text {
        flex: 1;
    }

    .step-icon {
        margin: 0;
        flex-shrink: 0;
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}