/**
 * Taller Cali - Custom Styles
 * High-end mechanic workshop landing page
 * Colombian Spanish | Dark Mode | Cyber Orange Accent
 */

/* ==================== CSS VARIABLES ==================== */
:root {
    --color-charcoal: #121212;
    --color-charcoal-light: #1E1E1E;
    --color-charcoal-lighter: #2D2D2D;
    --color-cyber-orange: #FF6B00;
    --color-cyber-orange-dark: #E65C00;
    --color-white: #FFFFFF;
    --color-gray-300: #D1D5DB;
    --color-gray-400: #9CA3AF;
    --color-gray-500: #6B7280;
}

/* ==================== BASE STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--color-charcoal);
    color: var(--color-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

::-webkit-scrollbar-track {
    background: var(--color-charcoal);
}

::-webkit-scrollbar-thumb {
    background: var(--color-charcoal-lighter);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-cyber-orange);
}

/* ==================== SELECTION ==================== */
::selection {
    background-color: var(--color-cyber-orange);
    color: var(--color-white);
}

/* ==================== HEADER GLASSMORPHISM ==================== */
#header {
    background: transparent;
}

#header.scrolled {
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 107, 0, 0.1);
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 107, 0, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 107, 0, 0.8);
    }
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation Classes */
.animate-fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Stagger Animation Delays */
.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }
.animate-delay-400 { animation-delay: 0.4s; }
.animate-delay-500 { animation-delay: 0.5s; }

/* ==================== HOVER EFFECTS ==================== */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(255, 107, 0, 0.15);
}

/* ==================== BUTTON EFFECTS ==================== */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

/* ==================== CARD EFFECTS ==================== */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(255, 107, 0, 0.05) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

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

/* ==================== MODAL STYLES ==================== */
.modal-overlay {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* ==================== WHATSAPP BUTTON ==================== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 50;
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: rgba(255, 107, 0, 0.3);
    animation: pulseRing 2s ease-out infinite;
    z-index: -1;
}

@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* ==================== IMAGE OVERLAYS ==================== */
.image-overlay {
    position: relative;
}

.image-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(18, 18, 18, 1) 0%,
        rgba(18, 18, 18, 0.7) 50%,
        rgba(18, 18, 18, 0.3) 100%
    );
}

/* ==================== TRUST ICONS ==================== */
.trust-icon {
    transition: all 0.3s ease;
}

.trust-icon:hover {
    transform: scale(1.1);
    color: var(--color-cyber-orange);
}

/* ==================== TESTIMONIAL CARDS ==================== */
.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 80px;
    color: var(--color-cyber-orange);
    opacity: 0.1;
    font-family: Georgia, serif;
    line-height: 1;
}

/* ==================== MOBILE MENU ==================== */
.mobile-menu {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    transform: translateX(0);
}

/* ==================== RESPONSIVE UTILITIES ==================== */
@media (max-width: 768px) {
    .animate-fade-in-up {
        animation-duration: 0.6s;
    }
    
    .hero-headline {
        font-size: 2.5rem;
        line-height: 1.2;
    }
}

@media (max-width: 640px) {
    .hero-headline {
        font-size: 2rem;
    }
    
    .whatsapp-float {
        bottom: 16px;
        right: 16px;
    }
}

/* ==================== FOCUS STATES ==================== */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-cyber-orange);
    outline-offset: 2px;
}

/* ==================== LOADING STATE ==================== */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(18, 18, 18, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==================== PRINT STYLES ==================== */
@media print {
    #header,
    .whatsapp-float,
    .modal-overlay {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* ==================== REDUCED MOTION ==================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
