/* Main Page V2 - Premium Design */
:root {
    --color-bg-dark: #0f0f10;
    --color-bg-darker: #050505;
    --color-accent: #E30613;
    /* Kia Red-ish */
    --color-accent-glow: rgba(227, 6, 19, 0.4);
    --color-text-main: #ffffff;
    --color-text-sub: #a0a0a0;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Inter', 'Noto Sans KR', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    background-color: var(--color-bg-dark);
    font-family: var(--font-heading);
    color: var(--color-text-main);
    overflow-x: hidden;
}

/* Typography Overrides */
h1,
h2,
h3,
h4 {
    letter-spacing: -0.02em;
}

/* ===========================
   Hero Section
   =========================== */
.hero-v2 {
    position: relative;
    height: 85vh;
    min-height: 600px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    z-index: 0;
    /* Fallback gradient if no video/image */
    background: radial-gradient(circle at center, #2a2a2a 0%, #000 100%);
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    z-index: 0;
    transition: transform 10s ease;
}

.hero-v2:hover .hero-bg-img {
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(15, 15, 16, 1) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.hero-k-badge {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--color-accent);
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 60%, #999 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--color-text-sub);
    margin-bottom: 40px;
    font-weight: 300;
    line-height: 1.6;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    padding: 15px 40px;
    background: var(--color-text-main);
    color: #000;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.btn-hero:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

/* ===========================
   About Section (Story)
   =========================== */
.about-section {
    padding: 100px 0;
    background-color: var(--color-bg-dark);
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.about-text p {
    font-size: 1.1rem;
    color: #bbb;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.a-stat h3 {
    font-size: 2.5rem;
    color: #fff;
    margin: 0;
}

.a-stat span {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
}

/* ===========================
   Categories Bar
   =========================== */
.cat-section {
    padding: 40px 0;
    background: var(--color-bg-darker);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 60px;
    /* Adjust based on navbar height */
    z-index: 90;
    backdrop-filter: blur(20px);
    background: rgba(5, 5, 5, 0.8);
}

.cat-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
    /* Firefox */
}

.cat-scroll::-webkit-scrollbar {
    display: none;
}

.cat-pill {
    flex: 0 0 auto;
    padding: 10px 25px;
    border-radius: 30px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: #bbb;
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cat-pill:hover,
.cat-pill.active {
    background: #fff;
    color: #000;
    border-color: #fff;
    transform: scale(1.05);
}

/* ===========================
   Section Containers
   =========================== */
.section-v2 {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 50px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.section-title-v2 {
    font-size: 2rem;
    border-left: 4px solid var(--color-accent);
    padding-left: 20px;
    line-height: 1;
}

.section-link {
    color: var(--color-text-sub);
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.section-link:hover {
    color: #fff;
}

/* ===========================
   Vehicle Cards
   =========================== */
.v-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.v-card {
    display: block;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(to bottom, #1a1a1a 0%, #0d0d0d 100%);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    height: 100%;
}

.v-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.15);
}

.v-img-box {
    width: 100%;
    padding-top: 60%;
    /* Aspect Ratio */
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, #1a1a1a 0%, #0d0d0d 100%);
}

.v-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.v-card:hover .v-img {
    transform: scale(1.1);
}

.v-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--color-accent);
    color: #fff;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(227, 6, 19, 0.4);
}

.v-view-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 5px;
}

.v-info {
    padding: 25px;
}

.v-name {
    font-size: 1.3rem;
    margin: 0 0 5px 0;
    font-weight: 700;
}

.v-sub {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
    display: block;
}

.v-specs {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
    margin-bottom: 15px;
}

.v-spec-item {
    font-size: 0.85rem;
    color: #aaa;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.v-spec-item span:first-child {
    color: #555;
    font-size: 0.75rem;
}

.v-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    display: block;
    text-align: right;
}

/* ===========================
   Footer Area
   =========================== */
/* Reuse existing footer but ensure it blends */


/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-v2 {
        height: 62vh;
    }

    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 14px;
    }

    .hero-content {
        max-width: 520px;
        padding: 0 16px;
    }

    .hero-k-badge {
        font-size: 0.8rem;
        margin-bottom: 14px;
        padding: 4px 10px;
    }

    .hero-desc {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 22px;
    }

    .hero-desc br {
        display: none;
    }

    .btn-hero {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .btn-hero i {
        margin-left: 10px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-text {
        padding-left: 0 !important;
    }

    .v-grid {
        grid-template-columns: 1fr;
    }
}

/* Trend Chart Specific */
.trend-chart-box canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Podium Styles */
/* Podium Styles: Premium Showroom Concept */
.podium-container {
    perspective: 1000px;
    background: radial-gradient(circle at center bottom, #333, #000) !important;
    /* Darker showroom floor */
}

.podium-item {
    transition: transform 0.3s ease;
    position: relative;
}

/* Spotlight Effect */
.podium-item::before {
    content: '';
    position: absolute;
    top: -50px;
    /* Shine from above */
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 100px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), transparent);
    clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);
    pointer-events: none;
    z-index: 0;
}

.p-car-box {
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.8));
    /* Deep shadow on floor */
    z-index: 2;
}

.p-car-img {
    width: 100%;
    height: auto;
    animation: floatCar 3s ease-in-out infinite;
}

@keyframes floatCar {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Matte Metal Stands */
.p-stand {
    background: linear-gradient(145deg, #222, #111) !important;
    /* Matte Dark Metal */
    border-top: 3px solid #333 !important;
    /* Default border */
    box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.05), 0 10px 20px rgba(0, 0, 0, 0.5) !important;
}

/* Rank-Specific Highlights (Subtle) */
.rank-1 .p-stand {
    border-top-color: #FFD700 !important;
    color: #FFD700;
}

.rank-2 .p-stand {
    border-top-color: #C0C0C0 !important;
    color: #C0C0C0;
}

.rank-3 .p-stand {
    border-top-color: #CD7F32 !important;
    color: #CD7F32;
}

/* Rank Text Glow */
.rank-1 .p-stand span {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3) !important;
}

.rank-2 .p-stand span {
    text-shadow: 0 0 10px rgba(192, 192, 192, 0.3) !important;
}

.rank-3 .p-stand span {
    text-shadow: 0 0 10px rgba(205, 127, 50, 0.3) !important;
}

/* Responsive Podium */
@media (max-width: 768px) {
    .trend-chart-box.podium-container {
        height: auto;
        padding-bottom: 20px;
        align-items: center;
    }

    .p-stand {
        height: 80px !important;
    }
}