/* ==========================================================
   SELL CARS ISRAEL - PREMIUM DARK LUXURY DESIGN SYSTEM
   ========================================================== */

:root {
    --bg-main: #0a0a0a;
    --bg-card: #121212;
    --bg-card-hover: #161616;
    --bg-nav: rgba(10, 10, 10, 0.85);
    
    --accent: #e53935;
    --accent-hover: #ff4d4d;
    --accent-soft: rgba(229, 57, 53, 0.1);
    --accent-green: #25d366;
    --accent-green-hover: #1ebd59;
    --accent-blue: #00b0ff;
    --accent-blue-hover: #0091ea;
    
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #626262;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-hover: rgba(229, 57, 53, 0.4);
    
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 8px 25px rgba(229, 57, 53, 0.25);
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === RESET & BASE STYLES === */
*, *::before, *::after {
    box-sizing: border-box;
}
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}
body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

/* RTL Specific Body Overrides */
html[dir="rtl"] body {
    text-align: right;
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: #252525;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* === CONTAINERS & GRID UTILITIES === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
section {
    padding: 100px 0;
}

/* === HEADER & NAVIGATION === */
header {
    height: 88px;
    background: var(--bg-nav);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}
.header-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
}
.logo-text {
    font-size: 1.25rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-primary);
    line-height: 1;
    white-space: nowrap;
}
.logo-text span {
    color: var(--accent);
}
.logo-text small {
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: 3px;
    opacity: 0.6;
    letter-spacing: 1px;
}

/* Desktop navigation links */
.nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 36px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}
.nav-links a {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 8px 0;
    position: relative;
}
.nav-links a:hover, 
.nav-links a.active {
    color: var(--text-primary);
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition-normal);
}
.nav-links a:hover::after, 
.nav-links a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}
.header-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}
.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}
.icon-btn:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.15);
}
.icon-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Language selector */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    border: none;
    padding: 0;
    margin: 0;
}
.lang-btn {
    color: var(--text-muted);
    transition: var(--transition-fast);
    padding: 3px 8px;
    border-radius: 6px;
}
.lang-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}
.lang-btn.active-lang {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Responsive RTL tweaks */
html[dir="rtl"] .lang-switch {
    border-left: none;
    border-right: none;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
}

/* === MOBILE BURGER MENU === */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
}
.burger-menu span {
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-normal);
    transform-origin: left center;
}

/* Burger Animation to 'X' */
.burger-menu.open span:nth-child(1) {
    transform: rotate(45deg) translate(2px, -1px);
}
.burger-menu.open span:nth-child(2) {
    opacity: 0;
    width: 0;
}
.burger-menu.open span:nth-child(3) {
    transform: rotate(-45deg) translate(2px, 1px);
}

/* Mobile Dropdown Menu */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-nav-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
.mobile-nav-overlay .nav-links {
    flex-direction: column;
    gap: 32px;
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 40px;
}
.mobile-nav-overlay .nav-links a {
    font-size: 1.4rem;
    letter-spacing: 3px;
}
.mobile-nav-overlay .header-icons {
    gap: 16px;
}
.mobile-nav-overlay .lang-switch {
    border: none;
    padding: 0;
    margin: 30px 0 0 0;
    gap: 16px;
    font-size: 1.1rem;
}

/* === BUTTONS === */
.btn-main {
    background: var(--accent);
    color: var(--text-primary);
    padding: 14px 38px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 50px;
    font-weight: 800;
    transition: var(--transition-normal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
    border: 1px solid transparent;
    cursor: pointer;
}
.btn-main:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(229, 57, 53, 0.4);
}

/* === HERO SECTION === */
.hero {
    background: #0a0a0a;
    height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to top, var(--bg-main), transparent);
    pointer-events: none;
    z-index: 1;
}
.hero-content {
    max-width: 800px;
    padding: 0 24px;
    animation: fadeIn 1s var(--transition-normal);
}
.hero-content h1 {
    font-size: 4rem;
    margin: 0 0 24px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.1;
    color: var(--text-primary);
}
.hero-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin: 0 0 40px;
    font-weight: 500;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === HEADINGS === */
h2 {
    text-align: center;
    font-size: 2.25rem;
    margin: 0 0 60px;
    color: var(--text-primary);
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 2px;
    position: relative;
}
h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 20px auto 0;
    border-radius: 2px;
}

/* === SERVICES SECTION === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 48px 32px;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transition: var(--transition-normal);
    transform-origin: center;
}
.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-color-hover);
    box-shadow: var(--shadow-md);
    background: var(--bg-card-hover);
}
.service-card:hover::before {
    transform: scaleX(1);
}
.service-icon-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 28px;
    background: var(--accent-soft);
    border-radius: 50%;
    color: var(--accent);
    transition: var(--transition-fast);
}
.service-card:hover .service-icon-wrap {
    transform: scale(1.1);
    background: var(--accent);
    color: var(--text-primary);
    box-shadow: 0 0 20px rgba(229, 57, 53, 0.4);
}
.service-icon-wrap svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}
.service-card h3 {
    font-size: 1.25rem;
    margin: 0 0 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.service-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* === CONTACTS SECTION === */
.contact-box {
    display: flex;
    box-shadow: var(--shadow-lg);
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}
.contact-info {
    flex: 1;
    min-width: 340px;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.contact-map {
    flex: 1.2;
    min-width: 340px;
    height: 520px;
}
.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: invert(90%) hue-rotate(180deg) grayscale(100%) contrast(90%);
}
.contact-info h3 {
    font-size: 1.5rem;
    margin: 0 0 36px;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 12px;
}
.contact-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent);
}
html[dir="rtl"] .contact-info h3::after {
    left: auto;
    right: 0;
}
.info-item {
    margin-bottom: 32px;
}
.info-item:last-child {
    margin-bottom: 0;
}
.info-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    display: block;
}
.info-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.5;
}
.info-sub {
    font-size: 0.95rem;
    color: var(--text-secondary);
    display: block;
    margin-top: 4px;
}
.phone-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 2rem;
    font-weight: 900;
    display: inline-block;
    margin-top: 6px;
    position: relative;
    padding-bottom: 4px;
    letter-spacing: 0px;
    transition: color 0.3s ease, letter-spacing 0.3s ease, transform 0.3s ease;
}
.phone-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    transition: width 0.3s ease;
}
.phone-link:hover {
    color: var(--accent);
    letter-spacing: 1px;
    transform: scale(1.03);
}
.phone-link:hover::after {
    width: 100%;
}

/* Waze Button */
.btn-waze {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--accent-blue);
    color: var(--text-primary) !important;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0, 176, 255, 0.25);
    transition: var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.btn-waze:hover {
    background-color: var(--accent-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 176, 255, 0.4);
}
.btn-waze svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* === CATALOG PAGE === */
.catalog-title-wrap {
    margin-bottom: 40px;
}
.catalog-title-wrap h1 {
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    text-align: center;
}
.catalog-title-wrap h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 16px auto 0;
}

/* === INTERACTIVE FILTER BAR === */
.filter-bar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 48px;
    box-shadow: var(--shadow-sm);
}
.filter-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 20px;
    align-items: end;
}
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.filter-label-text {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
}
.filter-input-wrapper {
    position: relative;
    width: 100%;
}
.filter-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px 16px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    transition: var(--transition-fast);
    outline: none;
}
.filter-input:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
}
/* Select element customization */
.filter-select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    padding-right: 40px;
}
html[dir="rtl"] .filter-select {
    padding-right: 16px;
    padding-left: 40px;
}
.select-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    width: 16px;
    height: 16px;
    transition: var(--transition-fast);
}
html[dir="rtl"] .select-icon {
    right: auto;
    left: 16px;
}
.filter-select:focus + .select-icon {
    color: var(--accent);
}

/* === CATALOG GRID === */
.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 36px;
}
.car-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    position: relative;
}
.car-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-color-hover);
    box-shadow: var(--shadow-md);
    background: var(--bg-card-hover);
}
.car-img-wrap {
    overflow: hidden;
    height: 240px;
    position: relative;
    background: #000;
}
.car-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.car-card:hover .car-img {
    transform: scale(1.06);
}
.car-body {
    padding: 28px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.car-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0 0 16px;
    color: var(--text-primary);
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.car-specs-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}
.spec-badge {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
}
.car-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}
.car-price {
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}
.btn-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    color: var(--text-secondary);
}
.car-card:hover .btn-arrow {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--text-primary);
    box-shadow: 0 0 12px rgba(229, 57, 53, 0.4);
}
html[dir="rtl"] .btn-arrow svg {
    transform: rotate(180deg);
}
.btn-arrow svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: transform var(--transition-fast);
}
.car-card:hover .btn-arrow svg {
    transform: translateX(2px);
}
html[dir="rtl"] .car-card:hover .btn-arrow svg {
    transform: translateX(-2px) rotate(180deg);
}

/* === DETAIL CAR PAGE === */
.page-content {
    padding-top: 120px;
    padding-bottom: 100px;
    min-height: 80vh;
}
.top-bar {
    margin-bottom: 24px;
}
.back-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
    cursor: pointer;
}
.back-link:hover {
    color: var(--accent);
}
.back-link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}
html[dir="rtl"] .back-link svg {
    transform: rotate(180deg);
}

.detail-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 48px;
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    align-items: start;
}

.detail-gallery {
    width: 100%;
    min-width: 0;
}
.main-img-box {
    width: 100%;
    aspect-ratio: 4/3;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
    cursor: zoom-in;
    position: relative;
}
.main-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-normal);
}
.main-img-box:hover img {
    transform: scale(1.02);
}

.thumbs-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
}
.thumb-item {
    width: 88px;
    height: 66px;
    flex-shrink: 0;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    opacity: 0.5;
    transition: var(--transition-fast);
    border: 2px solid transparent;
    background: #000;
}
.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.thumb-item:hover, 
.thumb-item.active {
    opacity: 1;
    border-color: var(--accent);
}

.detail-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.detail-info .car-title {
    font-size: 2.25rem;
    font-weight: 900;
    margin: 0 0 12px;
    letter-spacing: 0.5px;
    line-height: 1.2;
}
.detail-info .car-price {
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 16px;
    margin-bottom: 36px;
}
.spec-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 16px 12px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition-fast);
}
.spec-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
}
.spec-card .label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 1px;
}
.spec-card .value {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
}

/* Action buttons */
.actions-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.btn {
    flex: 1;
    padding: 16px 28px;
    border-radius: 50px;
    text-align: center;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    min-width: 180px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: var(--transition-normal);
    cursor: pointer;
}
.btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}
.btn-whatsapp {
    background: var(--accent-green);
    color: #000;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.25);
}
.btn-whatsapp:hover {
    background: var(--accent-green-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}
.btn-call {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--text-primary);
}
.btn-call:hover {
    background: var(--text-primary);
    color: #000;
    transform: translateY(-2px);
}

/* Description styling */
.description-wrapper {
    margin-top: 48px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-md);
}
.desc-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}
.desc-header svg {
    width: 22px;
    height: 22px;
    color: var(--accent);
}
.desc-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.description-box {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-height: 180px;
    overflow: hidden;
    position: relative;
    transition: max-height var(--transition-normal);
}
.description-box.expanded {
    max-height: 3000px;
}
.desc-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--bg-card));
    pointer-events: none;
    transition: opacity var(--transition-fast);
}
.description-box.expanded .desc-gradient {
    opacity: 0;
}
.btn-read-more {
    display: block;
    width: 100%;
    text-align: center;
    padding: 16px 0 0 0;
    color: var(--accent);
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: none;
    border: none;
    outline: none;
    transition: var(--transition-fast);
}
.btn-read-more:hover {
    color: var(--accent-hover);
}
.btn-read-more span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Not Found View */
.not-found-box {
    text-align: center;
    padding: 120px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
}
.not-found-box h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

/* === LIGHTBOX GRAPHICS === */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.lightbox.active {
    display: flex;
}
.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
    animation: zoom 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}
@keyframes zoom {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    color: var(--text-secondary);
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 2002;
    line-height: 1;
}
.lightbox-close:hover {
    color: var(--accent);
}
.lightbox-prev, 
.lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    color: var(--text-primary);
    transition: var(--transition-fast);
    user-select: none;
    z-index: 2001;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-prev:hover, 
.lightbox-next:hover {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(229, 57, 53, 0.4);
}
.lightbox-prev svg, 
.lightbox-next svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}
.lightbox-next {
    right: 32px;
}
.lightbox-prev {
    left: 32px;
}
.lightbox-counter {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 24px;
    letter-spacing: 1.5px;
}

/* === FOOTER === */
footer {
    background: #050505;
    color: var(--text-muted);
    text-align: center;
    padding: 48px 24px;
    font-size: 0.8rem;
    letter-spacing: 1px;
    border-top: 1px solid var(--border-color);
}

/* ==========================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================== */

@media (max-width: 992px) {
    header {
        height: auto;
        padding: 0;
    }
    .header-container {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        padding: 10px 16px;
        position: relative;
    }
    .logo {
        order: 1;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .header-actions {
        order: 2;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }
    .nav-links {
        order: 3;
        position: static !important;
        left: auto !important;
        transform: none !important;
        display: flex !important;
        margin: 8px 0 0 0;
        padding: 8px 0 0 0;
        gap: 32px;
        width: 100% !important;
        justify-content: center;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
    .burger-menu,
    .mobile-nav-overlay {
        display: none !important;
    }
    .header-icons {
        display: none;
    }
    .lang-switch {
        border-left: none;
        border-right: none;
        padding-left: 0;
        padding-right: 0;
        margin-left: 0;
        margin-right: 0;
        gap: 12px;
    }
    .nav-links a {
        font-size: 0.8rem;
        letter-spacing: 1.5px;
    }
    .logo-text {
        font-size: 1rem;
    }
    .logo-text small {
        display: none;
    }
    .logo-img {
        width: 34px;
        height: 34px;
        margin-right: 8px;
    }
    html[dir="rtl"] .logo-img {
        margin-right: 0;
        margin-left: 8px;
    }
    html[dir="rtl"] .nav-links {
        margin-left: 0;
        margin-right: 0;
    }
    
    .filter-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .detail-wrapper {
        grid-template-columns: 1fr;
        padding: 24px;
        gap: 32px;
    }
    .detail-info .car-title {
        font-size: 1.75rem;
    }
    .detail-info .car-price {
        font-size: 1.6rem;
        margin-bottom: 24px;
        padding-bottom: 16px;
    }
    .actions-row {
        flex-direction: column;
    }
    .btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    h2 {
        font-size: 1.75rem;
        margin-bottom: 40px;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1.05rem;
    }
    .contact-box {
        flex-direction: column;
    }
    .contact-info {
        padding: 36px 24px;
    }
    .contact-map {
        height: 350px;
    }
    .phone-link {
        font-size: 1.6rem;
    }
    .description-wrapper {
        padding: 24px;
    }
    .lightbox-prev, 
    .lightbox-next {
        width: 44px;
        height: 44px;
    }
    .lightbox-next {
        right: 16px;
    }
    .lightbox-prev {
        left: 16px;
    }
    .lightbox-content {
        max-height: 70vh;
    }
}

/* ==========================================================
   PREMIUM LUXURY ANIMATIONS & EFFECTS
   ========================================================== */

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(to right, var(--accent), var(--accent-hover));
    z-index: 9999;
    width: 0%;
    transition: width 0.1s ease-out;
}
html[dir="rtl"] .scroll-progress {
    left: auto;
    right: 0;
}

/* Scroll Reveal Elements */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 1s cubic-bezier(0.215, 0.61, 0.355, 1),
                transform 1s cubic-bezier(0.215, 0.61, 0.355, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }
.reveal-delay-4 { transition-delay: 0.48s; }

/* Safe Text Reveal Animation */
.hero-content h1,
.hero-content p,
.hero-content .btn-main {
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeInUp 1s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}
.hero-content h1 {
    animation-delay: 0.1s;
}
.hero-content p {
    animation-delay: 0.3s;
}
.hero-content .btn-main {
    animation-delay: 0.5s;
}

@keyframes heroFadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Zoom Parallax Effect */
.hero-bg-parallax {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 0.1s ease-out;
    z-index: 0;
}
.hero-bg-parallax::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.85) 20%, rgba(10, 10, 10, 0.45) 100%);
}