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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #0A1628;
    color: #ffffff;
    font-family: 'Inter', system-ui, sans-serif;
    overflow-x: hidden;
}

::selection {
    background: rgba(200, 150, 60, 0.3);
    color: #ffffff;
}

/* ─── Hero Gradient ─── */
.hero-gradient {
    background: radial-gradient(ellipse 80% 60% at 50% 40%, #152D56 0%, #0F2140 40%, #0A1628 80%);
}

/* ─── Hero Pattern ─── */
.hero-pattern {
    background-image:
        radial-gradient(circle at 25% 25%, rgba(200, 150, 60, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(200, 150, 60, 0.06) 0%, transparent 50%);
}

/* ─── Hero Animations ─── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-headline {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-tagline {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-ctas {
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.hero-accent-1 {
    animation: float 8s ease-in-out infinite;
}

.hero-accent-2 {
    animation: float 10s ease-in-out infinite 1s;
}

.hero-accent-3 {
    animation: float 12s ease-in-out infinite 2s;
}

/* ─── Scroll Line ─── */
.scroll-line {
    animation: fadeIn 1s ease-out 1.5s both;
}

/* ─── CTA Buttons ─── */
.cta-primary {
    position: relative;
    overflow: hidden;
}

.cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

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

.cta-secondary {
    backdrop-filter: blur(4px);
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
}

/* ─── Section Labels ─── */
.section-label {
    display: block;
}

/* ─── Section Titles ─── */
.section-title {
    position: relative;
}

/* ─── Service Cards ─── */
.service-card {
    cursor: pointer;
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.5s ease;
    background: linear-gradient(135deg, rgba(200, 150, 60, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.service-card:hover::after {
    opacity: 1;
}

/* ─── Gallery ─── */
.gallery-item {
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 22, 40, 0.2);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* ─── Mobile Menu ─── */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.open .mobile-link {
    animation: fadeInUp 0.4s ease-out both;
}

#mobile-menu.open .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { animation-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { animation-delay: 0.25s; }

/* ─── Menu Toggle ─── */
.menu-line {
    display: block;
}

body.menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

body.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

body.menu-open .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* ─── Scroll Reveal (progressive enhancement) ─── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    }

    .reveal.revealed {
        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; }
}

/* ─── Navbar ─── */
#navbar.scrolled {
    background: rgba(10, 22, 40, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.3);
}

#navbar.scrolled .menu-line {
    background: #ffffff;
}

#navbar.scrolled .menu-line:nth-child(3) {
    background: #F5D79A;
}

/* ─── Form ─── */
select option {
    background: #0F2140;
    color: #ffffff;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .hero-headline {
        font-size: 3.5rem;
    }

    .section-title {
        font-size: 2.75rem;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: 2.75rem;
    }

    .section-title {
        font-size: 2.25rem;
    }
}
