:root {
    /* Primary Color Palette (Extracted from Logo) */
    --primary-color: #E31B23; /* Logo Red */
    --primary-dark: #C1121F;
    --primary-light: #FFEDED;
    
    /* Neutral Palette */
    --black: #000000;
    --slate-900: #0F172A;
    --slate-800: #1E293B;
    --slate-700: #334155;
    --slate-600: #475569;
    --text-color: #1E293B;
    
    /* Backgrounds */
    --bg-color: #F3F4F6; /* Light Gray */
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.85);
    
    /* Shadows & Transitions */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-md: 12px;
    --radius-lg: 16px;
}

[dir="rtl"] { font-family: 'Noto Naskh Arabic', serif; }
[dir="ltr"] { font-family: 'Poppins', sans-serif; }

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4 { color: var(--black); font-weight: 700; line-height: 1.2; }

/* Improved Glass Header */
.top-header {
    background: #000000;
    color: var(--white);
    padding: 8px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.top-header-info {
    display: flex;
    gap: 20px;
}

.top-header-info a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-base);
}

.top-header-info a:hover { color: var(--white); }

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

.top-header-social a {
    color: rgba(255,255,255,0.8);
    transition: var(--transition-base);
}

.top-header-social a:hover { color: var(--primary-color); }

.main-header {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.main-header.scrolled {
    padding: 0.75rem 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
}

.main-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Enhanced Navigation Links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--slate-700);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition-base);
}

.nav-links a:hover { color: var(--primary-color); }

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-base);
}

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

/* Improved Language Switcher */
.lang-switcher-pill {
    display: flex;
    background: rgba(0,0,0,0.05);
    padding: 3px;
    border-radius: 8px;
    gap: 2px;
}

.lang-switcher-pill a {
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    color: var(--slate-600);
    transition: var(--transition-base);
}

.lang-switcher-pill a.active {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn-nav-join {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white) !important;
    padding: 0.6rem 1.5rem !important;
    border-radius: 50px;
    font-weight: 700 !important;
    box-shadow: 0 4px 15px rgba(227, 27, 35, 0.3);
    position: relative;
    overflow: visible !important;
}

@keyframes pulse-red {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(227, 27, 35, 0.4); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(227, 27, 35, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(227, 27, 35, 0); }
}

.btn-nav-join:hover {
    animation: pulse-red 1.5s infinite;
    transform: translateY(-2px);
}

/* Elevated Buttons */
.btn {
    padding: 0.85rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255,255,255,0.1);
    transition: var(--transition-base);
    z-index: -1;
}

.btn:hover::before { width: 100%; }

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(227, 27, 35, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(227, 27, 35, 0.3);
}

.btn-secondary {
    background: var(--black);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Slider Overlays */
.slider-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    z-index: 10;
    width: 80%;
}

.slider-caption h2 {
    font-size: 4rem;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.2s;
}

.slider-caption p {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.4s;
}

.swiper-slide-active .slider-caption h2,
.swiper-slide-active .slider-caption p {
    opacity: 1;
    transform: translateY(0);
}

.glass-caption {
    background: rgba(255, 255, 255, 0.08); /* Dark subtle glass */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 3rem 4rem;
    border-radius: var(--radius-lg);
    display: inline-block;
    max-width: 900px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.slider-caption h2 {
    font-size: 4.5rem;
    text-transform: uppercase;
    letter-spacing: -1px;
    font-weight: 800;
}

[dir="rtl"] .slider-caption h2 { letter-spacing: 0; }

/* Rich Footer */
.main-footer {
    background: #0f172a;
    color: var(--white);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 80px; /* Increased from 60px */
}

.footer-column h4 {
    color: var(--white);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    position: relative;
    display: inline-block;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

[dir="rtl"] .footer-column h4::after { left: auto; right: 0; }

.footer-column ul { list-style: none; }
.footer-column ul li { margin-bottom: 1rem; }
.footer-column ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-column ul li a:hover { color: var(--white); background: rgba(255,255,255,0.05); padding-left: 8px; border-radius: 4px; }
[dir="rtl"] .footer-column ul li a:hover { padding-left: 0; padding-right: 8px; }

.footer-contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 1.5rem;
    color: #cbd5e1;
}

.footer-contact-item i { color: var(--primary-color); margin-top: 5px; }

.footer-bottom {
    background: #020617;
    padding: 2rem 0;
    text-align: center;
    color: #94a3b8;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition-base);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

/* Sections & Spacing */
section {
    padding: 120px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

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

/* Cards & Sections */
.sections-gradient {
    background: linear-gradient(to bottom, #f8fafc, #ffffff);
}

/* Premium NGO Card v2 */
.ngo-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.03);
}

.ngo-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.ngo-card-img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.ngo-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.ngo-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.ngo-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 10;
}

[dir="rtl"] .ngo-card-badge { left: auto; right: 1rem; }

/* Page Hero / Breadcrumb Header */
.page-hero {
    background-color: var(--slate-900);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    color: var(--white);
    text-align: center;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.05) 1px, transparent 0);
    background-size: 32px 32px;
}

.page-hero h1 {
    color: var(--white);
    font-size: 3rem;
    position: relative;
    z-index: 2;
}

/* Impact Stats */
.impact-section {
    background: var(--white);
    padding: 60px 0;
    margin-top: -60px;
    position: relative;
    z-index: 100;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--slate-600);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Pillar Cards */
.pillar-card {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
    border: 1px solid rgba(0,0,0,0.05);
}

.pillar-card:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-5px);
}

.pillar-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: var(--transition-base);
}

.pillar-card:hover .pillar-icon {
    color: var(--white);
    transform: scale(1.1);
}

.pillar-card h3 {
    margin-bottom: 1rem;
    transition: var(--transition-base);
}

.pillar-card:hover h3 { color: var(--white); }

/* Join Us Split Layout */
.join-split-container {
    display: flex;
    min-height: 80vh;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.join-sidebar {
    flex: 0 0 40%;
    background: var(--black);
    color: var(--white);
    padding: 4rem;
    position: relative;
    overflow: hidden;
}

.join-sidebar::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: var(--primary-color);
    opacity: 0.1;
    border-radius: 50%;
}

.join-form-area {
    flex: 1;
    padding: 4rem;
    background: var(--white);
}

.benefit-item {
    display: flex;
    gap: 20px;
    margin-bottom: 2rem;
}

.benefit-icon {
    width: 40px;
    height: 40px;
    background: rgba(227, 27, 35, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Mission Section Split */
.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.mission-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/5;
}

.mission-image-wrapper::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    bottom: -20px;
    left: -20px;
    border: 2px solid var(--primary-color);
    z-index: -1;
    border-radius: var(--radius-lg);
}

.mission-text-content h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

/* Partners Carousel */
.partners-area {
    padding: 60px 0;
    border-top: 1px solid rgba(0,0,0,0.05);
    background: #fff;
}

.partners-track {
    display: flex;
    overflow: hidden;
    gap: 80px;
    align-items: center;
    justify-content: center;
}

.partner-logo {
    opacity: 0.4;
    filter: grayscale(1);
    transition: var(--transition-base);
    height: 45px;
}

.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0);
}

/* Enhanced Stat Item */
.stat-item {
    position: relative;
    padding: 2rem;
}

.stat-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--primary-light);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.5;
}

/* Interactive Glow for Cards */
.ngo-card {
    border: 1px solid transparent;
}

.ngo-card:hover {
    border-color: rgba(227, 27, 35, 0.2);
    box-shadow: 0 20px 40px rgba(227, 27, 35, 0.08);
}

@media (max-width: 992px) {
    .mission-grid { grid-template-columns: 1fr; gap: 50px; }
    .slider-caption h2 { font-size: 3rem; }
    .glass-caption { padding: 2rem; }
}
