/* ==================== ITTEFAQ WELFARE FOUNDATION - MAIN STYLES ==================== */
/* Phool Baras Rahe Ho - Serving Humanity Since 1991 */

:root {
    --primary: #0E9D95;
    --primary-dark: #0C8A83;
    --secondary: #FEE64D;
    --secondary-light: #FFF176;
    --heading: #1010C8;
    --text: #212529;
    --bg: #EFEFEF;
    --card: #FFFFFF;
    --dark-bg: #0A1F1D;
    --muted: #6C757D;
    --border: #DEE2E6;
    --golden-glow: rgba(254, 230, 77, 0.35);
    --success: #28A745;
    --white: #FFFFFF;
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 15px 35px rgba(0,0,0,0.12);
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --radius: 24px;
    --radius-sm: 12px;
}

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

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.8;
    overflow-x: hidden;
}

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

/* ==================== EID MUBARAK PRELOADER ==================== */
.preloader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0A1F1D 0%, #0E3D35 30%, #0A1F1D 60%, #1a0a3e 100%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.preloader-overlay.fade-out {
    animation: preloaderFadeOut 0.8s ease-in-out forwards;
}

@keyframes preloaderFadeOut {
    0% { opacity: 1; visibility: visible; }
    100% { opacity: 0; visibility: hidden; }
}

/* Stars */
.preloader-stars {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    animation: twinkle 2s ease-in-out infinite;
}

.star:nth-child(1) { top: 10%; left: 15%; animation-delay: 0s; }
.star:nth-child(2) { top: 20%; left: 80%; animation-delay: 0.3s; width: 4px; height: 4px; }
.star:nth-child(3) { top: 35%; left: 25%; animation-delay: 0.6s; }
.star:nth-child(4) { top: 15%; left: 60%; animation-delay: 0.9s; width: 2px; height: 2px; }
.star:nth-child(5) { top: 50%; left: 10%; animation-delay: 1.2s; }
.star:nth-child(6) { top: 65%; left: 85%; animation-delay: 0.4s; width: 4px; height: 4px; }
.star:nth-child(7) { top: 75%; left: 40%; animation-delay: 0.7s; }
.star:nth-child(8) { top: 30%; left: 90%; animation-delay: 1.0s; width: 3px; height: 3px; }
.star:nth-child(9) { top: 85%; left: 70%; animation-delay: 1.4s; }
.star:nth-child(10) { top: 5%; left: 40%; animation-delay: 0.2s; width: 5px; height: 5px; background: var(--secondary); }
.star:nth-child(11) { top: 45%; left: 75%; animation-delay: 1.1s; }
.star:nth-child(12) { top: 60%; left: 20%; animation-delay: 0.8s; width: 4px; height: 4px; background: var(--secondary); }

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

/* Moon */
.preloader-moon {
    position: absolute;
    top: 8%;
    right: 12%;
    width: 80px;
    height: 80px;
    animation: moonFloat 4s ease-in-out infinite;
}

@keyframes moonFloat {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

.moon-path {
    filter: drop-shadow(0 0 20px rgba(254, 230, 77, 0.5));
    animation: moonGlow 2s ease-in-out infinite alternate;
}

@keyframes moonGlow {
    0% { filter: drop-shadow(0 0 10px rgba(254, 230, 77, 0.3)); }
    100% { filter: drop-shadow(0 0 30px rgba(254, 230, 77, 0.7)); }
}

/* Mosque */
.preloader-mosque {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    opacity: 0.4;
}

/* Running Bakra */
.preloader-bakra-container {
    position: relative;
    margin-bottom: 20px;
    z-index: 10;
}

.preloader-bakra {
    width: 200px;
    height: auto;
    animation: bakraRun 1.2s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
}

@keyframes bakraRun {
    0% { transform: translateX(-30px) translateY(0) rotate(-2deg); }
    25% { transform: translateX(10px) translateY(-15px) rotate(2deg); }
    50% { transform: translateX(50px) translateY(0) rotate(-1deg); }
    75% { transform: translateX(10px) translateY(-10px) rotate(1deg); }
    100% { transform: translateX(-30px) translateY(0) rotate(-2deg); }
}

.bakra-dust {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 20px;
    background: radial-gradient(ellipse, rgba(210,180,140,0.4) 0%, transparent 70%);
    animation: dustKick 0.6s ease-in-out infinite;
}

@keyframes dustKick {
    0%, 100% { transform: translateX(-50%) scaleX(0.8); opacity: 0.3; }
    50% { transform: translateX(-50%) scaleX(1.3); opacity: 0.6; }
}

/* Content */
.preloader-content {
    text-align: center;
    z-index: 10;
    position: relative;
}

.preloader-title {
    font-family: 'Noto Nastaliq Urdu', serif;
    color: white;
    line-height: 1.3;
    margin-bottom: 16px;
}

.advance-text {
    display: block;
    font-size: 28px;
    font-weight: 400;
    color: var(--secondary);
    animation: advanceFadeIn 1s ease-out 0.5s both;
    letter-spacing: 8px;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
}

@keyframes advanceFadeIn {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.eid-text {
    display: block;
    font-size: 52px;
    font-weight: 700;
    background: linear-gradient(90deg, var(--secondary), #fff, var(--secondary));
    background-size: 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: eidShimmer 3s linear infinite, eidScaleIn 0.8s ease-out 0.8s both;
}

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

@keyframes eidScaleIn {
    0% { opacity: 0; transform: scale(0.5); }
    100% { opacity: 1; transform: scale(1); }
}

.preloader-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 8px;
    animation: fadeInUp 0.6s ease-out 1.5s both;
}

.preloader-org {
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 24px;
    color: var(--secondary);
    animation: fadeInUp 0.6s ease-out 1.8s both;
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Particles */
.preloader-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--secondary);
    border-radius: 50%;
    animation: particleBurst 3s ease-out infinite;
    opacity: 0;
}

@keyframes particleBurst {
    0% { transform: translate(0, 0) scale(0); opacity: 1; }
    100% { transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0; }
}

.particle:nth-child(1) { --tx: 100px; --ty: -150px; left: 50%; top: 50%; animation-delay: 0s; }
.particle:nth-child(2) { --tx: -120px; --ty: -100px; left: 48%; top: 52%; animation-delay: 0.2s; width: 8px; height: 8px; }
.particle:nth-child(3) { --tx: 80px; --ty: 120px; left: 52%; top: 48%; animation-delay: 0.4s; }
.particle:nth-child(4) { --tx: -100px; --ty: 80px; left: 49%; top: 51%; animation-delay: 0.6s; width: 10px; height: 10px; background: white; }
.particle:nth-child(5) { --tx: 150px; --ty: -50px; left: 47%; top: 49%; animation-delay: 0.8s; }
.particle:nth-child(6) { --tx: -80px; --ty: -180px; left: 51%; top: 50%; animation-delay: 1.0s; width: 7px; height: 7px; }
.particle:nth-child(7) { --tx: 60px; --ty: -120px; left: 50%; top: 53%; animation-delay: 1.2s; }
.particle:nth-child(8) { --tx: -150px; --ty: -60px; left: 52%; top: 47%; animation-delay: 0.3s; width: 9px; height: 9px; background: white; }
.particle:nth-child(9) { --tx: 100px; --ty: 100px; left: 48%; top: 50%; animation-delay: 0.7s; }
.particle:nth-child(10) { --tx: -60px; --ty: 150px; left: 51%; top: 49%; animation-delay: 1.1s; width: 6px; height: 6px; }
.particle:nth-child(11) { --tx: 180px; --ty: 80px; left: 49%; top: 51%; animation-delay: 0.5s; background: var(--primary); }
.particle:nth-child(12) { --tx: -120px; --ty: 120px; left: 50%; top: 48%; animation-delay: 0.9s; width: 8px; height: 8px; background: var(--primary); }
.particle:nth-child(13) { --tx: 40px; --ty: -200px; left: 47%; top: 52%; animation-delay: 1.3s; }
.particle:nth-child(14) { --tx: -180px; --ty: -100px; left: 53%; top: 50%; animation-delay: 0.15s; width: 5px; height: 5px; }
.particle:nth-child(15) { --tx: 120px; --ty: -80px; left: 49%; top: 53%; animation-delay: 1.5s; background: white; }
.particle:nth-child(16) { --tx: -40px; --ty: 180px; left: 51%; top: 47%; animation-delay: 0.45s; }
.particle:nth-child(17) { --tx: 90px; --ty: 60px; left: 48%; top: 51%; animation-delay: 1.7s; width: 7px; height: 7px; }
.particle:nth-child(18) { --tx: -90px; --ty: -140px; left: 52%; top: 49%; animation-delay: 0.65s; background: var(--secondary); }
.particle:nth-child(19) { --tx: 140px; --ty: -120px; left: 50%; top: 50%; animation-delay: 1.4s; width: 6px; height: 6px; }
.particle:nth-child(20) { --tx: -140px; --ty: 40px; left: 49%; top: 48%; animation-delay: 0.85s; background: white; }

/* Lanterns */
.preloader-lanterns {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.lantern {
    position: absolute;
    width: 30px;
    height: 40px;
    background: linear-gradient(180deg, #d4a017 0%, #f9d71c 50%, #d4a017 100%);
    border-radius: 50% 50% 40% 40%;
    animation: lanternSwing 3s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(249, 215, 28, 0.4);
}

.lantern::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 10px;
    background: #8B4513;
    border-radius: 2px;
}

.lantern::after {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 12px;
    background: rgba(255,255,255,0.4);
}

.lantern:nth-child(1) { top: 12%; left: 8%; animation-delay: 0s; }
.lantern:nth-child(2) { top: 18%; right: 10%; animation-delay: 0.5s; width: 24px; height: 32px; }
.lantern:nth-child(3) { top: 8%; left: 35%; animation-delay: 1s; width: 20px; height: 28px; }
.lantern:nth-child(4) { top: 15%; right: 30%; animation-delay: 1.5s; width: 26px; height: 36px; }
.lantern:nth-child(5) { top: 5%; left: 65%; animation-delay: 0.8s; width: 22px; height: 30px; }

@keyframes lanternSwing {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

/* Progress Bar */
.preloader-progress {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
    animation: progressFill 3.5s ease-out forwards;
}

@keyframes progressFill {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Contact */
.preloader-contact {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    animation: fadeInUp 0.5s ease-out 2s both;
}

.preloader-contact .phone-icon {
    color: var(--secondary);
    margin-right: 8px;
}

/* ==================== TOP BAR ==================== */
.top-bar {
    background: var(--primary);
    height: 44px;
    display: flex;
    align-items: center;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.top-bar-left {
    display: flex;
    gap: 24px;
}

.top-bar-item {
    color: rgba(255,255,255,0.9);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar-item .icon {
    font-size: 14px;
}

.btn-donate-top {
    background: var(--secondary);
    color: var(--dark-bg);
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.btn-donate-top:hover {
    background: var(--secondary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(254, 230, 77, 0.3);
}

/* ==================== NAVIGATION ==================== */
.main-nav {
    background: var(--white);
    height: 72px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: var(--transition);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    color: var(--primary);
    font-size: 24px;
}

.logo-text {
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--heading);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    position: relative;
    transition: var(--transition);
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

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

.btn-nav-donate {
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.btn-nav-donate:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(14, 157, 149, 0.3);
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
}

/* ==================== HERO SECTION ==================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 1.5s ease, transform 6s ease;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10,31,29,0.3) 0%, rgba(10,31,29,0.7) 60%, rgba(10,31,29,0.95) 100%);
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.hero-petal {
    position: absolute;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--secondary), #FFB347);
    border-radius: 0 50% 50% 50%;
    opacity: 0.6;
    animation: petalFall linear infinite;
    pointer-events: none;
}

@keyframes petalFall {
    0% { transform: translateY(-100px) rotate(0deg) translateX(0); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { transform: translateY(100vh) rotate(720deg) translateX(100px); opacity: 0; }
}

.hero-content {
    position: relative;
    z-index: 3;
    padding-bottom: 100px;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(14, 157, 149, 0.2);
    border: 1px solid rgba(14, 157, 149, 0.4);
    color: rgba(255,255,255,0.9);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.badge-icon {
    color: var(--secondary);
    font-size: 14px;
}

.hero-title {
    margin-bottom: 16px;
}

.title-org {
    display: block;
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 52px;
    font-weight: 700;
    color: white;
    text-shadow: 0 4px 32px rgba(0,0,0,0.5);
    line-height: 1.2;
    animation: heroTitleIn 0.8s ease-out 4.5s both;
}

.title-tagline {
    display: block;
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 32px;
    font-weight: 500;
    color: var(--secondary);
    text-shadow: 0 2px 16px rgba(0,0,0,0.4);
    margin-top: 8px;
    animation: heroTitleIn 0.8s ease-out 4.8s both;
}

@keyframes heroTitleIn {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 400;
    color: rgba(255,255,255,0.85);
    margin-bottom: 16px;
    animation: heroFadeIn 0.6s ease-out 5s both;
}

.hero-desc {
    font-size: 16px;
    color: rgba(255,255,255,0.75);
    max-width: 520px;
    line-height: 1.8;
    margin-bottom: 32px;
    animation: heroFadeIn 0.6s ease-out 5.2s both;
}

@keyframes heroFadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    animation: heroFadeIn 0.6s ease-out 5.5s both;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 16px rgba(14, 157, 149, 0.3);
}

.btn-secondary {
    background: rgba(255,255,255,0.12);
    color: white;
    border: 1px solid rgba(255,255,255,0.25);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.2);
}

.btn-gold {
    background: var(--secondary);
    color: var(--dark-bg);
    padding: 18px 40px;
    font-size: 16px;
}

.btn-gold:hover {
    background: var(--secondary-light);
    box-shadow: 0 8px 32px rgba(254, 230, 77, 0.3);
}

.btn-outline-gold {
    background: transparent;
    color: var(--secondary);
    border: 2px solid var(--secondary);
    padding: 18px 40px;
    font-size: 16px;
}

.btn-outline-gold:hover {
    background: var(--secondary);
    color: var(--dark-bg);
}

.btn-donate {
    background: var(--primary);
    color: white;
    width: 100%;
    margin-top: 16px;
}

.btn-cause {
    background: var(--primary);
    color: white;
    width: 100%;
    padding: 14px;
    margin-top: 16px;
}

.btn-footer {
    background: var(--primary);
    color: white;
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-weight: 600;
    font-size: 14px;
}

.btn-full {
    width: 100%;
}

/* 3D Spring-Rebound */
.btn-3d {
    position: relative;
    transform-style: preserve-3d;
}

.btn-3d:active {
    transform: scale(0.92);
    transition: transform 0.1s ease;
}

.btn-3d:hover {
    transform: translateY(-3px);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 48px;
    animation: heroFadeIn 0.6s ease-out 5.8s both;
}

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

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin-top: 4px;
    display: block;
}

/* Hero Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-indicator span {
    width: 4px;
    height: 8px;
    background: var(--secondary);
    border-radius: 2px;
    animation: scrollBounce 1.5s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(8px); opacity: 0.5; }
}

/* ==================== TRUST BADGES ==================== */
.trust-badges {
    background: var(--white);
    padding: 60px 0;
    position: relative;
    z-index: 5;
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.badge-item {
    text-align: center;
    padding: 24px;
    transition: var(--transition);
}

.badge-item:hover {
    transform: translateY(-5px);
}

.badge-icon-box {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.badge-item h4 {
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 20px;
    color: var(--heading);
    margin-bottom: 8px;
}

.badge-item p {
    font-size: 13px;
    color: var(--muted);
}

/* ==================== SECTION HEADERS ==================== */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 44px;
    font-weight: 600;
    color: var(--heading);
    margin-bottom: 16px;
    line-height: 1.3;
}

.section-subtitle {
    font-size: 18px;
    color: var(--muted);
}

/* ==================== SERVICES SECTION ==================== */
.services {
    padding: 100px 0;
    background: var(--bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card-container {
    perspective: 1000px;
    aspect-ratio: 4/3;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-style: preserve-3d;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.service-card-container:hover .service-card-inner {
    transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.service-card-front {
    color: white;
}

.service-card-front h3 {
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 24px;
    font-weight: 500;
    margin: 16px 0 12px;
}

.service-card-front p {
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
}

.flip-hint {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    margin-top: 16px;
    display: block;
}

.service-icon svg {
    width: 80px;
    height: 80px;
}

.service-card-back {
    background: var(--card);
    color: var(--text);
    transform: rotateY(180deg);
}

.service-card-back h4 {
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 20px;
    color: var(--heading);
    margin-bottom: 8px;
}

.back-desc {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 16px;
}

.donation-amounts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
    margin-bottom: 8px;
}

.amount-btn {
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    color: var(--text);
}

.amount-btn:hover {
    border-color: var(--primary);
    background: rgba(14, 157, 149, 0.1);
    color: var(--primary);
}

.amount-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ==================== CAUSES SECTION ==================== */
.causes {
    padding: 100px 0;
    background: var(--white);
}

.causes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.cause-card {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.cause-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

.cause-card:hover .cause-image img {
    transform: scale(1.05);
}

.cause-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.cause-content {
    padding: 24px;
}

.cause-content h4 {
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 20px;
    color: var(--heading);
    margin-bottom: 16px;
}

.progress-bar {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 4px;
    width: 0%;
    transition: width 1.5s ease-out;
}

.cause-stats {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 8px;
}

/* ==================== CTA SECTION ==================== */
.cta-section {
    background: var(--dark-bg);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(14, 157, 149, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-grid {
    display: grid;
    grid-template-columns: 55% 45%;
    gap: 64px;
    align-items: center;
}

.cta-title {
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 48px;
    font-weight: 700;
    color: white;
    line-height: 1.3;
    margin-bottom: 24px;
}

/* Luminous Text Sweep */
.luminous-sweep {
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
    background-repeat: no-repeat;
    background-size: 80%;
    animation: sweep 4s linear infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: rgba(255, 255, 255, 0);
    background-clip: text;
}

@keyframes sweep {
    0% { background-position: -500% center; }
    100% { background-position: 500% center; }
}

.cta-desc {
    font-size: 18px;
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.bank-details {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    padding: 24px;
}

.bank-details h4 {
    color: var(--secondary);
    font-size: 16px;
    margin-bottom: 16px;
    font-weight: 600;
}

.bank-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.bank-row:last-child {
    border-bottom: none;
}

.bank-row span {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

.bank-row strong {
    color: white;
    font-size: 14px;
    font-weight: 500;
}

/* CTA Visual */
.cta-visual {
    position: relative;
}

.cta-image-wrapper {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
}

.cta-image {
    width: 100%;
    border-radius: var(--radius);
    animation: ctaFloat 6s ease-in-out infinite;
}

@keyframes ctaFloat {
    0%, 100% { transform: translateY(-10px); }
    50% { transform: translateY(10px); }
}

.cta-floating-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--secondary);
    color: var(--dark-bg);
    padding: 20px 28px;
    border-radius: var(--radius-sm);
    text-align: center;
    box-shadow: 0 8px 32px rgba(254, 230, 77, 0.3);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.cta-floating-badge .big {
    display: block;
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.cta-floating-badge span:last-child {
    font-size: 12px;
    font-weight: 500;
}

/* ==================== TESTIMONIALS ==================== */
.testimonials {
    padding: 100px 0;
    background: var(--bg);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.testimonial-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.quote-icon {
    font-size: 72px;
    color: var(--primary);
    line-height: 1;
    opacity: 0.3;
    font-family: Georgia, serif;
    margin-bottom: -20px;
}

.testimonial-quote {
    font-size: 16px;
    color: var(--text);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 20px;
}

/* Cascading Waterfall Effect */
.waterfall-text {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.waterfall-text.animated {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-divider {
    height: 1px;
    background: var(--border);
    margin: 20px 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
}

.author-info h5 {
    font-size: 16px;
    font-weight: 600;
    color: var(--heading);
}

.author-info span {
    font-size: 13px;
    color: var(--muted);
}

/* ==================== GALLERY ==================== */
.gallery {
    padding: 100px 0;
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: 16px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item:nth-child(4) {
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover img {
    transform: scale(1.03);
}

.spotlight {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    z-index: 3;
}

.gallery-overlay span {
    color: white;
    font-size: 14px;
    font-weight: 500;
}

/* ==================== CONTACT SECTION ==================== */
.contact {
    padding: 100px 0;
    background: var(--bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 64px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-detail h5 {
    font-size: 16px;
    font-weight: 600;
    color: var(--heading);
    margin-bottom: 4px;
}

.contact-detail p,
.contact-detail a {
    font-size: 14px;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-detail a:hover {
    color: var(--primary);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--card);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--heading);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
    background: var(--bg);
    color: var(--text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 157, 149, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--dark-bg);
    padding: 80px 0 0;
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-logo {
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo .logo-icon {
    color: var(--secondary);
}

.footer-reg {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 16px;
}

.footer-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
    font-weight: 600;
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 24px;
}

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

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

.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary);
}

.footer-bank .bank-info p {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 8px;
}

.footer-bank .bank-info span {
    color: rgba(255,255,255,0.4);
    margin-right: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

.footer-credit {
    margin-top: 8px;
    color: var(--secondary) !important;
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 16px !important;
}

/* ==================== DONATION MODAL ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--card);
    border-radius: var(--radius);
    width: 90%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--muted);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--bg);
    color: var(--text);
}

.modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.modal-header h3 {
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 24px;
    color: var(--heading);
}

.modal-header p {
    font-size: 14px;
    color: var(--muted);
}

.donation-categories {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.cat-btn {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--bg);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    color: var(--text);
}

.cat-btn:hover,
.cat-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.donation-amounts-modal {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.amount-btn-modal {
    padding: 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--card);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    color: var(--text);
}

.amount-btn-modal:hover,
.amount-btn-modal.active {
    border-color: var(--primary);
    background: rgba(14, 157, 149, 0.1);
    color: var(--primary);
}

.custom-amount {
    margin-bottom: 16px;
}

.custom-amount input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-family: 'Inter', sans-serif;
}

.donor-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.donor-info input {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    background: var(--bg);
}

.payment-methods h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--heading);
}

.payment-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.payment-option:hover {
    border-color: var(--primary);
}

/* ==================== SCROLL TO TOP ==================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 16px rgba(14, 157, 149, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ==================== SCROLL ANIMATIONS ==================== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .causes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gallery-item.large {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .cta-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .title-org {
        font-size: 36px;
    }
    
    .title-tagline {
        font-size: 24px;
    }
    
    .top-bar-left {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 116px;
        left: 0;
        width: 100%;
        height: calc(100vh - 116px);
        background: white;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 24px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-link {
        font-size: 20px;
    }
    
    .btn-nav-donate {
        display: none;
    }
    
    .hero-stats {
        gap: 24px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .services-grid,
    .causes-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 150px;
    }
    
    .gallery-item.large {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .badges-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .preloader-bakra {
        width: 140px;
    }
    
    .eid-text {
        font-size: 36px;
    }
    
    .advance-text {
        font-size: 20px;
    }
    
    .donation-amounts-modal {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .payment-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .title-org {
        font-size: 28px;
    }
    
    .title-tagline {
        font-size: 20px;
    }
    
    .hero-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .stat-item {
        text-align: left;
    }
    
    .badges-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item.large {
        grid-column: span 1;
    }
}

/* ==================== REDUCED MOTION ==================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .preloader-overlay {
        display: none !important;
    }
}
