/* Custom styles for Latino's Auto Car Sales */

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

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

::-webkit-scrollbar-track {
    background: #1c1c24;
}

::-webkit-scrollbar-thumb {
    background: #ff6b4a;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #f04e27;
}

/* Selection color */
::selection {
    background: #ff6b4a;
    color: white;
}

/* Geometric animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 107, 74, 0.3); }
    50% { box-shadow: 0 0 40px rgba(255, 107, 74, 0.6); }
}

.geo-circle {
    animation: float 6s ease-in-out infinite;
}

.geo-square {
    animation: float 8s ease-in-out infinite reverse;
}

.geo-triangle {
    animation: float 7s ease-in-out infinite;
}

/* Hover effects for cards */
.service-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-4px);
}

/* Button ripple effect */
.hero-cta-btn {
    position: relative;
    overflow: hidden;
}

.hero-cta-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.hero-cta-btn:active::after {
    width: 300px;
    height: 300px;
}

/* Image hover zoom */
img {
    transition: transform 0.3s ease;
}

.service-card img:hover {
    transform: scale(1.05);
}

/* Focus styles for accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus {
    outline: 2px solid #ff6b4a;
    outline-offset: 2px;
}

/* Mobile menu animation */
.mobile-menu {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Loading state for form */
button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Print styles */
@media print {
    .reveal,
    .reveal-left,
    .reveal-right {
        opacity: 1 !important;
        transform: none !important;
    }
    
    .geometric-shape {
        display: none;
    }
}

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

/* High contrast mode */
@media (prefers-contrast: high) {
    .service-card {
        border-left-width: 6px;
    }
    
    .nav-link::after {
        height: 3px;
    }
}

/* Touch devices */
@media (hover: none) {
    .service-card:hover {
        transform: none;
    }
    
    .service-card:hover::before {
        display: none;
    }
}

/* Landscape orientation on mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero-cta-btn {
        padding: 0.75rem 1.5rem;
    }
}
