/* ===========================
   ROOT STYLES & VARIABLES
   =========================== */
:root {
    --primary-color: #cc0000;
    --secondary-color: #e31e24;
    --accent-color: #ff3333;
    --accent-warm: #cc0000;
    --dark-bg: #0d0d0d;
    --light-bg: #f5f5f5;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --gradient-blue: linear-gradient(135deg, #cc0000 0%, #660000 100%);
    --gradient-warm: linear-gradient(135deg, #cc0000 0%, #ff3333 100%);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.10);
    --shadow-hover: 0 16px 48px rgba(204, 0, 0, 0.28);
    --radius: 14px;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===========================
   GLOBAL STYLES
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--light-bg);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.5; }
}

@keyframes scroll-pulse {
    0%, 100% { opacity: 1; transform: translateY(0); }
    50%       { opacity: 0; transform: translateY(10px); }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50%       { background-position: 100% 50%; }
}

@keyframes shimmer {
    0%   { background-position: -1000px 0; }
    100% { background-position:  1000px 0; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-16px); }
}

@keyframes kenBurns {
    0%   { transform: scale(1) translate(0, 0); }
    50%  { transform: scale(1.06) translate(-1%, -1%); }
    100% { transform: scale(1) translate(0, 0); }
}

@keyframes revealUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes tagSlide {
    from { opacity: 0; transform: translateX(-20px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ===========================
   REVEAL ON SCROLL
   =========================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   NAVIGATION BAR
   =========================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.12), 0 -3px 0 var(--primary-color) inset;
    z-index: 1000;
    animation: fadeInDown 0.6s ease-out;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--dark-bg);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform var(--transition), color var(--transition);
}

.logo:hover {
    transform: scale(1.06);
}

.logo-img {
    height: 58px;
    width: auto;
    display: block;
}

.logo-star {
    color: var(--accent-color);
    animation: pulse 2s infinite;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex: 1;
    justify-content: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    transition: color var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--transition);
    border-radius: 2px;
}

.navbar.scrolled .nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(204, 0, 0, 0.3);
}

.btn-primary:hover {
    background: #990000;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(204, 0, 0, 0.45);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    text-decoration: none;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Hero-specific buttons */
.btn-hero-primary {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    text-decoration: none;
}

.btn-hero-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(204, 0, 0, 0.45);
}

.btn-hero-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(4px);
}

.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
    transform: translateY(-3px);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
}

.btn-small {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

/* ===========================
   HERO SECTION
   =========================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background-image: url('Image/home-opel.png');
    background-size: cover;
    background-position: center 50%;
    animation: kenBurns 20s ease-in-out infinite;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(0, 0, 0, 0.72) 0%,
        rgba(0, 0, 0, 0.45) 55%,
        rgba(0, 0, 0, 0.25) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 24px 80px;
    width: 100%;
}

.hero-text {
    max-width: 640px;
    animation: slideInLeft 0.9s ease-out;
}

.hero-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.4rem 1.1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    animation: tagSlide 0.8s ease-out 0.1s backwards;
    backdrop-filter: blur(8px);
}

.hero-title {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    color: white;
}

.title-word {
    display: block;
    animation: fadeInUp 0.8s ease-out backwards;
}

.title-word:nth-child(1) { animation-delay: 0.2s; }
.title-word:nth-child(2) { animation-delay: 0.35s; }
.title-word:nth-child(3) { animation-delay: 0.50s; }

.title-word.accent {
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.75s backwards;
    margin-bottom: 3rem;
}

/* Hero stats strip */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.9s backwards;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-stat-num {
    font-size: 1.8rem;
    font-weight: 900;
    color: white;
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.25);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: fadeInUp 0.8s ease-out 1.1s backwards;
    z-index: 2;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 13px;
    position: relative;
}

.mouse::after {
    content: '';
    position: absolute;
    width: 3px;
    height: 9px;
    background: white;
    border-radius: 2px;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-pulse 1.5s infinite;
}

.scroll-indicator span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ===========================
   SECTION STYLES
   =========================== */
.section-title {
    font-size: 2.8rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: #777;
    font-size: 1.1rem;
    margin-bottom: 3.5rem;
}

/* ===========================
   VEHICLES SECTION
   =========================== */
.vehicles {
    padding: 110px 0;
    background: linear-gradient(135deg, #0d0d0d 0%, #1a0000 45%, #0d0d0d 100%);
    position: relative;
    overflow: hidden;
}

.vehicles::before {
    content: '';
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(204, 0, 0, 0.18) 0%, transparent 70%);
    top: -250px;
    right: -150px;
    pointer-events: none;
}

.vehicles::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 50, 50, 0.10) 0%, transparent 70%);
    bottom: -150px;
    left: -80px;
    pointer-events: none;
}

.vehicles .section-title {
    color: white;
}

.vehicles .section-subtitle {
    color: rgba(255, 255, 255, 0.55);
}

.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.vehicle-card {
    background: #ffffff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
}

.vehicle-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-hover);
}

.vehicle-image {
    position: relative;
    height: 280px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.vehicle-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.18) 0%, transparent 60%);
    pointer-events: none;
}

/* Real photo fill */
.vehicle-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 60%;
    transition: transform 0.5s ease;
}

.vehicle-card:hover .vehicle-img {
    transform: scale(1.06);
}

/* ===========================
   PER-CARD STYLES
   =========================== */

/* --- Corsa --- */
.card-corsa .vehicle-image {
    background: #111;
}

.card-corsa .vehicle-img {
    object-position: center 70%;
}

.card-corsa .vehicle-info h3        { color: #cc0000; }
.card-corsa .btn-primary            { background: #cc0000; box-shadow: 0 4px 14px rgba(204,0,0,0.35); }
.card-corsa .btn-primary:hover      { background: #990000; box-shadow: 0 8px 22px rgba(204,0,0,0.45); }
.card-corsa:hover                   { box-shadow: 0 16px 48px rgba(204, 0, 0, 0.25); }

/* --- Mokka --- */
.card-mokka .vehicle-image {
    background: #1a1a1a;
}

.card-mokka .vehicle-img {
    object-fit: cover;
    object-position: center 50%;
}

.card-mokka .vehicle-info h3        { color: #cc0000; }
.card-mokka .btn-primary            { background: #cc0000; box-shadow: 0 4px 14px rgba(204,0,0,0.35); }
.card-mokka .btn-primary:hover      { background: #990000; box-shadow: 0 8px 22px rgba(204,0,0,0.45); }
.card-mokka:hover                   { box-shadow: 0 16px 48px rgba(204, 0, 0, 0.25); }

/* --- Grandland --- */
.card-grandland .vehicle-image {
    background: #2a2a2a;
}

.card-grandland .vehicle-img {
    object-position: center 60%;
}

.card-grandland .vehicle-info h3    { color: #cc0000; }
.card-grandland .btn-primary        { background: #cc0000; box-shadow: 0 4px 14px rgba(204,0,0,0.35); }
.card-grandland .btn-primary:hover  { background: #990000; box-shadow: 0 8px 22px rgba(204,0,0,0.45); }
.card-grandland:hover               { box-shadow: 0 16px 48px rgba(204, 0, 0, 0.25); }

.vehicle-placeholder {
    width: 200px;
    height: 120px;
    border-radius: 50%;
    animation: float 3.5s ease-in-out infinite;
    transition: transform var(--transition);
}

.vehicle-card:hover .vehicle-placeholder {
    transform: scale(1.06);
}

.vehicle-placeholder.corsa {
    background: linear-gradient(135deg, #ff6b6b, #ffa500);
    box-shadow: 0 20px 60px rgba(255, 107, 107, 0.35);
}

.vehicle-placeholder.astra {
    background: linear-gradient(135deg, #00d4ff, #0066cc);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.35);
}

.vehicle-placeholder.grandland {
    background: linear-gradient(135deg, #00ff88, #00cc66);
    box-shadow: 0 20px 60px rgba(0, 255, 136, 0.35);
}

.vehicle-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--accent-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    z-index: 1;
}

.vehicle-badge.badge-popular {
    background: var(--primary-color);
}

.vehicle-badge.badge-premium {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
}

.vehicle-info {
    padding: 1.75rem;
}

.vehicle-info h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}

.vehicle-desc {
    color: #777;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.vehicle-specs {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.vehicle-specs span {
    font-size: 0.82rem;
    color: #555;
    background: var(--light-bg);
    border-radius: 6px;
    padding: 0.3rem 0.7rem;
    margin-right: 0.5rem;
    margin-bottom: 0.4rem;
    font-weight: 500;
}

/* ===========================
   OFFERS SECTION
   =========================== */
.offers {
    padding: 110px 0;
    background: linear-gradient(135deg, #ffffff 0%, #fff5f5 50%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.offer-card {
    background: white;
    padding: 2.25rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    transition: transform var(--transition), box-shadow var(--transition);
    border-top: 4px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.offer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.35) 50%, transparent 100%);
    animation: shimmer 7s infinite;
    pointer-events: none;
}

.offer-card:nth-child(2) { border-top-color: #1a1a1a; }
.offer-card:nth-child(3) { border-top-color: #cc0000; }

.offer-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.offer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.offer-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
}

.discount-badge {
    background: var(--accent-color);
    color: white;
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
}

.offer-price {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-color);
    margin: 0.75rem 0;
}

.offer-old-price { color: #bbb; }

.offer-note {
    color: #888;
    font-size: 0.9rem;
    margin: 0.5rem 0 1.5rem;
}

/* ===========================
   ABOUT SECTION
   =========================== */
.about {
    padding: 110px 0;
    background: linear-gradient(160deg, #ffffff 0%, #fff5f5 50%, #ffffff 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.about-text h2 {
    font-size: 2.4rem;
    font-weight: 900;
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

.about-text p {
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.stat { text-align: center; }

.stat-number {
    display: block;
    font-size: 2.6rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.stat-label {
    display: block;
    color: #888;
    font-size: 0.88rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.feature {
    background: #ffffff;
    padding: 1.75rem;
    border-radius: var(--radius);
    transition: all var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    cursor: default;
}

.feature::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #cc0000 0%, #660000 100%);
    opacity: 0;
    transition: opacity var(--transition);
    border-radius: var(--radius);
}

.feature:hover::before {
    opacity: 1;
}

.feature > * {
    position: relative;
    z-index: 1;
}

.feature:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(204, 0, 0, 0.3);
    color: white;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

.feature h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.feature p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    transition: color var(--transition);
}

.feature:hover p {
    color: rgba(255, 255, 255, 0.85);
}

/* ===========================
   TESTIMONIALS SECTION
   =========================== */
.testimonials {
    padding: 110px 0;
    background: linear-gradient(-45deg, #0d0d0d 0%, #1a0000 25%, #cc0000 50%, #1a0000 75%, #0d0d0d 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    position: relative;
}

.testimonials .section-title {
    color: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.96);
    padding: 2.25rem;
    border-radius: var(--radius);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    transition: transform var(--transition), box-shadow var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.stars {
    display: block;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.testimonial-card p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 1rem;
    font-style: italic;
    font-size: 0.97rem;
}

.testimonial-author {
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    font-style: normal;
}

/* ===========================
   CONTACT LAYOUT (used inside modal)
   =========================== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.info-box {
    background: var(--light-bg);
    padding: 1.75rem;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary-color);
    transition: all var(--transition);
}

.info-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 28px rgba(0, 102, 204, 0.12);
    background: white;
}

.info-box h3 {
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    font-size: 1rem;
}

.info-box p {
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all var(--transition);
    padding: 0.4rem 0.9rem;
    background: white;
    border-radius: 20px;
    border: 1px solid var(--primary-color);
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem 1.2rem;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all var(--transition);
    background: #fafafa;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.08);
}

.contact-form button {
    align-self: flex-start;
}

/* ===========================
   CONTACT MODAL
   =========================== */
@keyframes contactSlideUp {
    from { opacity: 0; transform: translateY(60px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes contactSlideDown {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to   { opacity: 0; transform: translateY(60px) scale(0.98); }
}

.contact-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.contact-modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.contact-modal-box {
    background: white;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 20px 20px 0 0;
    padding: 2.5rem;
    position: relative;
    transform: translateY(60px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-modal-overlay.open .contact-modal-box {
    transform: translateY(0);
}

.contact-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0f0f0;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), transform var(--transition);
    line-height: 1;
}

.contact-modal-close:hover {
    background: #e0e0e0;
    transform: rotate(90deg);
}

.contact-modal-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.4rem;
    color: var(--text-dark);
}

.contact-modal-sub {
    color: #777;
    font-size: 0.97rem;
    margin-bottom: 2rem;
}

/* Animated field cards inside contact modal */
.contact-cards-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-top: 0.5rem;
}

.contact-field-card {
    background: #f8f9fb;
    border: 2px solid #eaeef2;
    border-radius: 14px;
    padding: 1.1rem 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    animation: revealUp 0.5s ease-out backwards;
}

.contact-field-card:nth-child(1) { animation-delay: 0.05s; }
.contact-field-card:nth-child(2) { animation-delay: 0.12s; }
.contact-field-card:nth-child(3) { animation-delay: 0.19s; }
.contact-field-card:nth-child(4) { animation-delay: 0.26s; }

.contact-field-card:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.08);
    transform: translateY(-2px);
    background: white;
}

.contact-field-card label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.contact-field-card input {
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--text-dark);
    padding: 0;
    outline: none;
    font-family: inherit;
}

.contact-field-card input::placeholder {
    color: #bbb;
}

.contact-submit {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 0.25rem;
    animation: revealUp 0.5s ease-out 0.33s backwards;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
    background: #0d0d0d;
    color: white;
    padding: 70px 0 24px;
    border-top: 3px solid var(--primary-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.footer-section p {
    color: #aaa;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.7rem;
}

.footer-section a {
    color: #999;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color var(--transition);
    display: inline-block;
}

.footer-section a:hover {
    color: var(--primary-color);
    transform: translateX(4px);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color var(--transition);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.newsletter-form button {
    padding: 0.75rem 1.3rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: #990000;
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #555;
    font-size: 0.9rem;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        gap: 0;
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
        border-top: 1px solid #eee;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu li a {
        display: block;
        padding: 1rem 1.5rem;
        color: var(--text-dark);
    }

    .hamburger {
        display: flex;
    }

    .nav-buttons {
        display: none;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-content {
        padding: 100px 24px 60px;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .hero-stat-divider {
        display: none;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .contact-cards-form {
        grid-template-columns: 1fr;
    }

    .vehicles-grid,
    .offers-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .hero {
        min-height: 100svh;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-lg {
        padding: 0.9rem 1.8rem;
        font-size: 1rem;
        text-align: center;
    }
}
