/* ============================================
   illumotiQ - Landscape Lighting Website
   Color Palette & Variables
   ============================================ */

:root {
    /* Brand Colors */
    --black: #1b1b1b;
    --off-white: #eeede9;
    --dark-gray: #2a2a2a;
    --medium-gray: #4a4a4a;
    --light-gray: #eeede9;
    
    /* Gold Accent - Metallic Gradient */
    --gold-light: #d4af37;
    --gold-mid: #c9a227;
    --gold-dark: #b8960f;
    --gold-shimmer: linear-gradient(135deg, #d4af37 0%, #f4e4a6 25%, #d4af37 50%, #aa8c2c 75%, #d4af37 100%);
    --gold-subtle: linear-gradient(135deg, #d4af37 0%, #e8d48a 50%, #d4af37 100%);
    
    /* Typography */
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --section-padding: clamp(80px, 10vw, 120px);
    --container-max: 1200px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Reset & Base Styles
   ============================================ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    /* overflow-x: hidden removed - it breaks position: sticky */
}

body {
    font-family: var(--font-sans);
    background-color: var(--off-white);
    color: var(--black);
    line-height: 1.6;
    /* overflow-x: hidden removed - it breaks position: sticky */
    overscroll-behavior: none;
    -webkit-overflow-scrolling: touch;
}

/* Prevent horizontal scroll on iOS - use clip instead of hidden */
html, body {
    max-width: 100vw;
    overflow-x: clip; /* clip doesn't create scroll container like hidden does */
    touch-action: pan-y;
}

/* Clip all overflowing content */
.hero, .hero-bg, .tree-scenery {
    overflow: hidden;
}

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

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   Navigation
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--off-white);
}

.logo-text, .hero-logo-text, .footer-logo {
    font-family: 'Times New Roman', Times, serif;
    font-style: italic;
    font-weight: 400;
}

.logo-iq {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 0.85em;
}

.logo-dot {
    background: var(--gold-shimmer);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--off-white);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold-subtle);
    transition: var(--transition-smooth);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 10px 24px;
    border: 1px solid var(--gold-light);
    color: var(--gold-light);
    transition: var(--transition-smooth);
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background: var(--gold-shimmer);
    color: var(--black);
    border-color: transparent;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--off-white);
    transition: var(--transition-fast);
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: clip;
    overflow-y: visible;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--black) 0%, var(--dark-gray) 100%);
}

/* Stars background */
.stars-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60%;
    overflow: hidden;
    pointer-events: none;
}

.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background-image: 
        radial-gradient(1px 1px at 20px 30px, rgba(255,255,255,0.9), transparent),
        radial-gradient(1px 1px at 40px 70px, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 50px 160px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.9), transparent),
        radial-gradient(2px 2px at 160px 120px, rgba(255,255,255,1), transparent),
        radial-gradient(1px 1px at 200px 50px, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 220px 140px, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 280px 90px, rgba(255,255,255,0.8), transparent),
        radial-gradient(2px 2px at 320px 30px, rgba(255,255,255,1), transparent),
        radial-gradient(1px 1px at 350px 170px, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 400px 60px, rgba(255,255,255,0.9), transparent),
        radial-gradient(1px 1px at 450px 130px, rgba(255,255,255,0.7), transparent),
        radial-gradient(2px 2px at 500px 20px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 550px 100px, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 600px 150px, rgba(255,255,255,0.9), transparent),
        radial-gradient(1px 1px at 650px 40px, rgba(255,255,255,0.7), transparent),
        radial-gradient(2px 2px at 700px 80px, rgba(255,255,255,1), transparent),
        radial-gradient(1px 1px at 750px 120px, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 800px 60px, rgba(255,255,255,0.8), transparent);
    background-repeat: repeat;
    background-size: 800px 200px;
    animation: starsDrift 90s linear infinite;
}

.stars-2 {
    background-image: 
        radial-gradient(1px 1px at 100px 50px, rgba(255,255,255,0.8), transparent),
        radial-gradient(2px 2px at 200px 100px, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 300px 20px, rgba(255,255,255,0.9), transparent),
        radial-gradient(1px 1px at 400px 150px, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 500px 70px, rgba(255,255,255,0.5), transparent),
        radial-gradient(2px 2px at 600px 130px, rgba(255,255,255,1), transparent),
        radial-gradient(1px 1px at 700px 30px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 750px 180px, rgba(255,255,255,0.6), transparent);
    background-size: 600px 180px;
    animation: starsDrift 120s linear infinite;
    opacity: 0.7;
}

/* Starfield drifts diagonally - like watching the night sky move */
@keyframes starsDrift {
    from {
        transform: translate(0, 0);
    }
    to {
        transform: translate(-800px, -200px);
    }
}

/* Twinkle overlay - some stars fade in/out */
.stars::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 150px 80px, rgba(255,255,255,1), transparent),
        radial-gradient(2px 2px at 420px 50px, rgba(255,255,255,1), transparent),
        radial-gradient(2px 2px at 680px 130px, rgba(255,255,255,1), transparent),
        radial-gradient(2px 2px at 250px 150px, rgba(255,255,255,1), transparent),
        radial-gradient(2px 2px at 550px 90px, rgba(255,255,255,1), transparent);
    background-repeat: repeat;
    background-size: 800px 200px;
    animation: twinkle 4s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Shooting stars */
.shooting-star {
    position: absolute;
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0.8), transparent);
    transform: rotate(-35deg);
    animation: shoot 12s ease-in-out infinite;
    opacity: 0;
}

.shooting-star::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 6px 2px rgba(255,255,255,0.6);
    left: 0;
    top: -2.5px;
}

.shooting-star {
    top: 6%;
    left: 80%;
    animation: shoot 25s ease-in-out infinite;
}

.shooting-star-2 {
    top: 20%;
    left: 25%;
    animation: shoot2 32s ease-in-out infinite;
    animation-delay: 10s;
    width: 70px;
}

.shooting-star-3 {
    top: 10%;
    left: 60%;
    animation: shoot3 28s ease-in-out infinite;
    animation-delay: 18s;
    width: 90px;
}

@keyframes shoot {
    0% {
        opacity: 0;
        transform: rotate(-35deg) translateX(0);
    }
    2% {
        opacity: 1;
    }
    6% {
        opacity: 0;
        transform: rotate(-35deg) translateX(-400px);
    }
    100% {
        opacity: 0;
        transform: rotate(-35deg) translateX(-400px);
    }
}

@keyframes shoot2 {
    0% {
        opacity: 0;
        transform: rotate(-45deg) translateX(0);
    }
    2% {
        opacity: 1;
    }
    5% {
        opacity: 0;
        transform: rotate(-45deg) translateX(-350px);
    }
    100% {
        opacity: 0;
        transform: rotate(-45deg) translateX(-350px);
    }
}

@keyframes shoot3 {
    0% {
        opacity: 0;
        transform: rotate(-25deg) translateX(0);
    }
    2% {
        opacity: 1;
    }
    7% {
        opacity: 0;
        transform: rotate(-25deg) translateX(-450px);
    }
    100% {
        opacity: 0;
        transform: rotate(-25deg) translateX(-450px);
    }
}

/* Realistic tree scenery */
.trees-scenery {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.tree-group {
    position: absolute;
    bottom: -5%;
    width: 45%;
    max-width: 520px;
    height: 100%;
    display: flex;
    align-items: flex-end;
    overflow: visible;
}

.tree-group-left {
    left: -3%;
}

.tree-group-right {
    right: -3%;
}

.tree-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: bottom;
    filter: brightness(0) saturate(0);
}

.tree-group-right .tree-image {
    transform: scaleX(-1);
}

/* Light reveal overlay - golden glow from bottom */
.tree-light-reveal {
    position: absolute;
    bottom: -20%;
    left: -50%;
    right: -50%;
    height: 0%;
    background: radial-gradient(
        ellipse 100% 100% at 50% 100%,
        rgba(212, 175, 55, 0.18) 0%,
        rgba(212, 175, 55, 0.08) 15%,
        rgba(212, 175, 55, 0.02) 35%,
        transparent 55%
    );
    filter: blur(40px);
    mix-blend-mode: screen;
    pointer-events: none;
}

/* When illuminated */
.tree-group.illuminated .tree-image {
    filter: brightness(0.7) saturate(0.8);
}

.tree-group.illuminated .tree-light-reveal {
    height: 100%;
}

/* Golden uplight glow at base of trees */
.tree-group::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15%;
    right: 15%;
    height: 0;
    background: radial-gradient(
        ellipse 100% 100% at 50% 100%,
        rgba(212, 175, 55, 0.5) 0%,
        rgba(212, 175, 55, 0.2) 40%,
        transparent 70%
    );
    filter: blur(15px);
    transition: height 1.5s ease 0.3s;
    pointer-events: none;
}

.tree-group.illuminated::after {
    height: 60%;
}


/* Uplight beams container */
.uplights-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

/* Individual uplight beams */
.uplight {
    position: absolute;
    bottom: -20%;
    width: 180px;
    height: 140%;
    background: radial-gradient(
        ellipse at bottom center,
        rgba(212, 175, 55, 0.5) 0%,
        rgba(212, 175, 55, 0.3) 15%,
        rgba(212, 175, 55, 0.1) 40%,
        transparent 70%
    );
    filter: blur(40px);
    opacity: 0;
    transform: scaleY(0.3);
    transform-origin: bottom center;
    transition: opacity 0.8s ease, transform 1.2s ease;
}

.uplight.active {
    opacity: 1;
    transform: scaleY(1);
}

/* Position each uplight */
.uplight:nth-child(1) { left: 5%; transition-delay: 0s; }
.uplight:nth-child(2) { left: 20%; transition-delay: 0.1s; }
.uplight:nth-child(3) { left: 35%; transition-delay: 0.2s; }
.uplight:nth-child(4) { left: 65%; transition-delay: 0.2s; }
.uplight:nth-child(5) { left: 80%; transition-delay: 0.1s; }
.uplight:nth-child(6) { right: 5%; transition-delay: 0s; }

/* Center spotlight on logo */
.logo-spotlight {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 180px;
    background: radial-gradient(
        ellipse,
        rgba(212, 175, 55, 0.12) 0%,
        rgba(212, 175, 55, 0.06) 50%,
        transparent 80%
    );
    filter: blur(25px);
    opacity: 0;
    transition: opacity 1s ease 0.3s;
    pointer-events: none;
}

.logo-spotlight.active {
    opacity: 1;
}

/* Logo glow effect */
.hero-logo-text {
    position: relative;
    text-shadow: 0 0 0 transparent;
    transition: text-shadow 1s ease, filter 1s ease;
}

.hero-logo-text.illuminated {
    text-shadow: 
        0 0 20px rgba(212, 175, 55, 0.5),
        0 0 40px rgba(212, 175, 55, 0.3),
        0 0 60px rgba(212, 175, 55, 0.2);
    filter: brightness(1.2);
}

/* Ambient glow particles */
.glow-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.glow-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--gold-light);
    border-radius: 50%;
    opacity: 0;
    filter: blur(1px);
    animation: floatUp 4s ease-in-out infinite;
    animation-play-state: paused;
}

.glow-particle.active {
    opacity: 0.6;
    animation-play-state: running;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100vh) scale(0.5);
        opacity: 0;
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 100px,
            rgba(212, 175, 55, 0.02) 100px,
            rgba(212, 175, 55, 0.02) 101px
        );
}

.hero-content {
    position: relative;
    text-align: center;
    padding: 0 24px;
    max-width: 900px;
    animation: fadeInUp 1s ease-out;
}

.hero-logo {
    margin-bottom: 0;
}

.hero-logo-text {
    font-size: clamp(6rem, 16vw, 10rem);
    color: var(--off-white);
    letter-spacing: -4px;
}

.hero-tagline {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--light-gray);
    margin-top: -3rem;
    margin-bottom: 0.25rem;
    margin-bottom: 32px;
}

.gold-separator {
    background: var(--gold-shimmer);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 8px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 400;
    color: var(--off-white);
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.125rem;
    font-weight: 300;
    color: var(--light-gray);
    max-width: 600px;
    margin: 0 auto 20px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: var(--gold-shimmer);
    background-size: 200% 200%;
    color: var(--black);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: var(--transition-slow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
    background-position: 100% 0;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    background: transparent;
    color: var(--off-white);
    border: 1px solid var(--medium-gray);
}

.btn-secondary:hover {
    border-color: var(--gold-light);
    color: var(--gold-light);
}

.btn-outline {
    background: transparent;
    color: var(--black);
    border: 1px solid var(--black);
}

.btn-outline:hover {
    background: var(--black);
    color: var(--off-white);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--light-gray);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 1px solid var(--gold-light);
    border-bottom: 1px solid var(--gold-light);
    transform: rotate(45deg);
}

/* ============================================
   Section Styles
   ============================================ */

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold-mid);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--black);
    margin-bottom: 20px;
}

.gold-line {
    width: 60px;
    height: 2px;
    background: var(--gold-shimmer);
    margin: 0 auto;
}

.gold-line.left {
    margin: 0;
}

/* ============================================
   Services Section
   ============================================ */

.services {
    padding: var(--section-padding) 0;
    background: var(--off-white);
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/Lighting Plan - Standard Series with EX Transformer.png');
    background-size: 180% auto;
    background-position: 20% 10%;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
}



.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.service-card {
    background: white;
    padding: 40px;
    border: 1px solid var(--light-gray);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gold-shimmer);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
    color: var(--gold-mid);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--black);
}

.service-card p {
    font-size: 0.9375rem;
    color: var(--medium-gray);
    line-height: 1.7;
}

/* ============================================
   Gallery Section
   ============================================ */

.gallery {
    padding: var(--section-padding) 0;
    background: var(--off-white);
    position: relative;
    overflow: hidden;
}

.gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/Lighting Plan - Standard Series with EX Transformer.png');
    background-size: 250% auto;
    background-position: 0% 20%;
    background-repeat: no-repeat;
    opacity: 0.08;
    z-index: 0;
    pointer-events: none;
}

#gallery-bg-image {
    display: none;
}


.gallery .section-title {
    color: var(--black);
}

.gallery .section-label {
    color: var(--gold-mid);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-smooth);
    background: white;
    border: 1px solid var(--light-gray);
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gold-shimmer);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-smooth);
    z-index: 10;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.gallery-item:hover::before {
    transform: scaleX(1);
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item.tall {
    grid-row: span 2;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.placeholder-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: white;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 
        0 0 10px rgba(0, 0, 0, 0.9),
        0 0 20px rgba(0, 0, 0, 0.7),
        0 2px 4px rgba(0, 0, 0, 0.9),
        0 4px 8px rgba(0, 0, 0, 0.7);
    z-index: 1;
    pointer-events: none;
    text-align: center;
    width: 100%;
}

.placeholder-icon {
    font-size: 2rem;
    color: var(--gold-light);
    opacity: 0;
    transition: opacity 0.3s ease;
    position: relative;
    z-index: 2;
}

.placeholder-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255, 240, 180, 0.6) 0%, rgba(212, 175, 55, 0.4) 30%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.gallery-item:hover .placeholder-icon {
    opacity: 1;
}

.gallery-item:hover .placeholder-icon::before {
    opacity: 1;
}

.gallery-overlay {
    display: none;
}

.gallery-item:hover .gallery-placeholder {
    transform: scale(1.02);
}

.gallery-overlay h4 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: white;
    margin-bottom: 4px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.gallery-overlay p {
    font-size: 0.875rem;
    color: var(--gold-light);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.gallery-cta {
    text-align: center;
    margin-top: 48px;
}

.gallery .btn-outline {
    color: var(--black);
    border-color: var(--medium-gray);
}

.gallery .btn-outline:hover {
    background: var(--gold-shimmer);
    border-color: transparent;
    color: var(--black);
}

/* ============================================
   About Section
   ============================================ */

.about {
    padding: var(--section-padding) 0;
    background: var(--off-white);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/Lighting Plan - Standard Series with EX Transformer.png');
    background-size: 200% auto;
    background-position: 50% 34%;
    background-repeat: no-repeat;
    opacity: 0.08;
    z-index: 0;
    pointer-events: none;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-content .section-title {
    text-align: left;
}

.about-text {
    font-size: 1.0625rem;
    color: var(--medium-gray);
    line-height: 1.9;
    margin: 24px 0 40px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.feature {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feature-icon {
    flex-shrink: 0;
}

.gold-accent {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    background: var(--gold-shimmer);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-text h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--black);
}

.feature-text p {
    font-size: 0.9375rem;
    color: var(--medium-gray);
}

/* About Visual */
.about-visual {
    position: relative;
    width: 100%;
}

.visual-frame {
    position: relative;
    aspect-ratio: 4/5;
    background: var(--black);
    overflow: hidden;
}

.visual-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
}

.visual-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.vision-text {
    position: absolute;
    bottom: -50px;
    right: 0;
    color: #1b1b1b;
    font-family: 'Times New Roman', Georgia, serif;
    font-size: 2rem;
    font-style: italic;
    font-weight: 400;
    z-index: 10;
    white-space: nowrap;
    text-align: right;
}

.stats-card > * {
    display: inline-block !important;
}

.stat {
    text-align: center;
    flex-shrink: 0;
    flex-grow: 0;
    flex-basis: auto;
    display: inline-block !important;
    vertical-align: middle;
}

.stat-divider {
    display: inline-block !important;
    flex-shrink: 0;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--black);
    display: block;
}

.gold-plus {
    background: var(--gold-shimmer);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--medium-gray);
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: var(--light-gray);
}

/* ============================================
   Testimonials Section
   ============================================ */

.testimonials {
    padding: var(--section-padding) 0;
    padding-bottom: calc(var(--section-padding) + 180px); /* Space for flowers */
    background: linear-gradient(180deg, var(--light-gray) 0%, var(--off-white) 100%);
    position: relative;
    overflow: hidden;
}

/* Decorative wildflowers - desktop only */
.wildflowers-border {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 280px;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.1s ease;
    background: url('assets/vecteezy_a-bouquet-of-vibrant-wildflowers-forming-a-delicate-border_46981372.png') repeat-x bottom center;
    background-size: auto 100%;
    filter: brightness(0.15) contrast(1.2);
}

.wildflower-img {
    display: none;
}

/* Hide wildflowers on mobile */
@media (max-width: 1024px) {
    .wildflowers-border {
        display: none;
    }
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: white;
    padding: 40px;
    position: relative;
    z-index: 2; /* Above the flower decorations */
    border: 1px solid transparent;
    transition: var(--transition-smooth);
}

.testimonial-card:hover {
    border-color: var(--gold-light);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.1);
}

.quote-icon {
    font-family: var(--font-serif);
    font-size: 4rem;
    line-height: 1;
    background: var(--gold-shimmer);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: absolute;
    top: 20px;
    left: 30px;
    opacity: 0.5;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--medium-gray);
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--black);
}

.author-location {
    font-size: 0.875rem;
    color: var(--gold-mid);
}

/* ============================================
   Contact Section
   ============================================ */

.contact {
    padding: var(--section-padding) 0;
    background: var(--off-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-info .section-title {
    text-align: left;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.contact-text {
    font-size: 1rem;
    color: var(--medium-gray);
    line-height: 1.8;
    margin: 24px 0 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: white;
    border: 1px solid var(--gold-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 20px;
    height: 20px;
    color: var(--gold-mid);
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--medium-gray);
    margin-bottom: 2px;
}

.contact-item a, .contact-item span {
    font-size: 1rem;
    color: var(--black);
}

.contact-item a:hover {
    color: var(--gold-mid);
}

/* Payment Methods */
.payment-methods {
    padding-top: 24px;
    border-top: 1px solid var(--light-gray);
}

.payment-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--medium-gray);
    margin-bottom: 12px;
}

.payment-icons {
    display: flex;
    gap: 12px;
}

.payment-icon {
    width: 48px;
    height: 48px;
    background: white;
    border: 1px solid var(--gold-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--gold-mid);
    border-radius: 4px;
}

/* Contact Form */
.contact-form-wrapper {
    background: white;
    padding: 48px;
    border: 1px solid var(--light-gray);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--black);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 16px;
    font-family: var(--font-sans);
    font-size: 1rem;
    border: 1px solid var(--light-gray);
    background: var(--off-white);
    color: var(--black);
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold-mid);
    background: white;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--medium-gray);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234a4a4a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: var(--black);
    padding: 20px 0 15px;
    color: var(--light-gray);
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.footer-logo {
    font-size: 1.5rem;
    color: var(--off-white);
    display: block;
    margin-bottom: 4px;
}

.footer-tagline {
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 8px;
}

.footer-desc {
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--light-gray);
}

.footer-links h4 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--off-white);
    margin-bottom: 10px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-links a {
    font-size: 0.8rem;
    color: var(--light-gray);
    transition: var(--transition-fast);
}

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

.footer-social h4 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--off-white);
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 32px;
    height: 32px;
    border: 1px solid var(--medium-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.social-link svg {
    width: 14px;
    height: 14px;
    color: var(--light-gray);
    transition: var(--transition-fast);
}

.social-link:hover {
    border-color: var(--gold-light);
    background: var(--gold-shimmer);
}

.social-link:hover svg {
    color: var(--black);
}

.footer-bottom {
    padding-top: 10px;
    border-top: 1px solid var(--dark-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: var(--light-gray);
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    font-size: 0.75rem;
    color: var(--light-gray);
}

.footer-legal a:hover {
    color: var(--gold-light);
}

/* ============================================
   Animations
   ============================================ */

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

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

/* ============================================
   Fade & Rise Animations with Staggered Reveals
   ============================================ */

/* Base animation - fade up with smooth easing */
[data-aos] {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(4px);
    transition: 
        opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        filter 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

[data-aos="fade-left"] {
    transform: translateX(40px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-right"] {
    transform: translateX(-40px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

/* Section headers - special treatment */
.section-header {
    opacity: 0;
    transform: translateY(30px);
    transition: 
        opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-header.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered reveal for child elements */
.stagger-reveal > * {
    opacity: 0;
    transform: translateY(25px);
    transition: 
        opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.stagger-reveal.visible > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-reveal.visible > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-reveal.visible > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-reveal.visible > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-reveal.visible > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-reveal.visible > *:nth-child(6) { transition-delay: 0.6s; }

.stagger-reveal.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth section transitions */
section {
    position: relative;
}

/* Sticky stacking sections */
.stack-section {
    position: sticky;
    top: 0;
    z-index: 1;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.2);
    margin-bottom: 80vh; /* Extra scroll distance before next section stacks */
    min-height: 100vh; /* Each section fills the screen to hide sections behind */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertically center content */
}

.stack-section:nth-of-type(2) { z-index: 2; }
.stack-section:nth-of-type(3) { z-index: 3; }
.stack-section:nth-of-type(4) { z-index: 4; }
.stack-section:nth-of-type(5) { z-index: 5; }
.stack-section:nth-of-type(6) { z-index: 6; }
.stack-section:nth-of-type(7) { z-index: 7; }
.stack-section:nth-of-type(8) { z-index: 8; }

/* Last stacking section (contact) - no extra margin before footer */
.contact.stack-section {
    margin-bottom: 0;
    padding-top: 100px; /* Space below header */
    justify-content: flex-start; /* Align content to top, not center */
}

/* Hero doesn't stack - it stays behind */
.hero {
    z-index: 0;
}


/* Gradient fade between sections */
.section-fade-top::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, var(--off-white) 0%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

.section-fade-bottom::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--off-white) 0%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1024px) {
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .stats-card {
        right: 0;
    }
}

@media (max-width: 768px) {
    /* Hide background images on mobile */
    .services::before,
    .gallery::before,
    .about::before {
        display: none;
    }
    
    /* Add subtle drop shadows to boxes on mobile */
    .service-card,
    .gallery-item,
    .gallery-placeholder,
    .testimonial-card,
    .contact-form-wrapper,
    .stats-card {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }
    
    /* Mobile hero logo adjustments */
    .hero-logo-text {
        font-size: clamp(5rem, 15vw, 8rem);
    }
    
    .hero-tagline {
        margin-top: -0.5rem;
        font-size: 0.65rem;
        letter-spacing: 3px;
    }
    
    /* Disable stacking on mobile - normal scroll instead */
    .stack-section {
        position: relative;
        margin-bottom: 0;
        min-height: auto;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--black);
        flex-direction: column;
        justify-content: center;
        gap: 32px;
        transition: var(--transition-smooth);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    
    .gallery-item.large,
    .gallery-item.tall {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .gallery-item {
        aspect-ratio: 1;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .contact-form-wrapper {
        padding: 32px 24px;
    }
    
    .stats-card {
        position: relative;
        bottom: 0;
        right: 0;
        margin-top: 30px;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: center;
        align-items: center;
    }
    
    /* Hide trees on mobile but keep uplights */
    .trees-scenery {
        display: none;
    }
    
    /* Fix horizontal scroll on mobile */
    html, body {
        overflow-x: hidden !important;
        position: relative;
        width: 100%;
    }
    
    .hero {
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Page Transition Overlay
   ============================================ */
.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black);
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.page-transition-overlay.active {
    opacity: 1;
}
