/* الخط: عام الحرف اليدوية (The Year of Handicrafts) - مجاني للاستخدام الشخصي والتجاري
   أسود (900) للعناوين والأزرار، ومتوسط (500) للنصوص. الأحرف اللاتينية تُعرض بخط Inter */
@font-face {
    font-family: 'Handicrafts';
    src: url('../fonts/Handicrafts-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Handicrafts';
    src: url('../fonts/Handicrafts-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-black: #050505;
    --accent-blue: #008cff;
    --accent-pink: #C850C0;
    --glass-bg: rgba(20, 20, 20, 0.6);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --font-main: 'Handicrafts', 'Inter', system-ui, sans-serif;
}

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

body {
    background-color: var(--bg-black);
    color: #fff;
    font-family: var(--font-main);
    overflow-x: hidden;
    direction: rtl;
}

.header {
    position: fixed;
    top: 15px;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    animation: fadeInUp 0.8s ease;
}

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

.nav {
    width: 92%;
    max-width: 1000px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 10px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.menu-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle:hover {
    background: var(--accent-blue);
    transform: scale(1.1);
}

.nav-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 0.5px;
    color: #f0f0f0;
}

.logo-img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: none;
    box-shadow: 0 0 15px rgba(0, 140, 255, 0.6);
    border: 1px solid rgba(0, 140, 255, 0.3);
}

.logo-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    z-index: 1500;
    transition: var(--transition);
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    pointer-events: none;
}

.sidebar.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.sidebar-content {
    width: 100%;
    height: 100%;
    max-width: 600px;
    padding: 50px 30px;
    border-radius: 40px;
    background: rgba(10, 10, 20, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: 0 0 50px rgba(0, 140, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.15);
    transform: scale(0.9);
    transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    margin: 20px;
}

.sidebar.active .sidebar-content {
    transform: scale(1);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.sidebar-title {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.close-btn {
    background: rgba(255, 50, 50, 0.1);
    border: 2px solid rgba(255, 50, 50, 0.3);
    color: #ff5555;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    font-size: 1.5rem;
    position: relative;
}

.close-btn:hover {
    background: rgba(255, 50, 50, 0.3);
    border-color: #ff5555;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 20px rgba(255, 50, 50, 0.5);
}

.close-btn::before,
.close-btn::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: #ff5555;
}

.close-btn::before {
    transform: rotate(45deg);
}

.close-btn::after {
    transform: rotate(-45deg);
}

.sidebar-links {
    list-style: none;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-links li {
    width: 100%;
}

.sidebar-links a {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px 30px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
    font-size: 1.2rem;
    font-weight: 700;
}

.sidebar-links a:hover {
    background: rgba(0, 140, 255, 0.2);
    border-color: var(--accent-blue);
    transform: translateX(-10px);
    box-shadow: 0 10px 30px rgba(0, 140, 255, 0.3);
}

.sidebar-links i {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
}

.hero {
    padding: 160px 20px 100px;
    text-align: center;
}

.mockup-container {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    perspective: 1500px;
}

.main-image {
    max-width: 300px;
    width: 100%;
    height: 600px;
    border-radius: 40px;
    transform: rotateX(5deg) rotateY(-15deg) rotateZ(3deg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: floatingMockup 5s ease-in-out infinite;
    transition: var(--transition);
    box-shadow: 0 0 50px 5px rgba(0, 140, 255, 0.5), 0 60px 180px 40px rgba(0, 140, 255, 0.4), 20px 20px 50px rgba(0, 0, 0, 0.6);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.main-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 40px;
}

@keyframes floatingMockup {
    0%,
    100% {
        transform: rotateX(5deg) rotateY(-15deg) rotateZ(3deg) translateY(0px);
    }
    50% {
        transform: rotateX(7deg) rotateY(-10deg) rotateZ(2deg) translateY(-20px);
    }
}

.hero-title {
    font-family: var(--font-main);
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 25px;
    line-height: 1.3;
}

.blue-text {
    color: var(--accent-blue);
    text-shadow: 0 0 20px rgba(0, 140, 255, 0.5);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #aaa;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-direction: row;
    flex-wrap: nowrap;
    max-width: 500px;
    margin: 40px auto 0;
    padding: 0 10px;
}

.btn {
    position: relative;
    padding: 15px 10px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 700;
    flex: 1;
    width: 50%;
    text-align: center;
    white-space: nowrap;
    font-size: 1rem;
    cursor: pointer;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.5s ease-out;
}

.btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 140, 255, 0.4);
}

.btn:active {
    transform: scale(0.95);
}

.btn-primary {
    background: rgba(0, 140, 255, 0.3);
    border: 1px solid rgba(0, 140, 255, 0.5);
    color: white;
}

.btn-primary:hover {
    border-color: rgba(0, 140, 255, 0.8);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-blue);
}


/* معرض الصور - بسيط ومباشر */

.gallery-wrapper {
    position: relative;
    margin: 80px auto 0;
    width: 100%;
    max-width: 900px;
    padding: 0 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

.preview-item {
    border-radius: 25px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* الصورة على اليسار */

.left-side {
    width: 200px;
    height: 380px;
    opacity: 0.6;
    transform: scale(0.85);
}


/* الصورة في المنتصف (النشطة) */

.center-active {
    width: 250px;
    height: 480px;
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 20px 50px rgba(0, 140, 255, 0.5);
    border-color: rgba(0, 140, 255, 0.5);
    z-index: 10;
}


/* الصورة على اليمين */

.right-side {
    width: 200px;
    height: 380px;
    opacity: 0.6;
    transform: scale(0.85);
}


/* أزرار التنقل */

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    background: linear-gradient(135deg, var(--accent-blue), #0066cc);
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 140, 255, 0.5);
}

.nav-arrow:hover {
    background: linear-gradient(135deg, #0099ff, var(--accent-blue));
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 12px 35px rgba(0, 140, 255, 0.7);
}

.nav-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.left-arrow {
    left: 5px;
}

.right-arrow {
    right: 5px;
}

.features {
    padding: 120px 20px 80px;
    text-align: center;
}

.section-title {
    font-family: var(--font-main);
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

@keyframes glowing-border {
    0% {
        box-shadow: 0 0 15px rgba(0, 140, 255, 0.2);
        border-color: rgba(0, 140, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 25px rgba(0, 140, 255, 0.5), 0 0 40px rgba(0, 140, 255, 0.2);
        border-color: rgba(0, 140, 255, 0.8);
    }
    100% {
        box-shadow: 0 0 15px rgba(0, 140, 255, 0.2);
        border-color: rgba(0, 140, 255, 0.4);
    }
}

.feature-card {
    font-family: var(--font-main);
    position: relative;
    padding: 30px 20px;
    border-radius: 20px;
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(0, 140, 255, 0.4);
    backdrop-filter: blur(10px);
    transition: transform 0.4s ease-out;
    overflow: hidden;
    animation: glowing-border 4s infinite ease-in-out;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-pink));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-image {
    height: 100px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.feature-image img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    transition: var(--transition);
}

.feature-card:hover .feature-image img {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
}

.feature-card p {
    font-size: 1rem;
    color: #ccc;
    line-height: 1.7;
    font-weight: 400;
}

.quote-section {
    margin-top: 100px;
}

.quote-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    text-align: center;
    text-shadow: 0 0 20px rgba(0, 140, 255, 0.6);
    position: relative;
    padding: 40px;
}

.quote-text::before,
.quote-text::after {
    content: '"';
    font-size: 4rem;
    color: var(--accent-blue);
    opacity: 0.3;
    position: absolute;
}

.quote-text::before {
    top: 0;
    right: 20px;
}

.quote-text::after {
    bottom: -20px;
    left: 20px;
}

.owner-section {
    padding: 80px 20px;
    text-align: center;
}

.owner-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ccc;
    margin-bottom: 40px;
}

.owner-card {
    font-family: var(--font-main);
    position: relative;
    padding: 40px 20px 30px;
    border-radius: 20px;
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(0, 140, 255, 0.4);
    backdrop-filter: blur(10px);
    transition: transform 0.4s ease-out;
    overflow: hidden;
    animation: glowing-border 4s infinite ease-in-out;
    max-width: 320px;
    margin: 0 auto;
}

.owner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-pink));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.owner-card:hover {
    transform: translateY(-10px);
}

.owner-card:hover::before {
    transform: scaleX(1);
}

.owner-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 25px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.owner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.owner-name {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}

.owner-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--accent-blue);
    text-shadow: 0 0 10px rgba(0, 140, 255, 0.5);
}

.footer {
    padding: 60px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 80px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: 0.3s;
    font-size: 1.1rem;
    padding: 10px 20px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--accent-blue);
    background: rgba(0, 140, 255, 0.1);
    transform: translateX(-5px);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.social-icon {
    display: inline-block;
    transition: 0.3s ease-in-out;
}

.social-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.social-icon:hover {
    transform: translateY(-10px) scale(1.1);
}

.footer p {
    color: #555;
    font-size: 0.9rem;
}


/* استجابة للهواتف - تعديل شامل */

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
    }
    .hero-subtitle {
        font-size: 0.9rem;
    }
    .gallery-wrapper {
        padding: 0 20px;
        /* تقليل البادينج الجانبي لتوفير مساحة */
        margin-top: 40px;
    }
    .gallery-container {
        gap: 15px;
        align-items: center;
        /* التأكد من توسط العناصر */
    }
    /* العناصر الجانبية */
    .left-side,
    .right-side {
        width: 100px;
        /* تصغير العرض ليتناسب مع الشاشة */
        height: 180px;
        /* تقليل الارتفاع ليصبح المظهر متناسق */
    }
    /* العنصر النشط في المنتصف */
    .center-active {
        width: 160px;
        /* عرض معتدل */
        height: 280px;
        /* ارتفاع متناسب مع العرض (نسبة قريبة من شاشة الجوال) */
    }
    .nav-arrow {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .nav {
        width: 90%;
    }
    /* استجابة للهواتف - تعديل المسافات والأبعاد */
    @media (max-width: 480px) {
        /* 1. إنزال المعرض للأسفل */
        .gallery-wrapper {
            margin-top: 150px;
            /* مسافة كبيرة لإنزال المعرض بعيداً عن الكلام */
            margin-bottom: 20px;
            padding: 0 5px;
        }
        /* 2. جعل الحاويات الجانبية عريضة وقصيرة (للتخلص من النحافة) */
        .left-side,
        .right-side {
            width: 140px;
            /* عرض كبير */
            height: 180px;
            /* طول أقصر لتبدو عريضة */
        }
        /* 3. جعل الحاوية النشطة عريضة جداً وواضحة */
        .center-active {
            width: 240px;
            /* عرض واسع جداً لملء الشاشة */
            height: 300px;
            /* طول متناسب مع العرض الجديد */
        }
        /* 4. معالجة الصور لتمتد وتملأ العرض الجديد */
        .left-side img,
        .right-side img,
        .center-active img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            /* يضمن عدم وجود فراغات سوداء بجانب الصورة */
            border-radius: 15px;
        }
        /* 5. دفع الأسهم للخارج لكي لا تغطي الصور العريضة */
        .nav-arrow {
            width: 45px;
            height: 45px;
            z-index: 20;
        }
    }
}

/* ===== إضافات التنظيم (لا تغيّر التصميم الأصلي) ===== */

html {
    scroll-behavior: smooth;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 3px;
}

/* صورة المالك: حرف بديل إذا لم توجد الصورة */
.owner-fallback {
    position: relative;
    background: linear-gradient(135deg, #0a3d80, #008cff);
    display: flex;
    align-items: center;
    justify-content: center;
}

.owner-fallback::before {
    content: attr(data-initial);
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
}

.owner-fallback img {
    position: absolute;
    inset: 0;
}

/* نافذة التنبيه قبل تثبيت المتجر */
.notice {
    margin: auto;
    width: min(90%, 420px);
    padding: 30px 24px 24px;
    border-radius: 24px;
    border: 1px solid rgba(0, 140, 255, 0.5);
    background: rgba(10, 10, 20, 0.98);
    color: #fff;
    text-align: center;
    box-shadow: 0 0 40px rgba(0, 140, 255, 0.35);
}

.notice::backdrop {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
}

.notice h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.notice p {
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 24px;
}

.notice-actions {
    display: flex;
    gap: 12px;
}

.notice-actions .btn {
    font-family: inherit;
    width: auto;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }
}


/* ===== تحسين التصميم وراحة العين (خط عام الحرف اليدوية) ===== */

:root {
    --bg-black: #07080d;
    --text-main: #eceff5;
    --text-soft: #a7afbd;
    --text-dim: #7d8594;
    --card-bg: rgba(255, 255, 255, 0.035);
    --card-border: rgba(255, 255, 255, 0.09);
}

body {
    font-weight: 500;
    line-height: 1.8;
    color: var(--text-main);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4,
.nav-title,
.sidebar-title,
.btn,
.owner-name {
    font-weight: 900;
    letter-spacing: 0;
}

/* الشريط العلوي */
.nav {
    padding: 8px 20px;
}

.nav-title {
    font-size: 1.05rem;
    font-weight: 900;
    color: var(--text-main);
}

.logo-img {
    width: 38px;
    height: 38px;
    box-shadow: 0 0 10px rgba(0, 140, 255, 0.35);
}

.menu-toggle {
    width: 38px;
    height: 38px;
    font-size: 1.05rem;
}

/* القائمة الجانبية */
.sidebar-content {
    padding: 36px 24px;
    box-shadow: 0 0 40px rgba(0, 140, 255, 0.2);
}

.sidebar-header {
    margin-bottom: 32px;
}

.sidebar-title {
    font-size: 1.5rem;
}

.close-btn {
    width: 42px;
    height: 42px;
}

.sidebar-links {
    gap: 12px;
    flex: 0 1 auto;
}

.sidebar-links a {
    padding: 16px 20px;
    gap: 14px;
    font-size: 1rem;
    font-weight: 900;
    border-width: 1px;
    border-radius: 18px;
}

.sidebar-links i {
    font-size: 1.15rem;
    width: 28px;
}

/* القسم الرئيسي */
.hero {
    padding: 130px 20px 70px;
}

.hero-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    font-weight: 900;
    line-height: 1.5;
    margin-bottom: 14px;
}

.blue-text {
    text-shadow: 0 0 14px rgba(0, 140, 255, 0.3);
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-soft);
    line-height: 1.9;
    margin-bottom: 28px;
}

.main-image {
    height: 540px;
    box-shadow: 0 0 36px 2px rgba(0, 140, 255, 0.28), 0 40px 110px 20px rgba(0, 140, 255, 0.18), 16px 16px 40px rgba(0, 0, 0, 0.55);
}

.hero-actions {
    margin-top: 28px;
    gap: 12px;
}

.btn {
    padding: 13px 10px;
    font-size: 0.95rem;
    border-radius: 14px;
}

.btn:hover {
    box-shadow: 0 8px 22px rgba(0, 140, 255, 0.25);
}

.gallery-wrapper {
    margin-top: 64px;
}

.nav-arrow {
    box-shadow: 0 6px 16px rgba(0, 140, 255, 0.3);
}

/* المميزات */
.features {
    padding: 80px 20px 60px;
}

.section-title {
    font-size: clamp(1.45rem, 5vw, 1.9rem);
    margin-bottom: 40px;
    line-height: 1.5;
}

.features-grid {
    gap: 18px;
}

/* بطاقات هادئة بدون وميض: حدّ ثابت ناعم بدل الحركة المتكررة */
.feature-card,
.owner-card {
    animation: none;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.feature-card {
    padding: 26px 20px;
    border-radius: 22px;
}

.feature-card:hover,
.owner-card:hover {
    border-color: rgba(0, 140, 255, 0.45);
}

.feature-image {
    height: 84px;
    margin-bottom: 14px;
}

.feature-image img {
    width: 76px;
    height: 76px;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    line-height: 1.6;
}

.feature-card p {
    font-size: 0.92rem;
    color: var(--text-soft);
    line-height: 1.9;
    font-weight: 500;
}

.quote-section {
    margin-top: 64px;
}

.quote-text {
    font-size: clamp(1.15rem, 4.2vw, 1.4rem);
    font-weight: 900;
    line-height: 1.9;
    padding: 28px 24px;
    text-shadow: 0 0 14px rgba(0, 140, 255, 0.3);
}

.quote-text::before,
.quote-text::after {
    font-size: 3rem;
    opacity: 0.2;
}

/* المالك */
.owner-section {
    padding: 56px 20px;
}

.owner-section-title {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--text-soft);
    margin-bottom: 28px;
}

.owner-card {
    padding: 32px 20px 26px;
    max-width: 300px;
}

.owner-image {
    width: 104px;
    height: 104px;
    margin-bottom: 18px;
}

.owner-fallback::before {
    font-size: 2.6rem;
    font-weight: 900;
}

.owner-name {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.owner-title {
    font-size: 0.95rem;
    font-weight: 500;
    text-shadow: none;
}

/* التذييل */
.footer {
    padding: 44px 20px;
    margin-top: 48px;
}

.footer-links {
    gap: 12px;
    margin-bottom: 28px;
}

.footer-links a {
    font-size: 0.95rem;
    color: var(--text-soft);
    font-weight: 500;
    padding: 9px 20px;
}

.social-icon img {
    width: 48px;
    height: 48px;
}

.footer p {
    color: var(--text-dim);
    font-size: 0.82rem;
}

/* نافذة التنبيه */
.notice h3 {
    font-size: 1.1rem;
}

.notice p {
    font-size: 0.92rem;
    color: var(--text-soft);
}

@media (max-width: 480px) {
    .hero {
        padding-top: 110px;
    }
    .main-image {
        height: 500px;
    }
    .features {
        padding-top: 60px;
    }
}


/* ===== v4: الشريط العلوي + شعار الهيرو + الوضع الفاتح/الداكن ===== */

body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* الشريط العلوي: الشعار + الاسم على اليمين، والأزرار على اليسار */
.nav {
    justify-content: space-between;
    padding: 8px 14px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.brand-name {
    font-family: 'Inter', 'Handicrafts', sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.2px;
    color: var(--text-main);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: var(--accent-blue);
    color: #fff;
    transform: scale(1.08);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
}

/* في الداكن تظهر الشمس (للتحويل للفاتح)، وفي الفاتح يظهر القمر */
html[data-theme="light"] .theme-toggle .icon-sun,
html:not([data-theme="light"]) .theme-toggle .icon-moon {
    display: none;
}

/* شعار الهيرو (بدل بطاقة الصورة) */
.hero {
    padding-top: 120px;
}

.hero-logo {
    width: 148px;
    height: 148px;
    margin: 0 auto 28px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(0, 140, 255, 0.35);
    box-shadow: 0 0 0 6px rgba(0, 140, 255, 0.08), 0 0 40px rgba(0, 140, 255, 0.3);
    animation: logoFloat 6s ease-in-out infinite;
}

.hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@keyframes logoFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.hero-actions {
    margin: 0 auto;
}

.hero-title {
    margin-top: 44px;
}

/* ===== الوضع الفاتح ===== */
html[data-theme="light"] {
    --bg-black: #f3f5fa;
    --text-main: #141824;
    --text-soft: #4a5365;
    --text-dim: #6a7285;
    --card-bg: #ffffff;
    --card-border: rgba(20, 24, 36, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.8);
    color-scheme: light;
}

html[data-theme="light"] body {
    background-color: var(--bg-black);
    color: var(--text-main);
}

html[data-theme="light"] .nav {
    border-color: rgba(20, 24, 36, 0.1);
    box-shadow: 0 6px 20px rgba(20, 24, 36, 0.08);
}

html[data-theme="light"] .menu-toggle,
html[data-theme="light"] .theme-toggle {
    background: rgba(20, 24, 36, 0.05);
    border-color: rgba(20, 24, 36, 0.12);
    color: var(--text-main);
}

html[data-theme="light"] .menu-toggle:hover,
html[data-theme="light"] .theme-toggle:hover {
    background: var(--accent-blue);
    color: #fff;
}

html[data-theme="light"] .logo-img {
    box-shadow: 0 0 10px rgba(0, 140, 255, 0.25);
}

html[data-theme="light"] .overlay {
    background: rgba(20, 24, 36, 0.45);
}

html[data-theme="light"] .sidebar-content {
    background: rgba(255, 255, 255, 0.99);
    border-color: rgba(20, 24, 36, 0.1);
    box-shadow: 0 10px 40px rgba(20, 24, 36, 0.18);
}

html[data-theme="light"] .sidebar-links a {
    color: var(--text-main);
    background: rgba(20, 24, 36, 0.04);
    border-color: rgba(20, 24, 36, 0.1);
}

html[data-theme="light"] .sidebar-links a:hover {
    background: rgba(0, 140, 255, 0.12);
    box-shadow: 0 6px 18px rgba(0, 140, 255, 0.15);
}

html[data-theme="light"] .hero-logo {
    box-shadow: 0 0 0 6px rgba(0, 140, 255, 0.08), 0 10px 30px rgba(0, 140, 255, 0.28);
}

html[data-theme="light"] .btn-primary {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #fff;
}

html[data-theme="light"] .btn-secondary {
    background: #fff;
    border-color: rgba(20, 24, 36, 0.18);
    color: var(--text-main);
}

html[data-theme="light"] .btn-secondary:hover {
    background: #fff;
    border-color: var(--accent-blue);
}

html[data-theme="light"] .blue-text {
    color: #0a7be0;
    text-shadow: none;
}

html[data-theme="light"] .preview-item {
    border-color: rgba(20, 24, 36, 0.1);
    box-shadow: 0 10px 28px rgba(20, 24, 36, 0.15);
}

html[data-theme="light"] .center-active {
    border-color: rgba(0, 140, 255, 0.5);
    box-shadow: 0 16px 40px rgba(0, 140, 255, 0.28);
}

html[data-theme="light"] .feature-card,
html[data-theme="light"] .owner-card {
    box-shadow: 0 8px 24px rgba(20, 24, 36, 0.07);
}

html[data-theme="light"] .feature-card h3,
html[data-theme="light"] .owner-name {
    color: var(--text-main);
}

html[data-theme="light"] .quote-text {
    color: var(--text-main);
    text-shadow: none;
}

html[data-theme="light"] .owner-title {
    color: #0a7be0;
}

html[data-theme="light"] .footer {
    border-top-color: rgba(20, 24, 36, 0.08);
}

html[data-theme="light"] .footer-links a {
    background: rgba(20, 24, 36, 0.04);
}

html[data-theme="light"] .footer-links a:hover {
    background: rgba(0, 140, 255, 0.1);
}

html[data-theme="light"] .notice {
    background: #fff;
    color: var(--text-main);
    border-color: rgba(0, 140, 255, 0.4);
    box-shadow: 0 10px 40px rgba(20, 24, 36, 0.2);
}

@media (max-width: 480px) {
    .hero {
        padding-top: 104px;
    }
    .hero-logo {
        width: 132px;
        height: 132px;
    }
}


/* ===== تعديلات v5 ===== */
html { color-scheme: dark; }
html[data-theme="light"] { color-scheme: light; }

.hero { padding-top: 118px; }

.hero-tagline {
    font-family: var(--font-main);
    font-weight: 900;
    font-size: clamp(1.25rem, 5.4vw, 1.75rem);
    line-height: 1.7;
    color: var(--text-main);
    margin: 0 auto 18px;
    text-shadow: 0 0 14px rgba(0, 140, 255, 0.3);
}

html[data-theme="light"] .hero-tagline { text-shadow: none; }

/* الزران: أصغر وبشكل دائري (كبسولة) ويتوسطان تحت الشريط */
.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    max-width: none;
    margin: 24px auto 0;
    padding: 0;
}

.hero-actions .btn {
    flex: 0 0 auto;
    width: auto;
    min-width: 128px;
    padding: 9px 20px;
    font-size: 0.85rem;
    border-radius: 999px;
}

.hero-actions .btn:hover { transform: translateY(-2px) scale(1.02); }

/* بعد حذف العنوان والنص الفرعي لا نحتاج مسافة كبيرة قبل المعرض */
.gallery-wrapper { margin-top: 44px; }

@media (max-width: 480px) {
    .hero { padding-top: 104px; }
    .gallery-wrapper { margin-top: 44px; }
}

/* المميزات: كارت واحد فارغ */
.section-title { margin-bottom: 28px; }

.features-box {
    max-width: 720px;
    min-height: 240px;
    margin: 0 auto;
    border-radius: 24px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

html[data-theme="light"] .features-box { box-shadow: 0 8px 24px rgba(20, 24, 36, 0.07); }

.features { scroll-margin-top: 90px; }


/* ===== تعديلات v6 ===== */
* { -webkit-tap-highlight-color: transparent; }

/* إنزال الهيرو وتوحيد المسافات بين: العبارة / الشريط / الزرين / الصور */
.hero { padding-top: 140px; }
.hero-tagline { margin-bottom: 44px; }
.hero-actions { margin-top: 44px; }
.gallery-wrapper { margin-top: 44px; }

@media (max-width: 480px) {
    .hero { padding-top: 136px; }
    .gallery-wrapper { margin-top: 44px; }
}

/* زر "تثبيت AppMaster" في الوضع الفاتح: هادئ وغير مضاء */
html[data-theme="light"] .btn-primary {
    background: rgba(0, 140, 255, 0.1);
    border-color: rgba(0, 140, 255, 0.4);
    color: #0a5fb0;
}

/* على شاشات اللمس: لا تبقى حالة :hover مضاءة بعد الضغط */
html.is-touch .theme-toggle:hover,
html.is-touch .menu-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    transform: none;
}

html.is-touch[data-theme="light"] .theme-toggle:hover,
html.is-touch[data-theme="light"] .menu-toggle:hover {
    background: rgba(20, 24, 36, 0.05);
    color: var(--text-main);
}

html.is-touch .btn:hover,
html.is-touch .hero-actions .btn:hover {
    transform: none;
    box-shadow: none;
}

html.is-touch .btn-primary:hover { border-color: rgba(0, 140, 255, 0.5); }

html.is-touch .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

html.is-touch[data-theme="light"] .btn-primary:hover { border-color: rgba(0, 140, 255, 0.4); }

html.is-touch[data-theme="light"] .btn-secondary:hover {
    background: #fff;
    border-color: rgba(20, 24, 36, 0.18);
}
