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

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a1628;
}
::-webkit-scrollbar-thumb {
    background: #c9952e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d4a843;
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(10, 22, 40, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

#navbar.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
}

#navbar.scrolled #logo-text {
    color: #ffffff !important;
}

/* Mobile menu open state */
#mobile-menu.open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Menu animation */
#mobile-menu.open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#mobile-menu.open .menu-line:nth-child(2) {
    opacity: 0;
}
#mobile-menu.open .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile link animation */
#mobile-menu.open .mobile-link {
    animation: slideIn 0.3s ease forwards;
    opacity: 0;
}
#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; }

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

/* Back to top button */
#back-to-top.visible {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Service card image hover */
.service-card:hover img {
    transform: scale(1.1);
}

/* Geometric pattern overlay for hero */
.hero-pattern {
    background-image:
        radial-gradient(circle at 20% 50%, rgba(201, 149, 46, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(201, 149, 46, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(201, 149, 46, 0.06) 0%, transparent 50%);
}

/* Selection color */
::selection {
    background: rgba(201, 149, 46, 0.3);
    color: #0a1628;
}

/* Focus visible styles */
*:focus-visible {
    outline: 2px solid #c9952e;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    #navbar, #back-to-top, .reveal {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
