/* ==========================================================================
   1. التنسيقات الأساسية للصفحة (Base Styles)
   ========================================================================== */
   html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background-color: #0b0b0b;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow-x: hidden;
}

/* ==========================================================================
   2. الأقسام العامة وضبط الارتفاع والتجاوب الفاخر
   ========================================================================== */
.hero-section,
.hero-section-kids,
.secondary-banner-section {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 70px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 30px 20px;
    box-sizing: border-box;
    overflow: hidden;
    scroll-margin-top: 70px;
}

/* خلفية قسم الأطفال مع تأثير السينما الحركي المتطور */
.hero-section-kids {
    background: url('../uploads/vecteezy_ai-generated-smiling-child-cute-portrait-happiness-in_39624404.jpg') center center / cover no-repeat;
    animation: cinematicZoomKids 22s infinite alternate ease-in-out;
}

@keyframes cinematicZoomKids {
    0% {
        transform: scale(1);
        filter: brightness(0.9);
    }
    100% {
        transform: scale(1.08);
        filter: brightness(1.05);
    }
}

/* حاوية الفيديو التفاعلية للخلفية */
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

/* طبقة تدرج إضاءة فاخرة وعميقة */
.hero-section::before,
.hero-section-kids::before,
.secondary-banner-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.65) 100%);
    z-index: 2;
}

.hero-content,
.hero-top-notice,
.hero-footer-links {
    position: relative;
    z-index: 3;
}

/* التنبيه العلوي */
.hero-top-notice {
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: #dcdcdc;
    font-weight: 300;
    text-align: center;
    margin-top: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* محتوى الـ Hero الرئيسي */
.hero-content {
    margin-top: auto;
    margin-bottom: auto;
    text-align: center;
    padding: 0 15px;
}

.hero-main-title {
    font-size: clamp(2rem, 4.5vw, 2.8rem);
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 10px;
    font-family: serif;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
    font-size: 0.9rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #dcdcdc;
    margin-bottom: 25px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-actions {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

/* أزرار الروابط العصرية بانسيابية عالية */
.hero-link-btn {
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 6px;
    transition: color 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-link-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1.5px;
    background-color: #fff;
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1), left 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.hero-link-btn:hover {
    color: #ffffff;
    transform: translateY(-3px);
}

.hero-link-btn:hover::after {
    width: 100%;
    left: 0;
}

/* سهم التمرير المتحرك بالسفل */
.hero-footer-links {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    margin-bottom: 10px;
}

.hero-down-arrow {
    width: 24px;
    height: 40px;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    position: relative;
    display: flex;
    justify-content: center;
    padding-top: 5px;
    transition: all 0.4s ease;
    backdrop-filter: blur(2px);
}

.hero-footer-links:hover .hero-down-arrow {
    border-color: rgba(255, 255, 255, 1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.hero-down-arrow::before {
    content: '';
    width: 3px;
    height: 8px;
    background-color: #fff;
    border-radius: 2px;
    animation: scrollAnimation 2s infinite cubic-bezier(0.65, 0, 0.35, 1);
}

@keyframes scrollAnimation {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(16px);
        opacity: 0;
    }
}

/* ==========================================================================
   3. الأقسام الثانوية ذات الطابع الفاخر
   ========================================================================== */
.secondary-banner-section {
    background: url('../uploads/vecteezy_elegantly-dressed-people-in-a-classic-setting_46406000.jpeg') center center / cover no-repeat;
    animation: cinematicZoomSec 25s infinite alternate ease-in-out;
    justify-content: center;
    text-align: center;
}

@keyframes cinematicZoomSec {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.06);
    }
}

.secondary-content {
    position: relative;
    z-index: 3;
    max-width: 850px;
    padding: 0 20px;
}

.secondary-title {
    font-size: clamp(2rem, 4.5vw, 2.5rem);
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 15px;
    font-family: serif;
    color: #fff;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.secondary-subtitle {
    font-size: 0.95rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #dcdcdc;
    margin-bottom: 30px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.secondary-actions {
    display: flex;
    gap: 35px;
    justify-content: center;
    flex-wrap: wrap;
}

.secondary-link-end-btn {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 14px 35px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.secondary-link-end-btn:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.25);
}