/* Custom styles for Lexijoy Autos & Exports */

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

/* Base font */
body {
    font-family: 'Inter', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Display font */
.font-display {
    font-family: 'Playfair Display', Georgia, serif;
}

/* Scroll reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating cards animation */
@media (prefers-reduced-motion: no-preference) {
    .floating-card-1 {
        animation: float1 6s ease-in-out infinite;
    }
    
    .floating-card-2 {
        animation: float2 7s ease-in-out infinite;
    }
    
    .floating-card-3 {
        animation: float3 5s ease-in-out infinite;
    }
}

@keyframes float1 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(10px); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(7, 13, 10, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(16, 185, 129, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu .mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* Hamburger animation */
.menu-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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

::-webkit-scrollbar-track {
    background: #070d0a;
}

::-webkit-scrollbar-thumb {
    background: #1a3a2a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2d5a3d;
}

/* Selection color */
::selection {
    background: rgba(16, 185, 129, 0.3);
    color: #faf9f6;
}

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

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

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #0d1c16 0%, #0a1410 100%);
}

/* Subtle gradient border effect on cards */
.bg-dark-700\/50 {
    background: linear-gradient(135deg, rgba(13, 28, 22, 0.5) 0%, rgba(10, 20, 16, 0.5) 100%);
}

/* Glow effect for CTA buttons */
.hover\:shadow-\[0_0_30px_rgba\(16,185,129,0\.3\)\]:hover {
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.3);
}

/* Testimonial card hover */
.rounded-2xl:hover {
    transform: translateY(-2px);
}

.rounded-2xl {
    transition: transform 0.3s ease, border-color 0.3s ease;
}

/* Link arrow animation */
.group\/link:hover svg {
    transform: translateX(4px);
}
