/* Custom styles and overrides */

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

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

::-webkit-scrollbar-track {
    background: #0d2438;
}

::-webkit-scrollbar-thumb {
    background: #2e5f8a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3a9465;
}

/* Selection color */
::selection {
    background: rgba(95, 184, 137, 0.3);
    color: #f0f4f8;
}

/* Hero asymmetric layout adjustments */
@media (min-width: 1024px) {
    #hero .lg\\:grid-cols-2 {
        grid-template-columns: 1fr 0.85fr;
        gap: 4rem;
    }
}

/* Service card hover effect */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #5fb889, transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover::before {
    opacity: 1;
}

/* Gallery item transition */
.gallery-item {
    position: relative;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(6, 21, 33, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(46, 95, 138, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

/* Menu lines animation */
.menu-line {
    transition: all 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

#menuBtn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Select dropdown styling */
select option {
    background: #14324d;
    color: #d4dce8;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #5fb889;
    outline-offset: 2px;
}

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

/* Loading animation for images */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[src=""], img:not([src]) {
    opacity: 0;
}
