:root {
    /* Color Palette */
    --bg-color: #050505;
    --text-color: #ffffff;
    --primary-color: #E60000;
    --primary-hover: #ff1a1a;
    --glass-bg: rgba(15, 15, 15, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-bg: #111111;
    --card-hover: #1a1a1a;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Typography elements */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
}

/* Top Bar */
.top-bar {
    background: #111;
    padding: 8px 5%;
    font-size: 13px;
    border-bottom: 1px solid #222;
    color: #999;
    position: relative;
    z-index: 1001;
    /* Above glass header initially if we want, but usually it scrolls away */
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a {
    color: #999;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.top-bar a:hover {
    color: #fff;
}

.top-bar-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.lang-switch a.active {
    color: #fff;
    font-weight: 600;
}

/* Glass Header */
.glass-header {
    position: fixed;
    top: 35px;
    /* Below top bar initially */
    left: 0;
    width: 100%;
    height: 80px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
    transition: all 0.4s ease;
}

/* When scrolled, JS adds .scrolled class */
.glass-header.scrolled {
    top: 0;
    height: 70px;
    background: rgba(5, 5, 5, 0.85);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.yilkoy-logo {
    height: 40px;
    object-fit: contain;
}

.isuzu-text {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 28px;
    color: var(--primary-color);
    letter-spacing: -1px;
}

/* Navigation */
.desktop-nav {
    display: flex;
    gap: 35px;
}

.desktop-nav a {
    color: #ccc;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color var(--transition-fast);
    position: relative;
    padding: 5px 0;
}

.desktop-nav a:hover {
    color: #fff;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--transition-fast);
}

.desktop-nav a:hover::after {
    width: 100%;
}

/* Buttons */
.btn-primary {
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 12px 28px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-fast);
    display: inline-block;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(230, 0, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    font-weight: 700;
}

.btn-secondary:hover {
    background: #1f2937;
    color: #ffffff;
    border-color: #fff;
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 36px;
    font-size: 16px;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.menu-toggle {
    display: none;
    background: transparent;
    color: #fff;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    overflow: hidden;
    margin-top: -35px;
    /* offset top bar to truly fit 100vh */
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(5, 5, 5, 0.95) 0%, rgba(5, 5, 5, 0.7) 40%, rgba(5, 5, 5, 0.2) 100%);
}

.hero-content {
    max-width: 650px;
    position: relative;
    z-index: 2;
    /* Animation handled by JS IntersectionObserver */
}

.subtitle {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 14px;
    margin-bottom: 20px;
    font-weight: 800;
}

.title {
    font-size: 72px;
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 30px;
    letter-spacing: -2px;
}

.title .highlight {
    color: var(--primary-color);
    position: relative;
}

.title .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 15px;
    background: var(--primary-color);
    z-index: -1;
    opacity: 0.5;
    transform: skewX(-15deg);
}

.description {
    font-size: 18px;
    color: #ccc;
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-indicator p {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid #fff;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 5px;
}

.wheel {
    width: 4px;
    height: 8px;
    background: #fff;
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(15px);
        opacity: 0;
    }
}

/* Models Section */
.models-section {
    padding: 120px 5%;
    background: var(--bg-color);
    position: relative;
}

.models-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to bottom, transparent, var(--bg-color));
    z-index: 1;
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.section-subtitle {
    color: var(--primary-color);
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.section-header p {
    color: #999;
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

.model-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: #999;
    padding: 10px 28px;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 15px;
    transition: all var(--transition-fast);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
}

.model-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px 25px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: all var(--transition-smooth);
    cursor: pointer;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 20px;
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(230, 0, 0, 0.08) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-smooth);
    z-index: 1;
}

.card-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    z-index: 3;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-badge.ev {
    background: rgba(0, 200, 83, 0.15);
    color: #00a053;
    border-color: rgba(0, 200, 83, 0.3);
}

.model-card:hover {
    transform: translateY(-10px);
    border-color: rgba(230, 0, 0, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    background: var(--card-hover);
}

.model-card:hover .card-bg {
    opacity: 1;
}

.model-card img {
    width: 90%;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    transition: transform var(--transition-smooth);
    filter: drop-shadow(0 15px 15px rgba(5, 5, 5, 0.2));
    z-index: 2;
    position: relative;
    max-height: 250px;
}

.model-card:hover img {
    transform: scale(1.08) translateY(-5px);
}

.card-content {
    position: relative;
    z-index: 3;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: transparent;
    margin-top: auto; /* Pushes content to the bottom if cards have varying content height */
    transition: transform var(--transition-smooth);
}




.card-content h3 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

.card-content p {
    color: #999;
    font-size: 14px;
    margin-bottom: 20px;
}

.explore-link {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.explore-link i {
    color: var(--primary-color);
    transition: transform var(--transition-fast);
}

.model-card:hover .explore-link {
    color: var(--primary-color);
}

.model-card:hover .explore-link i {
    transform: translateX(5px);
}

/* Teasers Section */
.teasers-section {
    padding: 80px 5%;
    background: #0a0a0a;
}

.teasers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.teaser-card {
    background: #111;
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-color);
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.teaser-card:hover {
    background: #151515;
    border-color: rgba(5, 5, 5, 0.2);
    transform: translateY(-5px);
}

.teaser-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.teaser-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.teaser-card p {
    color: #999;
    margin-bottom: 25px;
    flex-grow: 1;
}

.teaser-link {
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
}

.teaser-card:hover .teaser-link {
    color: var(--primary-color);
}

/* CTA Banner */
.cta-banner {
    padding: 100px 5%;
    background: linear-gradient(rgba(5, 5, 5, 0.8), rgba(5, 5, 5, 0.8)), url('https://www.isuzu.com.tr/Content/assets/images/img/slider/11.jpg') center/cover no-repeat;
    background-attachment: fixed;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.cta-content p {
    font-size: 20px;
    color: #ccc;
    margin-bottom: 40px;
}

/* Footer */
.modern-footer {
    background: #111;
    padding: 80px 5% 30px;
    border-top: 1px solid #222;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 60px;
    margin-bottom: 60px;
}

.company-desc {
    color: #999;
    margin: 20px 0;
    max-width: 400px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #111;
    color: #fff;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.link-col h4 {
    font-size: 18px;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 5px;
}

.link-col a {
    display: block;
    color: #999;
    text-decoration: none;
    margin-bottom: 15px;
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 10px;
}

.link-col a:hover {
    color: #fff;
}

.link-col i {
    color: var(--primary-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid #222;
    color: #666;
    font-size: 14px;
}

.footer-bottom a {
    color: #666;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-bottom a:hover {
    color: #fff;
}

/* Responsive */
@media (max-width: 992px) {
    .title {
        font-size: 56px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1080px) {
    .top-bar {
        display: none;
    }

    .glass-header {
        top: 0;
    }

    .desktop-nav {
        display: none;
    }

    .header-actions .btn-primary {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .title {
        font-size: 42px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* --- BRANCH CARDS --- */
.branch-card {
    transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.branch-card:hover {
    transform: translateY(-5px);
    border-color: rgba(230, 0, 0, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.detail-item a:hover {
    color: var(--isuzu-red) !important;
}

/* Animations Triggered by JS */
.fade-up-element {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- MODEL DETAILS MODAL --- */
.model-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.model-modal.active {
    display: flex;
    opacity: 1;
}

.model-modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(30px);
    transition: all 0.4s ease;
    box-shadow: 0 25px 50px -12px rgba(5, 5, 5, 0.2);
}

.model-modal.active .model-modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 24px;
    color: var(--text-light);
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-fast);
}

.close-modal:hover {
    color: var(--isuzu-red);
}

.modal-body {
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .modal-body {
        flex-direction: row;
    }
}

.modal-image-container {
    flex: 1;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
}

@media (min-width: 768px) {
    .modal-image-container {
        border-bottom: none;
        border-right: 1px solid var(--border-color);
    }
}

.modal-image-container img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.6));
    transform: scale(1.05);
}

.modal-info {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-info h2 {
    font-size: 2.2rem;
    color: var(--text-light);
    margin-bottom: 5px;
    font-weight: 800;
}

.modal-subtitle {
    color: var(--isuzu-red);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 25px;
}

.modal-specs p {
    color: #999;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.specs-list {
    list-style: none;
    margin-bottom: 30px;
    padding: 0;
}

.specs-list li {
    color: var(--text-light);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.specs-list li i {
    color: var(--isuzu-red);
    font-size: 1.1rem;
}

/* --- FORM FLOATING LABELS --- */
.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -10px !important;
    left: 15px !important;
    font-size: 13px !important;
    color: var(--primary-color) !important;
    background: var(--card-bg) !important;
    padding: 0 5px;
    z-index: 10;
    pointer-events: none;
}


/* --- MOBILE NAVIGATION --- */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 2000; /* Higher than header */
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-content {
    padding: 80px 40px 40px 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
    height: 100%;
}

.mobile-menu-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
}

.mobile-link {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: var(--primary-color);
}

.mobile-link.highlight {
    color: var(--primary-color);
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.1);
}


/* Prevent the mobile menu from showing on desktop at all */
@media (min-width: 1081px) {
    .mobile-nav {
        display: none !important;
        right: -100% !important;
    }
}
