/* Modern Design Refresh - Chery Algeria */
:root {
    --primary: #e30613;
    --primary-dark: #c10512;
    --dark: #1a1a1a;
    --light: #f8f9fa;
    --gray: #6c757d;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: var(--white);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-list a {
    color: var(--dark);
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-list a:hover {
    color: var(--primary);
}

.nav-list a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.nav-list a:hover::after {
    width: 100%;
}

#lang-toggle {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

#lang-toggle:hover {
    background: var(--primary-dark);
}

/* Hero Section */
#hero {
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1583121274602-3e2820c6988f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80') no-repeat center center/cover;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 120px 20px 80px;
    margin-top: 0;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid var(--primary);
    text-decoration: none;
}

.btn:hover {
    background: transparent;
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Quick Contact Widget */
.quick-contact {
    position: fixed;
    bottom: 30px;
    inset-inline-end: 30px;
    z-index: 3000;
}

.qc-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: white;
    font-size: 1.5em;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.qc-toggle:hover {
    background: var(--primary-dark);
    transform: scale(1.1) rotate(90deg);
}

.qc-toggle::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.qc-toggle:hover::before {
    transform: scale(1.5);
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.qc-menu {
    position: absolute;
    bottom: 60px;
    inset-inline-end: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.16);
    padding: 8px;
    min-width: 180px;
    display: none;
}
.qc-menu.show { display: block; animation: menuPop .15s ease-out; }
@keyframes menuPop { from { transform: translateY(6px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.qc-item {
    display: block;
    padding: 10px 12px;
    color: #222;
    text-decoration: none;
    border-radius: 8px;
}
.qc-item:hover { background: #f3f3f3; }
/* Models Section */
#models {
    padding: 6rem 0;
    background: var(--light);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 4px;
    background: var(--primary);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.models-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
}

.card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: none !important;
    position: relative;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.card-img-container {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
    position: relative;
}

.card h3 {
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.card p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.card .btn {
    width: 100%;
    text-align: center;
    padding: 0.7rem;
    font-size: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
}

.card .btn:hover {
    transform: translateY(-2px);
}
/* Services Section */
#services {
    padding: 6rem 0;
    background: var(--white);
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: var(--primary-dark);
    transform: rotateY(180deg);
}

.service-card h3 {
    color: var(--dark);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Contact Section */
#contact {
    padding: 6rem 0;
    background: var(--light);
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    padding: 0 2rem;
}

.contact-info {
    margin-bottom: 2rem;
}

.contact-info h3 {
    color: var(--dark);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.contact-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: var(--primary);
}

.contact-details {
    list-style: none;
}

.contact-details li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--gray);
}

.contact-details i {
    margin-left: 1rem;
    color: var(--primary);
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark);
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.1);
    outline: none;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.btn-submit {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 1rem;
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(227, 6, 19, 0.2);
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0 2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--white);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary);
}
header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    height: 70px;
    position: sticky;
    top: 0;
    z-index: 1000;
}
section { scroll-margin-top: 80px; }
.logo img {
    height: 48px;
}
nav {
    display: flex;
    align-items: center;
}
.nav-list {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-list li a {
    text-decoration: none;
    color: #222;
    font-weight: 600;
    font-size: 1.05em;
    transition: color 0.2s;
}
.nav-list li a:hover {
    color: #b80000;
    text-decoration: underline;
    text-underline-offset: 4px;
}
#lang-toggle {
    background: #b80000;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 6px 18px;
    margin-right: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}
#lang-toggle:hover {
    background: #d90000;
}
#hero {
    background: linear-gradient(120deg, #0a2342 0%, #274690 100%);
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
#hero::before,
#hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.15;
}
#hero::before {
    width: 360px; height: 360px;
    background: #fff;
    top: -80px; inset-inline-start: -120px;
}
#hero::after {
    width: 280px; height: 280px;
    background: #b80000;
    bottom: -60px; inset-inline-end: -80px;
}
.hero-content {
    background: rgba(255,255,255,0.85);
    padding: 32px 48px;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
    position: relative;
    z-index: 2;
}
.hero-slider-img {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    max-width: 600px;
    max-height: 320px;
    width: 95vw;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 4px 32px rgba(39,70,144,0.16);
    background: #fff;
    transition: opacity 0.5s, transform 0.3s;
    z-index: 3;
}
.hero-slider-img:hover {
    transform: translate(-50%, -50%) scale(1.01);
}
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    color: #274690;
    border: none;
    box-shadow: 0 2px 12px rgba(39,70,144,0.15);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 2em;
    font-weight: bold;
    cursor: pointer;
    z-index: 4;
    opacity: 0.85;
    transition: background 0.2s, opacity 0.2s;
}
.slider-btn-left {
    left: 24px;
}
.slider-btn-right {
    right: 24px;
}
.slider-btn:hover {
    background: #274690;
    color: #fff;
    opacity: 1;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo img.gely-logo {
    height: 32px;
    width: auto;
    margin-right: 8px;
    margin-left: 0;
    filter: none;
    background: none;
}
.hero-content h1,
.hero-content p {
    transition: opacity 0.5s;
}
.hero-slider-img ~ .hero-content h1,
.hero-slider-img ~ .hero-content p {
    opacity: 0.1;
}

#models {
    background: #fff;
    padding: 48px 0 32px 0;
}
#models h2 {
    text-align: center;
    margin-bottom: 32px;
    color: #b80000;
}
.models-list {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
}
.model-card {
    background: #f7f7f7;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    width: 320px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.model-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 32px rgba(184,0,0,0.13);
}
.model-card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    background: #fff;
    display: block;
    margin: 0 auto;
    padding: 10px 0;
    border-radius: 0;
}
.model-card .model-info {
    padding: 18px 16px 10px 16px;
    text-align: center;
}
.model-card .model-title {
    font-size: 1.2em;
    color: #b80000;
    font-weight: bold;
    margin-bottom: 6px;
}
.model-card .model-desc {
    font-size: 1em;
    color: #444;
    margin-bottom: 12px;
}
.model-card .order-btn {
    background: #b80000;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 8px 24px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}
.model-card .order-btn:hover {
    background: #d90000;
}
#services {
    background: #fafafa;
    padding: 40px 0;
}
#services h2 {
    text-align: center;
    color: #b80000;
    margin-bottom: 24px;
}
#services ul {
    list-style: none;
    padding: 0;
    max-width: 420px;
    margin: 0 auto;
}
#services li {
    background: #fff;
    margin-bottom: 12px;
    padding: 14px 20px;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
    font-size: 1.07em;
}
#contact {
    background: #fff;
    padding: 40px 0 60px 0;
}
#contact h2 {
    text-align: center;
    color: #b80000;
    margin-bottom: 24px;
}
#contact-form {
    max-width: 420px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
#contact-form input, #contact-form textarea {
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #bbb;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
#contact-form input:focus, #contact-form textarea:focus {
    border-color: #274690;
    box-shadow: 0 0 0 3px rgba(39,70,144,0.15);
}
#contact-form textarea {
    min-height: 90px;
    resize: vertical;
}
#contact-form button {
    background: #b80000;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
}
#contact-form button:hover {
    background: #d90000;
}
footer {
    background: #222;
    color: #fff;
    text-align: center;
    padding: 18px 0;
    font-size: 1em;
    margin-top: 40px;
}
.modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}
.modal.hidden {
    display: none;
}
.modal-content {
    background: #fff;
    border-radius: 18px;
    padding: 32px 28px 22px 28px;
    max-width: 380px;
    min-width: 300px;
    position: relative;
    animation: modalPop .25s ease-out;
    box-shadow: 0 6px 32px rgba(184,0,0,0.13);
}
.modal .modal-content { will-change: transform, opacity; }
@keyframes modalPop {
  from { transform: translateY(10px) scale(0.98); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.close-modal {
    position: absolute;
    top: 10px;
    left: 18px;
    font-size: 2em;
    color: #b80000;
    cursor: pointer;
    font-weight: bold;
}
#order-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
#order-form input, #order-form select {
    padding: 9px 12px;
    border-radius: 8px;
    border: 1px solid #bbb;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
#order-form input:focus, #order-form select:focus {
    border-color: #274690;
    box-shadow: 0 0 0 3px rgba(39,70,144,0.15);
}
#order-form button {
    background: #b80000;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    margin-top: 6px;
}
#order-form button:hover {
    background: #d90000;
}
@media (max-width: 600px) {
    form#contact-form {
        max-width: 99vw;
        padding: 14px 4px 16px 4px;
    }
    .form-group input,
    .form-group textarea {
        font-size: 0.99em;
    }
    #contact h2 {
        font-size: 1.3em;
    }
}

#toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    max-width: 90vw;
    background: rgba(30,30,30,0.96);
    color: #fff;
    font-size: 1.08em;
    padding: 16px 32px;
    border-radius: 12px;
    text-align: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, bottom 0.3s;
    box-shadow: 0 4px 24px rgba(0,0,0,0.13);
}
#toast.show {
    opacity: 1;
    pointer-events: auto;
    bottom: 56px;
}
@media (max-width: 700px) {
    header {
        flex-direction: column;
        height: auto;
        padding: 12px;
    }
    .nav-list {
        gap: 12px;
    }
    .models-list {
        flex-direction: column;
        gap: 18px;
    }
    .model-card {
        width: 98vw;
        max-width: 340px;
    }
    .hero-content {
        padding: 18px 8px;
    }
}
