/* Reset e base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores automotivas modernas */
    --primary-blue: #1e3a8a;
    --secondary-blue: #3b82f6;
    --accent-blue: #60a5fa;
    --dark-gray: #1f2937;
    --medium-gray: #4b5563;
    --light-gray: #f3f4f6;
    --white: #ffffff;
    --red-accent: #dc2626;
    --silver: #e5e7eb;
    --gold: #f59e0b;
    
    /* Gradientes automotivos */
    --gradient-primary: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    --gradient-secondary: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    --gradient-accent: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
}

/* Loading Screen Styles */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: all 0.8s ease-out;
}

.loading-content {
    text-align: center;
    color: white;
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Road Animation */
.road {
    position: absolute;
    bottom: 30%;
    left: 0;
    width: 100%;
    height: 8px;
    background: #333;
    border-top: 2px solid #666;
    border-bottom: 2px solid #666;
}

.road-line {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 4px;
    background: #fff;
    border-radius: 2px;
    animation: roadMove 1s linear infinite;
}

.road-line:nth-child(1) { left: 0; }
.road-line:nth-child(2) { left: 120px; animation-delay: -0.3s; }
.road-line:nth-child(3) { left: 240px; animation-delay: -0.6s; }

@keyframes roadMove {
    0% { transform: translateX(-100px) translateY(-50%); }
    100% { transform: translateX(calc(100vw + 100px)) translateY(-50%); }
}

/* Car Animation */
.car-container {
    position: absolute;
    bottom: 30%;
    left: 20%;
    animation: carMove 3s ease-in-out;
}

.car {
    position: relative;
    width: 80px;
    height: 40px;
}

.car-body {
    width: 80px;
    height: 25px;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    border-radius: 15px 15px 5px 5px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.car-window {
    position: absolute;
    top: -8px;
    left: 15px;
    width: 50px;
    height: 15px;
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    border-radius: 8px 8px 0 0;
    opacity: 0.8;
}

.car-wheel {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #1f2937;
    border-radius: 50%;
    border: 2px solid #374151;
    bottom: -8px;
    animation: wheelSpin 0.3s linear infinite;
}

.car-wheel-front { right: 8px; }
.car-wheel-back { left: 8px; }

@keyframes wheelSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes carMove {
    0% { 
        left: -20%; 
        transform: scale(0.8);
    }
    50% { 
        left: 50%; 
        transform: scale(1.1);
    }
    100% { 
        left: 20%; 
        transform: scale(1);
    }
}

/* Loading Text */
.loading-text {
    margin-top: 120px;
    z-index: 1;
}

.loading-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out 0.5s both;
}

.loading-text p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out 1s both;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    animation: fadeInUp 1s ease-out 1.5s both;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: dotPulse 1.4s infinite ease-in-out;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes dotPulse {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Particles Animation */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255,255,255,0.6);
    border-radius: 50%;
    animation: particleFloat 6s infinite linear;
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 6s;
}

.particle:nth-child(2) {
    left: 30%;
    animation-delay: -2s;
    animation-duration: 8s;
}

.particle:nth-child(3) {
    left: 50%;
    animation-delay: -4s;
    animation-duration: 7s;
}

.particle:nth-child(4) {
    left: 70%;
    animation-delay: -1s;
    animation-duration: 9s;
}

.particle:nth-child(5) {
    left: 90%;
    animation-delay: -3s;
    animation-duration: 5s;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}

/* Exhaust Smoke Animation */
.exhaust-smoke {
    position: absolute;
    left: -10px;
    bottom: 5px;
    width: 20px;
    height: 10px;
}

.smoke-puff {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(200, 200, 200, 0.7);
    border-radius: 50%;
    animation: smokeFloat 1.5s infinite ease-out;
}

.smoke-puff:nth-child(1) {
    animation-delay: 0s;
}

.smoke-puff:nth-child(2) {
    animation-delay: 0.5s;
}

.smoke-puff:nth-child(3) {
    animation-delay: 1s;
}

@keyframes smokeFloat {
    0% {
        transform: translateY(0) scale(0.5);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-15px) scale(1);
        opacity: 0.5;
    }
    100% {
        transform: translateY(-30px) scale(1.5);
        opacity: 0;
    }
}

/* Hide content initially */
.header, .hero, .section {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

/* Header */
.header {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 50px;
    width: auto;
    border-radius: 8px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: var(--gradient-secondary);
    color: var(--white);
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="%23ffffff10"><path d="M0,50 Q250,0 500,50 T1000,50 V100 H0 Z"/></svg>') repeat-x;
    background-size: 1000px 100px;
    animation: wave 20s linear infinite;
}

@keyframes wave {
    0% { background-position-x: 0; }
    100% { background-position-x: 1000px; }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.cta-button {
    display: inline-block;
    background: var(--gradient-accent);
    color: var(--white);
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    animation: fadeInUp 1s ease-out 0.6s both;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

/* Sections */
.section {
    padding: 80px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-blue);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* About Section */
.about {
    background: var(--light-gray);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--medium-gray);
}

.about-highlights {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.highlight-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--gradient-accent);
    color: var(--white);
    border-radius: 10px;
    font-weight: 500;
}

.highlight-item::before {
    content: '✓';
    margin-right: 1rem;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-top: 4px solid var(--secondary-blue);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: bold;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

/* Contact Section */
.contact {
    background: var(--gradient-secondary);
    color: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    font-size: 1.1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.contact-item-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-weight: bold;
}

.contact-form {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    background: rgba(255,255,255,0.9);
    color: var(--dark-gray);
    font-size: 1rem;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    background: var(--gradient-accent);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(96, 165, 250, 0.4);
}

/* Footer */
.footer {
    background: var(--dark-gray);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
}

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

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    /* Loading Screen Mobile */
    .loading-text h2 {
        font-size: 2rem;
    }
    
    .loading-text p {
        font-size: 1rem;
    }
    
    .car {
        width: 60px;
        height: 30px;
    }
    
    .car-body {
        width: 60px;
        height: 20px;
    }
    
    .car-window {
        left: 10px;
        width: 40px;
        height: 12px;
    }
    
    .car-wheel {
        width: 10px;
        height: 10px;
    }
    
    .car-wheel-front { right: 6px; }
    .car-wheel-back { left: 6px; }
    
    .road-line {
        width: 40px;
        height: 3px;
    }
}

/* Loading animation for better UX */
.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

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

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

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-blue);
}
