/* ==========================================================================
   MONADAMAT LWRDI - ULTRA PROFESSIONAL & RESPONSIVE DESIGN SYSTEM
   ========================================================================== */

/* 1. Global Reset & Variables */
:root {
    --bg-main: #080c14;
    --bg-surface: #0e1524;
    --bg-surface-elevated: #141f35;
    --bg-card: rgba(14, 21, 36, 0.85);
    --bg-glass: rgba(14, 21, 36, 0.7);

    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(0, 230, 118, 0.4);
    
    --primary: #00e676;
    --primary-hover: #00c853;
    --primary-glow: rgba(0, 230, 118, 0.25);
    --accent-blue: #38bdf8;
    --accent-purple: #a855f7;
    --accent-orange: #fb923c;
    --accent-red: #f43f5e;
    
    --text-main: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --font-ar: 'Tajawal', sans-serif;
    --font-en: 'Inter', system-ui, -apple-system, sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-pill: 9999px;
    
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.55);
    
    --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

html[lang="ar"], html[lang="ar"] body {
    font-family: var(--font-ar);
    direction: rtl;
}

html[lang="en"], html[lang="en"] body {
    font-family: var(--font-en);
    direction: ltr;
}

body {
    background: radial-gradient(ellipse 90% 55% at 50% -10%, rgba(0, 230, 118, 0.08), transparent 70%), var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* 2. Header (Ultra-clean, Compact Single-Bar, Mobile-Perfect) */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(8, 12, 20, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 10px 16px;
    transition: var(--transition);
}

.header-container {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    transition: transform 0.25s ease;
}

.logo:hover {
    transform: scale(1.08);
}

.site-title-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.site-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.2px;
    margin: 0;
    white-space: nowrap;
}

.verified-badge {
    color: var(--primary);
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* أيقونات التواصل الاجتماعي */
.social-icons {
    display: flex;
    align-items: center;
    gap: 6px;
}

.social-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
}

.social-btn:hover {
    transform: translateY(-2px);
}

.social-btn.youtube:hover { background: rgba(255, 0, 0, 0.15); border-color: #ff0000; color: #ff0000; }
.social-btn.tiktok:hover { background: rgba(255, 255, 255, 0.15); border-color: #ffffff; color: #ffffff; }
.social-btn.facebook:hover { background: rgba(24, 119, 242, 0.15); border-color: #1877f2; color: #1877f2; }
.social-btn.fb-group:hover { background: rgba(46, 137, 255, 0.15); border-color: #2e89ff; color: #2e89ff; }
.social-btn.instagram:hover { background: rgba(228, 64, 95, 0.15); border-color: #e4405f; color: #e4405f; }

/* زر تبديل اللغة: أيقونة فقط مع مؤشر صغير أنيق */
.lang-icon-btn {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    padding: 0;
    margin-inline-start: 4px;
}

.lang-icon-btn i {
    color: var(--primary);
}

.lang-code-indicator {
    position: absolute;
    bottom: -2px;
    right: -3px;
    background: var(--primary);
    color: #080c14;
    font-size: 0.62rem;
    font-weight: 900;
    padding: 1px 3px;
    border-radius: 4px;
    line-height: 1;
    border: 1px solid #080c14;
}

html[lang="en"] .lang-code-indicator {
    right: auto;
    left: -3px;
}

.lang-icon-btn:hover {
    background: rgba(0, 230, 118, 0.15);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 0 12px var(--primary-glow);
}

/* 3. Main Container */
.main-content {
    max-width: 1080px;
    margin: 0 auto;
    padding: 24px 16px 85px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* 4. Hero Bento Profile Card */
.hero-bento-card {
    background: linear-gradient(135deg, rgba(20, 31, 53, 0.85) 0%, rgba(14, 21, 36, 0.95) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 26px;
    display: flex;
    align-items: center;
    gap: 22px;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.hero-bento-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.hero-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.hero-avatar-img {
    width: 80px;
    height: 80px;
    border-radius: 22px;
    object-fit: contain;
    background: #080c14;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.online-indicator-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid var(--bg-surface);
    box-shadow: 0 0 8px var(--primary);
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.hero-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-title-row h2 {
    font-size: 1.55rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.hero-official-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.25);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
}

.hero-tagline {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0;
}

.hero-tags-pill-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: #cbd5e1;
    font-size: 0.8rem;
    font-weight: 600;
}

/* 5. Quick Navigation Bento Tiles */
.quick-nav-section {
    width: 100%;
}

.quick-nav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.nav-tile {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.nav-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.tile-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.nav-tile:hover .tile-icon {
    transform: scale(1.1);
}

.tile-text {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.tile-text strong {
    font-size: 0.96rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.35;
    word-break: normal;
}

.tile-text span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: normal;
    line-height: 1.35;
    word-break: normal;
}

.tile-arrow {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: transform 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

html[lang="en"] .tile-arrow {
    transform: rotate(180deg);
}

.nav-tile:hover .tile-arrow {
    color: var(--primary);
    transform: translateX(-4px);
}

html[lang="en"] .nav-tile:hover .tile-arrow {
    transform: rotate(180deg) translateX(-4px);
}

/* ألوان الأقسام المخصصة */
.tile-code { border-color: rgba(251, 146, 60, 0.25); background: linear-gradient(135deg, rgba(251, 146, 60, 0.08), rgba(14, 21, 36, 0.95)); }
.tile-code .tile-icon { background: rgba(251, 146, 60, 0.15); color: var(--accent-orange); }
.tile-code:hover { border-color: var(--accent-orange); }

.tile-games { border-color: rgba(244, 63, 94, 0.25); background: linear-gradient(135deg, rgba(244, 63, 94, 0.08), rgba(14, 21, 36, 0.95)); }
.tile-games .tile-icon { background: rgba(244, 63, 94, 0.15); color: var(--accent-red); }
.tile-games:hover { border-color: var(--accent-red); }

.tile-learn { border-color: rgba(0, 230, 118, 0.25); background: linear-gradient(135deg, rgba(0, 230, 118, 0.08), rgba(14, 21, 36, 0.95)); }
.tile-learn .tile-icon { background: rgba(0, 230, 118, 0.15); color: var(--primary); }
.tile-learn:hover { border-color: var(--primary); }

.tile-collab { border-color: rgba(56, 189, 248, 0.25); background: linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(14, 21, 36, 0.95)); }
.tile-collab .tile-icon { background: rgba(56, 189, 248, 0.15); color: var(--accent-blue); }
.tile-collab:hover { border-color: var(--accent-blue); }

/* 6. Section Card Base */
.section-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 26px;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
}

.section-header {
    margin-bottom: 20px;
}

.section-header.text-center {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 26px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.badge-youtube { background: rgba(255, 0, 0, 0.1); border: 1px solid rgba(255, 0, 0, 0.25); color: #ff4d4d; }
.badge-learn { background: rgba(0, 230, 118, 0.1); border: 1px solid rgba(0, 230, 118, 0.25); color: var(--primary); }
.badge-collab { background: rgba(56, 189, 248, 0.1); border: 1px solid rgba(56, 189, 248, 0.25); color: var(--accent-blue); }

.section-header h2 {
    font-size: 1.45rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.section-subtitle {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 6px;
}

/* 7. YouTube Videos Section */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.video-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.video-card:hover {
    border-color: rgba(255, 0, 0, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.video-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}

.video-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.video-card:hover .video-thumb-wrap img {
    transform: scale(1.05);
}

.video-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    text-decoration: none;
}

.video-card:hover .video-play-overlay {
    opacity: 1;
}

.play-icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ff0000;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 0 16px rgba(255, 0, 0, 0.6);
}

.video-info {
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    gap: 12px;
}

.video-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.45;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ff5252;
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.video-link-btn:hover {
    background: #ff0000;
    color: #ffffff;
}

.video-loading, .video-fallback-box {
    grid-column: 1 / -1;
    padding: 24px;
    text-align: center;
    color: var(--text-muted);
}

/* 8. Learning Section & Cards */
.paid-notice-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.25);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    color: #cbd5e1;
    font-size: 0.85rem;
    margin-top: 12px;
    text-align: right;
}

html[lang="en"] .paid-notice-box {
    text-align: left;
}

.paid-notice-box i {
    color: var(--accent-blue);
    font-size: 1rem;
    flex-shrink: 0;
}

.paid-notice-box strong {
    color: var(--primary);
}

.learning-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.learning-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    cursor: pointer;
}

.learning-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 14px;
}

.card-games .card-icon { background: rgba(244, 63, 94, 0.15); color: var(--accent-red); }
.card-web .card-icon { background: rgba(0, 230, 118, 0.15); color: var(--primary); }
.card-ai .card-icon { background: rgba(168, 85, 247, 0.15); color: var(--accent-purple); }
.card-content .card-icon { background: rgba(251, 146, 60, 0.15); color: var(--accent-orange); }
.card-ideas .card-icon { background: rgba(250, 204, 21, 0.15); color: #facc15; }
.card-faq .card-icon { background: rgba(56, 189, 248, 0.15); color: var(--accent-blue); }

.learning-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.learning-card p {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
    flex: 1;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-top: 1px solid var(--border-subtle);
    padding-top: 12px;
}

.price-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(0, 230, 118, 0.08);
    border: 1px solid rgba(0, 230, 118, 0.2);
    padding: 3px 8px;
    border-radius: var(--radius-pill);
}

.select-course-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.learning-card:hover .select-course-btn {
    background: var(--primary);
    border-color: var(--primary);
    color: #080c14;
}

/* FAQ Card */
.faq-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.faq-card-header .card-icon {
    margin-bottom: 0;
}

.faq-card-header h3 {
    margin: 0;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item summary {
    padding: 8px 12px;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 6px;
    user-select: none;
}

.faq-item summary i {
    color: var(--accent-blue);
    font-size: 0.85rem;
}

.faq-item[open] {
    border-color: rgba(56, 189, 248, 0.4);
    background: rgba(56, 189, 248, 0.05);
}

.faq-content {
    padding: 8px 12px 10px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-content strong {
    color: var(--primary);
}

/* 9. Collabs Section - Full Image Display */
.collab-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.collab-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: var(--transition);
}

.collab-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.collab-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #040810;
    overflow: hidden;
    border-bottom: 1px solid var(--border-subtle);
}

.collab-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

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

.collab-overlay {
    position: absolute;
    inset: 0;
    background: rgba(4, 8, 16, 0.55);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.22s ease;
}

.collab-card:hover .collab-overlay {
    opacity: 1;
}

.collab-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary);
    color: #080c14;
    padding: 7px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 800;
    box-shadow: 0 4px 15px var(--primary-glow);
    transform: scale(0.92);
    transition: transform 0.2s ease;
}

.collab-card:hover .collab-view-btn {
    transform: scale(1);
}

.collab-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex: 1;
}

.collab-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.74rem;
    font-weight: 700;
    align-self: flex-start;
}

.tag-ai { background: rgba(168, 85, 247, 0.15); color: #d8b4fe; border: 1px solid rgba(168, 85, 247, 0.3); }
.tag-apple { background: rgba(56, 189, 248, 0.15); color: #7dd3fc; border: 1px solid rgba(56, 189, 248, 0.3); }
.tag-threads { background: rgba(251, 146, 60, 0.15); color: #fdba74; border: 1px solid rgba(251, 146, 60, 0.3); }
.tag-duolingo { background: rgba(34, 197, 94, 0.15); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.3); }

.collab-info h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.collab-info p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* 10. About Section */
.about-section {
    text-align: center;
    max-width: 780px;
    margin: 0 auto;
    width: 100%;
}

.about-section h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
}

.about-section p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* 11. Floating Contact Button */
.floating-contact-btn {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #0e1524;
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    transition: var(--transition);
}

html[lang="en"] .floating-contact-btn {
    left: auto;
    right: 24px;
}

.floating-contact-btn:hover {
    transform: scale(1.08) translateY(-2px);
    border-color: var(--primary);
    box-shadow: 0 10px 28px var(--primary-glow);
}

.floating-logo-img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.chat-badge-icon {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    color: #080c14;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #0e1524;
}

.pulse-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    opacity: 0.6;
    animation: contactPulse 2s infinite ease-out;
}

@keyframes contactPulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* 12. Modals */
.contact-modal-overlay, .image-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 16px;
}

.contact-modal-overlay.active, .image-modal-overlay.active {
    display: flex;
}

.contact-modal-content, .image-modal-content {
    background: #0e1524;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 460px;
    padding: 26px;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: modalPopIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-modal-content {
    max-width: 620px;
    padding: 0;
    overflow: hidden;
}

@keyframes modalPopIn {
    from { opacity: 0; transform: scale(0.96) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close-btn, .image-modal-close {
    position: absolute;
    top: 14px;
    left: 16px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
    z-index: 10;
}

html[lang="en"] .modal-close-btn, html[lang="en"] .image-modal-close {
    left: auto;
    right: 16px;
}

.modal-close-btn:hover, .image-modal-close:hover {
    color: #f43f5e;
}

.modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.modal-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(0, 230, 118, 0.12);
    color: var(--primary);
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.modal-header h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 4px;
}

.modal-header p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.form-group {
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-group label i {
    color: var(--primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: #080c14;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.88rem;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.submit-modal-btn {
    width: 100%;
    background: var(--primary);
    color: #080c14;
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px;
    font-size: 0.92rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: var(--transition);
    margin-top: 6px;
}

.submit-modal-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px var(--primary-glow);
}

.status-msg {
    margin-top: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
}

.image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #040810;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-subtle);
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.image-modal-details {
    padding: 18px 20px;
}

.image-modal-details h3 {
    color: var(--primary);
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.image-modal-details p {
    color: var(--text-secondary);
    font-size: 0.86rem;
    line-height: 1.5;
}

/* 13. Footer */
footer {
    border-top: 1px solid var(--border-subtle);
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.84rem;
}

/* ==========================================================================
   14. MOBILE & TABLET RESPONSIVE EXCELLENCE ("متناسق مع الهاتف")
   ========================================================================== */
@media (max-width: 1080px) {
    .quick-nav-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .learning-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .collab-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header {
        padding: 8px 12px;
    }
    
    .site-title {
        font-size: 1.1rem;
    }
    
    .logo {
        width: 34px;
        height: 34px;
    }

    .social-btn {
        width: 30px;
        height: 30px;
        font-size: 0.82rem;
    }

    .lang-icon-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .main-content {
        padding: 16px 12px 75px;
        gap: 20px;
    }

    .hero-bento-card {
        padding: 18px 16px;
        flex-direction: column;
        text-align: center;
        gap: 14px;
    }

    .hero-avatar-img {
        width: 68px;
        height: 68px;
    }

    .hero-title-row {
        justify-content: center;
    }

    .hero-tags-pill-row {
        justify-content: center;
    }

    .quick-nav-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .nav-tile {
        padding: 14px 16px;
    }

    .videos-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .learning-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .collab-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .collab-info {
        padding: 10px 12px;
    }

    .collab-info h3 {
        font-size: 0.92rem;
    }

    .collab-info p {
        font-size: 0.76rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .section-card {
        padding: 18px 14px;
        border-radius: var(--radius-md);
    }

    .floating-contact-btn {
        bottom: 18px;
        left: 18px;
        width: 48px;
        height: 48px;
    }

    html[lang="en"] .floating-contact-btn {
        right: 18px;
        left: auto;
    }

    .floating-logo-img {
        width: 26px;
        height: 26px;
    }
}

@media (max-width: 480px) {
    .header-container {
        gap: 6px;
    }

    .social-icons {
        gap: 4px;
    }

    .social-btn {
        width: 28px;
        height: 28px;
        font-size: 0.78rem;
    }

    .lang-icon-btn {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }

    .hero-title-row h2 {
        font-size: 1.3rem;
    }
}
