:root {
    --primary: #2a84dd;
    --primary-soft: #e8f4ff;
    --primary-soft-2: #f3f8ff;
    --accent: #8cc8ff;
    --accent-soft: #cfe6ff;
    --bg: #f5f9ff;
    --text: #0c1b2e;
    --muted: #6b7b90;
    --border-soft: rgba(122, 165, 210, 0.25);
    --shadow-soft: 0 18px 35px rgba(29, 97, 164, 0.12);
}

/* reset بسيط */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Almarai", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        sans-serif;
    background: radial-gradient(circle at top, #ffffff 0%, var(--bg) 55%, #dbeaff 100%);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
    position: relative;
    padding-bottom: 60px;
}

/* شريط معلومات الاتصال في الزاوية */
.corner-contact {
    position: fixed;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 18px;
    padding: 10px 16px;
    font-size: 0.75rem;
    box-shadow: 0 10px 25px rgba(10, 50, 100, 0.16);
    border: 1px solid var(--border-soft);
    backdrop-filter: blur(12px);
    z-index: 20;
}

.corner-contact div + div {
    margin-top: 2px;
}

.corner-contact span {
    font-weight: 700;
    color: var(--primary);
}

/* اليدر */
.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px min(5vw, 60px);
    position: sticky;
    top: 0;
    z-index: 15;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0.96),
        rgba(233, 243, 255, 0.98)
    );
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-soft);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-oval {
    width: 70px;
    height: 70px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 20%, #ffffff, var(--primary-soft));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(31, 121, 208, 0.25);
}

.logo-oval svg {
    width: 60px;
    height: 60px;
}

.logo-oval ellipse {
    fill: url(#logoGrad);
}

#logoGrad stop:first-child {
    stop-color: var(--primary);
}
#logoGrad stop:last-child {
    stop-color: var(--accent);
}

.logo-car {
    fill: rgba(255, 255, 255, 0.9);
    stroke: var(--accent);
    stroke-width: 1.5;
}

.logo-wheel {
    fill: #ffffff;
    stroke: var(--primary);
    stroke-width: 1.5;
}

.brand-text h1 {
    font-size: 1.25rem;
    font-weight: 800;
}

.brand-text p {
    font-size: 0.85rem;
    color: var(--muted);
}

/* القائمة */
.main-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.9rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--muted);
    padding: 6px 10px;
    border-radius: 999px;
    position: relative;
    overflow: hidden;
    transition: color 0.25s ease, background 0.25s ease, transform 0.2s ease;
}

.main-nav a::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    inset-block-end: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.25s ease;
}

.main-nav a:hover {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-1px);
}

.main-nav a:hover::before {
    width: 100%;
}

/* أيقونة 3 شرطات (هامبورجر) */
.nav-toggle {
    display: none; /* نخف الـ checkbox نفسه */
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    cursor: pointer;
    border: 1px solid rgba(111, 150, 200, 0.5);
    background: rgba(255, 255, 255, 0.9);
    padding: 4px;
    margin-inline-start: 8px;
}

.hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--primary);
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.hamburger span + span {
    margin-top: 3px;
}

/* تحويل الشرطات إلى X عند الفتح */
.nav-toggle:checked + .hamburger span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}
.nav-toggle:checked + .hamburger span:nth-child(2) {
    opacity: 0;
}
.nav-toggle:checked + .hamburger span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}

/* الرئيسية */
.hero {
    padding: 40px min(5vw, 60px) 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-oval {
    max-width: 1100px;
    width: 100%;
    background: radial-gradient(circle at 10% 0%, #ffffff, var(--primary-soft));
    border-radius: 40px;
    padding: clamp(24px, 4vw, 32px);
    box-shadow: var(--shadow-soft);
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.hero-oval::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8), transparent);
    top: -120px;
    inset-inline-end: -60px;
    opacity: 0.6;
}

.hero-text {
    position: relative;
    z-index: 1;
}

.animated-title {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 1px;
    margin-bottom: 10px;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--primary);
}

.animated-title span {
    opacity: 0;
    transform: translateY(12px);
    animation: bounceLetter 0.8s forwards;
    animation-delay: calc(var(--i) * 70ms);
}

@keyframes bounceLetter {
    0% {
        opacity: 0;
        transform: translateY(16px) scale(0.96);
    }
    60% {
        opacity: 1;
        transform: translateY(-4px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-text h2 {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.hero-text p {
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: 18px;
    max-width: 34rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn {
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 9px 20px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease,
        color 0.2s ease;
    white-space: nowrap;
}

.btn.primary-btn {
    background: linear-gradient(120deg, var(--primary), var(--accent));
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(24, 102, 175, 0.4);
}

.btn.primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(24, 102, 175, 0.35);
}

.btn.ghost-btn {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    border: 1px solid rgba(84, 148, 211, 0.3);
}

.btn.ghost-btn:hover {
    background: #ffffff;
    transform: translateY(-1px);
}

.btn.full-width {
    width: 100%;
}

/* SVG داخل الهيرو */
.hero-svg-wrap {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-svg {
    width: 100%;
    max-width: 260px;
}

.hero-road {
    fill: url(#roadGrad);
    opacity: 0.5;
}

#roadGrad stop:first-child {
    stop-color: var(--primary-soft-2);
}
#roadGrad stop:last-child {
    stop-color: var(--accent-soft);
}

.hero-car rect {
    fill: #ffffff;
    stroke: var(--primary);
    stroke-width: 1.6;
}

.hero-car circle {
    fill: #ffffff;
    stroke: var(--primary);
    stroke-width: 1.6;
}

.hero-car {
    animation: drive 4s ease-in-out infinite;
}

@keyframes drive {
    0% {
        transform: translateX(-8px);
    }
    50% {
        transform: translateX(12px);
    }
    100% {
        transform: translateX(-8px);
    }
}

.speed-line {
    stroke: var(--accent);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 16 12;
    animation: dash 2.3s linear infinite;
}

@keyframes dash {
    to {
        stroke-dashoffset: -60;
    }
}

/* الأقسام العامة */
.section {
    padding: 40px min(5vw, 60px);
}

.section-header {
    text-align: right;
    margin-bottom: 24px;
}

.section-header h3 {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.section-header p {
    font-size: 0.9rem;
    color: var(--muted);
}

/* من نحن */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 22px;
    padding: 16px 18px;
    box-shadow: 0 10px 20px rgba(38, 103, 167, 0.12);
    border: 1px solid var(--border-soft);
    font-size: 0.9rem;
}

.card h4 {
    margin-bottom: 6px;
    font-size: 1rem;
}

/* الخدمات */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.service-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 22px;
    padding: 16px 16px 18px;
    text-align: right;
    box-shadow: 0 10px 20px rgba(38, 103, 167, 0.12);
    border: 1px solid var(--border-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
    font-size: 0.9rem;
}

.service-card svg {
    width: 100%;
    max-width: 120px;
    display: block;
    margin: 0 auto 10px;
}

.service-card rect {
    fill: var(--primary-soft);
    stroke: var(--primary);
}

.service-card circle {
    fill: #ffffff;
    stroke: var(--primary);
}

.service-card h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.service-card p {
    color: var(--muted);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 26px rgba(38, 103, 167, 0.18);
    border-color: rgba(63, 134, 208, 0.6);
}

/* مربعات متحركة بالصور */
.animated-cars-section {
    background: radial-gradient(circle at top, #ffffff, var(--primary-soft-2));
    border-block: 1px solid var(--border-soft);
}

.moving-cards-wrapper {
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    padding: 14px 0;
    box-shadow: 0 10px 26px rgba(37, 97, 160, 0.2);
}

.moving-cards {
    display: flex;
    gap: 16px;
    animation: scrollCards 28s linear infinite;
    padding-inline: 10px;
}

@keyframes scrollCards {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.car-card {
    min-width: 230px;
    max-width: 260px;
    background: linear-gradient(150deg, var(--primary-soft-2), #ffffff);
    border-radius: 20px;
    padding: 14px 16px;
    border: 1px solid var(--border-soft);
    box-shadow: 0 10px 22px rgba(46, 104, 165, 0.16);
    font-size: 0.85rem;
    text-align: right;
}

.car-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 8px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.car-card h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.car-card p {
    color: var(--muted);
}

/* طلب خدمة */
.request-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 18px;
    align-items: flex-start;
}

.request-form {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 22px;
    padding: 18px 18px 20px;
    box-shadow: 0 16px 30px rgba(36, 104, 171, 0.18);
    border: 1px solid var(--border-soft);
}

.form-group {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(129, 163, 200, 0.55);
    padding: 8px 10px;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    background: #f8fbff;
    transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px rgba(42, 132, 221, 0.3);
    background: #ffffff;
}

.form-note {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 8px;
}

.request-info-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 22px;
    padding: 16px 18px;
    border: 1px solid var(--border-soft);
    box-shadow: 0 12px 24px rgba(36, 104, 171, 0.16);
    font-size: 0.9rem;
}

.request-info-card h4 {
    margin-bottom: 6px;
}

.request-info-card ul {
    padding-inline-start: 18px;
    margin: 6px 0 10px;
}

.request-info-card li {
    margin-bottom: 4px;
}

.request-svg {
    width: 100%;
    margin-top: 8px;
}

.request-svg rect {
    fill: var(--primary-soft);
    stroke: var(--primary);
}

.request-svg circle {
    fill: #ffffff;
    stroke: var(--primary);
}

.request-svg line {
    stroke: var(--accent);
    stroke-width: 2;
}

/* تواصل معنا */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 16px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 22px;
    padding: 16px 18px;
    border: 1px solid var(--border-soft);
    box-shadow: 0 12px 24px rgba(36, 104, 171, 0.18);
    font-size: 0.9rem;
}

.contact-card h4 {
    margin-bottom: 6px;
}

.contact-card ul {
    list-style: none;
    margin-bottom: 8px;
}

.contact-card li + li {
    margin-top: 3px;
}

.contact-svg-card svg {
    width: 100%;
    max-width: 210px;
    display: block;
    margin-bottom: 10px;
}

.contact-svg-card rect,
.contact-svg-card circle {
    fill: var(--primary-soft);
    stroke: var(--primary);
}

.contact-svg-card polyline,
.contact-svg-card path,
.contact-svg-card line {
    fill: none;
    stroke: var(--primary);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* الفوتر */
.main-footer {
    text-align: center;
    font-size: 0.8rem;
    color: var(--muted);
    padding: 18px 10px 22px;
    margin-top: 14px;
}

/* جاوب مع الشاشات */
@media (max-width: 900px) {
    .main-header {
        flex-wrap: wrap;
        gap: 10px;
    }

    .main-nav {
        position: absolute;
        inset-inline: 0;
        top: 100%;
        background: rgba(246, 250, 255, 0.97);
        backdrop-filter: blur(16px);
        flex-direction: column;
        align-items: flex-start;
        padding: 0 18px;
        max-height: 0;
        overflow: hidden;
        border-bottom: 1px solid rgba(180, 200, 225, 0.5);
        transition: max-height 0.25s ease, padding-bottom 0.25s ease;
    }

    .nav-toggle:checked ~ .main-nav {
        max-height: 260px;
        padding-bottom: 10px;
    }

    .main-nav a {
        padding: 8px 0;
        width: 100%;
    }

    .hero-oval {
        grid-template-columns: 1fr;
    }

    .hero-svg-wrap {
        order: -1;
        justify-content: center;
    }

    .about-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .request-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 901px) {
    .hamburger {
        display: none;
    }

    .main-nav {
        position: static;
        display: flex;
        max-height: none;
        padding: 0;
        background: transparent;
        border-bottom: none;
    }
}

@media (max-width: 600px) {
    .corner-contact {
        font-size: 0.7rem;
        padding: 8px 10px;
    }

    .hero {
        padding-top: 24px;
    }

    .hero-oval {
        border-radius: 28px;
        padding: 18px;
    }

    .animated-title {
        font-size: 1.6rem;
    }

    .about-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .moving-cards {
        animation-duration: 22s;
    }
}
.hero-shine {
    position: relative;
    display: inline-block;
    color: #000000; /* اللون الأسود */
    overflow: hidden;
}

.hero-shine::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255, 255, 255, 0.6) 50%,
        transparent 100%
    );
    animation: shineMove 2.5s infinite;
}

@keyframes shineMove {
    0%   { left: -100%; }
    50%  { left: 100%; }
    100% { left: 100%; }
}
.hero-text h2.hero-shine {
    color: #000 !important;
}

