:root {
    /* Colors - Premium Palette */
    --color-primary: #C9A227;
    /* Gold */
    --color-primary-light: #E0C04D;
    --color-dark: #0A1929;
    /* Dark Blue/Black */
    --color-dark-light: #132F4C;
    --color-light: #FAFAFA;
    /* Off-white */
    --color-cream: #F4EBD0;
    /* Subtle Cream */
    --color-text: #333333;
    --color-text-light: #777777;
    --color-white: #FFFFFF;

    /* Fonts */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing - Responsive base */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Transitions */
    --transition-base: all 0.3s ease;

    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;
}

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

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-dark);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul {
    list-style: none;
}

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

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    /* Increased base padding for mobile */
    width: 100%;
}

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

.text-center {
    text-align: center;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(201, 162, 39, 0.3);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 162, 39, 0.4);
}

.btn-large {
    padding: 16px 48px;
    font-size: 1.1rem;
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    height: var(--header-height);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-dark);
    white-space: nowrap;
}

/* Desktop Navigation */
.nav-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.nav-links a:not(.btn-primary) {
    font-weight: 500;
    color: var(--color-dark);
    position: relative;
    font-size: 1rem;
}

.nav-links a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-primary);
    transition: var(--transition-base);
}

.nav-links a:not(.btn-primary):hover::after {
    width: 100%;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    z-index: 1001;
    padding: 0;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-dark);
    border-radius: 3px;
    transition: var(--transition-base);
}

/* Mobile Menu Active State Animation */
.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}


/* Hero Section */
.hero {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 4rem;
    background: linear-gradient(135deg, var(--color-light) 0%, var(--color-cream) 100%);
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    /* Better for tall screens */
    display: flex;
    align-items: center;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    width: 100%;
}

.hero-text {
    flex: 1;
    z-index: 2;
    max-width: 600px;
}

.eyebrow {
    font-family: var(--font-body);
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    /* Responsive fluid type */
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--color-dark);
}

.hero .lead {
    font-size: 1.15rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-image {
    flex: 1;
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
}

.image-placeholder {
    width: 100%;
    max-width: 500px;
    height: auto;
    aspect-ratio: 3/4;
    border-radius: 20px 0 20px 0;
    overflow: hidden;
    box-shadow: 20px 20px 0 var(--color-primary-light);
    transform: rotate(-2deg);
    transition: var(--transition-base);
}

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

.hero-image:hover .image-placeholder {
    transform: rotate(0deg);
}

.hero-background {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 1;
    pointer-events: none;
}

/* About Section */
.about {
    background-color: var(--color-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image .image-frame {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.03);
}

.about-text h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--color-text-light);
}

.stats {
    display: flex;
    flex-wrap: wrap;
    /* Allow wrapping on small screens */
    gap: 3rem;
    margin-top: 2rem;
    border-top: 1px solid #eee;
    padding-top: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-text);
    font-weight: 500;
    margin-top: 5px;
}

/* Experience Section */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* Better min-width for mobile */
    gap: 2rem;
}

.exp-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: var(--transition-base);
    height: 100%;
}

.exp-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin: 0 auto 3rem;
    max-width: 700px;
}

/* Methodology Section */
.methodology {
    background-color: var(--color-dark);
    color: var(--color-white);
}

.methodology h2 {
    color: var(--color-white);
    margin-bottom: 1rem;
    font-size: clamp(2rem, 4vw, 2.5rem);
}

.methodology p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-base);
    height: 100%;
}

.card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-10px);
    border-color: var(--color-primary);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.card h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
    font-size: 1rem;
}

/* Carousel Section */
.gallery {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-light);
}

.carousel-container {
    position: relative;
    height: 0;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    width: 100%;
    margin: 0 auto;
    max-width: 900px;
}

.carousel-track-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.carousel-track {
    padding: 0;
    margin: 0;
    list-style: none;
    position: relative;
    height: 100%;
    transition: transform 500ms ease-in-out;
}

.carousel-slide {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    background-color: var(--color-dark);
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    border: none;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-dark);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition-base);
    z-index: 10;
}

.carousel-button:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-50%) scale(1.1);
}

.carousel-button--left {
    left: -25px;
}

.carousel-button--right {
    right: -25px;
}

.carousel-button.is-hidden {
    display: none;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    padding: 20px 0;
    gap: 12px;
    margin-top: 1rem;
}

.carousel-indicator {
    border: none;
    width: 12px;
    height: 12px;
    background: rgba(10, 25, 41, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-base);
}

.carousel-indicator.current-slide {
    background: var(--color-primary);
    transform: scale(1.2);
}

/* CTA Section */
.cta {
    background-color: var(--color-cream);
    padding: 100px 0;
    /* Reduced padding for better feel */
}

.cta h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1.5rem;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--color-text);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    background-color: var(--color-dark);
    color: rgba(255, 255, 255, 0.4);
    padding: 3rem 0;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    /* Allow wrapping */
    gap: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--color-white);
}

.social-links a:hover {
    color: var(--color-primary);
}

/* =========================================
   RESPONSIVE MEDIA QUERIES
   ========================================= */

/* Tablet & Mobile Navigation Breakpoint */
@media (max-width: 968px) {
    :root {
        --spacing-xl: 4rem;
        /* Reduce vertical spacing on tablets */
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: var(--header-height);
        right: 0;
        height: calc(100vh - var(--header-height));
        background-color: var(--color-white);
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 300px;
        /* Slide out width */
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        padding-top: 2rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        border-left: 1px solid rgba(0, 0, 0, 0.05);
    }

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

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .hero-text {
        margin: 0 auto;
    }

    .hero .lead {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-image {
        justify-content: center;
        width: 100%;
    }

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

    .about-image {
        max-width: 500px;
        margin: 0 auto;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .carousel-button--left {
        left: 10px;
    }

    .carousel-button--right {
        right: 10px;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    :root {
        --spacing-xl: 3rem;
        /* Further reduce vertical spacing */
        --spacing-md: 1.5rem;
    }

    .section {
        padding: 3rem 0;
        /* Consistent responsive padding */
    }

    .hero {
        padding-top: calc(var(--header-height) + 2rem);
        min-height: auto;
        /* Allow content to dictate height */
    }

    .image-placeholder {
        box-shadow: 10px 10px 0 var(--color-primary-light);
    }

    .stats {
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .btn-large {
        width: 100%;
        /* Full width buttons on mobile are easier to tap */
        max-width: 300px;
    }

    /* Adjust Carousel for Mobile Aspect Ratio if needed */
    .carousel-container {
        padding-bottom: 75%;
        /* 4:3 Aspect Ratio for mobile could be better, or keep 16:9 */
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .btn-primary {
        padding: 12px 24px;
        width: 100%;
    }

    .container {
        padding: 0 1.25rem;
    }
}