/* Custom styles and overrides */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f4f6fa;
}
::-webkit-scrollbar-thumb {
    background: #c5d0e8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9ab0d6;
}

/* Hero image gradient overlay */
#hero .aspect-\[4\/5\]::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(21, 32, 54, 0.1) 0%, transparent 40%);
    z-index: 1;
    pointer-events: none;
}

/* Service card hover effect - image tint */
.service-card:hover .w-14 {
    transform: scale(1.05);
}

/* Subtle pattern for dark sections */
.dark-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 0);
    background-size: 32px 32px;
}

/* Mobile menu animation */
.mobile-link {
    opacity: 0;
    transform: translateY(10px);
}

.mobile-menu-open .mobile-link {
    animation: slideIn 0.3s ease forwards;
}

.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; }

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar transition */
#navbar.scrolled {
    background: rgba(244, 246, 250, 0.95);
    backdrop-blur-lg;
    box-shadow: 0 1px 20px rgba(21, 32, 54, 0.06);
}

#navbar.scrolled .font-serif {
    color: #152036;
}

/* Form focus styles */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(95, 191, 168, 0.15);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .service-card,
    button,
    a {
        transition: none;
    }
    .service-card:hover {
        transform: none;
    }
}

/* Print styles */
@media print {
    #navbar,
    #hero .absolute.bottom-8,
    .scroll-indicator {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
