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

:root {
    --primary-green: #5EA262;
    --primary-orange: #EFA130;
    --primary-blue: #0071BC;
    --primary-gray: #4E4E4E;
    --pure-white: #FFFFFF;
    --light-bg: #F8F9FA;
    --gold: #FFD700;
    --deep-blue: #003366;
    --shadow-soft: 0 8px 40px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.2);
    --gradient-primary: linear-gradient(135deg, var(--primary-green), var(--primary-blue));
    --gradient-secondary: linear-gradient(135deg, var(--primary-orange), var(--gold));
    --gradient-hero: linear-gradient(135deg, #0f4c75, #3282b8, #0f4c75);
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.7;
    color: var(--primary-gray);
    overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-blue);
}

/* --- PREMIUM HEADER & HERO DESIGN --- */

/* 1. Premium Navbar */
.premium-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, transparent 100%);
}

.premium-navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 15px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-logo-img {
    height: 60px;
    width: auto;
    transition: all 0.3s ease;
    filter: brightness(0) invert(1);
    /* Start white on dark hero */
}

.premium-navbar.scrolled .nav-logo-img {
    height: 50px;
    filter: none;
    /* Return to color on white bg */
}

.nav-links-modern {
    display: flex;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links-modern a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    position: relative;
    padding: 5px 0;
    transition: all 0.3s ease;
}

.premium-navbar.scrolled .nav-links-modern a {
    color: var(--deep-blue);
}

.nav-links-modern a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    /* Arabic RTL */
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transition: width 0.3s ease;
}

.nav-links-modern a:hover::after {
    width: 100%;
}

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

.btn-glass-nav {
    padding: 10px 25px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-glass-nav:hover {
    background: white;
    color: var(--deep-blue);
    transform: translateY(-2px);
}

.premium-navbar.scrolled .btn-glass-nav {
    background: var(--gradient-secondary);
    border-color: transparent;
    color: white;
}

.premium-navbar.scrolled .btn-glass-nav:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.lang-toggle {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.premium-navbar.scrolled .lang-toggle {
    color: var(--deep-blue);
}

/* 2. Cinematic Hero */
.hero-section-modern {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.hero-slider-modern {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-slide-item {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 8s ease;
    transform: scale(1.1);
}

.hero-slide-item.active {
    opacity: 1;
    transform: scale(1);
}

.hero-overlay-modern {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 2;
}

.hero-content-modern {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 1000px;
    padding: 0 20px;
    margin-top: 60px;
    /* Offset for navbar */
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: var(--primary-green);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 30px;
    animation: fadeInDown 1s ease 0.2s both;
}

.hero-title-modern {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
    color: white;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-title-modern span {
    background: linear-gradient(135deg, #fff 0%, #a5d6a7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc-modern {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 50px;
    line-height: 1.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-actions-modern {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 1s ease 0.8s both;
}

/* Modern Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    opacity: 0.8;
    animation: float 3s ease-in-out infinite;
    text-decoration: none !important;
    /* Force remove underline */
    cursor: pointer;
}

.scroll-indicator:hover {
    color: white;
    opacity: 1;
}

.scroll-mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    position: relative;
}

.scroll-mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% {
        top: 6px;
        opacity: 1;
    }

    100% {
        top: 20px;
        opacity: 0;
    }
}

@media (max-width: 900px) {
    .nav-container {
        padding: 0 20px;
    }

    .nav-links-modern {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 999;
    }

    .nav-links-modern.active {
        display: flex;
    }

    .nav-links-modern a {
        color: var(--deep-blue);
        font-size: 1.5rem;
    }

    /* Mobile menu needed */
    .hero-title-modern {
        font-size: 2.5rem;
    }

    .hero-desc-modern {
        font-size: 1.1rem;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 1001;
        cursor: pointer;
        color: white;
        font-size: 1.5rem;
    }

    .premium-navbar.scrolled .mobile-menu-btn {
        color: var(--deep-blue);
    }
}

/* Quick Stats */
.quick-stats {
    background: var(--pure-white);
    padding: 60px 0;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.stat-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    background: var(--gradient-primary);
    box-shadow: var(--shadow-soft);
}

.stats-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    background: white;
    padding: 50px;
    border-radius: 25px;
    box-shadow: var(--shadow-hover);
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--primary-gray);
    font-weight: 500;
}

/* About Section */
.about-section {
    padding: 100px 0;
    background: var(--light-bg);
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.3rem;
    color: var(--primary-gray);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-gray);
    margin-bottom: 25px;
}

.about-content p {
    font-size: 1.2rem;
    line-height: 1.9;
    margin-bottom: 30px;
    color: var(--primary-gray);
}

.about-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.vision-card,
.mission-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.vision-card::before,
.mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
}

.mission-card::before {
    background: var(--gradient-secondary);
}

.vision-card:hover,
.mission-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    background: var(--gradient-primary);
}

.mission-card .card-icon {
    background: var(--gradient-secondary);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-gray);
}

.card-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--primary-gray);
}

/* Services Section */
.services-section {
    padding: 100px 0;
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 35px;
}

.service-card {
    background: white;
    padding: 40px;
    border-radius: 25px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(94, 162, 98, 0.1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 1;
}

.service-card:hover::before {
    opacity: 0.05;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-green);
}

.service-card>* {
    position: relative;
    z-index: 2;
}

.service-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    background: var(--gradient-primary);
    box-shadow: var(--shadow-soft);
}

.service-card:nth-child(2n) .service-icon {
    background: var(--gradient-secondary);
}

.service-card:nth-child(3n) .service-icon {
    background: linear-gradient(135deg, var(--primary-blue), var(--deep-blue));
}

.service-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-gray);
}

.service-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--primary-gray);
    margin-bottom: 25px;
}

.service-link {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.service-link:hover {
    color: var(--primary-blue);
    transform: translateX(-5px);
}

/* News Section */
.news-section {
    padding: 100px 0;
    background: var(--light-bg);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 35px;
}

.news-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.news-image {
    height: 250px;
    overflow: hidden;
    border-bottom: 3px solid var(--primary-green);
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}


.news-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.news-card:hover .news-image::before {
    transform: translateX(100%);
}

.news-content {
    padding: 30px;
}

.news-date {
    color: var(--primary-orange);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-gray);
    line-height: 1.5;
}

.news-excerpt {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--primary-gray);
    margin-bottom: 20px;
}

.read-more {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: var(--primary-blue);
    transform: translateX(-5px);
}

/* Partners Section */
.partners-section {
    padding: 100px 0;
    background: white;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    align-items: center;
}

.partner-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.partner-card:hover {
    border-color: var(--primary-green);
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

.partner-logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-gray);
}

/* footer */
.footer-apple {
    background-color: var(--deep-blue);
    color: #ffffff;
    font-size: 13px;
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-apple .footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
    align-items: start;
}

.footer-brand h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #fff;
    letter-spacing: -0.01em;
}

.footer-brand p {
    color: #86868b;
    line-height: 1.6;
    max-width: 320px;
}

.footer-social-icons {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.footer-social-icons a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.footer-social-icons a:hover {
    background: #fff;
    color: #1d1d1f;
    transform: translateY(-3px);
}

.footer-section h4 {
    font-size: 12px;
    font-weight: 600;
    color: #86868b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #f5f5f7;
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
    display: inline-block;
}

.footer-section ul li a:hover {
    color: #2997ff;
    text-decoration: underline;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #86868b;
    font-size: 12px;
}

.footer-bottom-links a {
    color: #86868b;
    margin-left: 20px;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-bottom-links a:hover {
    color: #f5f5f7;
    text-decoration: underline;
}

@media (max-width: 900px) {
    .footer-apple .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-bottom-links {
        margin-top: 10px;
    }

    .footer-bottom-links a {
        margin: 0 10px;
    }
}


/* Animations */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(180deg);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

@keyframes patternFloat {
    0% {
        transform: translateX(0px) translateY(0px);
    }

    100% {
        transform: translateX(50px) translateY(30px);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

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

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        padding: 30px;
    }

    .top-header-content {
        flex-direction: column;
        gap: 15px;
    }

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

/* Loading Animation */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: all 0.5s ease;
}

.loader {
    width: 80px;
    height: 80px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}


/* زر العضويات */
.btn-membership {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-blue));
    color: #fff;
    padding: 10px 20px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    margin-inline-start: 10px;
    /* مسافة بسيطة بينه وبين ENGLISH */
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-membership:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    opacity: 0.95;
}

/* على الشاشات الصغيرة، خليه بمحاذاة ENGLISH بشكل أجمل */
@media (max-width: 768px) {
    .btn-membership {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

/* فاصل SVG */
.svg-divider {
    width: 100%;
    text-align: center;
    padding: 3rem 0;
    overflow: hidden;
}

.svg-divider img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* أحجام مختلفة للفاصل */
.svg-divider.large img {
    max-width: 1200px;
}

.svg-divider.medium img {
    max-width: 800px;
}

.svg-divider.small img {
    max-width: 400px;
}

/* تحسينات للجوال */
@media (max-width: 768px) {
    .svg-divider {
        padding: 2rem 0;
    }

    .svg-divider img {
        max-width: 90%;
    }
}

.partner-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.partner-card:hover {
    border-color: var(--primary-green);
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

.partner-logo {
    max-width: 150px;
    max-height: 80px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

/* --- Apple Animations --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.reveal {
    animation: fadeIn 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* --- Apple Style About Section --- */
.section-apple {
    padding: 120px 20px;
    position: relative;
    background: #F5F5F7;
    color: #1D1D1F;
}

.about-story-modern {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto 100px;
    align-items: start;
    position: relative;
}

.story-marker {
    text-align: left;
    position: relative;
    padding-left: 30px;
    border-left: 4px solid var(--primary-orange);
    margin-left: 20px;
    /* Moves the pole forward */
}

.story-year {
    font-size: 140px;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(180deg, var(--primary-green) 0%, rgba(94, 162, 98, 0.1) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.3;
    position: absolute;
    top: -30px;
    left: 5px;
    /* Adjusts relative to new margin */
    z-index: 0;
    font-family: 'Inter', sans-serif;
    letter-spacing: -6px;
}

.story-title-main {
    font-size: 32px;
    font-weight: 800;
    color: #1D1D1F;
    position: relative;
    z-index: 1;
    line-height: 1.3;
}

.story-content {
    font-size: 18px;
    line-height: 2.2;
    /* Relaxed leading */
    color: #4A4A4F;
    text-align: justify;
    /* Requested */
    font-weight: 500;
}

.story-content p {
    margin-bottom: 25px;
}

/* Responsive */
@media (max-width: 900px) {
    .about-story-modern {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .story-marker {
        text-align: center;
        border-left: none;
        border-bottom: 4px solid var(--primary-orange);
        padding-left: 0;
        padding-bottom: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .story-year {
        position: static;
        font-size: 60px;
        margin-bottom: -30px;
        opacity: 0.15;
    }

    .story-content {
        text-align: justify;
        /* Keep justified on mobile too */
        text-align-last: center;
        /* Center last line for balance on mobile */
    }
}

.vision-mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto 100px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 28px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.glass-card:hover {
    transform: scale(1.02);
}

.glass-card .card-icon {
    font-size: 48px;
    margin: 0 auto 30px;
    color: var(--primary-green);
    background: linear-gradient(135deg, var(--primary-green), #0071E3);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    width: fit-content;
}

/* --- NEW PREMIUM FOOTER STYLES --- */
/* --- NEW PREMIUM FOOTER STYLES --- */
.footer-modern-premium {
    /* Vibrant Blue Gradient to match visual identity */
    background: linear-gradient(135deg, #002855 0%, #004e92 100%);
    color: #e0f2fe;
    /* Light blue-white for better contrast on blue */
    font-family: 'Cairo', sans-serif;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Subtle Pattern Overlay with slightly higher opacity for texture */
.footer-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
    pointer-events: none;
}

.cta-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 50px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.cta-text h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.cta-text p {
    color: #9ca3af;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    flex-grow: 1;
    max-width: 500px;
}

.newsletter-input {
    flex: 1;
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    outline: none;
    transition: all 0.3s;
}

.newsletter-input:focus {
    border-color: var(--primary-green);
    background: rgba(255, 255, 255, 0.1);
}

.btn-subscribe {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-subscribe:hover {
    transform: translateY(-2px);
    background: #2e7d32;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

.footer-main {
    padding: 80px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.brand-col h2 {
    font-size: 2rem;
    color: white;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #fff, #9ca3af);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-col p {
    line-height: 1.8;
    margin-bottom: 30px;
    color: #9ca3af;
}

.footer-col h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 25px;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-green);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a:hover {
    color: var(--primary-green);
    transform: translateX(-5px);
}

.footer-links a i {
    font-size: 0.8rem;
    opacity: 0.5;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    color: #d1d5db;
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    font-size: 1.1rem;
    transition: all 0.3s;
}

.contact-list li:hover .contact-icon {
    background: var(--primary-green);
    color: white;
    transform: rotate(10deg);
}

.social-buttons {
    display: flex;
    gap: 15px;
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-btn:hover {
    background: var(--primary-green);
    border-color: var(--primary-green);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    /* Semi-transparent dark overlay */
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Developer Credit Section */





.legal-links {
    display: flex;
    gap: 30px;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.legal-links a:hover {
    color: white;
}

@media (max-width: 900px) {
    .cta-container {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-form {
        width: 100%;
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .brand-col {
        grid-column: 1 / -1;
        text-align: center;
    }

    .footer-col h4::after {
        right: 50%;
        transform: translateX(50%);
    }

    .footer-col {
        text-align: center;
    }

    .footer-links a {
        justify-content: center;
    }

    .contact-list li {
        justify-content: center;
    }

    .social-buttons {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

.glass-card .card-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1D1D1F;
}

.glass-card .card-text {
    font-size: 17px;
    color: #86868B;
    line-height: 1.6;
}

/* Values Grid */
.values-section {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.value-card {
    background: #fff;
    padding: 40px 20px;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.value-icon-apple {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #F5F5F7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #1D1D1F;
    transition: all 0.3s;
}

.value-card:hover .value-icon-apple {
    background: var(--primary-green);
    color: #fff;
}

.value-name {
    font-size: 16px;
    font-weight: 600;
    color: #1D1D1F;
}

@media (max-width: 768px) {
    .about-story-text {
        font-size: 18px;
    }

    .vision-mission-grid {
        grid-template-columns: 1fr;
    }
}

/* Premium Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-logo {
    width: 60px;
    height: auto;
    animation: breathing 2s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.loader-spinner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid rgba(94, 162, 98, 0.1);
    border-top: 3px solid var(--primary-green);
    border-bottom: 3px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
    z-index: 1;
}

@keyframes breathing {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* "All news" button under the latest news on the home page. */
.news-all {
    text-align: center;
    margin-top: 45px;
}

.btn-news-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 34px;
    border-radius: 50px;
    background: var(--deep-blue);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
}

.btn-news-all:hover {
    background: var(--primary-blue);
    transform: translateY(-2px);
}

/* ==========================================================================
   Design refinements from the Apple HIG review of the landing page.
   Each block names the guideline it serves.
   ========================================================================== */

/* Hero. Contrast: text must stay legible on any slide, including very bright
   photos. A brand-tinted scrim replaces the light grey one. */
.hero-overlay-modern {
    background: linear-gradient(180deg,
            rgba(0, 25, 51, 0.6) 0%,
            rgba(0, 25, 51, 0.66) 50%,
            rgba(0, 25, 51, 0.82) 100%);
}

.hero-title-modern span {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: #a3dea6;
}

.hero-desc-modern {
    color: #ffffff;
    margin-bottom: 42px;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
}

/* Buttons: one prominent action per view, with a press state and a 44px+ target. */
.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 0 36px;
    border-radius: 50px;
    background: #ffffff;
    color: var(--deep-blue);
    font-size: 1.15rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-hero-primary:hover { background: #eef7ef; }
.btn-hero-primary:active { transform: scale(0.97); }
.btn-hero-primary:focus-visible { outline: 3px solid #a3dea6; outline-offset: 3px; }

.scroll-indicator { color: rgba(255, 255, 255, 0.88); opacity: 1; }
.scroll-mouse { border-color: rgba(255, 255, 255, 0.88); }

/* Section titles. Hierarchy and consistency: solid ink with a short brand
   accent, matching the inner pages; branding defers to content. */
.section-title {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: var(--deep-blue);
    font-weight: 800;
    position: relative;
    padding-bottom: 18px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 64px;
    height: 4px;
    border-radius: 2px;
    transform: translateX(-50%);
    background: var(--gradient-primary);
}

/* About. Contrast for card text (was 3.6:1); the year mark stays decorative. */
.glass-card .card-text { color: #55555c; }
.story-year { opacity: 0.18; }

/* Partners. Equal boxes so no logo looks more important than another. */
.partners-grid { align-items: stretch; }

.partner-card {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 132px;
    padding: 20px 28px;
}

.partner-logo {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 76px;
}

@media (max-width: 768px) {
    /* RTL legibility: justified Arabic leaves large gaps on narrow screens. */
    .story-content { text-align: start; }

    /* Stats: an odd last number spans the row instead of sitting alone. */
    .stats-grid .stat-item:last-child:nth-child(odd) { grid-column: 1 / -1; }

    .partners-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .partner-card { height: 104px; padding: 14px; }
    .partner-logo { max-height: 60px; }
}
