/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

/* Mobile touch optimizations */
button, .btn, .nav-link, .mobile-menu-toggle {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Improve touch targets for mobile */
@media (max-width: 768px) {
    .nav-link, .btn, .mobile-menu-toggle {
        min-height: 44px;
        min-width: 44px;
    }
    
    .car-ad .btn {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 120px;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-link {
    display: block;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.1);
}

.logo-img {
    width: 130px;
    height: 130px;
    object-fit: contain;
    transition: all 0.3s ease;
}


.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: color 0.2s ease, background-color 0.2s ease;
    position: relative;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.nav-link:hover {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.15);
    border-color: rgba(220, 38, 38, 0.3);
}

.nav-link i {
    font-size: 1.1rem;
    transition: color 0.2s ease;
}

.nav-link:hover i {
    color: #dc2626;
}

.login-btn {
    background: rgba(220, 38, 38, 0.1) !important;
    border: 1px solid rgba(220, 38, 38, 0.3) !important;
    color: #dc2626 !important;
}

.login-btn:hover {
    background: rgba(220, 38, 38, 0.2) !important;
    border-color: #dc2626 !important;
}

.register-btn {
    background: rgba(251, 191, 36, 0.1) !important;
    border: 1px solid rgba(251, 191, 36, 0.3) !important;
    color: #f59e0b !important;
}

.register-btn:hover {
    background: rgba(251, 191, 36, 0.2) !important;
    border-color: #fbbf24 !important;
    color: #f59e0b !important;
}

.register-btn:hover i {
    color: #f59e0b !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #dc2626;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section - Visible on all devices */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 25%, #dc2626 75%, #ef4444 100%);
    color: white;
    padding: 180px 0 40px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

/* Hero pseudo-elements - only for mobile */
@media (max-width: 1024px) {
    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: 
            radial-gradient(circle at 20% 80%, rgba(251, 191, 36, 0.15) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(220, 38, 38, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
        z-index: 1;
    }

    .hero::after {
        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 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
        z-index: 1;
    }
}



/* Hero content - visible on all devices */
.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-brand {
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.hero-brand-title {
    font-size: 5rem;
    font-weight: 900;
    color: #fbbf24;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.hero-brand-subtitle {
    font-size: 1.5rem;
    color: white;
    font-weight: 300;
    opacity: 0.9;
    letter-spacing: 1px;
}

/* Hero title - visible on all devices */
.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, #fbbf24 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from {
        text-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    }
    to {
        text-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 30px rgba(251, 191, 36, 0.3);
    }
}

.accent {
    color: #fbbf24;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
    animation: accentPulse 2s ease-in-out infinite;
}

@keyframes accentPulse {
    0%, 100% {
        text-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
    }
    50% {
        text-shadow: 0 0 30px rgba(251, 191, 36, 0.8);
    }
}

/* Hero description and buttons - visible on all devices */
.hero-description {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
    line-height: 1.7;
    font-weight: 300;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* Hero Ads - Visible on all devices */
.hero-ads {
    display: block;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    margin-top: 4rem;
    animation: fadeInUp 1s ease-out 0.9s both;
}

/* Ads container - visible on all devices */
.ads-container {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    padding: 2.5rem;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.ads-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.05), rgba(220, 38, 38, 0.05));
    border-radius: 25px;
    z-index: -1;
}

/* Ads container h3 - visible on all devices */
.ads-container h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: white;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Car ads grid - horizontal layout */
.car-ads-grid {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #dc2626 #f1f5f9;
    padding-bottom: 20px;
    justify-content: flex-start;
    align-items: stretch;
}

.car-ads-grid::-webkit-scrollbar {
    height: 6px;
}

.car-ads-grid::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.car-ads-grid::-webkit-scrollbar-thumb {
    background: #dc2626;
    border-radius: 3px;
}

/* Car ad styles - visible on all devices */
.car-ad-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    min-width: 300px;
    flex-shrink: 0;
}

.car-ad-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.car-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.car-ad-card:hover .car-image img {
    transform: scale(1.05);
}

.car-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #fbbf24;
    color: #000000;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.car-badge.best-value {
    background: #10b981;
    color: white;
}

.car-badge.new {
    background: #dc2626;
    color: white;
}

.car-info {
    padding: 1.5rem;
}

.car-info h4 {
    color: #000000;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.car-type {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.car-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.car-features span {
    background: #f1f5f9;
    color: #475569;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.car-features i {
    font-size: 0.7rem;
}

.car-price {
    display: flex;
    align-items: baseline;
    margin-bottom: 1rem;
}

.car-price .price {
    color: #dc2626;
    font-size: 1.8rem;
    font-weight: 700;
}

.car-price .period {
    color: #64748b;
    font-size: 0.9rem;
    margin-left: 4px;
}

/* Button ad styles - visible on all devices */
.btn-ad {
    width: 100%;
    background: #dc2626;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-ad:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.3);
}

/* Refresh cars button - visible on all devices */
.refresh-cars-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Loading and error states for car ads - visible on all devices */
.loading-cars,
.no-cars,
.error-cars {
    text-align: center;
    padding: 2rem;
    color: white;
    font-size: 1.1rem;
    grid-column: 1 / -1;
}

.loading-cars {
    color: #fbbf24;
}

.error-cars {
    color: #ef4444;
}

.no-cars {
    color: #9ca3af;
}

/* Hero Showcase Section */
.hero-showcase {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.showcase-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.showcase-text h2 {
    font-size: 2.5rem;
    color: #000000;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.showcase-text p {
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.showcase-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.feature i {
    color: #fbbf24;
    font-size: 1.5rem;
    width: 30px;
}

.feature span {
    font-weight: 600;
    color: #000000;
}

.showcase-image {
    position: relative;
}

.showcase-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.showcase-image img:hover {
    transform: scale(1.02);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #000000;
    font-size: 1.2rem;
    padding: 18px 36px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 12px 35px rgba(251, 191, 36, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 1.2rem;
    padding: 18px 36px;
    border-radius: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-secondary:hover::before {
    opacity: 1;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.btn-accent {
    background: #fbbf24;
    color: #000000;
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

.btn-accent:hover {
    background: #f59e0b;
    transform: translateY(-2px);
}

/* Stats Section */
.stats {
    background: #f8fafc;
    padding: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #dc2626;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: #64748b;
    font-weight: 500;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #000000;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    color: #000000;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text p {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.about-text ul {
    list-style: none;
    margin-top: 1rem;
}

.about-text li {
    padding: 0.5rem 0;
    color: #64748b;
}

.about-text li i {
    color: #10b981;
    margin-right: 0.5rem;
}

.about-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Services Section */
.services {
    padding: 5rem 0;
    background: #f8fafc;
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('transp1.png'), url('transp2.png');
    background-size: 150px, 100px;
    background-position: top left, bottom right;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    color: #000000;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: #64748b;
    line-height: 1.6;
}

/* How It Works */
.how-it-works {
    padding: 5rem 0;
    background: white;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
}

.step h3 {
    color: #000000;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.step p {
    color: #64748b;
    line-height: 1.6;
}

/* Testimonials */
.testimonials {
    padding: 5rem 0;
    background: #f8fafc;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-rating {
    margin-bottom: 1rem;
}

.testimonial-rating i {
    color: #fbbf24;
    margin-right: 2px;
}

.testimonial-card p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h4 {
    color: #000000;
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    color: #64748b;
    font-size: 0.9rem;
}

/* Image Gallery Section */
.image-gallery {
    padding: 5rem 0;
    background: #f8fafc;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1.5rem;
    height: 400px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #fbbf24;
}

.gallery-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.main-gallery {
    grid-row: span 2;
}

/* CTA Section */
.cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, #000000 0%, #dc2626 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: white;
    padding: 3rem 0 1rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #dc2626, #fbbf24, #dc2626);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo-link {
    display: block;
    transition: transform 0.3s ease;
}

.footer-logo-link:hover {
    transform: scale(1.1);
}

.footer-logo-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fbbf24;
    margin-left: 0.5rem;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #fbbf24;
    font-size: 1.2rem;
    position: relative;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: #dc2626;
}

.footer-section p {
    color: #e5e7eb;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #e5e7eb;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.footer-section ul li a:hover {
    color: #fbbf24;
    padding-left: 10px;
}

.footer-section ul li a::before {
    content: '→';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: all 0.3s ease;
    color: #dc2626;
}

.footer-section ul li a:hover::before {
    opacity: 1;
    left: -10px;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.contact-info a {
    color: #e5e7eb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #fbbf24;
}

.contact-info i {
    color: #dc2626;
    width: 16px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.social-links a:hover {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
    color: #000000;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

.footer-bottom a {
    color: #fbbf24;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #dc2626;
}

/* Tablet responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .car-ads-grid {
        gap: 1.25rem;
    }
    
    .car-ad-card {
        min-width: 290px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 120px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 1rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        justify-content: center;
        margin: 0 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-brand-title {
        font-size: 3.5rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .showcase-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .showcase-text h2 {
        font-size: 2rem;
    }


    .gallery-grid {
        grid-template-columns: 1fr;
        height: auto;
        gap: 1rem;
    }

    .main-gallery {
        grid-row: span 1;
    }

    .gallery-item {
        height: 250px;
    }

    .car-ads-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
        overflow-x: visible;
        justify-content: stretch;
    }
    
    .car-ad-card {
        min-width: unset;
        width: 100%;
    }
    
    .ads-container {
        padding: 1.5rem;
    }
    
    .ads-container h3 {
        font-size: 1.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    
    .logo-img {
        width: 100px;
        height: 100px;
    }
    
    
    .footer-logo-text {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 160px 0 60px;
    }

    .hero-brand-title {
        font-size: 2.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }

    .search-form {
        padding: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }
    
    .car-ads-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 0 0.5rem;
        overflow-x: visible;
        justify-content: stretch;
    }
    
    .car-ad-card {
        min-width: unset;
        width: 100%;
    }
    
    .ads-container {
        padding: 1rem;
    }
    
    .car-info {
        padding: 1rem;
    }
    
    .car-features {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .refresh-cars-btn {
        position: static !important;
        margin-top: 1rem;
        width: 100%;
    }
    
    
    .footer-logo-text {
        font-size: 1rem;
    }
    
    .logo-img {
        width: 60px;
        height: 60px;
    }
    
    .footer-logo-img {
        width: 50px;
        height: 50px;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-2 {
    margin-top: 2rem;
}
