/* JCLD Design — Custom Styles */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f2faf7;
}
::-webkit-scrollbar-thumb {
    background: #8fd9c6;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #57c5a8;
}

/* Navbar transitions */
.nav-logo-text {
    transition: color 0.4s ease;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #57c5a8;
    transition: width 0.3s ease;
}

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

/* Navbar scrolled state */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(15, 76, 117, 0.08);
}

.navbar-scrolled .nav-logo-text {
    color: #0f4c75;
}

.navbar-scrolled .nav-link {
    color: #153d5f;
}

/* Service card hover lift effect */
.service-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Gallery item overlay */
.gallery-item {
    transform-style: preserve-3d;
}

/* Testimonial card glass effect */
.testimonial-card {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Mobile menu transitions */
#mobile-menu {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Body scroll lock when mobile menu is open */
body.menu-open {
    overflow: hidden;
}

/* Button ripple effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 2px solid #57c5a8;
    outline-offset: 2px;
}

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

/* Print styles */
@media print {
    nav, #mobile-menu-btn, .scroll-indicator {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }
}

/* Large screen adjustments */
@media (min-width: 1920px) {
    .max-w-7xl {
        max-width: 80rem;
    }
}
