﻿/* 
 * USAutoExport Homepage Styles
 * Author: USAutoExport Team
 * Version: 1.0
 * Primary Color: #BE0012
 */

:root {
    --home-primary: #BE0012;
    --home-primary-dark: #A30010;
    --home-primary-light: #E00014;
    --home-success: #0E9F6E;
    --home-danger: #DC2626;
    --home-warning: #F59E0B;
    --home-info: #3B82F6;
    --home-dark: #1F2937;
    --home-darker: #111827;
    --home-light: #F9FAFB;
    --home-lighter: #FFFFFF;
    --home-border: #E5E7EB;
    --home-text: #374151;
    --home-text-light: #6B7280;
    --home-text-lighter: #9CA3AF;
    --home-shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --home-shadow: 0 4px 6px rgba(0,0,0,0.1);
    --home-shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1);
    --home-shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1);
    --home-radius: 8px;
    --home-radius-lg: 12px;
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--home-darker) 0%, var(--home-dark) 100%);
    color: var(--home-lighter);
    padding: 100px 0;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(190, 0, 18, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(190, 0, 18, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite reverse;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.hero-slider {
    position: relative;
    z-index: 2;
}

.hero-slide {
    display: none;
    align-items: center;
    gap: 50px;
}

.hero-slide.active {
    display: flex;
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: slideInLeft 0.8s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-content h1 span {
    color: var(--home-primary);
    position: relative;
    display: inline-block;
}

.hero-content h1 span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(190, 0, 18, 0.3);
    z-index: -1;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    color: var(--home-text-lighter);
    line-height: 1.6;
    animation: slideInLeft 0.8s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    animation: slideInLeft 0.8s ease 0.4s both;
}

.hero-image {
    flex: 1;
    animation: slideInRight 0.8s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: var(--home-radius-lg);
    box-shadow: var(--home-shadow-lg);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Slider Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 50px;
    position: relative;
    z-index: 2;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.slider-dot.active {
    background: var(--home-primary);
    transform: scale(1.3);
    box-shadow: 0 0 10px var(--home-primary);
}

/* Search Section */
.search-section {
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.search-box {
    background: var(--home-lighter);
    border-radius: var(--home-radius-lg);
    box-shadow: var(--home-shadow-lg);
    padding: 40px;
}

.search-form .search-group {
    display: flex;
    gap: 15px;
}

.search-form input {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid var(--home-border);
    border-radius: var(--home-radius);
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-form input:focus {
    outline: none;
    border-color: var(--home-primary);
    box-shadow: 0 0 0 3px rgba(190, 0, 18, 0.1);
}

.search-form button {
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--home-dark);
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--home-primary);
    border-radius: 3px;
}

.section-header p {
    font-size: 18px;
    color: var(--home-text-light);
    max-width: 600px;
    margin: 0 auto;
}

.section-footer {
    text-align: center;
    margin-top: 50px;
}

/* Featured Vehicles */
.featured-vehicles {
    background: var(--home-lighter);
}

/* Features Section */
.features-section {
    background: var(--home-light);
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.feature-item {
    text-align: center;
    padding: 40px 30px;
    background: var(--home-lighter);
    border-radius: var(--home-radius-lg);
    box-shadow: var(--home-shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--home-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--home-shadow-lg);
}

.feature-item:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: rgba(190, 0, 18, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    background: var(--home-primary);
}

.feature-icon i {
    font-size: 32px;
    color: var(--home-primary);
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon i {
    color: var(--home-lighter);
    transform: scale(1.1);
}

.feature-item h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--home-dark);
}

.feature-item p {
    color: var(--home-text-light);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Recent Vehicles */
.recent-vehicles {
    background: var(--home-lighter);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--home-primary) 0%, var(--home-primary-dark) 100%);
    color: var(--home-lighter);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.cta-section .btn-outline {
    border-color: var(--home-lighter);
    color: var(--home-lighter);
}

.cta-section .btn-outline:hover {
    background: var(--home-lighter);
    color: var(--home-primary);
}

/* Brands Section */
.brands-section {
    padding: 60px 0;
    background: var(--home-lighter);
    border-top: 1px solid var(--home-border);
    border-bottom: 1px solid var(--home-border);
}

.brands-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.brand-item {
    opacity: 0.7;
    transition: all 0.3s ease;
    filter: grayscale(100%);
}

.brand-item:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}

.brand-item img {
    max-width: 120px;
    height: auto;
}

/* Testimonials */
.testimonials-section {
    padding: 80px 0;
    background: var(--home-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: var(--home-lighter);
    padding: 30px;
    border-radius: var(--home-radius-lg);
    box-shadow: var(--home-shadow);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--home-shadow-lg);
}

.testimonial-rating {
    margin-bottom: 20px;
    color: #FFB800;
}

.testimonial-text {
    color: var(--home-text);
    line-height: 1.7;
    margin-bottom: 25px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 3px;
    color: var(--home-dark);
}

.author-info p {
    color: var(--home-text-light);
    font-size: 13px;
    margin-bottom: 0;
}

/* Newsletter */
.newsletter-section {
    padding: 80px 0;
    background: var(--home-dark);
    color: var(--home-lighter);
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-content h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.newsletter-content p {
    color: var(--home-text-lighter);
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    gap: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    border-radius: var(--home-radius);
    font-size: 16px;
}

.newsletter-form input:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--home-primary);
}

.newsletter-form button {
    padding: 16px 40px;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 1200px) {
    .features-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-content h1 {
        font-size: 42px;
    }
    
    .hero-slide {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .search-form .search-group {
        flex-direction: column;
    }
    
    .section-header h2 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .search-box {
        padding: 30px 20px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .features-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-content h2 {
        font-size: 32px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .brands-grid {
        gap: 20px;
    }
    
    .brand-item img {
        max-width: 80px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .feature-item {
        padding: 30px 20px;
    }
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-item,
.testimonial-card,
.brand-item {
    animation: slideInUp 0.6s ease;
}

/* Loading States */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--home-border) 25%,
        var(--home-light) 50%,
        var(--home-border) 75%
    );
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}