/* ========================================
   PREM DESIGN - Premium Interior Portfolio
   ======================================== */

/* CSS Custom Properties */
:root {
    /* Colors — CI MoodBoard 2025 */
    --color-bg-primary: #C8BDAB;       /* --linen  */
    --color-bg-secondary: #EAE4D8;     /* --cream  */
    --color-bg-dark: #4C4238;          /* --espr   */
    --color-accent-gold: #9C7A2C;      /* --gold   */
    --color-accent-bronze: #4C4238;    /* --espr   */
    --color-text-primary: #1D1400;     /* --ebony  */
    --color-text-secondary: #5B5C57;   /* --slate  */
    --color-text-light: #EAE4D8;       /* --cream  */
    --color-text-cream: #EAE4D8;       /* --cream  */
    --color-white: #ffffff;
    --color-overlay: rgba(76, 66, 56, 0.3);

    /* Typography — CI MoodBoard 2025 */
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-script: 'Pinyon Script', cursive;
    --font-body: 'Josefin Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    --spacing-2xl: 10rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-drawer: 0.7s cubic-bezier(0.65, 0, 0.35, 1);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 40px;

    /* Logo sizing - BIGGER */
    --logo-initial-size: clamp(280px, 35vw, 480px);
    --logo-final-size: 80px;
}

/* Reset & Base */
*,
*::before,
*::after {
    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-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

/* ========================================
   NAVIGATION
   ======================================== */
.main-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1000;
    padding: var(--spacing-md) var(--spacing-lg);
}

.nav-links {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 200;
    color: var(--color-text-primary);
    letter-spacing: 0.12em;
    position: relative;
    padding: var(--spacing-xs) 0;
    transition: var(--transition-normal);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-text-primary);
    transition: var(--transition-normal);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Nav changes color when images are visible */
.nav-links.light-mode a {
    color: var(--color-text-light);
}

.nav-links.light-mode a::after {
    background-color: var(--color-text-light);
}

/* ========================================
   HERO SECTION - Sticky with Materials at Bottom
   ======================================== */
.hero-wrapper {
    height: 200vh;
    /* Reduced to minimize gap */
    position: relative;
}

.hero-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: clip;
    z-index: 10;
}

/* Background Layer - Transparent to show materials behind */
.hero-background {
    position: absolute;
    inset: 0;
    background-color: transparent;
    /* Removed solid color - materials shows through */
    z-index: 1;
}

/* ========================================
   SINGLE SEAMLESS LOGO - Scales to Top Left
   ======================================== */
.hero-logo {
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    /* Transform origin at top-left for scaling towards corner */
    transform-origin: top left;
    /* Will be positioned via JS transform */
    pointer-events: none;
    will-change: transform;
}

.hero-logo img {
    width: var(--logo-initial-size);
    height: auto;
    /* Light/cream colored logo */
    filter: brightness(1) drop-shadow(0 4px 20px rgba(0, 0, 0, 0.1));
    transition: filter var(--transition-slow);
}

/* When logo reaches final position - darken it */
.hero-logo.at-corner img {
    filter: brightness(0.15) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

/* ========================================
   HERO CONTENT - Parallax Text
   ======================================== */
.hero-content {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    grid-template-rows: 1fr;
    padding: var(--spacing-xl);
    padding-top: 0;
    align-items: center;
    /* Center vertically to match logo */
    gap: var(--spacing-lg);
    pointer-events: none;
}

/* Tagline - Positioned HIGHER, WIDE span */
.hero-tagline {
    align-self: center;
    margin-top: -15vh;
    /* Move up higher */
    will-change: transform;
    max-width: none;
    width: 100%;
}

.tagline-text {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.5vw, 3.5rem);
    font-weight: 300;
    line-height: 1.2;
    color: var(--color-text-primary);
    letter-spacing: -0.01em;
    transition: color var(--transition-normal);
    white-space: nowrap;
    /* Prevent line breaks within each span */
}

.tagline-line {
    display: block;
    white-space: nowrap;
    /* Keep each line on one row */
}

.tagline-text.light-mode {
    color: var(--color-text-light);
}

.tagline-line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.tagline-line:nth-child(1) {
    animation-delay: 0.2s;
}

.tagline-line:nth-child(2) {
    animation-delay: 0.4s;
}

.tagline-line:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Description - WIDER and LOWER */
.hero-description {
    grid-column: 3;
    align-self: end;
    /* Position at bottom */
    padding-bottom: var(--spacing-xl);
    /* Distance from bottom */
    max-width: 450px;
    /* Much wider */
    will-change: transform;
}

.hero-description p {
    font-size: 0.75rem;
    /* Smaller text */
    font-weight: 300;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-xs);
    /* Tighter spacing */
    line-height: 1.6;
    transition: color var(--transition-normal);
}

.hero-description.light-mode p {
    color: rgba(255, 255, 255, 0.85);
}

/* ========================================
   HERO IMAGE CONTAINER - CROP EXPANSION Effect
   Container acts as a mask/crop that expands
   Images stay fixed size while container reveals more
   ======================================== */
.hero-image-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 100vh);
    width: 70vw;
    height: 65vh;
    border-radius: var(--radius-xl);
    overflow: hidden;
    z-index: 5;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3);
    will-change: transform, width, height, border-radius;
}

.hero-images-wrapper {
    /* Fixed size - doesn't scale with container */
    position: absolute;
    /* Center the fixed-size wrapper in container */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Full viewport size - container crops this */
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* Images fill the wrapper at full viewport size */
.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Start below, slide up */
    transform: translateY(100%);
    transition: transform var(--transition-drawer);
    z-index: 1;
}

/* First image is always visible once container is shown */
.hero-image[data-index="0"] {
    transform: translateY(0);
    z-index: 1;
}

/* When active, slide up into view */
.hero-image.active {
    transform: translateY(0);
}

/* Stack z-index for slide-up effect - later images on top */
.hero-image[data-index="1"] {
    z-index: 2;
}

.hero-image[data-index="2"] {
    z-index: 3;
}

.hero-image[data-index="3"] {
    z-index: 4;
}

.hero-image[data-index="4"] {
    z-index: 5;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
    overflow: hidden;
    z-index: 20;
    transition: background var(--transition-normal);
}

.scroll-indicator.light-mode {
    background: rgba(255, 255, 255, 0.3);
}

.scroll-progress {
    height: 100%;
    width: 0%;
    background: var(--color-text-primary);
    border-radius: 2px;
    transition: width 0.1s linear, background var(--transition-normal);
}

.scroll-indicator.light-mode .scroll-progress {
    background: var(--color-white);
}

/* ========================================
   MATERIALS SECTION - Overlaps hero by half screen
   ======================================== */
.materials-section {
    background-color: var(--color-bg-primary);
    padding: var(--spacing-2xl) var(--spacing-xl);
    min-height: 100vh;
    margin-top: -50vh;
    /* Pull up to overlap with hero - reveals as image shrinks */
}

.materials-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--spacing-xl);
    align-items: start;
}

.materials-content {
    padding-right: var(--spacing-lg);
    max-width: 480px;
    /* Much wider for rectangular text */
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 300;
    line-height: 1.15;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-lg);
}

.section-title span {
    display: block;
    white-space: nowrap;
    /* Prevent line breaks within span */
}

.materials-description p {
    font-size: 0.75rem;
    /* Match hero description */
    font-weight: 300;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.7;
}

/* Materials Images - Natural Ratio Layout, BIGGER & OVERLAPPING */
.materials-images {
    position: relative;
    display: flex;
    align-items: center;
    /* Center vertically - no waste space */
    justify-content: flex-start;
    gap: 0;
}

.material-image {
    /* Completely transparent - no visible container */
    overflow: visible;
    transition: var(--transition-normal);
}

.material-image img {
    /* Natural image ratio - NO shadow - 1.5x size */
    width: auto;
    height: auto;
    max-height: 825px;
    border-radius: 0;
    transition: transform var(--transition-slow);
}

.material-image:hover img {
    transform: translateY(-10px) scale(1.02);
}

/* Left image - 1.5x */
.material-image.material-left {
    margin-right: -75px;
    /* More overlap */
    z-index: 1;
}

.material-image.material-left img {
    max-height: 780px;
}

/* Center image - 1.5x */
.material-image.material-center {
    z-index: 2;
}

.material-image.material-center img {
    max-height: 975px;
}

/* Right image - 1.5x */
.material-image.material-right {
    margin-left: -75px;
    /* More overlap */
    z-index: 1;
}

.material-image.material-right img {
    max-height: 780px;
}

/* ========================================
   PROJECTS SECTION - Premium Gallery
   ======================================== */
.projects-section {
    background-color: var(--color-bg-dark);
    padding: var(--spacing-2xl) var(--spacing-xl);
    min-height: 100vh;
}

.projects-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Projects Header */
.projects-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: var(--spacing-xl);
    gap: var(--spacing-lg);
}

.projects-header-content {
    max-width: 500px;
}

.section-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 200;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-accent-gold);
    margin-bottom: var(--spacing-sm);
}

.projects-header .section-title {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
}

.projects-intro {
    font-size: 0.9rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--color-text-light);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.05);
    transition: var(--transition-normal);
    white-space: nowrap;
}

.view-all-btn svg {
    transition: transform var(--transition-normal);
}

.view-all-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.view-all-btn:hover svg {
    transform: translateX(4px);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: repeat(2, 280px);
    gap: var(--spacing-md);
}

/* ========================================
   PROJECT CARD - 3-Layer Depth System
   Layer 1: Image (underneath, slow parallax)
   Layer 2: Wall mask (stationary, has rounded hole)
   Layer 3: Text (floating on top, fast parallax)
   ======================================== */
.project-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    background: transparent;
}

.project-card.large {
    grid-row: span 2;
}

/* LAYER 1: Image - UNDERNEATH the wall */
.project-image-layer {
    position: absolute;
    /* Extends beyond card to allow more parallax movement */
    inset: -100px;
    z-index: 1;
    will-change: transform;
}

.project-image-layer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-image-layer img {
    transform: scale(1.05);
}

/* LAYER 2: Wall Mask - Creates the "hole" revealing image */
.project-wall-layer {
    position: absolute;
    inset: 0;
    z-index: 2;
    /* This creates the "wall" with a transparent center */
    /* Using box-shadow to create solid edges, leaving center visible */
    border-radius: var(--radius-lg);
    box-shadow:
        inset 0 0 0 0 var(--color-bg-dark),
        0 0 0 100vmax var(--color-bg-dark);
    /* Subtle inner depth shadow */
    pointer-events: none;
}

/* Depth shadow on the "hole" edge - DISABLED for comparison */
.project-wall-layer::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    /* box-shadow removed for cleaner look */
    pointer-events: none;
}

/* LAYER 3: Gradient - FIXED at bottom for text readability */
.project-gradient-layer {
    position: absolute;
    inset: 0;
    z-index: 3;
    border-radius: var(--radius-lg);
    /* Fixed gradient at bottom - does NOT move */
    background: linear-gradient(180deg,
            transparent 0%,
            transparent 50%,
            rgba(0, 0, 0, 0.4) 75%,
            rgba(0, 0, 0, 0.85) 100%);
    pointer-events: none;
}

/* LAYER 4: Text - PARALLAX from inside frame */
.project-text-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 4;
    padding: var(--spacing-lg);
    will-change: transform;
}

.project-info {
    transform: translateY(5px);
    opacity: 0.9;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-info {
    transform: translateY(0);
    opacity: 1;
}

.project-category {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent-gold);
    margin-bottom: var(--spacing-xs);
}

.project-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-text-light);
    margin-bottom: 4px;
    line-height: 1.2;
}

.project-card.large .project-title {
    font-size: 2rem;
}

.project-location {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.4s ease 0.1s;
}

.project-card:hover .project-location {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   FULLSCREEN LIGHTBOX GALLERY
   ======================================== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 48px;
    height: 48px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-header {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 10;
}

.lightbox-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    color: white;
    margin-bottom: 4px;
}

.lightbox-counter {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.lightbox-carousel {
    position: absolute;
    inset: 80px 80px 80px 80px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.lightbox-carousel::-webkit-scrollbar {
    display: none;
}

.lightbox-track {
    display: flex;
    height: 100%;
    gap: 24px;
}

.lightbox-slide {
    flex: 0 0 100%;
    height: 100%;
    scroll-snap-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.lightbox-nav:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.lightbox-prev {
    left: 16px;
}

.lightbox-next {
    right: 16px;
}

.lightbox-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.lightbox-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-dot.active,
.lightbox-dot:hover {
    background: white;
    transform: scale(1.2);
}

/* ========================================
   FOOTER
   ======================================== */
.main-footer {
    background-color: var(--color-bg-dark);
    padding: var(--spacing-xl) var(--spacing-xl) var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo img {
    width: 100px;
    height: auto;
    filter: brightness(0.9);
}

.footer-links h3,
.footer-contact h3 {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 200;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

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

.footer-links a:hover {
    color: var(--color-text-light);
}

.footer-contact address {
    font-style: normal;
}

.footer-contact p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--spacing-xs);
    line-height: 1.6;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: var(--spacing-md);
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: var(--spacing-md);
    }

    .hero-tagline {
        padding-top: var(--spacing-lg);
    }

    .hero-description {
        grid-column: 2;
        padding-bottom: var(--spacing-lg);
    }

    .hero-image-container {
        width: 80vw;
        height: 50vh;
    }

    .materials-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .materials-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 150px);
    }

    .projects-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(2, 250px);
    }

    .project-card.large {
        grid-row: span 1;
        grid-column: span 2;
    }

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

    .footer-logo {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    :root {
        --logo-initial-size: 180px;
        --logo-final-size: 50px;
    }

    .main-nav {
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .nav-links {
        gap: var(--spacing-md);
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        padding: var(--spacing-lg);
        text-align: center;
    }

    .hero-tagline,
    .hero-description {
        max-width: 100%;
        padding: var(--spacing-lg) 0;
        grid-column: 1;
    }

    .hero-image-container {
        width: 90vw;
        height: 45vh;
    }

    .materials-section,
    .projects-section {
        padding: var(--spacing-xl) var(--spacing-md);
    }

    .materials-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 140px);
    }

    .projects-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, 280px);
    }

    .project-card.large {
        grid-column: span 1;
    }

    .projects-header {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: center;
    }

    .footer-logo {
        grid-column: span 1;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-xl: 4rem;
        --spacing-2xl: 6rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--spacing-sm);
    }

    .materials-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(3, 120px);
    }
}

/* ========================================
   ANIMATIONS & EFFECTS
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-slow);
}

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

/* Parallax helper classes */
[data-parallax],
[data-parallax-speed] {
    will-change: transform;
}

/* Glassmorphism utility */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Smooth scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--color-accent-gold);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent-bronze);
}