/* Custom styles & overrides */

:root {
    --color-navy-800: #1a2744;
    --color-navy-900: #0f1a2e;
    --color-gold-500: #c9a84c;
    --color-gold-400: #d4af5a;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Navbar scroll effect */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(26, 39, 68, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-gold-500);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile menu */
.mobile-link {
    position: relative;
    padding-left: 0;
}

.mobile-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: var(--color-gold-500);
    transition: width 0.3s ease;
}

.mobile-link:hover::before {
    width: 16px;
}

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

#hero > div > div:first-child > div:nth-child(3) > div {
    animation: fadeInUp 0.8s ease forwards;
}

#hero > div > div:first-child > div:nth-child(3) > div:nth-of-type(2) {
    animation: fadeInUp 0.8s ease 0.1s forwards;
    opacity: 0;
}

#hero > div > div:first-child > div:nth-child(3) > div:nth-of-type(3) {
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

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

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

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f8f7f4;
}

::-webkit-scrollbar-thumb {
    background: var(--color-navy-800);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold-500);
}

/* Selection */
::selection {
    background: var(--color-gold-500);
    color: var(--color-navy-900);
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease forwards;
}

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

/* Testimonial card hover */
#testimonials .group {
    transform: translateY(0);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

#testimonials .group:hover {
    transform: translateY(-4px);
}

/* CTA section pattern overlay */
.bg-pattern {
    background-image: url('data:image/svg+xml,%3Csvg width=\'60\' height=\'60\' viewBox=\'0 0 60 60\' xmlns=\'http://www.w3.org/2000/svg\'%3E%3Cg fill=\'none\' fill-rule=\'evenodd\'%3E%3Cg fill=\'%23ffffff\' fill-opacity=\'0.08\'%3E%3Cpath d=\'M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z\'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
}

/* Service card image placeholder */
.service-icon {
    transition: transform 0.3s ease;
}

.group:hover .service-icon {
    transform: scale(1.1) rotate(-5deg);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.75rem;
    }

    .stat-card {
        padding: 1rem !important;
    }
}

/* Print styles */
@media print {
    #navbar,
    #mobile-toggle,
    .scroll-indicator {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
    }
}
