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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { overflow-x: hidden; }

/* ─── HERO GRADIENT OVERLAY ───────────────────────────── */
#heroGradient {
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(4, 47, 46, 0.85) 0%, transparent 70%),
        radial-gradient(ellipse 50% 50% at 20% 60%, rgba(6, 78, 59, 0.6) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 80% 30%, rgba(212, 168, 75, 0.15) 0%, transparent 50%),
        linear-gradient(160deg, rgba(4, 15, 12, 0.7) 0%, rgba(6, 47, 46, 0.5) 50%, rgba(4, 15, 12, 0.8) 100%);
}

/* ─── SCROLL ANIMATIONS ───────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ─── SERVICE CARDS ───────────────────────────────────── */
.service-card {
    position: relative;
    background: linear-gradient(160deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(160deg, rgba(212,168,75,0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}
.service-card:hover {
    border-color: rgba(212,168,75,0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(212,168,75,0.06);
}
.service-card:hover::before { opacity: 1; }

/* ─── GALLERY ─────────────────────────────────────────── */
.gallery-item {
    position: relative;
    cursor: pointer;
}
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(6,78,59,0.3) 0%, rgba(4,15,12,0.5) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.gallery-item:hover::after { opacity: 1; }

/* ─── TESTIMONIAL CARDS ───────────────────────────────── */
.testimonial-card {
    position: relative;
    background: linear-gradient(160deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.testimonial-card:hover {
    border-color: rgba(212,168,75,0.25);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* ─── NAV LINKS ───────────────────────────────────────── */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #d4a84b, #f0d78c);
    transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* ─── MOBILE MENU ─────────────────────────────────────── */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}
#mobileMenu.open .mobile-link {
    animation: fadeUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
#mobileMenu .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobileMenu .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobileMenu .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobileMenu .mobile-link:nth-child(4) { animation-delay: 0.2s; }

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

/* ─── HERO ANIMATION ──────────────────────────────────── */
.hero-sub {
    animation: fadeInDown 1s 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-sub p {
    animation: fadeIn 1s 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
#hero h1 {
    animation: fadeInUp 1s 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}
#hero p {
    animation: fadeIn 1s 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
#hero > div > div:last-child {
    animation: fadeIn 1s 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── FORM STYLES ─────────────────────────────────────── */
select option {
    background: #064e3b;
    color: #faf5ef;
}

/* ─── FOCUS VISIBLE ───────────────────────────────────── */
:focus-visible {
    outline: 2px solid #d4a84b;
    outline-offset: 2px;
}

/* ─── SELECTION ───────────────────────────────────────── */
::selection {
    background: rgba(212, 168, 75, 0.3);
    color: #faf5ef;
}

/* ─── SCROLLBAR ───────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #050e0b; }
::-webkit-scrollbar-thumb { background: #064e3b; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #042f2e; }

/* ─── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 3.5rem;
    }
    #hero h1 span:nth-child(2) {
        font-size: 3.5rem;
    }
}
@media (max-width: 640px) {
    #hero h1 {
        font-size: 2.75rem;
    }
    #hero h1 span:nth-child(2) {
        font-size: 2.75rem;
    }
}
