/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #38413f;
    overflow-x: hidden;
}

/* Header and Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;        /* adjust if your header background is light */
    text-decoration: none;
  }
  
  .logo-img {
    height: 40px;        /* controls logo size */
    width: auto;
    margin-right: 10px;  /* space between logo and text */
  }  

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ff6600;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: pointer;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ff6b35;
}

/* Search bar with focus expansion effect */
.search-container {
    display: flex;
    align-items: center;
    background-color: white;
    padding: 6px 12px;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-left: 2rem;
}

.search-input {
    border: none;
    outline: none;
    padding: 8px 10px;
    font-size: 14px;
    border-radius: 30px;
    width: 160px;
    transition: width 0.3s ease;
}

.search-input:focus {
    width: 220px;
}

.search-button {
    background-color: #ff6b35;
    color: white;
    border: none;
    border-radius: 50%;
    padding: 8px 10px;
    margin-left: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.search-button:hover {
    background-color: #e55a2b;
}

/* Page navigation system */
.page {
    display: none;
    min-height: 100vh;
    padding-top: 80px;
}

.page.active {
    display: block;
}

/* Hero Section with YouTube Background */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

/* Video styling - dimmed and slightly blurred for text readability */
#yt-hero-player {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    filter: brightness(0.45) contrast(1.05) saturate(0.85) blur(0.5px);
}

/* Gradient overlay for better text contrast */
.video-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.45) 60%, rgba(0,0,0,0.65) 100%), rgba(0,0,0,0.25);
}

/* Centered frosted glass content box */
.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 2.2rem 2.5rem;
    max-width: 980px;
    width: calc(100% - 40px);
    border-radius: 14px;
    background: rgba(0,0,0,0.28);
    backdrop-filter: blur(6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.55);
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.5px;
    text-shadow: 0 6px 20px rgba(0,0,0,0.65), 0 2px 6px rgba(0,0,0,0.55);
    -webkit-text-stroke: 0.8px rgba(0,0,0,0.45);
    color: #ffffff;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 1.7rem;
    color: rgba(255,255,255,0.94);
    text-shadow: 0 6px 18px rgba(0,0,0,0.55);
    animation: fadeInUp 1s ease 0.3s both;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(180deg, #ff6b35, #ff4f1a);
    color: #fff;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 12px 30px rgba(255,107,53,0.25), 0 2px 0 rgba(0,0,0,0.15) inset;
    border: 2px solid rgba(255,255,255,0.06);
    animation: fadeInUp 1s ease 0.6s both;
}

.cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(255,107,53,0.30);
}

/* Fade in animation for hero elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Features section */
.features {
    padding: 5rem 2rem;
    background: #f8f9fa;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    color: #333;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: white;
}

/* Gallery page with dark car showroom theme */
.gallery-container {
    padding: 2rem;
    background: #1a1a1a;
    min-height: 100vh;
}

.gallery-title-box {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 1rem;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 12px;
    backdrop-filter: blur(6px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.gallery-title-box h2 {
    font-size: 2.5rem;
    color: #fff;
    text-shadow: 0 4px 12px rgba(0,0,0,0.5);
    margin: 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.car-card {
    background: #2a2a2a;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.car-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(255, 107, 53, 0.3);
}

.car-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.car-card:hover .car-image {
    transform: scale(1.1);
}

.car-info {
    padding: 1.5rem;
    color: white;
}

.car-name {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #ff6b35;
}

.car-specs {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #ccc;
}

/* About page with racing theme */
.about-container {
    padding: 0;
    margin: 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2a2a2a 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Animated racing stripes background effect */
.about-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: repeating-linear-gradient(45deg, transparent, transparent 50px, rgba(255, 107, 53, 0.05) 50px, rgba(255, 107, 53, 0.05) 100px);
    animation: slideStripes 20s linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes slideStripes {
    0% { transform: translateX(-100px); }
    100% { transform: translateX(100px); }
}

.about-hero {
    text-align: center;
    padding: 4rem 2rem;
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.9), rgba(255, 75, 26, 0.8));
    margin-bottom: 0;
    overflow: hidden;
}

/* Car silhouette effect using CSS shapes */
.about-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 200px;
    background: radial-gradient(ellipse 300px 100px at center, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    opacity: 0.3;
}

.about-hero h1 {
    font-size: 4rem;
    color: #fff;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
    animation: engineRevUp 2s ease-out;
    font-weight: 800;
}

.about-hero p {
    font-size: 1.4rem;
    color: rgba(255,255,255,0.95);
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Engine rev-up animation */
@keyframes engineRevUp {
    0% { 
        transform: translateY(50px) scale(0.8); 
        opacity: 0; 
    }
    50% { 
        transform: translateY(-10px) scale(1.05); 
    }
    100% { 
        transform: translateY(0) scale(1); 
        opacity: 1; 
    }
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.about-card {
    background: linear-gradient(145deg, #2a2a2a, #1f1f1f);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 107, 53, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

/* Speedometer-like glow effect */
.about-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
    transition: all 0.4s ease;
    pointer-events: none;
}

.about-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(255, 107, 53, 0.2), 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 107, 53, 0.3);
}

.about-card:hover::before {
    top: -25%;
    right: -25%;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.2) 0%, transparent 70%);
}

.about-card h3 {
    color: #ff6b35;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.about-card h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ff6b35, transparent);
    border-radius: 2px;
}

.about-card p {
    color: #e0e0e0;
    line-height: 1.7;
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
}

/* Racing dashboard-inspired stats section */
.stats-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    margin: 3rem 2rem;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 107, 53, 0.3);
}

/* Grid pattern overlay */
.stats-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255, 107, 53, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 107, 53, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 0;
    pointer-events: none;
}

/* Animated scanner line effect */
.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    animation: scanLine 3s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes scanLine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.stats-section h2 {
    font-size: 2.8rem;
    margin-bottom: 2rem;
    color: #fff;
    position: relative;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    position: relative;
    z-index: 2;
}

.stat-item {
    padding: 2rem;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 15px;
    border: 2px solid rgba(255, 107, 53, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Sweep animation on hover */
.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.2), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

.stat-item:hover::before {
    left: 100%;
}

.stat-item:hover {
    transform: scale(1.05);
    border-color: rgba(255, 107, 53, 0.5);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.2);
}

.stat-item h4 {
    font-size: 3rem;
    color: #ff6b35;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    font-weight: 800;
    text-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

.stat-item p {
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #e0e0e0;
}

/* Footer */
footer {
    background-color: #d46215;
    color: #f1f1f1;
    text-align: center;
    padding: 1rem;
    margin-top: 5rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
    letter-spacing: 0.5px;
    border-top: 2px solid #444;
    box-shadow: 0 -2px 8px rgba(206, 186, 161, 0.3);
    position: relative;
    z-index: 10;
    transition: background-color 0.3s ease;
}

footer:hover {
    background-color: #e0620e;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links { gap: 1rem; }
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.2rem; }
    .section-title { font-size: 2rem; }
    .about-hero h1 { font-size: 2.5rem; }
    .about-hero p { font-size: 1.2rem; }
    .gallery-grid { grid-template-columns: 1fr; padding: 1rem; }
    .search-container { display: none; }
    .about-content { grid-template-columns: 1fr; padding: 2rem 1rem; gap: 1.5rem; }
    .about-card { padding: 2rem 1.5rem; }
    .about-card h3 { font-size: 1.5rem; }
    .stats-section { margin: 2rem 1rem; padding: 3rem 1rem; }
    .stats-section h2 { font-size: 2rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .stat-item { padding: 1rem; }
    .stat-item h4 { font-size: 2rem; }
    .stat-item p { font-size: 0.9rem; }
    
    /* Enhanced mobile overlay for better readability */
    .video-overlay {
        background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.6) 60%, rgba(0,0,0,0.8) 100%), rgba(0,0,0,0.35);
    }
    
    .hero-content {
        padding: 1.2rem 1rem;
        border-radius: 10px;
        width: calc(100% - 24px);
    }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .about-hero { padding: 3rem 1rem; }
    .about-hero h1 { font-size: 2rem; }
    .about-hero p { font-size: 1rem; }
}