/* ROOT VARIABLES & RESET */
:root {
    --bg-dark: #f8fafc; 
    --bg-card: #ffffff; 
    --text-main: #0f172a; 
    --text-muted: #475569; 
    
    /* Brand Colors: Vibrant Sage Green, Deep Gold */
    --accent-teal: #14b8a6; 
    --accent-gold: #f59e0b; 
    --accent-gray: #94a3b8; 
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    scroll-behavior: smooth;
    position: relative;
}

/* CUSTOM INTERACTIVE CURSOR GLOW */
#mouse-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.15) 0%, rgba(245, 158, 11, 0.05) 40%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: width 0.3s ease, height 0.3s ease, background 0.3s ease;
    mix-blend-mode: multiply;
}

/* Fallback cursor on links so it's usable */
a, button, input, textarea {
    cursor: pointer !important;
}
a:hover ~ #mouse-glow, button:hover ~ #mouse-glow {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.2) 0%, transparent 70%);
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 800;
}

a {
    text-decoration: none;
    color: inherit;
}

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

.section-padding {
    padding: 8rem 0;
}

.mt-3 { margin-top: 1rem; }
.mt-5 { margin-top: 2rem; }
.mb-5 { margin-bottom: 2rem; }

/* GRADIENT TEXT EFFECTS */
.gradient-text {
    background: linear-gradient(135deg, #14b8a6, #0ea5e9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.gradient-text-gold {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* INTERACTIVE SCROLL ANIMATION */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.9s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 3D INTERACTIVE CARDS & GLASSMORPHISM */
.interactive-card {
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    z-index: 1;
    border-radius: 20px; 
    overflow: hidden; 
    background: var(--bg-card);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.interactive-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 30px 60px rgba(20, 184, 166, 0.15), 0 15px 20px rgba(245, 158, 11, 0.1);
    z-index: 2;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 1);
}

.border-gradient {
    position: relative;
}
.border-gradient::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-gold));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.interactive-card:hover.border-gradient::before {
    opacity: 1;
}

/* NAVIGATION */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-teal);
}

.hamburger {
    display: none;
    cursor: pointer;
    color: var(--text-main);
}

/* SPA PAGE LOGIC */
.page {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    min-height: 100vh;
    padding-top: 100px; 
}

.page.active {
    display: block;
    opacity: 1;
}

/* HERO SECTION */
.hero {
    position: relative;
    padding: 6rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    min-height: 85vh;
}

#waveCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 1;
}

.hero-content {
    max-width: 1000px;
    padding: 4rem;
    border-radius: 30px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* HOME IMAGE INTRO GRID */
.home-intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 4rem;
    margin-top: -3rem;
}

.intro-card {
    display: flex;
    flex-direction: column;
}

.intro-image {
    width: 100%;
    height: 320px;
    overflow: hidden;
    background-color: #e2e8f0;
}

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

.intro-card:hover .intro-image img {
    transform: scale(1.12) rotate(2deg);
}

.intro-text {
    padding: 3rem;
    flex-grow: 1;
}

.intro-text h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.intro-text p {
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.8;
}

/* GENERAL TYPOGRAPHY & LAYOUT */
.section-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    color: var(--text-main);
}

.section-desc {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 4rem;
    max-width: 700px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 5rem;
    margin-top: 4rem;
}

.text-block p {
    margin-bottom: 1.8rem;
    font-size: 1.2rem;
    color: var(--text-muted);
}

.text-block h3 {
    margin-bottom: 1rem;
    font-size: 2rem;
    color: var(--accent-teal);
}

.styled-list {
    margin-left: 20px; 
    color: var(--text-muted); 
    line-height: 1.8;
    font-size: 1.1rem;
}

.styled-list li {
    margin-bottom: 0.8rem;
}

/* CARDS & GRIDS */
.founders-card {
    padding: 3rem;
}

.founder-profiles {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.founder-profile {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.founder-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-teal);
    background-color: #e2e8f0; 
}

/* PILLARS / SERVICES */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

.pillar-card {
    padding: 3rem;
}

.pillar-card i {
    margin-bottom: 1.5rem;
    display: block;
    color: var(--text-main);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease;
    width: 48px;
    height: 48px;
}

.pillar-card:hover i {
    transform: scale(1.3) rotate(10deg);
    color: var(--accent-gold);
}

/* CONTENT BLOCKS (Journal & Talks) */
.content-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.content-card {
    padding: 2.5rem;
}

.content-card .date {
    font-size: 0.9rem;
    color: var(--accent-gray);
    display: block;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

/* VIDEO BUTTON */
.btn-video {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--text-main), #334155);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1rem;
}

.btn-video:hover {
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-gold));
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(20, 184, 166, 0.3);
}

/* MIDDLE SCHOOL CHAPTER */
.ms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.ms-card {
    padding: 2rem;
    border-left: 5px solid var(--accent-teal);
}

.ms-card:hover {
    border-left-color: var(--accent-gold);
}

/* FORMS - MEGA UPGRADE */
.form-container {
    padding: 4rem;
    max-width: 800px;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 800;
}

input, textarea {
    width: 100%;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #e2e8f0;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1.1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 5px rgba(20, 184, 166, 0.2);
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-teal), #0ea5e9);
    color: white;
    border: none;
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    margin-top: 1rem;
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(20, 184, 166, 0.3);
}

/* FOOTER */
footer {
    background: #0f172a;
    color: white;
    padding: 6rem 0;
    text-align: center;
}

footer h2 {
    color: var(--accent-teal);
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

footer p {
    color: #94a3b8;
    font-size: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-links a {
    width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    overflow: hidden;
    transition: all 0.4s ease;
}

.social-links a:hover {
    transform: translateY(-5px) scale(1.15) rotate(360deg);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    }

    .nav-links.show {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .hero h1 { font-size: 2.8rem; }
    .grid-2 { grid-template-columns: 1fr; }
}