/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --primary: #0ea5e9;
    --primary-hover: #0284c7;
    --darkblue: #0b1120;
    --text-light: #f3f4f6;
    --text-muted: #9ca3af;
    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--darkblue);
    color: var(--text-light);
    font-family: var(--font-sans);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* 
  ضبط الحاوية الرئيسية (Container) لتقليل الفراغات الجانبية 
  وتوسيط المحتوى دون تشتت في الشاشات الكبيرة 
*/
.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hidden {
    display: none !important;
}

/* =========================================
   2. PRELOADER (Intro Screen)
   ========================================= */
#intro-screen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: radial-gradient(circle at center, #111822 0%, #020508 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 1.5s ease, visibility 1.5s ease;
}

.intro-logo {
    position: absolute;
    max-width: 180px;
    opacity: 0;
    transform: scale(0.8);
}

@keyframes logoGlow {
    0% {
        opacity: 0;
        transform: scale(0.8);
        filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0));
    }

    30% {
        opacity: 1;
        transform: scale(1.1);
        filter: drop-shadow(0 0 30px #fff) drop-shadow(0 0 60px rgba(255, 255, 255, 0.4));
    }

    70% {
        opacity: 1;
        transform: scale(1.1);
        filter: drop-shadow(0 0 15px #fff);
    }

    100% {
        opacity: 0;
        transform: scale(0.9);
        filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0));
    }
}

.skip-container {
    position: absolute;
    bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 1s;
}

.skip-checkbox {
    width: 1rem;
    height: 1rem;
    accent-color: var(--primary);
    cursor: pointer;
}

.skip-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
}

#main-content {
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.5s ease-in-out;
}

/* =========================================
   3. NAVBAR (تصميم موحد ذكي)
   ========================================= */
.top-nav {
    position: fixed;
    width: 100%;
    z-index: 100;
    background: rgba(11, 17, 32, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 2px solid rgb(255 255 255 / 20%);
    transition: 0.3s;
    border-radius: 0 0 1.5rem 1.5rem;
}

.nav-container {
    position: relative;
    max-width: 1440px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.site-logo {
    height: 2.5rem;
    object-fit: contain;
}

/* الروابط في المنتصف (للكومبيوتر) */
.nav-links-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: #d1d5db;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: 0.3s;
}

.nav-link:hover {
    color: var(--primary);
}

/* الجزء الأيمن */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-primary-outline {
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    border: 1px solid var(--primary);
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary-outline:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

/* هوية المستخدم (الصورة + الاسم + الدور) */
.nav-user-section {
    position: relative;
}

.nav-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.375rem 1.25rem 0.375rem 0.375rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: 0.3s;
}

.nav-user-info:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-avatar-img {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-text-details {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.nav-user-name {
    font-size: 0.875rem;
    font-weight: bold;
    color: white;
}

.user-role {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ألوان الأدوار */
.role-dev {
    color: #c084fc;
}

/* أرجواني للمطور */
.role-admin {
    color: var(--primary);
}

/* أزرق للمدير */
.role-customer {
    color: #34d399;
}

/* أخضر للزبون */

.mobile-dropdown-icon {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

/* القائمة المنسدلة الموحدة */
.mobile-nav-dropdown {
    position: absolute;
    top: 130%;
    right: 0;
    background: rgba(11, 17, 32, 0.98);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 0.5rem;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.mobile-nav-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-link {
    padding: 0.75rem 1rem;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: 0.3s;
}

.mobile-link:hover,
.mobile-link.active {
    background: rgba(14, 165, 233, 0.15);
    color: var(--primary);
}

.menu-divider {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin: 0.5rem 0;
}

.text-red {
    color: #f87171 !important;
}

.text-red:hover {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #ef4444 !important;
}

/* إخفاء روابط الموقع داخل القائمة المنسدلة في الكومبيوتر */
@media (min-width: 993px) {
    .mobile-only-links {
        display: none;
    }
}

.mobile-menu-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
}

/* التجاوب مع الهاتف */
@media (max-width: 992px) {
    .nav-links-center {
        display: none;
    }

    .desktop-only {
        display: none;
    }

    /* إظهار الروابط داخل القائمة المنسدلة */
    .mobile-only-links {
        display: block;
    }

    /* إذا كان غير مسجل، يظهر الهامبرغر */
    .mobile-menu-btn {
        display: block;
    }
}

/* =========================================
   زر الهامبرغر المتحرك (Burger Animation)
   ========================================= */
.burger {
    position: relative;
    width: 30px;
    height: 23px;
    background: transparent;
    cursor: pointer;
    display: none;
    /* مخفي في الكومبيوتر */
}

.burger input {
    display: none;
}

.burger span {
    display: block;
    position: absolute;
    height: 4px;
    width: 100%;
    background: white;
    /* تم التعديل إلى الأبيض ليتناسب مع الثيم */
    border-radius: 9px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.burger span:nth-of-type(1) {
    top: 0px;
    transform-origin: left center;
}

.burger span:nth-of-type(2) {
    top: 50%;
    transform: translateY(-50%);
    transform-origin: left center;
}

.burger span:nth-of-type(3) {
    top: 100%;
    transform-origin: left center;
    transform: translateY(-100%);
}

.burger input:checked~span:nth-of-type(1) {
    transform: rotate(45deg);
    top: 0px;
    left: 5px;
}

.burger input:checked~span:nth-of-type(2) {
    width: 0%;
    opacity: 0;
}

.burger input:checked~span:nth-of-type(3) {
    transform: rotate(-45deg);
    top: 28px;
    left: 5px;
}

/* إظهار الزر فقط في شاشات الهاتف */
@media (max-width: 992px) {
    .burger {
        display: block;
    }
}

/* =========================================
   4. HERO SECTION & 3D MIRROR
   ========================================= */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 6rem;
    overflow: hidden;
}

.hero-bg-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(11, 17, 32, 0.5) 70%, var(--darkblue) 100%);
}

.hero-glow {
    position: absolute;
    top: -15%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: rgba(14, 165, 233, 0.2);
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

@media(min-width: 768px) {
    .hero-content {
        flex-direction: row;
    }
}

.hero-text {
    text-align: center;
}

@media(min-width: 768px) {
    .hero-text {
        width: 50%;
        text-align: left;
        padding-right: 2rem;
    }
}

.location-badge {
    display: inline-block;
    padding: 0.25rem 1rem;
    border: 1px solid rgba(14, 165, 233, 0.5);
    border-radius: 9999px;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: rgba(14, 165, 233, 0.1);
    backdrop-filter: blur(4px);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: bold;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
    filter: drop-shadow(0 10px 8px rgba(0, 0, 0, 0.5));
}

@media(min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.text-gradient {
    background: linear-gradient(to right, #60a5fa, var(--primary));
    -webkit-background-clip: text;
    color: transparent;
}

.hero-subtitle {
    color: #d1d5db;
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 35rem;
    margin-inline: auto;
}

@media(min-width: 768px) {
    .hero-subtitle {
        margin-inline: 0;
    }
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    justify-content: center;
}

@media(min-width: 768px) {
    .hero-buttons {
        justify-content: flex-start;
    }
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.4);
    transition: 0.3s;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.btn-glass {
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    transition: 0.3s;
}

.btn-glass:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.hero-mirror-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

@media(min-width: 768px) {
    .hero-mirror-wrapper {
        width: 50%;
        margin-top: 0;
    }
}

.scene {
    perspective: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-wrapper {
    position: relative;
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.mirror-container {
    position: relative;
    width: 280px;
    height: 400px;
    transform: rotateY(-15deg) rotateX(2deg);
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

@media (min-width: 768px) {
    .mirror-container {
        width: 320px;
        height: 460px;
    }
}

.mirror-container:hover {
    transform: rotateY(-10deg) rotateX(0deg);
}

.mirror-glass {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(125deg, #2a3447 0%, #020617 100%);
    border-radius: 15px;
    box-shadow: 30px 40px 60px -10px rgba(0, 0, 0, 0.9), inset 0 0 20px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: all 0.6s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pattern-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    z-index: 2;
}

.pattern-svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible !important;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.8));
}

.pattern-path {
    fill: rgba(255, 255, 255, 0.08);
    transition: all 0.5s ease;
}

.mirror-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    opacity: 0.15;
    pointer-events: none;
    z-index: 1;
    filter: grayscale(100%);
}

.apple-btn {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 32px;
    cursor: pointer;
    transition: all 0.4s ease;
    z-index: 10;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.apple-btn:hover {
    transform: translateX(-50%) scale(1.15);
    color: #fff;
}

.tooltip-box {
    position: absolute;
    left: -110px;
    bottom: 60px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.75rem;
    white-space: nowrap;
    animation: float-tip 3s infinite ease-in-out;
    transform: translateZ(50px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@keyframes float-tip {

    0%,
    100% {
        transform: translateY(0) translateZ(50px);
    }

    50% {
        transform: translateY(-5px) translateZ(50px);
    }
}

.glare {
    position: absolute;
    top: 0;
    left: -150%;
    width: 150%;
    height: 100%;
    background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    transform: skewX(-25deg);
    pointer-events: none;
    z-index: 5;
    animation: shine-loop 5s infinite;
}

@keyframes shine-loop {
    0% {
        left: -150%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    40% {
        left: 150%;
        opacity: 1;
    }

    100% {
        left: 150%;
        opacity: 0;
    }
}

.led-backlight {
    position: absolute;
    inset: 10px;
    border-radius: 30px;
    background: #fff;
    opacity: 0;
    filter: blur(40px);
    transform: translateZ(-30px);
    transition: 0.6s ease;
    z-index: -1;
}

.mirror-container.mode-white .mirror-glass {
    background: linear-gradient(135deg, #374151 0%, #111827 100%);
    border-color: rgba(255, 255, 255, 0.6);
}

.mirror-container.mode-white .led-backlight {
    opacity: 0.7;
    background: #e0f2fe;
    box-shadow: 0 0 120px 30px rgba(224, 242, 254, 0.4);
}

.mirror-container.mode-white .pattern-path {
    fill: #ffffff;
    filter: drop-shadow(0 0 0px #ffffff) drop-shadow(0 0 5px rgba(255, 255, 255, 0.8));
}

.mirror-container.mode-white .apple-btn {
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary);
}

.mirror-container.mode-gold .mirror-glass {
    background: linear-gradient(135deg, #423e2c 0%, #1a1600 100%);
    border-color: rgba(255, 215, 0, 0.6);
}

.mirror-container.mode-gold .led-backlight {
    opacity: 0.7;
    background: #ffd700;
    box-shadow: 0 0 120px 30px rgba(255, 215, 0, 0.3);
}

.mirror-container.mode-gold .pattern-path {
    fill: #fff7cc;
    filter: drop-shadow(0 0 0px #ffd700) drop-shadow(0 0 5px rgba(255, 215, 0, 0.8));
}

.mirror-container.mode-gold .apple-btn {
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary);
}

/* =========================================
   5. ABOUT SECTION
   ========================================= */
.about-section {
    padding: 6rem 0;
    background: var(--darkblue);
    position: relative;
    overflow: hidden;
}

.about-glow {
    position: absolute;
    left: -10%;
    top: 20%;
    width: 400px;
    height: 400px;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}

.about-container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 4rem;
    align-items: center;
}

@media(min-width: 1024px) {
    .about-container {
        flex-direction: row;
    }
}

.about-image-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

@media(min-width: 1024px) {
    .about-image-wrapper {
        width: 50%;
    }
}

.image-box {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 32rem;
}

.decor-tl {
    position: absolute;
    top: -1rem;
    left: -1rem;
    width: 5rem;
    height: 5rem;
    border-top: 2px solid var(--primary);
    border-left: 2px solid var(--primary);
    border-top-left-radius: 1.5rem;
    z-index: 0;
}

.decor-br {
    position: absolute;
    bottom: -1rem;
    right: -1rem;
    width: 5rem;
    height: 5rem;
    border-bottom: 2px solid var(--primary);
    border-right: 2px solid var(--primary);
    border-bottom-right-radius: 1.5rem;
    z-index: 0;
}

.about-img {
    position: relative;
    z-index: 10;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid #1f2937;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.quality-badge {
    position: absolute;
    bottom: -1.5rem;
    left: 2rem;
    background: rgba(11, 17, 32, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(14, 165, 233, 0.5);
    padding: 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.badge-icon {
    width: 3rem;
    height: 3rem;
    background: rgba(14, 165, 233, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
}

.badge-text {
    font-size: 0.875rem;
    color: #e5e7eb;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.about-text-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media(min-width: 1024px) {
    .about-text-wrapper {
        width: 50%;
        padding-left: 2rem;
    }
}

.section-tag {
    color: var(--primary);
    font-weight: bold;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    display: block;
}

.section-title {
    font-size: 1.875rem;
    font-weight: bold;
    color: white;
    margin-bottom: 1.5rem;
}

@media(min-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
}

.about-description {
    color: #d1d5db;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 0.875rem;
}

@media(min-width: 768px) {
    .about-description {
        font-size: 1rem;
    }
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.feature-item:hover {
    border-color: rgba(14, 165, 233, 0.3);
}

.feature-icon {
    color: var(--primary);
    font-size: 1.25rem;
    width: 2rem;
    text-align: center;
}

.feature-item h4 {
    color: white;
    font-weight: bold;
    font-size: 0.875rem;
}

.feature-item p {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* =========================================
   6. SERVICES SECTION
   ========================================= */
.services-section {
    padding: 6rem 0;
    background: #080c17;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.services-glow {
    position: absolute;
    right: -10%;
    bottom: 10%;
    width: 400px;
    height: 400px;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
}

.section-header {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto 4rem auto;
    position: relative;
    z-index: 10;
}

.section-header .section-title {
    font-family: var(--font-serif);
    font-size: 2rem;
}

@media(min-width: 768px) {
    .section-header .section-title {
        font-size: 3rem;
    }
}

.section-subtitle {
    color: var(--text-muted);
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    position: relative;
    z-index: 10;
}

@media(min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 1rem;
    transition: 0.5s;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 30px -10px rgba(14, 165, 233, 0.2);
}

.service-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(to bottom right, #1f2937, #111827);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: 0.3s;
}

.service-card:hover .service-icon {
    border-color: rgba(14, 165, 233, 0.5);
}

.service-icon i {
    font-size: 1.25rem;
    color: var(--primary);
    transition: 0.3s;
}

.service-card:hover .service-icon i {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: bold;
    color: white;
    margin-bottom: 0.5rem;
    font-family: var(--font-serif);
}

.service-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

@media(min-width: 768px) {
    .wide-card {
        grid-column: span 2;
    }
}

@media(min-width: 1024px) {
    .wide-card {
        grid-column: span 3;
        width: 33.33%;
        justify-self: center;
    }
}

@media(min-width: 1280px) {
    .wide-card {
        grid-column: span 1;
        width: auto;
        justify-self: auto;
        grid-column-start: 2;
    }
}

/* =========================================
   7. STATS SECTION (مُعدل لإضافة تأثير الهوفر)
   ========================================= */
.stats-section {
    padding: 4rem 0;
    background: linear-gradient(to bottom, #080c17, var(--darkblue));
    position: relative;
    overflow: hidden;
}

.stats-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    animation: pulse 2s infinite alternate;
}

.stats-glow.left {
    left: 10%;
    top: 10%;
}

.stats-glow.right {
    left: 80%;
    top: 10%;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    text-align: center;
    position: relative;
    z-index: 10;
}

@media(min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 1.5rem;
    border-radius: 1rem;
    transition: all 0.4s ease;
    /* أنيميشن سلس */
}

/* تأثير التمرير (Hover) كما طلبت */
.stat-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 30px -10px rgba(14, 165, 233, 0.3);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    transition: transform 0.4s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1);
}

.stat-card h4 {
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 1rem;
    color: var(--text-muted);
}

/* =========================================
   8. SHOP SECTION (مُعدل لإضافة تأثير الهوفر)
   ========================================= */
.shop-section {
    padding: 6rem 0;
    background: var(--darkblue);
    position: relative;
    overflow: hidden;
}

.shop-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
}

@media(min-width: 768px) {
    .shop-header {
        flex-direction: row;
        align-items: flex-end;
    }
}

.shop-header .section-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin-bottom: 0;
}

.shop-header .section-subtitle {
    color: var(--primary);
    margin-top: 0.5rem;
}

.shop-link {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: 0.3s;
    margin-top: 1rem;
}

@media(min-width: 768px) {
    .shop-link {
        margin-top: 0;
    }
}

.shop-link:hover {
    color: white;
}

.shop-link:hover .icon {
    transform: translateX(4px);
}

.shop-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media(min-width: 640px) {
    .shop-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(min-width: 1024px) {
    .shop-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.product-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: all 0.4s ease;
    /* أنيميشن سلس */
}

/* تأثير التمرير (Hover) الشامل للبطاقة */
.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 15px 35px -10px rgba(14, 165, 233, 0.3);
}

.product-img-wrapper {
    height: 22rem; /* تم زيادة الطول قليلاً ليناسب المرايا الطولية */
    background: #000; /* خلفية سوداء لتعزيز الإشعاع */
    overflow: hidden;
    position: relative;
    border-radius: 1rem 1rem 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ambient-bg {
    position: absolute;
    top: -10%; left: -10%;
    width: 120%; height: 120%;
    background-size: cover;
    background-position: center;
    filter: blur(20px) opacity(0.4);
    z-index: 0;
    transition: all 0.5s ease;
}

.product-card:hover .ambient-bg {
    filter: blur(25px) opacity(0.6);
    transform: scale(1.1);
}

.product-img-wrapper img.main-product-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* السطر السحري لعرض الصورة بالكامل */
    position: relative;
    z-index: 1;
    transition: transform 0.6s ease;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.6)); /* ظل خفيف يعطي بعداً ثلاثياً */
}

.product-card:hover img.main-product-img {
    transform: scale(1.05); /* تكبير ناعم للصورة عند التمرير */
}

/* =========================================
   إصلاح تداخل المعلومات مع الصورة (مسطح وأنيق)
   ========================================= */
.product-info-wrapper {
    padding: 1.25rem 1.5rem;
    background: transparent;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 0; /* السطر السحري: إزالة التداخل السلبي الذي كان يغطي الصورة */
}

.product-info {
    /* إزالة الخلفية البارزة لتبدو مدمجة مع الكارت الأساسي */
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    transition: all 0.4s ease;
}

.product-info h3 {
    font-size: 1.15rem;
    font-weight: bold;
    color: white;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0; /* تم تقليل المسافة لأننا أزلنا السعر */
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    font-weight: bold;
    color: var(--primary);
}

.cart-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.product-card:hover .cart-btn {
    background: var(--primary);
    color: white;
}

.shop-footer {
    text-align: center;
    margin-top: 4rem;
}

.btn-outline {
    display: inline-block;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.75rem 2.5rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* =========================================
   9. FOOTER
   ========================================= */
.footer {
    background: #00000047;
    color: #d1d5db;
    border-top: 1px solid #111827;
    padding-top: 4rem;
    padding-bottom: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media(min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-logo {
    height: 4.5rem;
    object-fit: contain;
    margin-bottom: 1.5rem;
}

.footer-brand p {
    color: #6b7280;
    line-height: 1.6;
    max-width: 28rem;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.social-links a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.footer h4 {
    color: white;
    font-weight: bold;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
}

.footer-contact ul,
.footer-hours ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.875rem;
    color: #9ca3af;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-contact i {
    color: var(--primary);
    font-size: 1.25rem;
}

.footer-hours li {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #1f2937;
    padding-bottom: 0.5rem;
}

.footer-hours li.closed span:last-child {
    color: #ef4444;
}

.footer-bottom {
    border-top: 1px solid #111827;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: #4b5563;
}
/* === شارة النار النابضة (Hot Badge) === */
.hot-fire-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ef4444, #f97316); /* تدرج لوني ناري */
    color: white;
    font-size: 0.85rem;
    font-weight: bold;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.4);
    animation: fire-pulse 2s infinite; /* حركة النبض */
}

@keyframes fire-pulse {
    0% { transform: scale(1); box-shadow: 0 4px 10px rgba(239, 68, 68, 0.4); }
    50% { transform: scale(1.1); box-shadow: 0 4px 20px rgba(239, 68, 68, 0.8); }
    100% { transform: scale(1); box-shadow: 0 4px 10px rgba(239, 68, 68, 0.4); }
}