/* ============================================
   Ofoq Landing Page - أُفُق
   A modern RTL Arabic landing page
   ============================================ */

/* CSS Variables */
:root {
    /* Dawn Gradient Colors */
    --sky-deep: #0f172a;
    --sky-mid: #1e3a5f;
    --sky-light: #3b82f6;
    --sky-pale: #7dd3fc;
    --gold-soft: #fbbf24;
    --gold-warm: #f59e0b;
    --gold-pale: #fef3c7;

    /* Glass Colors */
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-shadow: rgba(0, 0, 0, 0.1);

    /* Card Gradients - Gold & Blue Theme */
    --card-1-gradient: linear-gradient(135deg, rgba(251, 191, 36, 0.25) 0%, rgba(245, 158, 11, 0.25) 100%);
    --card-2-gradient: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(30, 58, 95, 0.25) 100%);
    --card-3-gradient: linear-gradient(135deg, rgba(251, 191, 36, 0.25) 0%, rgba(245, 158, 11, 0.25) 100%);
    --card-4-gradient: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(30, 58, 95, 0.25) 100%);
    --card-5-gradient: linear-gradient(135deg, rgba(251, 191, 36, 0.25) 0%, rgba(245, 158, 11, 0.25) 100%);

    /* Typography */
    --font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --section-padding: clamp(4rem, 10vw, 8rem);
    --container-padding: clamp(1.5rem, 5vw, 3rem);
    --container-max: 1200px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s ease;
    --transition-slow: 0.6s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-family);
    line-height: 1.8;
    color: #ffffff;
    background: var(--sky-deep);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* دعم التشكيل العربي */
* {
    text-rendering: optimizeLegibility;
}

/* Background Gradient */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 100%, rgba(251, 191, 36, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 70% 80%, rgba(245, 158, 11, 0.1) 0%, transparent 40%),
        radial-gradient(ellipse 100% 60% at 50% 120%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, var(--sky-deep) 0%, var(--sky-mid) 50%, #1e3a5f 100%);
    z-index: -2;
}

/* Animated Orbs */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(40px);
    z-index: -1;
    opacity: 0.25;
    animation: float 8s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--gold-soft) 0%, transparent 70%);
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--sky-light) 0%, transparent 70%);
    bottom: 100px;
    right: 10%;
    animation-delay: -2s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--sky-pale) 0%, transparent 70%);
    bottom: 50px;
    left: 15%;
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.25;
    }
    50% {
        transform: translateY(-30px) scale(1.05);
        opacity: 0.4;
    }
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    overflow: visible; /* السماح بظهور التشكيل */
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--section-padding) 0;
    position: relative;
    overflow-y: visible; /* السماح بظهور التشكيل */
    overflow-x: clip;
}

.hero-content {
    max-width: 900px;
    overflow: visible; /* السماح بظهور التشكيل */
    padding-top: 1rem;
}

/* Logo */
.logo {
    margin-bottom: 1.5rem;
    display: block;
    overflow: visible;
}

.logo-text {
    font-family: 'Lemonada', cursive;
    font-size: clamp(3rem, 9vw, 5.5rem);
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, var(--gold-soft) 50%, var(--gold-warm) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.8;
    padding: 0.6em 0.15em 0 0.15em;
    display: inline-block;
    position: relative;
    overflow: visible;
}

/* Hero Title */
.hero-title {
    font-size: clamp(1.75rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 2; /* ارتفاع كبير للتشكيل */
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

/* Glow effect behind headline */
.hero-title::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 200%;
    background: radial-gradient(
        ellipse at center,
        rgba(251, 191, 36, 0.25) 0%,
        rgba(245, 158, 11, 0.15) 30%,
        rgba(59, 130, 246, 0.1) 50%,
        transparent 70%
    );
    filter: blur(40px);
    z-index: -1;
    pointer-events: none;
    animation: headline-glow 4s ease-in-out infinite alternate;
}

@keyframes headline-glow {
    0% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Tagline */
.hero-tagline {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 3rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Horizon Line */
.horizon-line {
    position: relative;
    width: 200px;
    height: 2px;
    margin: 0 auto;
    background: linear-gradient(90deg, transparent 0%, var(--gold-soft) 50%, transparent 100%);
    border-radius: 2px;
}

.horizon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 30px;
    background: radial-gradient(ellipse, var(--gold-soft) 0%, transparent 70%);
    filter: blur(10px);
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* ============================================
   Portfolio Section - Bento Grid
   ============================================ */
.portfolio {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #ffffff;
}

/* Bento Grid Layout */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
    gap: 1.5rem;
}

/* Card Base Styles - Frosted Glass */
.bento-card {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.05) 100%
    );
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition:
        transform var(--transition-normal),
        box-shadow var(--transition-normal),
        border-color var(--transition-normal),
        background var(--transition-normal);
    cursor: pointer;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.12),
        inset 0 1px 1px rgba(255, 255, 255, 0.15);
    /* Flexbox for consistent footer positioning */
    display: flex;
    flex-direction: column;
}

/* Clickable card link - removes default link styling */
a.bento-card {
    text-decoration: none;
    color: inherit;
}

/* Glass shine effect */
.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 50%,
        transparent 100%
    );
    opacity: 1;
    transition: opacity var(--transition-normal);
    z-index: 0;
    pointer-events: none;
}

/* Color overlay on hover */
.bento-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 0;
    pointer-events: none;
}

.bento-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.4);
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.08) 100%
    );
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.bento-card:hover::after {
    opacity: 0.5;
}

/* Card Grid Positioning */
.card-1 {
    grid-column: span 2;
}

.card-2 {
    grid-column: span 2;
}

.card-3 {
    grid-column: span 1;
}

.card-4 {
    grid-column: span 1;
}

.card-5 {
    grid-column: span 2;
}

/* Card Color Overlays (::after) */
.card-1::after { background: var(--card-1-gradient); }
.card-2::after { background: var(--card-2-gradient); }
.card-3::after { background: var(--card-3-gradient); }
.card-4::after { background: var(--card-4-gradient); }
.card-5::after { background: var(--card-5-gradient); }

/* Card Icon */
.card-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}

.card-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--gold-soft);
}

/* Unique Icon Colors on Hover - Gold & Blue Theme */
.card-1:hover .card-icon svg { stroke: var(--gold-pale); }
.card-2:hover .card-icon svg { stroke: var(--sky-pale); }
.card-3:hover .card-icon svg { stroke: var(--gold-pale); }
.card-4:hover .card-icon svg { stroke: var(--sky-pale); }
.card-5:hover .card-icon svg { stroke: var(--gold-pale); }

/* Card Title */
.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

/* Card Description */
.card-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Card Tag */
.card-tag {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    position: relative;
    z-index: 1;
}

/* ============================================
   About Section
   ============================================ */
.about {
    padding: var(--section-padding) 0;
}

.about-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 4rem 3rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--gold-soft) 50%, transparent 100%);
}

.about-text {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 500;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   Particles Canvas
   ============================================ */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ============================================
   Navigation Bar
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition:
        background var(--transition-normal),
        backdrop-filter var(--transition-normal),
        box-shadow var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

.navbar-logo {
    font-family: 'Lemonada', cursive;
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, var(--gold-soft) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.navbar-logo:hover {
    opacity: 0.8;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.navbar-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
    position: relative;
}

.navbar-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--gold-soft);
    transition: width var(--transition-fast);
}

.navbar-link:hover {
    color: #ffffff;
}

.navbar-link:hover::after {
    width: 100%;
}

.navbar-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: linear-gradient(135deg, var(--gold-soft) 0%, var(--gold-warm) 100%);
    color: var(--sky-deep);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 50px;
    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-fast);
}

.navbar-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
}

/* Mobile Menu Toggle */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.navbar-toggle svg {
    width: 24px;
    height: 24px;
}

.navbar-toggle .close-icon {
    display: none;
}

.navbar-toggle.active .menu-icon {
    display: none;
}

.navbar-toggle.active .close-icon {
    display: block;
}

/* ============================================
   Hero Section Enhancements
   ============================================ */
.hero {
    padding-top: calc(var(--section-padding) + 80px);
}

/* Hero CTAs */
.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.75rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    cursor: pointer;
    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-fast),
        background var(--transition-fast);
}

.btn svg {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-fast);
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-soft) 0%, var(--gold-warm) 100%);
    color: var(--sky-deep);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(251, 191, 36, 0.4);
}

.btn-primary:hover svg {
    transform: translateX(-4px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
}

/* ============================================
   About Section - من نحن
   ============================================ */
.about-section {
    padding: var(--section-padding) 0;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    max-width: 600px;
    margin: -1.5rem auto 3rem;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.about-card {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.12) 0%,
        rgba(255, 255, 255, 0.04) 100%
    );
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 2rem;
    text-align: center;
    transition:
        transform var(--transition-normal),
        box-shadow var(--transition-normal),
        border-color var(--transition-normal);
}

.about-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.35);
}

.about-card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(245, 158, 11, 0.1) 100%);
    border-radius: 16px;
}

.about-card-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--gold-soft);
}

.about-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.about-card-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

/* ============================================
   Products Section - Enhanced Cards
   ============================================ */
/* Status Tags */
.card-status {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    z-index: 2;
}

.status-available {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-coming {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Card Footer with CTA */
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1.25rem;
    position: relative;
    z-index: 1;
}

.card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--gold-soft);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition:
        gap var(--transition-fast),
        color var(--transition-fast);
}

.card-cta svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
}

.card-cta:hover {
    color: var(--gold-pale);
}

.card-cta:hover svg {
    transform: translateX(-4px);
}

.card-cta-disabled {
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
}

.card-cta-disabled:hover {
    color: rgba(255, 255, 255, 0.4);
}

.card-cta-disabled:hover svg {
    transform: none;
}

/* ============================================
   Why Ofoq Section - لماذا أفق؟
   ============================================ */
.why-section {
    padding: var(--section-padding) 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.03) 100%
    );
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition:
        transform var(--transition-normal),
        box-shadow var(--transition-normal),
        border-color var(--transition-normal);
}

/* Animated top border */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-soft), var(--gold-warm));
    transition:
        width var(--transition-normal),
        left var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.25);
}

.feature-card:hover::before {
    width: 100%;
    left: 0;
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    transition: background var(--transition-normal);
}

.feature-card:hover .feature-icon {
    background: rgba(251, 191, 36, 0.15);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    stroke: rgba(255, 255, 255, 0.8);
    transition: stroke var(--transition-normal);
}

.feature-card:hover .feature-icon svg {
    stroke: var(--gold-soft);
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.feature-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
}

/* ============================================
   Contact Section - تواصل معنا
   ============================================ */
.contact-section {
    padding: var(--section-padding) 0;
}

.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-intro {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-email {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.contact-email svg {
    width: 22px;
    height: 22px;
    stroke: var(--gold-soft);
}

.contact-email a {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.contact-email a:hover {
    color: var(--gold-soft);
}

.contact-socials {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* ============================================
   Social Links
   ============================================ */
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.8);
    transition:
        background var(--transition-fast),
        border-color var(--transition-fast),
        color var(--transition-fast),
        transform var(--transition-fast);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--gold-soft);
    transform: translateY(-3px);
}

/* ============================================
   Footer - Enhanced
   ============================================ */
.footer {
    padding: 4rem 0 0;
    margin-top: var(--section-padding);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid-simple {
    grid-template-columns: 1fr 1fr;
}

.footer-brand-centered {
    text-align: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    font-family: 'Lemonada', cursive;
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, var(--gold-soft) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.footer-tagline {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.footer-title {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.footer-links ul,
.footer-apps ul {
    list-style: none;
}

.footer-links li,
.footer-apps li {
    margin-bottom: 0.6rem;
}

.footer-links a,
.footer-apps a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover,
.footer-apps a:hover {
    color: var(--gold-soft);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.footer-contact .footer-title {
    margin-bottom: 0.75rem;
}

.footer-contact-socials {
    display: flex;
    gap: 0.75rem;
}

.footer-contact-socials .social-link {
    width: 40px;
    height: 40px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 0;
}

.footer-copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-socials {
    display: flex;
    gap: 0.75rem;
}

.footer-socials .social-link {
    width: 38px;
    height: 38px;
}

.footer-socials .social-link svg {
    width: 18px;
    height: 18px;
}

.footer-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

/* ============================================
   Animations
   ============================================ */

/* Fade In Animation */
.animate-fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: var(--delay, 0s);
    overflow: visible; /* السماح بظهور التشكيل */
}

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

/* Scroll Animation (triggered by JS) */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
    transition-delay: var(--delay, 0s);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Responsive Design
   ============================================ */

/* Large Desktop */
@media (max-width: 1280px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-1,
    .card-2,
    .card-5 {
        grid-column: span 2;
    }

    .card-3,
    .card-4 {
        grid-column: span 1;
    }

    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid .about-card:last-child {
        grid-column: span 2;
        max-width: 400px;
        margin: 0 auto;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-brand {
        grid-column: span 2;
        text-align: center;
        max-width: none;
    }

    .footer-links,
    .footer-apps {
        text-align: center;
    }

    .footer-grid-simple {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-grid-simple .footer-brand {
        grid-column: span 1;
    }

    .footer-contact {
        align-items: center;
    }
}

/* Tablet - smaller */
@media (max-width: 768px) {
    /* Mobile Menu */
    .navbar-toggle {
        display: block;
    }

    .navbar-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 2rem;
        gap: 1.5rem;
        transition: right var(--transition-normal);
    }

    .navbar-menu.active {
        right: 0;
    }

    .navbar-link {
        font-size: 1.2rem;
    }

    .navbar-cta {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 640px) {
    :root {
        --section-padding: 4rem;
    }

    .hero {
        padding-top: calc(var(--section-padding) + 60px);
    }

    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .card-1,
    .card-2,
    .card-3,
    .card-4,
    .card-5 {
        grid-column: span 1;
    }

    .bento-card {
        padding: 1.5rem;
    }

    .card-icon {
        width: 48px;
        height: 48px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-grid .about-card:last-child {
        grid-column: span 1;
        max-width: none;
    }

    .about-card {
        padding: 1.5rem;
        border-radius: 20px;
        width: 100%;
        max-width: none;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        grid-column: span 1;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }

    .orb {
        opacity: 0.15;
    }

    .orb-1 {
        width: 250px;
        height: 250px;
    }

    .orb-2,
    .orb-3 {
        display: none;
    }
}

/* Reduce Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .orb {
        animation: none;
    }

    .horizon-glow {
        animation: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .bento-card {
        border-width: 2px;
    }

    .card-description,
    .hero-subtitle {
        color: rgba(255, 255, 255, 0.95);
    }
}

/* Hidden Content with Shimmer Effect */
.hidden-title {
    height: 1.5rem;
    width: 35%;
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.hidden-description {
    height: 1rem;
    width: 90%;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.hidden-description:last-of-type {
    width: 70%;
}

/* Align cards - match title height with ألطاف */
.card-4 .hidden-title,
.card-5 .hidden-title {
    height: 2.25rem;
    margin-bottom: 1rem;
}

.shimmer-effect {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0.08) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite ease-in-out;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}
