/* style.css */

/* --- SHARED VARIABLES --- */
:root {
    --royal-purple: #5D2E8E;
    --sunbeam-yellow: #F9C846;
    --sunbeam-darker: #e0b135;
    --warm-coral: #F28C81;
    --text-main: #2c1a42;
    --text-muted: #555;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

/* --- BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Open Sans', sans-serif; color: var(--text-main); background-color: #f8faff; overflow-x: hidden; line-height: 1.7; }
h1, h2, h3, h4, .brand-font { font-family: 'Nunito', sans-serif; font-weight: 800; color: var(--royal-purple); }
a { text-decoration: none; transition: 0.3s ease; }
img { max-width: 100%; height: auto; border-radius: 16px; }

/* Allow paragraphs to have margins */
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* Ensure italic elements work */
em, i { font-style: italic; }

/* --- UTILITIES --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.section-padding { padding: 6rem 0; }
.text-center { text-align: center; }

/* Background Blob (Fixed: Stopped Rotation) */
.blob-bg { position: relative; overflow: hidden; }
.blob-bg::before { 
    content: ''; 
    position: absolute; 
    top: -50%; left: -50%; 
    width: 200%; height: 200%; 
    background: radial-gradient(circle at 50% 50%, rgba(249, 200, 70, 0.1), rgba(93, 46, 142, 0.05), transparent 70%); 
    z-index: -1; 
}

/* --- BUTTONS --- */
.btn { display: inline-block; padding: 14px 35px; border-radius: 50px; font-family: 'Nunito', sans-serif; font-weight: 800; text-transform: uppercase; font-size: 0.9rem; cursor: pointer; border: none; transition: 0.3s; }
.btn-primary { background: linear-gradient(135deg, var(--sunbeam-yellow), #fcd34d); color: var(--royal-purple); box-shadow: 0 10px 20px rgba(249, 200, 70, 0.3); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(249, 200, 70, 0.5); }
.btn-outline { background: rgba(255,255,255,0.1); border: 2px solid rgba(255,255,255,0.8); color: var(--white); margin-left: 15px; }
.btn-outline:hover { background: var(--white); color: var(--royal-purple); }
.btn-text { background: transparent; color: var(--royal-purple); text-transform: none; font-size: 1rem; padding: 0; }
.btn-text:hover { color: var(--warm-coral); text-decoration: underline; }

/* --- NAVIGATION --- */
header { position: fixed; top: 20px; left: 0; width: 100%; z-index: 1000; padding: 0 5%; transition: 0.4s; }
header::before {
    content: '';
    position: absolute;
    top: -300px;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(to bottom, 
        rgba(248, 250, 255, 0.95) 0%,
        rgba(248, 250, 255, 0.7) 30%,
        rgba(248, 250, 255, 0.3) 60%,
        transparent 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    filter: blur(20px);
    pointer-events: none;
    z-index: -1;
}
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 1rem 2rem; background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); border: 1px solid rgba(255,255,255,0.4); border-radius: 50px; box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15); min-height: 70px; }

/* Logo Fixes */
.logo { font-size: 1.5rem; line-height: 1; }
.logo a { display: flex; align-items: center; gap: 12px; color: var(--royal-purple); }
.logo i { font-size: 1.8rem; background: -webkit-linear-gradient(45deg, var(--warm-coral), var(--sunbeam-yellow)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.logo .brand-font { position: relative; top: 2px; }

/* Nav Links */
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { color: var(--text-main); font-weight: 700; font-size: 0.95rem; }
.nav-links a:hover { color: var(--royal-purple); }
.nav-links .btn-primary { padding: 10px 25px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); border-radius: 50px; display: inline-block; transition: all 0.3s ease; }
.nav-links .btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.2); }

/* Hamburger Menu */
.hamburger { 
    display: none; 
    width: 40px; 
    height: 40px; 
    background: var(--royal-purple); 
    border-radius: 12px; 
    cursor: pointer; 
    position: relative;
    transition: all 0.3s ease;
}
.hamburger:hover {
    background: var(--sunbeam-yellow);
    transform: scale(1.05);
}
.hamburger i { 
    color: white; 
    font-size: 1.3rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: color 0.3s ease;
}
.hamburger:hover i {
    color: var(--royal-purple);
}

/* --- HERO SECTION (Cinematic Parallax) --- */
.hero { 
    position: relative; height: 100vh; min-height: 700px; 
    display: flex; align-items: center; justify-content: center;
    background: url('IMG_7988.webp') center/cover no-repeat fixed; 
}
.hero::after { 
    content: ''; position: absolute; inset: 0; 
    background: linear-gradient(135deg, rgba(93, 46, 142, 0.85), rgba(44, 26, 66, 0.9)); 
    z-index: 1;
}
.hero-content { position: relative; z-index: 2; width: 100%; padding: 0 2rem; max-width: 1000px; text-align: center; }
.hero-glass-box { background: transparent; border: none; box-shadow: none; padding: 0; }
.hero h1 { 
    color: var(--white); font-size: 5rem; font-weight: 900; line-height: 1.05; 
    margin-bottom: 1.5rem; letter-spacing: -1px;
}
.text-gradient {
    background: linear-gradient(to right, #F9C846, #F28C81);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; display: inline-block;
}
.hero p { color: rgba(255,255,255,0.9); font-size: 1.5rem; max-width: 700px; margin: 0 auto 3rem auto; font-weight: 600; }

/* --- STATS SECTION --- */
.stats-section { margin-top: -80px; position: relative; z-index: 10; padding-bottom: 2rem; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.stat-card { 
    background: var(--white); padding: 2.5rem; border-radius: 24px; text-align: center; 
    box-shadow: 0 15px 35px rgba(93, 46, 142, 0.1); 
    border-bottom: 4px solid var(--sunbeam-yellow); 
}
.stat-icon { font-size: 2rem; background: rgba(242, 140, 129, 0.1); color: var(--warm-coral); width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.stat-card h2 { font-size: 2.5rem; margin-bottom: 0.5rem; line-height: 1; }
.stat-card p { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* --- ABOUT SECTION (Fixed Orbs) --- */
.about-content-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-image { position: relative; text-align: center; }
.about-image img { 
    width: 100%; max-width: 400px; aspect-ratio: 2/3; object-fit: cover;
    box-shadow: 20px 20px 0px rgba(93, 46, 142, 0.1); 
}
/* Orb 1: Top-Left (Yellow) */
.about-image::before { 
    content: ''; position: absolute; 
    top: -50px; left: -40px; 
    width: 250px; height: 250px; 
    background: var(--sunbeam-yellow); 
    border-radius: 50%; 
    opacity: 0.5; 
    z-index: -1; 
}
/* Orb 2: Bottom-Right (Coral) */
.about-image::after {
    content: ''; position: absolute;
    bottom: -30px; right: -30px;
    width: 150px; height: 150px;
    background: var(--warm-coral);
    border-radius: 50%;
    opacity: 0.4;
    z-index: -1;
}

/* --- PROGRAMS & PARTNERS --- */
.program-card { background: var(--white); padding: 2rem; border-radius: 24px; transition: all 0.4s ease; border: 1px solid rgba(0,0,0,0.03); height: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; }
.program-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(93, 46, 142, 0.15); border-color: var(--sunbeam-yellow); }
.program-icon-lg { font-size: 2.5rem; color: var(--royal-purple); margin-bottom: 1rem; }
.program-card h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.program-card p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.5rem; flex-grow: 1; }

.partner-section { background: var(--royal-purple); background-image: radial-gradient(circle at top right, #7B4397, transparent); color: var(--white); text-align: center; }
.partner-section h2, .glass-box-dark h2 { color: var(--sunbeam-yellow) !important; text-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.partner-section p, .glass-box-dark p { color: var(--white) !important; opacity: 1; }
.glass-box-dark { background: rgba(0, 0, 0, 0.2); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.2); padding: 4rem 2rem; border-radius: 30px; max-width: 900px; margin: 0 auto; }

/* --- FOOTER --- */
footer { background: #1a0e29; color: #aaa; padding: 4rem 0; text-align: center; margin-top: 4rem; }

/* --- RESPONSIVE --- */
@media (max-width: 1200px) {
    body { padding: 0 1rem; }
    .container { padding: 0 1.5rem; }
    header { padding: 0 3%; }
    .navbar { padding: 1rem 1.5rem; min-height: 70px; }
}

@media (max-width: 900px) {
    .nav-links { 
        display: none; 
        position: absolute; 
        top: 100%; 
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 2rem);
        max-width: 400px;
        background: white; 
        flex-direction: column; 
        padding: 1.5rem; 
        box-shadow: 0 10px 30px rgba(0,0,0,0.15); 
        border-radius: 24px; 
        margin-top: 15px;
        gap: 0;
    }
    .nav-links.active { display: flex; }
    .nav-links a {
        padding: 1rem 1.5rem;
        border-radius: 12px;
        transition: all 0.3s ease;
        text-align: center;
    }
    .nav-links a:hover {
        background: rgba(93, 46, 142, 0.05);
    }
    .nav-links .btn-primary {
        margin-top: 0.5rem;
        width: 100%;
        text-align: center;
    }
    .hamburger { display: block; }
    .btn-outline { margin-left: 0; margin-top: 15px; }
    .hero { background-attachment: scroll; }
    .hero h1 { font-size: 3rem; }
    .about-content-wrapper { grid-template-columns: 1fr; }
    .stats-section { margin-top: -50px; }
}

@media (max-width: 600px) {
    .container { padding: 0 1rem; }
    header { padding: 0 2%; }
    .navbar { padding: 1rem 1.5rem; min-height: 70px; }
}

html {
    scroll-padding-top: 130px; /* Adjust to your header height */
    scroll-behavior: smooth; /* Optional: adds a nice smooth scroll effect */
}