/* ===== CUSTOM STYLES ===== */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0A0412;
}
::-webkit-scrollbar-thumb {
    background: #3a1273;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #5a1fb8;
}

/* Selection color */
::selection {
    background: rgba(200, 150, 62, 0.3);
    color: #f5f0ff;
}

/* ===== HEADER STYLES ===== */
#header {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#header.scrolled {
    background: rgba(5, 2, 9, 0.85);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(200, 150, 62, 0.1);
}

/* ===== MOBILE MENU ===== */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.open .mobile-link {
    animation: fadeUp 0.4s ease forwards;
    opacity: 0;
}

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

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

/* Hamburger animation */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

body.menu-open .menu-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
body.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}
body.menu-open .menu-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
    width: 1.25rem;
    margin-right: 0;
}

/* ===== HERO ANIMATIONS ===== */
#hero .animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

#hero .animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== SERVICE CARDS ===== */
#services .service-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

#services .service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

#services .service-card:nth-child(1) { transition-delay: 0.05s; }
#services .service-card:nth-child(2) { transition-delay: 0.1s; }
#services .service-card:nth-child(3) { transition-delay: 0.15s; }
#services .service-card:nth-child(4) { transition-delay: 0.2s; }
#services .service-card:nth-child(5) { transition-delay: 0.25s; }
#services .service-card:nth-child(6) { transition-delay: 0.3s; }

/* ===== SECTION ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== GOLD ACCENT LINE ===== */
.gold-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #C8963E, #E8C37B);
    border: none;
    border-radius: 2px;
}

/* ===== IMAGE HOVER ===== */
img {
    max-width: 100%;
    height: auto;
}

/* ===== FOCUS STYLES ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #C8963E;
    outline-offset: 2px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    .font-display {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}
