/* ─── Base & Typography ─── */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(200, 168, 85, 0.3);
    color: #f0f4fa;
}

/* ─── Navbar ─── */
.nav-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
    padding-top: 0;
}

.nav-fixed.scrolled {
    background: rgba(5, 10, 29, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(200, 168, 85, 0.1);
    padding-top: 0;
}

/* ─── Hero Gradient ─── */
.hero-gradient {
    background: 
        radial-gradient(ellipse 80% 60% at 20% 40%, rgba(10, 29, 58, 0.9) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 80% 30%, rgba(200, 168, 85, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 70% 60% at 50% 80%, rgba(10, 29, 58, 0.95) 0%, transparent 60%),
        linear-gradient(160deg, #0a1d3a 0%, #1a2d4a 30%, #0d2240 60%, #061224 100%);
}

.hero-pattern {
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(200, 168, 85, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(200, 168, 85, 0.03) 1px, transparent 1px);
    background-size: 60px 60px, 40px 40px;
}

/* ─── Gold Line ─── */
.gold-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 2rem;
}

.gold-line-left,
.gold-line-right {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200, 168, 85, 0.6));
}

.gold-line-right {
    background: linear-gradient(90deg, rgba(200, 168, 85, 0.6), transparent);
}

/* ─── Scroll Indicator ─── */
.scroll-indicator {
    display: block;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-dot {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(8px); opacity: 0.3; }
}

/* ─── Service Cards ─── */
.service-card {
    background: rgba(10, 29, 58, 0.4);
    border: 1px solid rgba(200, 168, 85, 0.08);
    border-radius: 4px;
    padding: 0;
    transition: border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    border-color: rgba(200, 168, 85, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 29, 58, 0);
    transition: background 0.4s ease;
    border-radius: 4px;
}

.gallery-item:hover::after {
    background: rgba(10, 29, 58, 0.2);
}

/* ─── Testimonial Cards ─── */
.testimonial-card {
    transition: border-color 0.4s ease, transform 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

/* ─── Contact Form ─── */
.contact-form {
    transition: border-color 0.4s ease;
}

.contact-form:focus-within {
    border-color: rgba(200, 168, 85, 0.3);
}

select option {
    background: #0a1d3a;
    color: #f0f4fa;
}

/* ─── Mobile Menu ─── */
.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

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

/* ─── Menu Toggle ─── */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}

#menuToggle.active .menu-line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

#menuToggle.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuToggle.active .menu-line:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
    width: 1.5rem;
}

/* ─── Scroll Animations ─── */
[data-animate] {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    [data-animate] {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

    [data-animate].visible:nth-child(2) { transition-delay: 0.1s; }
    [data-animate].visible:nth-child(3) { transition-delay: 0.2s; }
    [data-animate].visible:nth-child(4) { transition-delay: 0.3s; }
    [data-animate].visible:nth-child(5) { transition-delay: 0.4s; }
    [data-animate].visible:nth-child(6) { transition-delay: 0.5s; }
}

/* ─── Responsive ─── */
@media (max-width: 767px) {
    .gold-line-left,
    .gold-line-right {
        width: 40px;
    }
}
