/* ═══════════════════════════════════════════
   المتغيرات الأساسية (Variables)
   ═══════════════════════════════════════════ */
:root {
    /* الألوان الأساسية */
    --primary-purple: #9B59B6;
    --secondary-purple: #8E44AD;
    --light-purple: #E8D5F2;
    --very-light-purple: #F8E8FF;
    --soft-pink: #F8B4D9;
    --white: #FFFFFF;
    --text-dark: #2C3E50;
    --text-light: #7D8FA3;
    
    /* الخطوط */
    --font-primary: 'Cairo', sans-serif;
    --font-secondary: 'Amiri', serif;
    
    /* المسافات */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* الانتقالات */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    --transition-slow: 0.8s ease;
}

/* ═══════════════════════════════════════════
   إعدادات عامة (General Settings)
   ═══════════════════════════════════════════ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.8;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ═══════════════════════════════════════════
   القائمة العلوية (Navbar)
   ═══════════════════════════════════════════ */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 30px rgba(155, 89, 182, 0.08);
    transition: all var(--transition-fast);
    border-bottom: 1px solid rgba(155, 89, 182, 0.1);
}

.navbar.scrolled {
    padding: 0.8rem 0;
    box-shadow: 0 4px 40px rgba(155, 89, 182, 0.15);
    background: rgba(255, 255, 255, 0.98);
}

.navbar nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    position: relative;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.logo:hover {
    transform: scale(1.02);
}

.logo h1 {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    color: var(--primary-purple);
    font-weight: 700;
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(155, 89, 182, 0.1);
}

.logo h1::after {
    content: '✨';
    position: absolute;
    right: -30px;
    top: -5px;
    font-size: 1.2rem;
    animation: sparkle-logo 2s ease-in-out infinite;
}

@keyframes sparkle-logo {
    0%, 100% {
        transform: rotate(0deg) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: rotate(20deg) scale(1.2);
        opacity: 1;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.05rem;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    position: relative;
    transition: all var(--transition-fast);
    display: inline-block;
    overflow: hidden;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background: var(--very-light-purple);
    border-radius: 25px;
    transition: width var(--transition-fast);
    z-index: -1;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 8px;
    right: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-purple), var(--soft-pink));
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.nav-menu a:hover::before {
    width: 100%;
}

.nav-menu a:hover::after {
    width: 60%;
    right: 20%;
}

.nav-menu a:hover {
    color: var(--primary-purple);
    transform: translateY(-2px);
}

.nav-menu a.active {
    background: var(--primary-purple);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.3);
}

.nav-menu a.active:hover {
    background:var(--primary-purple);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(155, 89, 182, 0.4);
}

.nav-menu a.active::before,
.nav-menu a.active::after {
    display: none;
}

/* تأثير خاص عند مرور الماوس */
.nav-menu li:hover a {
    letter-spacing: 0.5px;
}

/* أيقونات صغيرة للقائمة */
.nav-menu a[href="index.html"]::before {
    content: '🏠';
    margin-left: 0.5rem;
}

.nav-menu a[href="library.html"]::before {
    content: '📚';
    margin-left: 0.5rem;
}

.nav-menu a[href="about.html"]::before {
    content: '💜';
    margin-left: 0.5rem;
}

.nav-menu a[href="contact.html"]::before {
    content: '✉️';
    margin-left: 0.5rem;
}

.nav-menu a.active::before {
    content: attr(data-emoji) !important;
    background: none !important;
    width: auto !important;
    height: auto !important;
    position: static !important;
    margin-left: 0.5rem;
    animation: bounce-icon 0.5s ease;
}

@keyframes bounce-icon {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
}

/* ═══════════════════════════════════════════
   أزرار تسجيل الدخول وحساب المستخدم
   ═══════════════════════════════════════════ */
.nav-auth-btn {
    padding: 0.6rem 1.5rem !important;
    border-radius: 30px !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-fast) !important;
    border: 2px solid transparent;
    margin-right: 0.5rem;
}

.nav-auth-btn::before, .nav-auth-btn::after {
    display: none !important;
}

.nav-btn-login {
    background: transparent;
    color: var(--primary-purple) !important;
    border-color: var(--primary-purple);
}

.nav-btn-login:hover {
    background: rgba(155, 89, 182, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(155, 89, 182, 0.1);
}

.nav-btn-register {
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
    color: var(--white) !important;
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.3);
}

.nav-btn-register:hover {
    box-shadow: 0 6px 20px rgba(155, 89, 182, 0.4);
    transform: translateY(-2px);
}

/* القائمة المنسدلة للمستخدم */
.nav-user-dropdown {
    position: relative;
    display: inline-block;
    margin-right: 0.5rem;
}

.nav-user-btn {
    padding: 0.5rem 1.2rem !important;
    background: var(--very-light-purple);
    color: var(--primary-purple) !important;
    border-radius: 30px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    border: 1px solid rgba(155, 89, 182, 0.2);
}

.nav-user-btn::before, .nav-user-btn::after {
    display: none !important;
}

.user-dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all var(--transition-fast);
    z-index: 1000;
    margin-top: 10px;
    border: 1px solid rgba(155, 89, 182, 0.1);
}

/* سهم القائمة المنسدلة الصغير */
.user-dropdown-content::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 20px;
    width: 15px;
    height: 15px;
    background: var(--white);
    transform: rotate(45deg);
    border-top: 1px solid rgba(155, 89, 182, 0.1);
    border-left: 1px solid rgba(155, 89, 182, 0.1);
}

.nav-user-dropdown:hover .user-dropdown-content,
.nav-user-dropdown:focus-within .user-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-content a {
    display: block !important;
    padding: 0.7rem 1.5rem !important;
    color: var(--text-dark) !important;
    font-size: 0.95rem !important;
    border-radius: 0 !important;
    text-align: right;
}

.user-dropdown-content a::before, .user-dropdown-content a::after {
    display: none !important;
}

.user-dropdown-content a:hover {
    background: rgba(155, 89, 182, 0.05);
    color: var(--primary-purple) !important;
    transform: none !important;
    padding-right: 2rem !important; /* حركة بسيطة لليمين عند التأشير */
}

.dropdown-divider {
    height: 1px;
    background: rgba(155, 89, 182, 0.1);
    margin: 0.5rem 0;
}

/* قائمة الهاتف المحمول */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-purple);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* ═══════════════════════════════════════════
   خلفية الجزيئات المتحركة
   ═══════════════════════════════════════════ */
.particles-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    background: var(--white);
}

/* ═══════════════════════════════════════════
   خلفية الفراشات المتحركة
   ═══════════════════════════════════════════ */
.butterflies-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.butterfly {
    position: absolute;
    width: 40px;
    height: 40px;
    opacity: 0.7;
    animation: fly-butterfly linear infinite;
}

.butterfly svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 5px rgba(155, 89, 182, 0.3));
}

@keyframes fly-butterfly {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg) scale(0.8);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    50% {
        transform: translateY(50vh) translateX(100px) rotate(180deg) scale(1.2);
        opacity: 0.9;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-100px) translateX(200px) rotate(360deg) scale(0.8);
        opacity: 0;
    }
}

/* تأثيرات رفرفة الأجنحة */
.butterfly .wing-left {
    animation: flap-left 0.4s ease-in-out infinite;
    transform-origin: right center;
}

.butterfly .wing-right {
    animation: flap-right 0.4s ease-in-out infinite;
    transform-origin: left center;
}

@keyframes flap-left {
    0%, 100% {
        transform: rotateY(0deg);
    }
    50% {
        transform: rotateY(-25deg);
    }
}

@keyframes flap-right {
    0%, 100% {
        transform: rotateY(0deg);
    }
    50% {
        transform: rotateY(25deg);
    }
}

/* ═══════════════════════════════════════════
   قسم الهيرو الاحترافي (Hero Section)
   ═══════════════════════════════════════════ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--very-light-purple);
    padding: var(--spacing-xl) 0;
    position: relative;
    overflow: hidden;
}

/* الضباب البنفسجي */
.purple-mist,
.purple-mist-2 {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: var(--light-purple);
    opacity: 0.3;
    filter: blur(100px);
    animation: float-mist 20s ease-in-out infinite;
    z-index: 1;
}

.purple-mist {
    top: -200px;
    left: -100px;
}

.purple-mist-2 {
    bottom: -200px;
    right: -100px;
    animation-delay: -10s;
}

@keyframes float-mist {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

/* دوائر الديكور */
.decoration-circles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.circle {
    position: absolute;
    border-radius: 50%;
    border: 2px solid var(--soft-pink);
    opacity: 0.2;
}

.circle-1 {
    width: 400px;
    height: 400px;
    top: 10%;
    right: 5%;
    animation: rotate-circle 30s linear infinite;
}

.circle-2 {
    width: 300px;
    height: 300px;
    bottom: 15%;
    left: 10%;
    animation: rotate-circle 25s linear infinite reverse;
}

.circle-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    right: 20%;
    animation: rotate-circle 20s linear infinite;
}

@keyframes rotate-circle {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    padding: var(--spacing-md) 0;
    order: 1; /* المحتوى على اليسار */
}

.hero-illustration {
    order: 2; /* الصورة على اليمين */
}

/* العنوان الرئيسي الملهم */
.hero-main-title {
    font-family: var(--font-secondary);
    font-size: 4rem;
    color: var(--primary-purple);
    margin-bottom: var(--spacing-md);
    line-height: 1.4;
    font-weight: 700;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hero-main-title .word {
    display: inline-block;
    opacity: 0;
    animation: word-appear 0.8s ease forwards;
}

.word-1 { animation-delay: 0.1s; }
.word-2 { animation-delay: 0.3s; }
.word-3 { animation-delay: 0.5s; }
.word-4 { animation-delay: 0.7s; }

.sparkle-emoji {
    display: inline-block;
    animation: sparkle-rotate 2s ease-in-out infinite;
    font-size: 3rem;
}

@keyframes word-appear {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes sparkle-rotate {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(-10deg) scale(1.1);
    }
    75% {
        transform: rotate(10deg) scale(1.1);
    }
}

/* العنوان الفرعي */
.hero-subtitle {
    font-family: var(--font-secondary);
    font-size: 2rem;
    color: var(--secondary-purple);
    margin-bottom: var(--spacing-md);
    opacity: 0;
    animation: fade-in-up 1s ease 1s forwards;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.heart-icon {
    display: inline-block;
    animation: heart-pulse 2s ease-in-out infinite;
}

@keyframes heart-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* النص الوصفي */
.hero-description {
    margin: var(--spacing-md) 0;
}

.typing-text {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 2;
    margin-bottom: var(--spacing-sm);
    opacity: 0;
    animation: typing-appear 1s ease 1.5s forwards;
}

.fade-text {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 2;
    margin-bottom: var(--spacing-sm);
    opacity: 0;
    animation: fade-in-up 1s ease forwards;
}

.fade-delay-1 {
    animation-delay: 2s;
}

.fade-delay-2 {
    animation-delay: 2.5s;
}

@keyframes typing-appear {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* الأزرار الأنثوية الاحترافية */
.hero-cta-buttons {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
    flex-wrap: wrap;
    opacity: 0;
    animation: fade-in-up 1s ease 3s forwards;
}

.cta-btn {
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-fast);
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(155, 89, 182, 0.25);
}

.cta-primary {
    background-color: var(--primary-purple);
    color: var(--white);
}

.cta-secondary {
    background-color: var(--soft-pink);
    color: var(--white);
}

.btn-icon {
    font-size: 1.3rem;
    transition: transform var(--transition-fast);
}

.btn-text {
    position: relative;
    z-index: 2;
}

.btn-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(155, 89, 182, 0.35);
}

.cta-btn:hover .btn-icon {
    transform: scale(1.2) rotate(5deg);
}

.cta-btn:hover .btn-glow {
    width: 300px;
    height: 300px;
}

.cta-primary:hover {
    background-color: var(--secondary-purple);
}

.cta-secondary:hover {
    background-color: #f79fcd;
}

/* الرسم التوضيحي المحسّن */
.hero-illustration {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fade-in-right 1.2s ease 0.5s forwards;
    z-index: 10;
    order: 2;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

@keyframes fade-in-right {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.glow-effect {
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(155, 89, 182, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse-glow 3s ease-in-out infinite;
    z-index: 1;
}

@keyframes pulse-glow {
    0%, 100% {
        transform: scale(0.95);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.hero-illustration svg {
    width: 100%;
    max-width: 600px;
    height: auto;
    filter: drop-shadow(0 10px 40px rgba(155, 89, 182, 0.3));
    position: relative;
    z-index: 2;
    display: block;
}

/* أنيميشن الكتاب */
.book-float {
    animation: book-floating 4s ease-in-out infinite;
}

@keyframes book-floating {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(1deg);
    }
}

/* أنيميشن النور المنبعث */
.light-pulse {
    animation: light-pulsing 3s ease-in-out infinite;
}

@keyframes light-pulsing {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.1);
    }
}

/* أنيميشن القلب المضيء */
.heart-glow {
    animation: heart-glowing 2s ease-in-out infinite;
}

@keyframes heart-glowing {
    0%, 100% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.heart-beat {
    animation: beat-animation 1.5s ease-in-out infinite;
}

@keyframes beat-animation {
    0%, 100% {
        r: 8;
    }
    50% {
        r: 10;
    }
}

/* أنيميشن النجوم */
.stars-twinkle .star-1 { animation: star-twinkle 2s ease-in-out infinite; }
.stars-twinkle .star-2 { animation: star-twinkle 2.2s ease-in-out infinite; }
.stars-twinkle .star-3 { animation: star-twinkle 1.8s ease-in-out infinite; }
.stars-twinkle .star-4 { animation: star-twinkle 2.5s ease-in-out infinite; }
.stars-twinkle .star-5 { animation: star-twinkle 2.3s ease-in-out infinite; }
.stars-twinkle .star-6 { animation: star-twinkle 1.9s ease-in-out infinite; }

@keyframes star-twinkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(0.8);
    }
}

/* أنيميشن القلوب الصغيرة */
.small-hearts .float-heart-1 {
    animation: float-heart 5s ease-in-out infinite;
}

.small-hearts .float-heart-2 {
    animation: float-heart 6s ease-in-out infinite;
    animation-delay: -3s;
}

@keyframes float-heart {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
        opacity: 0.9;
    }
}

/* مؤشر التمرير للأسفل */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: fade-in 1s ease 4s forwards;
    z-index: 10;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 3px solid var(--primary-purple);
    border-radius: 20px;
    position: relative;
    animation: mouse-bounce 2s ease-in-out infinite;
}

.wheel {
    width: 4px;
    height: 10px;
    background-color: var(--primary-purple);
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: wheel-scroll 2s ease-in-out infinite;
}

@keyframes mouse-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

@keyframes wheel-scroll {
    0% {
        top: 10px;
        opacity: 1;
    }
    100% {
        top: 30px;
        opacity: 0;
    }
}

.scroll-indicator p {
    font-size: 0.9rem;
    color: var(--primary-purple);
    font-weight: 600;
}

/* ═══════════════════════════════════════════
   الأزرار (Buttons)
   ═══════════════════════════════════════════ */
.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width var(--transition-medium), height var(--transition-medium);
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background-color: var(--primary-purple);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.3);
}

.btn-primary:hover {
    background-color: var(--secondary-purple);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(155, 89, 182, 0.4);
}

.btn-secondary {
    background-color: var(--soft-pink);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(248, 180, 217, 0.3);
}

.btn-secondary:hover {
    background-color: #f79fcd;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(248, 180, 217, 0.4);
}

/* ═══════════════════════════════════════════
   قسم ابدأ رحلتك (Journey Section)
   ═══════════════════════════════════════════ */
.journey-section {
    padding: var(--spacing-xl) 0;
    background: var(--white);
    position: relative;
    z-index: 2;
}

.section-intro {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-family: var(--font-secondary);
    font-size: 2.8rem;
    color: var(--primary-purple);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    font-family: var(--font-primary);
}

.journey-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.journey-card {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(155, 89, 182, 0.1);
    transition: all var(--transition-fast);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.journey-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-purple), var(--soft-pink));
    border-radius: 25px;
    opacity: 0;
    transition: opacity var(--transition-fast);
    z-index: -1;
}

.journey-card:hover::before {
    opacity: 1;
}

.journey-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 45px rgba(155, 89, 182, 0.25);
    border-color: var(--primary-purple);
}

.card-icon-circle {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--spacing-sm);
    background: var(--very-light-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.card-icon-circle::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--light-purple);
    border-radius: 50%;
    transform: scale(0);
    transition: transform var(--transition-fast);
}

.journey-card:hover .card-icon-circle::after {
    transform: scale(1);
}

.journey-card:hover .card-icon-circle {
    transform: rotate(360deg);
}

.card-icon {
    width: 50px;
    height: 50px;
    position: relative;
    z-index: 2;
}

.journey-card h3 {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    color: var(--primary-purple);
    margin-bottom: var(--spacing-sm);
    transition: color var(--transition-fast);
}

.journey-card:hover h3 {
    color: var(--secondary-purple);
}

.journey-card p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
    font-size: 1rem;
}

.card-link {
    display: inline-block;
    color: var(--soft-pink);
    font-weight: 600;
    text-decoration: none;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 20px;
    transition: all var(--transition-fast);
    position: relative;
}

.card-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-purple);
    transition: width var(--transition-fast);
}

.card-link:hover::after {
    width: 100%;
}

.card-link:hover {
    color: var(--primary-purple);
    background-color: var(--very-light-purple);
}

/* ═══════════════════════════════════════════
   صفحة المكتبة (Library Page)
   ═══════════════════════════════════════════ */
.library-section,
.about-section,
.contact-section,
.write-story-section,
.stories-section {
    padding: var(--spacing-xl) 0;
    min-height: 80vh;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-header h2 {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    color: var(--primary-purple);
    margin-bottom: var(--spacing-sm);
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
}

.library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.library-card {
    background-color: var(--white);
    border-radius: 20px;
    padding: var(--spacing-md);
    text-align: center;
    box-shadow: 0 4px 20px rgba(155, 89, 182, 0.1);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.library-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(155, 89, 182, 0.2);
}

.card-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--spacing-sm);
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.library-card h3 {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    color: var(--primary-purple);
    margin-bottom: var(--spacing-sm);
}

.library-card p {
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
    line-height: 1.8;
}

.card-link {
    display: inline-block;
    color: var(--primary-purple);
    font-weight: 600;
    text-decoration: none;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 20px;
    transition: all var(--transition-fast);
}

.card-link:hover {
    background-color: var(--light-purple);
}

/* ═══════════════════════════════════════════
   صفحة من نحن (About Page)
   ═══════════════════════════════════════════ */
.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    background-color: var(--very-light-purple);
    padding: var(--spacing-md);
    border-radius: 20px;
    margin-bottom: var(--spacing-md);
    border-right: 5px solid var(--primary-purple);
}

.about-text h3 {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    color: var(--primary-purple);
    margin-bottom: var(--spacing-sm);
}

.about-text p {
    color: var(--text-light);
    line-height: 2;
    margin-bottom: var(--spacing-sm);
}

.values-list {
    list-style: none;
    padding: 0;
}

.values-list li {
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    background-color: var(--white);
    border-radius: 10px;
    color: var(--text-light);
    transition: all var(--transition-fast);
}

.values-list li:hover {
    transform: translateX(-5px);
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.1);
}

.values-list strong {
    color: var(--primary-purple);
}

/* ═══════════════════════════════════════════
   صفحة التواصل (Contact Page)
   ═══════════════════════════════════════════ */
    
.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.contact-info h3 {
    font-family: var(--font-secondary);
    font-size: 2rem;
    color: var(--primary-purple);
    margin-bottom: var(--spacing-sm);
}

.contact-info p {
    color: var(--text-light);
    line-height: 2;
    margin-bottom: var(--spacing-md);
}

.contact-details {
    margin-top: var(--spacing-md);
}

.contact-item {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
    padding: var(--spacing-sm);
    background-color: var(--very-light-purple);
    border-radius: 15px;
    margin-bottom: var(--spacing-sm);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 30px;
    height: 30px;
}

.contact-item h4 {
    color: var(--primary-purple);
    margin-bottom: 0.3rem;
}

.contact-item p {
    color: var(--text-light);
    margin: 0;
}

/* النماذج (Forms) */
.contact-form,
.story-form {
    background-color: var(--very-light-purple);
    padding: var(--spacing-md);
    border-radius: 20px;
}

.form-group {
    margin-bottom: var(--spacing-sm);
}

.form-group label {
    display: block;
    color: var(--primary-purple);
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.form-small {
    max-width: 500px;
    margin: 0 auto;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-sm);
    border: 2px solid var(--light-purple);
    border-radius: 10px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all var(--transition-fast);
    background-color: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(155, 89, 182, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}


/* ═══════════════════════════════════════════
   صفحة كتابة القصة (Write Story Page)
   ═══════════════════════════════════════════ */
.story-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-actions {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
    flex-wrap: wrap;
}

.form-note {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: var(--spacing-sm);
    font-style: italic;
}

/* ══════════════════════════════════════════
   صفحة القصص (Stories Page)
   ═══════════════════════════════════════════ */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.story-card {
    background-color: var(--white);
    border-radius: 20px;
    padding: var(--spacing-md);
    box-shadow: 0 4px 20px rgba(155, 89, 182, 0.1);
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
    border-top: 4px solid var(--primary-purple);
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(155, 89, 182, 0.2);
}

.story-header {
    margin-bottom: var(--spacing-sm);
}

.story-header h3 {
    font-family: var(--font-secondary);
    color: var(--primary-purple);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.story-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

.story-excerpt {
    flex-grow: 1;
    margin-bottom: var(--spacing-sm);
}

.story-excerpt p {
    color: var(--text-light);
    line-height: 1.8;
}

.story-verse {
    background-color: var(--very-light-purple);
    padding: var(--spacing-sm);
    border-radius: 10px;
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.verse-icon {
    font-size: 1.3rem;
}

.verse-text {
    color: var(--primary-purple);
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    font-weight: 600;
}

.story-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--light-purple);
}

.story-author {
    color: var(--primary-purple);
    font-weight: 600;
}

.read-more {
    color: var(--soft-pink);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.read-more:hover {
    color: var(--primary-purple);
}

.load-more-container {
    text-align: center;
    margin-top: var(--spacing-lg);
}

.story-card .story-image {
    width: 100%;        /* تمتد لعرض الكارد */
    height: auto;       /* يحافظ على نسبة الطول والعرض */
    border-radius: 15px; /* حواف ناعمة */
    object-fit: cover;  /* يقطع الصورة لتملأ الكارد بدون تشويه */
}
.story-card-small .story-image {
    width: 100%;        /* تمتد لعرض الكارد */
    height: 200px;       /* يحافظ على نسبة الطول والعرض */
    object-fit: cover; /* حواف ناعمة */
    border-radius: 15px;  /* يقطع الصورة لتملأ الكارد بدون تشويه */
}
/* ═══════════════════════════════════════════
   الفوتر (Footer) - تصميم محسّن واحترافي
   ═══════════════════════════════════════════ */
.footer {
    position: relative;
    background: linear-gradient(135deg, #9B59B6 0%, #8E44AD 50%, #7D3C98 100%);
    color: var(--white);
    margin-top: var(--spacing-xl);
    overflow: hidden;
}

.footer-content {
    position: relative;
    z-index: 2;
    padding: 3rem 0 1.5rem;
}

/* Grid Layout محسّن */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 2rem;
    align-items: start;
}

/* ترتيب الأقسام */
.footer-section {
    animation: fadeInUp 0.6s ease forwards;
}

.footer-section:nth-child(1) {
    grid-column: 1 / 2;
}

.footer-section:nth-child(2) {
    grid-column: 2 / 3;
}

.footer-section:nth-child(3) {
    grid-column: 3 / 4;
}

.footer-section:nth-child(4) {
    grid-column: 4 / 5;
}

/* العناوين */
.footer-title {
    font-family: var(--font-secondary);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    font-weight: 700;
}

.footer-icon {
    font-size: 1.4rem;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

/* النصوص الوصفية */
.footer-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.8rem;
    text-align: justify;
}

/* الخط الزخرفي */
.footer-decorative-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #F8B4D9, transparent);
    border-radius: 10px;
    margin-top: 0.8rem;
}

/* الروابط */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    padding: 0.3rem 0;
}

.footer-links a:hover {
    color: var(--white);
    transform: translateX(-5px);
    text-shadow: 0 0 10px rgba(248, 180, 217, 0.5);
}

/* أيقونات التواصل الاجتماعي */
.footer-social {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 20px rgba(248, 180, 217, 0.5);
}

/* Newsletter */
.footer-newsletter {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.newsletter-input {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    color: var(--white);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--soft-pink);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 15px rgba(248, 180, 217, 0.3);
}

.newsletter-btn {
    width: 100%;
    padding: 0.7rem 1rem;
    background: linear-gradient(135deg, var(--soft-pink), #F8B4D9);
    border: none;
    border-radius: 10px;
    color: var(--white);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 15px rgba(248, 180, 217, 0.3);
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(248, 180, 217, 0.5);
    background: linear-gradient(135deg, #F8B4D9, var(--soft-pink));
}

.newsletter-btn:active {
    transform: translateY(0);
}

/* الخط الفاصل */
.footer-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3) 20%,
        rgba(255, 255, 255, 0.3) 80%,
        transparent
    );
    margin: 1.5rem 0 1rem;
}

/* حقوق النشر */
.footer-bottom {
    text-align: center;
    padding: 1rem 0;
}

.footer-copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.copyright-icon {
    font-size: 1.1rem;
}

.footer-heart {
    display: inline-block;
    animation: heartBeat 1.5s ease-in-out infinite;
}

.footer-verse {
    font-family: var(--font-secondary);
    font-size: 1rem;
    color: var(--very-light-purple);
    font-style: italic;
    margin-top: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    line-height: 1.6;
}

/* ═══════════════════════════════════════════
   Responsive Design للـ Footer
   ═══════════════════════════════════════════ */

/* Tablet - شاشات متوسطة */
@media (max-width: 1024px) {
    .footer-content {
        padding: 2.5rem 0 1.2rem;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    
    .footer-section:nth-child(1) {
        grid-column: 1 / 2;
    }
    
    .footer-section:nth-child(2) {
        grid-column: 2 / 3;
    }
    
    .footer-section:nth-child(3) {
        grid-column: 1 / 2;
    }
    
    .footer-section:nth-child(4) {
        grid-column: 2 / 3;
    }
}

/* شاشات صغيرة - Tablet عمودي */
@media (max-width: 768px) {
    .footer-content {
        padding: 2rem 0 1rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-section:nth-child(1),
    .footer-section:nth-child(2),
    .footer-section:nth-child(3),
    .footer-section:nth-child(4) {
        grid-column: 1 / -1;
    }
    
    .footer-title {
        font-size: 1.15rem;
        margin-bottom: 0.8rem;
    }
    
    .footer-desc {
        font-size: 0.85rem;
        text-align: right;
    }
    
    .footer-links a {
        font-size: 0.85rem;
    }
    
    .footer-social {
        justify-content: flex-start;
    }
    
    .footer-verse {
        font-size: 0.95rem;
    }
}

/* Mobile - الجوال */
@media (max-width: 480px) {
    .footer-content {
        padding: 1.5rem 0 0.8rem;
    }
    
    .footer-grid {
        gap: 1.5rem;
    }
    
    .footer-title {
        font-size: 1.1rem;
        margin-bottom: 0.7rem;
    }
    
    .footer-icon {
        font-size: 1.2rem;
    }
    
    .footer-desc {
        font-size: 0.8rem;
        line-height: 1.6;
    }
    
    .footer-links li {
        margin-bottom: 0.5rem;
    }
    
    .footer-links a {
        font-size: 0.8rem;
        padding: 0.2rem 0;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
    }
    
    .newsletter-input,
    .newsletter-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .footer-divider {
        margin: 1rem 0 0.8rem;
    }
    
    .footer-bottom {
        padding: 0.8rem 0;
    }
    
    .footer-copyright {
        font-size: 0.8rem;
        gap: 0.3rem;
    }
    
    .footer-verse {
        font-size: 0.85rem;
        line-height: 1.5;
    }
}

/* الزخارف البنفسجية */
.footer-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(248, 180, 217, 0.1), transparent);
    animation: float 6s ease-in-out infinite;
}

.decoration-circle.circle-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    right: 5%;
    animation-delay: 0s;
}

.decoration-circle.circle-2 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 10%;
    animation-delay: 2s;
}

.decoration-circle.circle-3 {
    width: 100px;
    height: 100px;
    top: 60%;
    right: 15%;
    animation-delay: 4s;
}

/* Animation للقلب */
@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(1);
    }
    75% {
        transform: scale(1.05);
    }
}

/* Animation للأيقونات */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* Animation للدوائر */
@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    33% {
        transform: translateY(-20px) translateX(10px);
    }
    66% {
        transform: translateY(-10px) translateX(-10px);
    }
}

/* Responsive للفوتر */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-title {
        font-size: 1.3rem;
    }
    
    .footer-desc {
        font-size: 0.9rem;
    }
    
    .footer-copyright {
        font-size: 0.85rem;
        flex-direction: column;
    }
    
    .footer-verse {
        font-size: 0.95rem;
    }
    
    .decoration-circle {
        opacity: 0.5;
    }
}

.footer p {
    margin: 0;
}

/* ═══════════════════════════════════════════
   الأنيميشن (Animations)
   ═══════════════════════════════════════════ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes sparkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* تطبيق الأنيميشن */
.fade-in {
    animation: fadeIn 1s ease;
}

.fade-in-delay {
    animation: fadeIn 1s ease 0.3s both;
}

.fade-in-delay-2 {
    animation: fadeIn 1s ease 0.6s both;
}

.fade-in-right {
    animation: fadeInRight 1s ease;
}

.fade-in-left {
    animation: fadeInLeft 1s ease;
}

.fade-in-up {
    animation: fadeIn 0.8s ease;
}

.fade-in-up.delay-1 {
    animation: fadeIn 0.8s ease 0.2s both;
}

.fade-in-up.delay-2 {
    animation: fadeIn 0.8s ease 0.4s both;
}

.fade-in-up.delay-3 {
    animation: fadeIn 0.8s ease 0.6s both;
}

.floating {
    animation: float 3s ease-in-out infinite;
}

.sparkle {
    animation: sparkle 2s ease-in-out infinite;
}

.sparkle-1 {
    animation-delay: 0s;
}

.sparkle-2 {
    animation-delay: 0.4s;
}

.sparkle-3 {
    animation-delay: 0.8s;
}

.sparkle-4 {
    animation-delay: 1.2s;
}

.sparkle-5 {
    animation-delay: 1.6s;
}

.pulse-heart {
    animation: pulse 2s ease-in-out infinite;
}

/* ═══════════════════════════════════════════
   التصميم المتجاوب (Responsive Design)
   ═══════════════════════════════════════════ */

/* التابلت */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-md);
    }
    
    .hero-content {
        order: 2; /* المحتوى في الأسفل */
    }
    
    .hero-illustration {
        order: 1; /* الصورة في الأعلى */
        max-width: 500px;
        margin: 0 auto;
    }
    
    .hero-main-title {
        font-size: 3rem;
        justify-content: center;
    }
    
    .hero-subtitle {
        font-size: 1.7rem;
    }
    
    .hero-content {
        order: 2;
    }
    
    .hero-illustration {
        order: 1;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .hero-cta-buttons {
        justify-content: center;
    }
    
    .purple-mist,
    .purple-mist-2 {
        width: 400px;
        height: 400px;
    }
    
    .decoration-circles .circle {
        display: none;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .library-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .section-title {
        font-size: 2.3rem;
    }
}

/* الهاتف المحمول */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: var(--spacing-md);
        border-radius: 0 0 20px 20px;
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero {
        min-height: auto;
        padding: var(--spacing-lg) 0;
    }
    
    .hero-main-title {
        font-size: 2.5rem;
    }
    
    .sparkle-emoji {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .typing-text,
    .fade-text {
        font-size: 1rem;
    }
    
    .hero-cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-btn {
        width: 100%;
        justify-content: center;
    }
    
    .purple-mist,
    .purple-mist-2 {
        width: 300px;
        height: 300px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .journey-cards {
        grid-template-columns: 1fr;
    }
    
    .library-grid {
        grid-template-columns: 1fr;
    }
    
    .stories-grid {
        grid-template-columns: 1fr;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .hero-main-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 1.7rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .logo h1 {
        font-size: 1rem;
    }
    
    .cta-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .journey-card {
        padding: var(--spacing-sm);
    }
    
    .card-icon-circle {
        width: 80px;
        height: 80px;
    }
    
    .card-icon {
        width: 40px;
        height: 40px;
    }


}

