/* ============================================
   GLOBAL STYLES & VARIABLES
   ============================================ */

:root {
    --primary: #1a3a52;
    --secondary: #d4a574;
    --accent: #667eea;
    --text: #333333;
    --text-light: #666666;
    --bg: #ffffff;
    --bg-light: #f8f9fa;
    --border: #e0e0e0;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 15px 40px rgba(0, 0, 0, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Cairo', 'Poppins', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 15px;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    font-size: 1rem;
    margin-bottom: 10px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn-secondary:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-3px);
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.logo:hover {
    transform: scale(1.05);
}

.logo i {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--accent);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 6px;
    padding: 8px;
    margin-right: -8px;
}

.hamburger span {
    width: 24px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
    display: block;
    margin: 0;
    padding: 0;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    width: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Mobile menu overlay backdrop */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 995;
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Desktop Navigation */
@media (min-width: 769px) {
    .nav-menu {
        display: flex !important;
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        width: auto !important;
        max-height: none !important;
        padding: 0 !important;
        gap: 30px;
        background: none !important;
        box-shadow: none !important;
        max-height: none !important;
        overflow: visible !important;
        transform: translateX(0) !important;
        animation: none;
        z-index: auto !important;
    }

    .nav-menu li {
        border-bottom: none !important;
    }

    .nav-menu a {
        padding: 5px 0 !important;
        font-size: 0.95rem;
        display: inline;
    }

    /* ensure nav-menu remains flex on desktop */

    .hamburger {
        display: none !important;
    }

    .nav-overlay {
        display: none !important;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: white;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: white;
    top: 50%;
    left: -50px;
    animation-delay: 2s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: white;
    bottom: -50px;
    right: 50px;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(20px);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   FEATURES SECTION
   ============================================ */

.features {
    padding: 80px 20px;
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    perspective: 1000px;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--secondary) 100%);
}

.feature-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: rotateY(360deg) scale(1.1);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ============================================
   POPULAR MODELS SECTION
   ============================================ */

.popular-models {
    padding: 80px 20px;
    background: white;
}

.models-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* ============================================
   STATS SECTION
   ============================================ */

.stats {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, #2d5a7b 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    color: white;
    padding: 30px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.stat-item:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.15);
}

.stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* ============================================
   PAGE HEADER
   ============================================ */

.page-header {
    padding: 100px 20px 60px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
    text-align: center;
    color: white;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ============================================
   MODELS SECTION
   ============================================ */

.models-section {
    padding: 60px 20px;
}

.filters-section {
    padding: 40px 20px;
    background: var(--bg-light);
}

.filters {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid var(--border);
    background: white;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    color: var(--text);
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
    color: white;
    border-color: transparent;
    transform: scale(1.05);
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.model-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    transform-style: preserve-3d;
}

.model-card:hover {
    transform: translateY(-15px) rotateX(5deg);
    box-shadow: var(--shadow-xl);
}

.model-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.model-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.model-body {
    padding: 20px;
}

.model-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.model-category {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.model-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 15px;
}

.model-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.model-specs span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.model-footer {
    display: flex;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.model-footer button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn-view {
    background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
    color: white;
}

.btn-view:hover {
    transform: scale(1.05);
}

.btn-compare {
    background: var(--bg-light);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-compare:hover {
    background: var(--accent);
    color: white;
}

/* ============================================
   SERVICES SECTION
   ============================================ */

.services-section {
    padding: 60px 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-left: 5px solid transparent;
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-left-color: var(--secondary);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--secondary) 100%);
    border-radius: 15px 15px 0 0;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.service-card h3 {
    color: var(--primary);
}

/* ============================================
   PLANS SECTION
   ============================================ */

.plans-section {
    padding: 80px 20px;
    background: var(--bg-light);
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.plan-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    position: relative;
    border-top: 4px solid var(--border);
}

.plan-card.featured {
    border-top-color: var(--secondary);
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.plan-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.plan-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 10px;
}

.plan-price span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    display: block;
}

.plan-features {
    list-style: none;
    margin: 30px 0;
    text-align: right;
}

.plan-features li {
    padding: 10px 0;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.plan-features i {
    color: var(--secondary);
    font-size: 1.1rem;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact-section {
    padding: 60px 20px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-form-wrapper h2,
.contact-info-wrapper h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--primary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.info-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
    border-left: 4px solid transparent;
}

.info-card:hover {
    transform: translateX(5px);
    border-left-color: var(--secondary);
    box-shadow: var(--shadow-md);
}

.info-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
}

.info-card h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.info-card p {
    color: var(--text-light);
    margin-bottom: 12px;
}

.info-link {
    display: inline-block;
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.info-link:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.business-hours {
    background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
}

.business-hours h3 {
    margin-bottom: 15px;
}

.business-hours p {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.map-section {
    margin-top: 60px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* ============================================
   MODAL
   ============================================ */

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    position: absolute;
    right: 25px;
    top: 20px;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.close:hover {
    color: var(--primary);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--primary);
    color: white;
    padding: 60px 20px 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--secondary);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul a:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary);
    transform: translateY(-5px) rotateZ(360deg);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 900px) {
    .nav-menu {
        gap: 20px;
    }

    .navbar-container {
        padding: 0 15px;
    }

    .logo {
        font-size: 1.3rem;
    }

    .logo i {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .navbar-container {
        height: 65px;
    }

    .logo {
        font-size: 1.2rem;
        gap: 8px;
    }

    .logo i {
        font-size: 1.6rem;
    }

    .nav-menu {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        top: 65px !important;
        display: flex !important;
        flex-direction: column;
        background: white !important;
        padding: 0 !important;
        gap: 0 !important;
        width: 100% !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
        max-height: calc(100vh - 65px) !important;
        overflow-y: auto !important;
        animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        transform: translateX(100%) !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        z-index: 1000 !important;
        visibility: visible;
        opacity: 1;
        pointer-events: none !important;
        list-style: none !important;
        border-top: 1px solid var(--border);
    }

    .nav-menu.active {
        transform: translateX(0) !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .nav-menu li {
        border-bottom: 1px solid var(--border);
        margin: 0;
        padding: 0;
    }

    .nav-menu li:first-child {
        border-top: 1px solid var(--border);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        display: block;
        padding: 16px 15px;
        color: var(--text);
        font-size: 0.95rem;
        font-weight: 500;
        transition: all 0.2s ease;
        text-decoration: none;
        position: relative;
    }

    .nav-menu a:hover {
        background: rgba(102, 126, 234, 0.08);
        color: var(--accent);
        padding-right: 12px;
    }

    .nav-menu a::after {
        display: none;
    }

    .nav-menu a.active {
        background: rgba(102, 126, 234, 0.12);
        color: var(--accent);
        border-right: 4px solid var(--accent);
        padding-right: 11px;
        font-weight: 600;
    }

    /* RTL support: slide menu from left instead of right */
    html[dir="rtl"] .nav-menu {
        transform: translateX(-100%);
    }

    html[dir="rtl"] .nav-menu.active {
        transform: translateX(0);
    }

    .navbar-container {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    /* mobile hamburger styling (larger touch target, visible button) */
    .hamburger {
        display: flex;
        flex-direction: column;
        z-index: 1001;
        width: 44px;
        height: 44px;
        padding: 8px;
        border-radius: 8px;
        background: white;
        border: 1px solid var(--border);
        align-items: center;
        justify-content: center;
        gap: 6px;
        box-shadow: var(--shadow-sm);
        cursor: pointer;
        margin-left: 0;
        margin-right: 8px;
        order: 1;
        transition: all 0.3s ease;
    }

    .hamburger:active {
        background: var(--bg-light);
        transform: scale(0.95);
    }

    .hamburger span {
        width: 24px;
        height: 3px;
        background: var(--primary);
        border-radius: 2px;
        transition: all 0.3s ease;
        transform-origin: center;
        display: block;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }

    .hamburger:focus {
        outline: none;
        box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.12);
    }

    /* ensure nav order on mobile: hamburger, menu, logo */
    .nav-menu {
        order: 2;
    }

    .logo {
        order: 3;
    }

    /* RTL adjustments */
    html[dir="rtl"] .hamburger {
        margin-right: 0;
        margin-left: 8px;
    }

    html[dir="rtl"] .logo {
        margin-left: auto;
        margin-right: 0;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .plan-card.featured {
        transform: scale(1);
    }

    h2 {
        font-size: 1.8rem;
    }

    .features-grid,
    .models-grid,
    .services-grid,
    .plans-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        gap: 20px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .modal-content {
        padding: 25px;
        max-width: 95%;
        width: 100%;
        max-height: 85vh;
        border-radius: 15px;
    }

    .close {
        right: 15px;
        top: 12px;
        font-size: 1.8rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

@media (max-width: 480px) {
    .navbar-container {
        height: 60px;
        padding: 0 12px;
    }

    .logo {
        font-size: 1.1rem;
        gap: 6px;
    }

    .logo i {
        font-size: 1.4rem;
    }

    .nav-menu {
        top: 60px;
        padding: 15px;
    }

    .nav-menu a {
        padding: 12px 8px;
        font-size: 0.9rem;
    }

    .hamburger {
        gap: 5px;
        padding: 6px;
        margin-right: -6px;
    }

    .hamburger span {
        width: 22px;
        height: 2.5px;
        background: var(--primary);
        display: block;
        border-radius: 2px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .feature-card {
        padding: 25px 15px;
    }

    .model-card {
        margin: 0;
    }

    .plan-price {
        font-size: 2rem;
    }

    .contact-form {
        gap: 15px;
    }
}

/* Animation for mobile menu */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

    .form-group input,
    .form-group textarea {
        padding: 14px;
        font-size: 16px;
    }

    .form-group textarea {
        min-height: 120px;
    }

    .info-card {
        padding: 20px;
    }

    .model-specs {
        font-size: 0.8rem;
    }

    .stats-grid {
        gap: 15px;
    }

    .stat-item {
        padding: 20px;
    }

    .stat-item h3 {
        font-size: 2rem;
    }

    .hero {
        min-height: 80vh;
        padding: 60px 20px 20px;
    }

    .filters {
        gap: 10px;
    }

    .filter-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
        min-height: 40px;
    }

/* ============================================
   COMPARE PAGE STYLES
   ============================================ */

.compare-section {
    padding: 60px 20px;
}

.compare-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

.select-cars-area {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 50px;
}

.select-cars-area h2 {
    color: var(--primary);
    margin-bottom: 30px;
}

.select-cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.select-car-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.select-car-item label {
    font-weight: 600;
    color: var(--primary);
}

.car-select {
    padding: 12px 15px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.car-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.comparison-table-wrapper {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 20px 15px;
    text-align: right;
    border-bottom: 1px solid var(--border);
}

.comparison-table th {
    background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
    color: white;
    font-weight: 700;
}

.comparison-table tr:hover {
    background: var(--bg-light);
}

.spec-name {
    font-weight: 600;
    color: var(--primary);
    background: var(--bg-light);
}

.car-column {
    text-align: center;
}

.features-row ul {
    text-align: right;
}

.action-row button {
    transition: var(--transition);
}

.action-row button:hover {
    transform: translateY(-3px);
}

.comparison-features {
    padding: 80px 20px;
    background: var(--bg-light);
}

/* ============================================
   CHECKOUT PAGE STYLES
   ============================================ */

.checkout-section {
    padding: 60px 20px;
}

/* ============================================
   CHECKOUT PAGE STYLES
   ============================================ */

.checkout-section {
    padding: 40px 20px;
    background: var(--bg-light);
}

.checkout-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: start;
}

.checkout-left,
.checkout-right {
    background: white;
    padding: 35px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.checkout-left h2,
.checkout-right h2,
.checkout-left h3,
.checkout-right h3 {
    color: var(--primary);
    margin-bottom: 20px;
}

.order-summary {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
    border-left: 4px solid var(--accent);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    color: var(--text);
}

.summary-divider {
    height: 1px;
    background: var(--border);
    margin: 15px 0;
}

.plan-details {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.plan-details h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    padding: 8px 0;
    color: var(--text-light);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list i {
    color: var(--accent);
    margin-left: 8px;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.form-group label {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

.plan-selection {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.plan-radio {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    background: white;
}

.plan-radio input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin-left: 15px;
    accent-color: var(--accent);
    flex-shrink: 0;
}

.plan-radio:hover {
    border-color: var(--accent);
    background: rgba(102, 126, 234, 0.05);
}

.plan-radio input[type="radio"]:checked + .plan-label {
    color: var(--accent);
}

.plan-label {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.plan-price {
    color: var(--secondary);
    font-weight: 700;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    background: white;
}

.payment-option input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin-left: 12px;
    accent-color: var(--accent);
    flex-shrink: 0;
}

.payment-option:hover {
    border-color: var(--accent);
    background: rgba(102, 126, 234, 0.05);
}

.payment-option input[type="radio"]:checked + span {
    color: var(--accent);
    font-weight: 600;
}

.payment-option span {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.payment-option i {
    font-size: 1.2rem;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    padding: 8px 0;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent);
    margin-top: 2px;
    flex-shrink: 0;
}

.checkbox-group span {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

.trust-section {
    padding: 60px 20px;
    background: var(--bg-light);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.trust-item {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.trust-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.trust-item i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 15px;
    display: block;
}

.trust-item h4 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.trust-item p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Success Modal */
.success-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 20px;
}

.success-modal {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    width: 100%;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s ease;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
    color: white;
}

.success-modal h2 {
    color: var(--primary);
    margin-bottom: 10px;
}

.success-modal > p {
    color: var(--text-light);
    margin-bottom: 25px;
}

.order-confirmation {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 12px;
    text-align: right;
    margin-bottom: 20px;
}

.order-confirmation h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1rem;
}

.confirmation-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-size: 0.95rem;
}

.confirmation-item:last-child {
    border-bottom: none;
}

.confirmation-item span {
    color: var(--text-light);
}

.confirmation-item strong {
    color: var(--primary);
    font-weight: 600;
}

.success-modal p:last-of-type {
    font-size: 0.9rem;
}

/* ============================================
   COMPARE & CHECKOUT RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .checkout-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .checkout-left {
        position: static;
    }
}

@media (max-width: 768px) {
    .checkout-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .checkout-left,
    .checkout-right {
        padding: 25px;
    }

    .select-cars-grid {
        grid-template-columns: 1fr;
    }

    .comparison-table-wrapper {
        padding: 15px;
        overflow-x: auto;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 12px 8px;
        font-size: 0.9rem;
    }

    .payment-methods {
        grid-template-columns: 1fr;
    }

    .trust-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .form-group input,
    .form-group select {
        padding: 12px;
        font-size: 16px;
    }

    .btn {
        padding: 12px 20px;
    }

    .plan-radio,
    .payment-option,
    .checkbox-group {
        padding: 12px;
    }
}

@media (max-width: 600px) {
    .checkout-left,
    .checkout-right {
        padding: 20px;
    }

    .checkout-section {
        padding: 25px 15px;
    }

    .order-summary {
        padding: 15px;
    }

    .plan-details {
        padding: 15px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 10px 5px;
        font-size: 0.8rem;
    }

    .select-cars-area {
        padding: 20px;
    }

    .select-cars-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .select-car-item {
        padding: 15px;
        gap: 10px;
    }

    .select-car-item label {
        font-size: 0.95rem;
        font-weight: 600;
    }

    .select-car-item select {
        min-height: 44px;
        font-size: 16px;
    }

    .select-car-item > div[style*="display:flex"] {
        flex-direction: column;
    }

    .select-car-item button {
        width: 100%;
        min-height: 44px;
        font-size: 0.9rem;
    }

    .success-modal {
        padding: 25px;
    }

    .success-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .success-modal h2 {
        font-size: 1.3rem;
    }

    .order-confirmation {
        padding: 15px;
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }

    .trust-item {
        padding: 20px;
    }

    .trust-item i {
        font-size: 2rem;
    }

    .trust-item h4 {
        font-size: 1rem;
    }

    .trust-item p {
        font-size: 0.85rem;
    }

    .form-group input,
    .form-group select {
        padding: 14px;
        font-size: 16px;
        min-height: 44px;
    }

    .plan-radio {
        padding: 14px;
        min-height: 44px;
    }

    .plan-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .payment-methods {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .payment-option {
        padding: 14px;
        min-height: 44px;
    }

    .checkout-form {
        gap: 20px;
    }

    .form-section {
        padding: 15px 0;
    }

    .form-section h3 {
        font-size: 1rem;
    }

    .checkbox-group {
        padding: 8px 0;
        gap: 8px;
    }

    .checkbox-group span {
        font-size: 0.9rem;
    }

    .summary-item {
        padding: 10px 0;
        font-size: 0.95rem;
    }

    .summary-item:first-child {
        flex-direction: column;
        gap: 5px;
    }

    /* Progress indicator responsive */
    section[style*="background: var(--bg-light); padding: 20px 0"] div:first-child {
        flex-wrap: wrap;
    }

    button.btn {
        font-size: 1rem;
        padding: 12px 16px;
    }
}

/* Consultation Section Styles */
.consultation-section a.btn-light {
    background: white;
    color: var(--primary);
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.consultation-section a.btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.consultation-section a.btn-light i {
    font-size: 1.3rem;
}

/* FAQ Section Styles */
.faq-item {
    background: white;
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid var(--secondary);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.faq-item h4 {
    font-size: 1rem;
}

/* Active Navigation Link */
.nav-menu li a.active {
    color: var(--secondary);
    border-bottom: 3px solid var(--secondary);
    padding-bottom: 5px;
}

/* Ultra Small Phones (< 375px) */
@media (max-width: 360px) {
    .navbar-container {
        height: 55px;
        padding: 0 10px;
    }

    .logo {
        font-size: 1rem;
        gap: 5px;
    }

    .logo i {
        font-size: 1.2rem;
    }

    .nav-menu {
        top: 55px;
        padding: 12px 10px;
    }

    .nav-menu a {
        padding: 10px 6px;
        font-size: 0.85rem;
    }

    .hamburger {
        gap: 4px;
        padding: 5px;
        margin-right: -5px;
    }

    .hamburger span {
        width: 20px;
        height: 2.5px;
        background: var(--primary);
        display: block;
        border-radius: 2px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .page-header h1 {
        font-size: 1.6rem;
    }

    .page-header p {
        font-size: 0.95rem;
    }

    .container {
        padding: 0 12px;
    }

    .feature-card,
    .model-card,
    .plan-card,
    .info-card {
        padding: 15px 10px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 0.85rem;
        min-height: 40px;
    }

    .filter-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
        min-height: 36px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px;
        font-size: 16px;
    }

    .form-group textarea {
        min-height: 100px;
    }

    .plan-radio,
    .payment-option,
    .checkbox-group {
        padding: 10px;
        min-height: 40px;
    }

    .plan-header {
        font-size: 0.9rem;
    }

    .checkout-left,
    .checkout-right {
        padding: 15px;
    }

    .order-summary {
        padding: 15px;
        margin-bottom: 15px;
    }

    .summary-item {
        padding: 8px 0;
        font-size: 0.9rem;
    }

    .modal-content {
        padding: 20px;
        max-width: 98%;
        border-radius: 12px;
    }

    .close {
        right: 10px;
        top: 10px;
        font-size: 1.5rem;
    }

    .features {
        padding: 40px 15px;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    .form-section {
        padding: 12px 0;
        gap: 10px;
    }

    .form-section h3 {
        font-size: 0.95rem;
    }

    .trust-item {
        padding: 15px 10px;
    }

    .trust-item i {
        font-size: 2rem;
    }

    .trust-item h4 {
        font-size: 0.95rem;
    }

    .trust-item p {
        font-size: 0.8rem;
    }

    .select-car-item {
        padding: 12px;
        gap: 8px;
    }

    .select-car-item button {
        min-height: 40px;
        font-size: 0.8rem;
    }

    .success-modal {
        padding: 20px;
    }

    .success-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }

    .success-modal h2 {
        font-size: 1.2rem;
    }

    .success-modal > p {
        font-size: 0.9rem;
    }

    .plan-details {
        padding: 15px;
    }

    .plan-details h3 {
        font-size: 1rem;
    }

    .features-list li {
        padding: 6px 0;
        font-size: 0.85rem;
    }
}
