/* ============================================
   IOI — NEXT-LEVEL DESIGN SYSTEM
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Orbitron:wght@400;500;600;700&display=swap');

:root {
    --primary: #ff0000;
    --primary-dim: rgba(255, 0, 0, 0.15);
    --primary-glow: rgba(255, 0, 0, 0.4);
    --accent: #ff3333;
    --accent-dim: rgba(255, 51, 51, 0.15);
    --accent-glow: rgba(255, 51, 51, 0.4);
    --violet: #cc0000;
    --bg-deep: #0a0a0a;
    --bg-card: rgba(15, 15, 15, 0.7);
    --bg-card-solid: #111111;
    --bg-glass: rgba(20, 20, 20, 0.55);
    --border-glass: rgba(255, 0, 0, 0.12);
    --border-glow: rgba(255, 0, 0, 0.3);
    --text-main: #e8e8e8;
    --text-muted: #999999;
    --text-bright: #ffffff;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Orbitron', 'Inter', sans-serif;
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --glow-sm: 0 0 10px var(--primary-glow);
    --glow-md: 0 0 20px var(--primary-glow), 0 0 40px rgba(230, 57, 70, 0.15);
}

/* Light Mode */
body.light-mode {
    --bg-deep: #f5f5f7;
    --bg-card: rgba(255, 255, 255, 0.7);
    --bg-card-solid: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.65);
    --border-glass: rgba(230, 57, 70, 0.15);
    --text-main: #1a1a2e;
    --text-muted: #555555;
    --text-bright: #0a0a0a;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); line-height: 1.7; color: var(--text-main); background-color: var(--bg-deep); overflow-x: hidden; cursor: none; transition: background-color 0.4s, color 0.4s; }
p { font-family: var(--font-body); font-weight: 400; letter-spacing: 0.3px; }

body::before {
    content: '';
    position: fixed; inset: 0;
    background-image: linear-gradient(rgba(230, 57, 70, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(230, 57, 70, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none; z-index: 0;
}
::selection { background: var(--primary-dim); color: var(--primary); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Film Grain */
.film-grain {
    position: fixed; inset: 0; z-index: 99990; pointer-events: none; opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat; animation: grainShift 0.5s steps(4) infinite;
}
@keyframes grainShift { 0% { transform: translate(0,0); } 25% { transform: translate(-2px,2px); } 50% { transform: translate(2px,-2px); } 75% { transform: translate(-2px,-2px); } 100% { transform: translate(2px,2px); } }

/* Mouse Spotlight */
.mouse-spotlight {
    position: fixed; width: 600px; height: 600px; border-radius: 50%; pointer-events: none; z-index: 1;
    background: radial-gradient(circle, rgba(230,57,70,0.06) 0%, transparent 70%);
    transform: translate(-50%, -50%); transition: opacity 0.3s; opacity: 0;
}
.mouse-spotlight.active { opacity: 1; }

/* Custom Cursor */
#custom-cursor { position: fixed; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); box-shadow: var(--glow-sm); transform: translate(-50%, -50%); z-index: 99999; pointer-events: none; transition: width 0.2s, height 0.2s, background 0.2s; mix-blend-mode: screen; }
#cursor-ring { position: fixed; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgba(230, 57, 70, 0.35); transform: translate(-50%, -50%); z-index: 99998; pointer-events: none; transition: width 0.3s ease, height 0.3s ease, border-color 0.3s; }

/* Focus */
:is(a, button, input, textarea, select):focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

/* ============ LOADER ============ */
#loader { position: fixed; inset: 0; background: var(--bg-deep); z-index: 100000; display: flex; justify-content: center; align-items: center; transition: opacity 0.8s ease, visibility 0.8s ease; }
#loader.hidden { opacity: 0; visibility: hidden; }
.loader-content { text-align: center; }
.loader-ring { animation: loaderDraw 2s ease forwards; }
@keyframes loaderDraw { to { stroke-dashoffset: 0; } }
.loader-tagline { font-family: var(--font-heading); font-size: 0.85rem; letter-spacing: 4px; color: var(--primary); margin-top: 1.5rem; opacity: 0; animation: fadeInUp 0.6s ease 0.5s forwards; }
.loader-bar { width: 200px; height: 2px; background: rgba(230,57,70,0.15); border-radius: 2px; margin: 1.5rem auto 0; overflow: hidden; }
.loader-bar-fill { width: 0%; height: 100%; background: var(--primary); border-radius: 2px; animation: loaderFill 2.5s ease forwards; }
@keyframes loaderFill { to { width: 100%; } }

/* ============ NAVIGATION ============ */
.navbar { position: sticky; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(5, 5, 16, 0.35); backdrop-filter: blur(24px) saturate(1.8); -webkit-backdrop-filter: blur(24px) saturate(1.8); border-bottom: 1px solid rgba(230,57,70,0.08); padding: 0.8rem 0; transition: background var(--transition), padding var(--transition), border-color var(--transition); }
.navbar.scrolled { background: rgba(5, 5, 16, 0.6); padding: 0.5rem 0; border-bottom-color: rgba(230,57,70,0.15); }
.navbar::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 100%; height: 2px; background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent); transform: scaleX(0); transform-origin: left; animation: navLine 2.5s ease-out 0.5s forwards; }
@keyframes navLine { to { transform: scaleX(1); } }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--text-bright); font-family: var(--font-heading); font-weight: 600; font-size: 1rem; letter-spacing: 0.5px; }
.logo img { filter: drop-shadow(0 0 6px var(--primary-glow)); }
.nav-links { display: flex; list-style: none; gap: 1rem; align-items: center; }
.nav-links li { display: flex; align-items: center; }
.nav-links li:not(:last-child)::after { content: '|'; color: var(--primary); margin-left: 1rem; font-weight: bold; font-family: var(--font-heading); opacity: 0.8; text-shadow: 0 0 8px var(--primary-glow); }
.nav-links a { position: relative; text-decoration: none; color: var(--text-muted); font-weight: 500; font-size: 0.95rem; letter-spacing: 0.5px; text-transform: uppercase; transition: color var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--primary); text-shadow: 0 0 12px var(--primary-glow); }
.nav-links a::after { content: ''; position: absolute; width: 100%; transform: scaleX(0); height: 2px; bottom: -6px; left: 0; background: linear-gradient(90deg, var(--primary), var(--accent)); transform-origin: bottom right; transition: transform 0.3s ease-out; border-radius: 2px; }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: bottom left; }

.nav-right { display: flex; align-items: center; gap: 1rem; }
.theme-toggle { background: none; border: 1px solid var(--border-glass); color: var(--text-muted); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all var(--transition); font-size: 1rem; }
.theme-toggle:hover { border-color: var(--primary); color: var(--primary); box-shadow: var(--glow-sm); }

.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; z-index: 1010; position: relative; width: 30px; height: 24px; }
.mobile-menu-btn span { display: block; width: 100%; height: 2px; background: var(--primary); border-radius: 2px; position: absolute; left: 0; transition: transform 0.3s ease, opacity 0.3s ease; box-shadow: 0 0 6px var(--primary-glow); }
.mobile-menu-btn span:nth-child(1) { top: 0; }
.mobile-menu-btn span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.mobile-menu-btn span:nth-child(3) { top: 100%; transform: translateY(-100%); }
.mobile-menu-btn.active span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }
.mobile-nav-menu { display: none; }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    .mobile-nav-menu { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(5, 5, 16, 0.95); backdrop-filter: blur(30px); z-index: 999; transform: translateY(-100%); transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s, visibility 0.5s; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 6rem; padding-bottom: 2rem; gap: 2rem; opacity: 0; visibility: hidden; overflow-y: auto; }
    .mobile-nav-menu.active { transform: translateY(0); opacity: 1; visibility: visible; }
    .mobile-nav-menu a { color: var(--text-main); text-decoration: none; font-family: var(--font-heading); font-size: 1.3rem; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; transition: color 0.3s, text-shadow 0.3s; }
    .mobile-nav-menu a:hover { color: var(--primary); text-shadow: 0 0 20px var(--primary-glow); }
}

/* Scroll Progress Dots */
.scroll-progress { position: fixed; right: 1.5rem; top: 50%; transform: translateY(-50%); z-index: 100; display: flex; flex-direction: column; gap: 1rem; }
.progress-dot { display: block; width: 10px; height: 10px; border-radius: 50%; background: rgba(230,57,70,0.15); border: 1px solid transparent; transition: all 0.3s; }
.progress-dot span { display: none; }
.progress-dot.active { background: var(--primary); box-shadow: var(--glow-sm); transform: scale(1.4); border-color: var(--primary); }

/* ============ BUTTONS ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.8rem 1.8rem; border-radius: 8px; font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; text-decoration: none; cursor: pointer; border: none; transition: all var(--transition); letter-spacing: 0.5px; position: relative; overflow: hidden; }
.btn-primary { background: linear-gradient(135deg, var(--primary), #c62828); color: #fff; box-shadow: 0 0 20px rgba(230, 57, 70, 0.2); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--glow-md); }
.btn-primary::after { content: ''; position: absolute; top: -50%; left: -60%; width: 200%; height: 200%; background: linear-gradient(to right, transparent, rgba(255,255,255,0.15), transparent); transform: rotate(30deg); transition: left 0.6s; }
.btn-primary:hover::after { left: 120%; }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--border-glow); }
.btn-outline:hover { background: var(--primary-dim); border-color: var(--primary); box-shadow: var(--glow-sm); transform: translateY(-2px); }
.btn-lg { padding: 1rem 2.2rem; font-size: 1.05rem; }

/* ============ CARDS ============ */
.card { background: var(--bg-glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--border-glass); border-radius: var(--radius); overflow: hidden; transition: all var(--transition); color: var(--text-main); position: relative; }
.card:hover { transform: translateY(-6px); border-color: var(--border-glow); box-shadow: 0 8px 32px rgba(230, 57, 70, 0.1), 0 0 80px rgba(230, 57, 70, 0.03); }

/* ============ HERO — 3D GRID ============ */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; background: transparent; }
#gridCanvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.hero-gradient-blob { position: absolute; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(230,57,70,0.15) 0%, rgba(255,23,68,0.08) 40%, transparent 70%); filter: blur(60px); z-index: 1; animation: blobFloat 8s ease-in-out infinite; pointer-events: none; }
@keyframes blobFloat { 0%, 100% { transform: translate(-20%, -20%) scale(1); } 33% { transform: translate(10%, -10%) scale(1.1); } 66% { transform: translate(-10%, 10%) scale(0.95); } }
.hero-content { text-align: center; z-index: 3; max-width: 900px; padding: 0 1.5rem; }
.hero-badge { display: inline-block; background: var(--primary-dim); color: var(--primary); padding: 0.5rem 1.5rem; border-radius: 2rem; font-size: 0.8rem; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; border: 1px solid rgba(230,57,70,0.15); margin-bottom: 2rem; animation: fadeInUp 0.8s ease-out 0.5s both; }
.hero-title { font-family: var(--font-heading); font-size: clamp(2.5rem, 8vw, 5.5rem); font-weight: 700; line-height: 1.1; margin-bottom: 1rem; background: linear-gradient(135deg, var(--primary), #c62828, var(--accent)); background-size: 200% 200%; -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; animation: heroTitleEntry 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s both, gradientShift 6s ease infinite; filter: drop-shadow(0 0 30px rgba(230, 57, 70, 0.2)); opacity: 0; }
@keyframes heroTitleEntry { 0% { opacity: 0; transform: translateY(30px) scale(0.97); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes gradientShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* Events Drag Hint */
.events-drag-hint { text-align: center; margin-top: 1.5rem; color: var(--text-muted); font-size: 0.85rem; letter-spacing: 1px; display: flex; align-items: center; justify-content: center; gap: 0.5rem; opacity: 0.6; }
.events-drag-hint i { color: var(--primary); font-size: 1rem; animation: dragPulse 2s ease-in-out infinite; }
@keyframes dragPulse { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }

/* Glitch Effect */
.glitch-text { position: relative; }
.glitch-text::before, .glitch-text::after { content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg-deep); -webkit-background-clip: text; background-clip: text; }
.glitch-text::before { left: 2px; text-shadow: -2px 0 #ff1744; clip-path: inset(0 0 65% 0); animation: glitchTop 3s infinite linear alternate-reverse; }
.glitch-text::after { left: -2px; text-shadow: 2px 0 #e63946; clip-path: inset(35% 0 0 0); animation: glitchBottom 2.5s infinite linear alternate-reverse; }
@keyframes glitchTop { 0%, 90% { clip-path: inset(0 0 65% 0); } 92% { clip-path: inset(20% 0 40% 0); } 94% { clip-path: inset(60% 0 5% 0); } 96% { clip-path: inset(10% 0 70% 0); } 98%, 100% { clip-path: inset(0 0 65% 0); } }
@keyframes glitchBottom { 0%, 90% { clip-path: inset(35% 0 0 0); } 92% { clip-path: inset(50% 0 20% 0); } 94% { clip-path: inset(5% 0 60% 0); } 96% { clip-path: inset(70% 0 10% 0); } 98%, 100% { clip-path: inset(35% 0 0 0); } }

.hero-subtitle { font-size: clamp(1rem, 2.5vw, 1.4rem); color: var(--text-muted); margin-bottom: 2rem; animation: fadeInUp 1s ease-out 0.3s both; letter-spacing: 1px; min-height: 2em; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; animation: fadeInUp 1s ease-out 0.5s both; }

/* Scroll Hint */
.scroll-hint { position: absolute; bottom: 2rem; left: 0; right: 0; z-index: 5; text-align: center; animation: fadeInUp 1s ease-out 1.5s both; display: flex; flex-direction: column; align-items: center; width: 100%; }
.scroll-hint span { font-size: 0.75rem; letter-spacing: 3px; text-transform: uppercase; color: var(--text-muted); display: block; margin-bottom: 0.5rem; }
.scroll-arrow { width: 20px; height: 30px; border: 2px solid var(--primary); border-radius: 10px; margin: 0 auto; position: relative; }
.scroll-arrow::before { content: ''; position: absolute; width: 4px; height: 8px; background: var(--primary); border-radius: 2px; top: 5px; left: 50%; transform: translateX(-50%); animation: scrollBounce 1.5s infinite; }
@keyframes scrollBounce { 0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; } 50% { transform: translateX(-50%) translateY(8px); opacity: 0.3; } }

/* ============ MARQUEE TICKER ============ */
.marquee-section { padding: 1.5rem 0; border-top: 1px solid var(--border-glass); border-bottom: 1px solid var(--border-glass); background: rgba(15,15,15,0.5); overflow: hidden; position: relative; z-index: 2; }
.marquee-track { display: flex; width: max-content; }
.marquee-content { display: flex; align-items: center; gap: 2rem; animation: marqueeScroll 20s linear infinite; padding-right: 2rem; }
.marquee-content span { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; letter-spacing: 4px; color: var(--text-muted); text-transform: uppercase; white-space: nowrap; }
.marquee-dot { color: var(--primary) !important; font-size: 0.6rem !important; }
@keyframes marqueeScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* ============ MISSION — WORD HIGHLIGHT ============ */
.mission-section { min-height: 80vh; display: flex; align-items: center; }
.mission-content { max-width: 900px; margin: 0 auto; text-align: center; }
.word-highlight-text { font-family: var(--font-heading); font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 500; line-height: 1.8; letter-spacing: 1px; }
.word-highlight-text .word { color: rgba(230,57,70,0.15); transition: color 0.4s ease, text-shadow 0.4s ease; display: inline-block; margin: 0 0.15em; }
.word-highlight-text .word.highlighted { color: var(--text-bright); text-shadow: 0 0 20px var(--primary-glow); }

/* ============ SECTIONS ============ */
.section { padding: 6rem 0; position: relative; z-index: 1; }
.section-bg { background: rgba(15, 15, 15, 0.5); position: relative; }
body.light-mode .section-bg { background: rgba(0,0,0,0.03); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section-title { font-family: var(--font-heading); font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700; text-align: center; margin-bottom: 1rem; letter-spacing: 2px; text-transform: uppercase; }
.text-primary { color: var(--primary); text-shadow: 0 0 20px var(--primary-glow); }
.text-muted-heading { color: var(--text-muted); font-weight: 400; }
.section-subtitle { text-align: center; font-size: 1.15rem; color: var(--text-muted); max-width: 700px; margin: 0 auto 3rem; line-height: 1.7; }

/* SVG Wave Dividers */
.section-wave-top, .section-wave-bottom { position: absolute; left: 0; width: 100%; height: 60px; pointer-events: none; z-index: 2; }
.section-wave-top { top: -1px; }
.section-wave-bottom { bottom: -1px; }

/* ============ PHILOSOPHY PILLARS ============ */
.philosophy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 3rem; }
.philosophy-card { background: var(--bg-glass); backdrop-filter: blur(16px); border: 1px solid var(--border-glass); border-radius: var(--radius-lg); padding: 2.5rem 2rem; position: relative; overflow: hidden; transition: all 0.5s cubic-bezier(0.4,0,0.2,1); }
.philosophy-card:hover { border-color: var(--primary); box-shadow: 0 0 40px rgba(230,57,70,0.1), inset 0 0 40px rgba(230,57,70,0.02); transform: translateY(-8px); }
.philosophy-number { font-family: var(--font-heading); font-size: 5rem; font-weight: 700; line-height: 1; background: linear-gradient(135deg, rgba(230,57,70,0.2), rgba(230,57,70,0.05)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 0.5rem; }
.philosophy-card:hover .philosophy-number { background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; }
.philosophy-label { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; letter-spacing: 3px; color: var(--text-bright); margin-bottom: 1rem; }
.philosophy-desc { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }
.philosophy-icon { position: absolute; bottom: 1.5rem; right: 1.5rem; width: 50px; height: 50px; border-radius: 50%; background: var(--primary-dim); display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 1.2rem; transition: all 0.4s; }
.philosophy-card:hover .philosophy-icon { background: var(--primary); color: var(--bg-deep); box-shadow: var(--glow-sm); transform: scale(1.15); }

/* ============ EVENTS HORIZONTAL SCROLL ============ */
.events-scroll-container { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin-top: 2rem; padding-bottom: 1rem; cursor: grab; }
.events-scroll-container::-webkit-scrollbar { display: none; }
.events-scroll-track { display: flex; gap: 1.5rem; padding: 1rem 0; width: max-content; }
.event-card { width: 320px; min-width: 320px; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-glass); border: 1px solid var(--border-glass); transition: all 0.4s; flex-shrink: 0; }
.event-card:hover { border-color: var(--primary); box-shadow: 0 10px 40px rgba(230,57,70,0.1); transform: translateY(-6px); }
.event-card-img { height: 200px; position: relative; overflow: hidden; }
.event-card-img img { transition: transform 0.5s; }
.event-card:hover .event-card-img img { transform: scale(1.08); }
.event-card-overlay { position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(10,10,10,0.8) 100%); }
.event-card-content { padding: 1.5rem; }
.event-tag { display: inline-block; background: var(--primary-dim); color: var(--primary); padding: 0.25rem 0.75rem; border-radius: 1rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 2px; margin-bottom: 0.75rem; }
.event-card-content h3 { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 600; color: var(--text-bright); margin-bottom: 0.5rem; letter-spacing: 0.5px; }
.event-card-content p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; }

/* Featured Event (single event spotlight) */
.featured-event { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-glass); border: 1px solid var(--border-glass); transition: all 0.5s; max-width: 900px; margin: 0 auto; }
.featured-event:hover { border-color: var(--primary); box-shadow: 0 10px 60px rgba(230,57,70,0.12); }
.featured-event-img { position: relative; overflow: hidden; min-height: 320px; }
.featured-event-img img { transition: transform 0.6s; }
.featured-event:hover .featured-event-img img { transform: scale(1.05); }
.featured-event-date { position: absolute; top: 1.5rem; right: 1.5rem; background: rgba(0,0,0,0.8); backdrop-filter: blur(10px); border: 1px solid var(--primary); border-radius: var(--radius); padding: 0.75rem 1rem; text-align: center; display: flex; flex-direction: column; line-height: 1.2; }
.event-day { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: var(--primary); }
.event-month { font-family: var(--font-heading); font-size: 0.8rem; font-weight: 600; color: var(--text-bright); letter-spacing: 2px; }
.event-year { font-size: 0.7rem; color: var(--text-muted); letter-spacing: 1px; }
.featured-event-content { padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; }
.featured-event-title { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: var(--text-bright); margin-bottom: 1rem; letter-spacing: 1px; }
.featured-event-desc { color: var(--text-muted); font-size: 1rem; line-height: 1.7; margin-bottom: 1.5rem; }
.featured-event-meta { display: flex; flex-wrap: wrap; gap: 1rem; }
.featured-event-meta span { display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; color: var(--text-muted); }
.featured-event-meta i { color: var(--primary); }
@media (max-width: 768px) { .featured-event { grid-template-columns: 1fr; } .featured-event-img { min-height: 200px; } }

/* Countdown Timer */
.countdown-container { text-align: center; margin-top: 2.5rem; }
.countdown-label { font-family: var(--font-heading); font-size: 0.8rem; letter-spacing: 4px; color: var(--primary); margin-bottom: 1rem; text-transform: uppercase; }
.countdown-timer { display: flex; justify-content: center; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.countdown-unit { background: rgba(230,57,70,0.06); border: 1px solid rgba(230,57,70,0.15); border-radius: var(--radius); padding: 1rem 1.5rem; min-width: 80px; text-align: center; position: relative; overflow: hidden; backdrop-filter: blur(10px); }
.countdown-unit::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--primary), transparent); }
.countdown-number { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 700; color: var(--text-bright); display: block; line-height: 1; text-shadow: 0 0 20px rgba(230,57,70,0.3); }
.countdown-text { font-family: var(--font-heading); font-size: 0.65rem; letter-spacing: 3px; color: var(--text-muted); display: block; margin-top: 0.4rem; }
.countdown-separator { font-family: var(--font-heading); font-size: 2rem; color: var(--primary); font-weight: 700; animation: countdownPulse 1s ease-in-out infinite; }
@keyframes countdownPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@media (max-width: 480px) { .countdown-unit { padding: 0.75rem 1rem; min-width: 60px; } .countdown-number { font-size: 1.8rem; } }

/* ============ FILM REEL STORY ============ */
.film-reel-wrapper { position: relative; overflow: hidden; padding: 1rem 0 2rem; }
.film-reel-track { display: flex; gap: 0; cursor: grab; transition: none; position: relative; padding: 2rem 0; }
.film-reel-track:active { cursor: grabbing; }
.film-perforations { position: absolute; left: 0; width: 100%; height: 20px; display: flex; gap: 0; z-index: 2; }
.film-perforations-top { top: 0; border-bottom: 2px solid rgba(230,57,70,0.2); }
.film-perforations-bottom { bottom: 0; border-top: 2px solid rgba(230,57,70,0.2); }
.film-perforations::before { content: ''; position: absolute; left: 0; width: 100%; height: 100%; background: repeating-linear-gradient(90deg, rgba(230,57,70,0.15) 0px, rgba(230,57,70,0.15) 12px, transparent 12px, transparent 40px); }
.film-frame { flex-shrink: 0; width: 340px; padding: 2.5rem 2rem; margin: 0 1rem; background: rgba(230,57,70,0.03); border: 1px solid rgba(230,57,70,0.1); border-radius: var(--radius); position: relative; overflow: hidden; transition: all 0.4s ease; backdrop-filter: blur(8px); }
.film-frame:hover { border-color: rgba(230,57,70,0.3); background: rgba(230,57,70,0.06); transform: translateY(-4px); box-shadow: 0 10px 40px rgba(230,57,70,0.1); }
.film-frame-number { position: absolute; top: -10px; right: 10px; font-family: var(--font-heading); font-size: 5rem; font-weight: 700; color: rgba(230,57,70,0.06); line-height: 1; pointer-events: none; }
.film-frame-icon { width: 50px; height: 50px; border-radius: 12px; background: rgba(230,57,70,0.1); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: var(--primary); margin-bottom: 1.2rem; border: 1px solid rgba(230,57,70,0.15); }
.film-frame-title { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; color: var(--text-bright); margin-bottom: 0.8rem; }
.film-frame-text { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1rem; }
.film-frame-year { font-family: var(--font-heading); font-size: 0.75rem; letter-spacing: 3px; color: var(--primary); font-weight: 700; padding: 0.3rem 0.8rem; background: rgba(230,57,70,0.08); border-radius: 4px; display: inline-block; border: 1px solid rgba(230,57,70,0.12); }
.film-reel-hint { text-align: center; margin-top: 1.5rem; font-size: 0.8rem; color: var(--text-muted); letter-spacing: 2px; text-transform: uppercase; animation: fadeInUp 1s ease-out 0.5s both; }
.film-reel-hint i { color: var(--primary); margin-right: 0.5rem; }
@media (max-width: 768px) { .film-frame { width: 280px; padding: 2rem 1.5rem; } }

/* ============ VALUES GRID ============ */
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.value-card { position: relative; padding: 2rem 1.8rem; background: rgba(5,5,16,0.6); border: 1px solid rgba(230,57,70,0.08); border-radius: var(--radius); overflow: hidden; transition: all 0.4s ease; backdrop-filter: blur(8px); }
.value-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, hsla(var(--accent-hue), 85%, 50%, 0), hsla(var(--accent-hue), 85%, 50%, 0.8), hsla(var(--accent-hue), 85%, 50%, 0)); opacity: 0; transition: opacity 0.4s; }
.value-card:hover::before { opacity: 1; }
.value-card:hover { border-color: hsla(var(--accent-hue), 85%, 50%, 0.2); transform: translateY(-6px); box-shadow: 0 15px 40px rgba(230,57,70,0.08); }
.value-card-number { position: absolute; top: -5px; right: 15px; font-family: var(--font-heading); font-size: 4.5rem; font-weight: 700; color: rgba(230,57,70,0.04); line-height: 1; pointer-events: none; }
.value-card-icon { width: 52px; height: 52px; border-radius: 14px; background: hsla(var(--accent-hue), 85%, 50%, 0.08); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: hsla(var(--accent-hue), 85%, 50%, 1); margin-bottom: 1.2rem; border: 1px solid hsla(var(--accent-hue), 85%, 50%, 0.12); transition: all 0.4s; }
.value-card:hover .value-card-icon { box-shadow: 0 0 20px hsla(var(--accent-hue), 85%, 50%, 0.2); transform: scale(1.1); }
.value-card-title { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: var(--text-bright); margin-bottom: 0.6rem; }
.value-card-text { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }
@media (max-width: 480px) { .values-grid { grid-template-columns: 1fr; } }


/* ============ GRIDS & STATS ============ */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 2rem; text-align: center; padding: 2rem 0; }
.stat-item { padding: 1.5rem; background: var(--bg-glass); border: 1px solid var(--border-glass); border-radius: var(--radius); transition: all var(--transition); }
.stat-item:hover { border-color: var(--border-glow); box-shadow: 0 0 30px rgba(230,57,70,0.08); }
.stat-number { font-family: var(--font-heading); font-size: 2.8rem; font-weight: 700; color: var(--primary); text-shadow: 0 0 20px var(--primary-glow); margin-bottom: 0.5rem; line-height: 1; }
.stat-label { color: var(--text-muted); font-size: 0.9rem; letter-spacing: 0.5px; }

/* ============ PPP STEPS ============ */
.ppp-step { cursor: pointer; transition: all 0.4s ease; border: 1px solid var(--border-glass); margin-bottom: 1rem; padding: 1.5rem; }
.ppp-step.active { transform: scale(1.02); border-color: var(--primary); background: var(--primary-dim); box-shadow: 0 0 30px rgba(230, 57, 70, 0.08); }
.ppp-icon { width: 48px; height: 48px; min-width: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; transition: transform 0.3s ease; color: var(--primary); }
.ppp-step.active .ppp-icon { transform: scale(1.15); }
.ppp-details { max-height: 0; opacity: 0; overflow: hidden; transition: all 0.4s ease; }
.ppp-step.active .ppp-details { max-height: 100px; opacity: 1; margin-top: 0.5rem; }
.step-badge { background: rgba(230, 57, 70, 0.08); color: var(--text-muted); padding: 0.25rem 0.75rem; border-radius: 1rem; font-size: 0.8rem; font-weight: 600; transition: all 0.3s ease; }
.ppp-step.active .step-badge { background: var(--primary); color: var(--bg-deep); }
.step-content { display: flex; align-items: flex-start; gap: 1rem; }
.step-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.step-title { font-size: 1.1rem; font-weight: 600; color: var(--text-bright); }
.step-description { color: var(--text-muted); font-size: 0.95rem; }
.ppp-visual-container { position: relative; }
.ppp-visual-box { background: linear-gradient(135deg, var(--primary-dim), rgba(183, 28, 28, 0.05)); border-radius: var(--radius-lg); padding: 2rem; height: 400px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border-glass); }
.ppp-visual-content { text-align: center; transition: all 0.5s ease; }
.ppp-visual-icon { width: 96px; height: 96px; margin: 0 auto 1.5rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.5s ease; box-shadow: var(--glow-md); }
.ppp-visual-title { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text-bright); }
.ppp-visual-description { color: var(--text-muted); font-size: 0.95rem; }
.ppp-indicators { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.5rem; }
.indicator { width: 8px; height: 8px; border-radius: 50%; background: rgba(230, 57, 70, 0.15); cursor: pointer; transition: all var(--transition); }
.indicator.active { background: var(--primary); box-shadow: var(--glow-sm); }
.info-tag { position: absolute; background: var(--bg-glass); backdrop-filter: blur(10px); border: 1px solid var(--border-glass); border-radius: 8px; padding: 0.75rem 1rem; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; font-weight: 500; color: var(--text-bright); }
.info-tag.top-right { top: -0.75rem; right: -0.75rem; }
.info-tag.bottom-left { bottom: -0.75rem; left: -0.75rem; }

/* ============ CTA ============ */
.cta-section { text-align: center; padding: 6rem 0; position: relative; overflow: hidden; }
.cta-glow { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 100%, rgba(230,57,70,0.08) 0%, transparent 60%); pointer-events: none; }
.cta-section h2 { font-family: var(--font-heading); font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; margin-bottom: 1rem; color: var(--text-bright); }
.cta-section p { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ============ FOOTER ============ */
.footer { background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(20px); border-top: 1px solid var(--border-glass); padding: 4rem 0 1.5rem; position: relative; z-index: 1; }
body.light-mode .footer { background: rgba(0,0,0,0.9); }
.footer::before { content: ''; position: absolute; top: -1px; left: 0; width: 100%; height: 2px; background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent); }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-section h3 { font-family: var(--font-heading); font-size: 0.9rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 1rem; color: var(--primary); }
.footer-section p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 0.5rem; }
.footer-section ul li a { color: var(--text-muted); font-size: 0.9rem; transition: all 0.3s; }
.footer-section ul li a:hover { color: var(--primary); text-shadow: 0 0 8px var(--primary-glow); padding-left: 4px; }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid var(--border-glass); color: var(--text-muted); font-size: 0.85rem; }
.footer-bottom img { margin: 0 auto 0.5rem; filter: drop-shadow(0 0 8px var(--primary-glow)); }
.social-links { display: flex; gap: 0.75rem; margin-top: 1rem; }
.social-links a { width: 40px; height: 40px; background: var(--primary-dim); color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; transition: all var(--transition); border: 1px solid rgba(230, 57, 70, 0.1); }
.social-links a:hover { background: var(--primary); color: var(--bg-deep); box-shadow: var(--glow-sm); transform: scale(1.15); }

/* ============ STAGGER REVEAL ============ */
.stagger-reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.4,0,0.2,1), transform 0.8s cubic-bezier(0.4,0,0.2,1); }
.stagger-reveal.visible { opacity: 1; transform: translateY(0); }
.stagger-reveal[data-delay="1"] { transition-delay: 0.15s; }
.stagger-reveal[data-delay="2"] { transition-delay: 0.3s; }
.stagger-reveal[data-delay="3"] { transition-delay: 0.45s; }

/* ============ ANIMATIONS ============ */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ============ PAGE HEADER (sub-pages) ============ */
.page-header { padding: 8rem 0 4rem; text-align: center; background: transparent; position: relative; }
.page-header .badge { animation: fadeInUp 0.6s ease-out; }
.page-header .section-title { animation: fadeInUp 0.6s ease-out 0.15s both; }
.page-header p { animation: fadeInUp 0.6s ease-out 0.3s both; }
.badge { display: inline-block; background: var(--primary-dim); color: var(--primary); padding: 0.4rem 1rem; border-radius: 2rem; font-size: 0.85rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; border: 1px solid rgba(230, 57, 70, 0.15); margin-bottom: 1.5rem; }

/* Sub-page styles kept for compatibility */
.feature-icon { width: 64px; height: 64px; background: var(--primary-dim); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; font-size: 1.8rem; transition: all var(--transition); border: 1px solid rgba(230, 57, 70, 0.08); }
.card:hover .feature-icon { background: linear-gradient(135deg, var(--primary-dim), var(--accent-dim)); box-shadow: var(--glow-sm); transform: scale(1.1); }
.feature-title { font-size: 1.15rem; font-weight: 600; color: var(--text-bright); margin-bottom: 0.5rem; }
.feature-text { color: var(--text-muted); line-height: 1.6; font-size: 0.95rem; }
.card-content { padding: 1.5rem; }

/* Team Page */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.team-card { background: var(--bg-glass); backdrop-filter: blur(16px); border: 1px solid var(--border-glass); border-radius: var(--radius); padding: 1.5rem; transition: all var(--transition); position: relative; overflow: hidden; }
.team-card:hover { border-color: var(--border-glow); box-shadow: 0 8px 32px rgba(230, 57, 70, 0.08); transform: translateY(-4px); }
.flip-card { perspective: 1000px; height: 280px; }
.flip-card-inner { position: relative; width: 100%; height: 100%; text-align: center; transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1); transform-style: preserve-3d; }
.flip-card:hover .flip-card-inner { transform: rotateY(180deg); }
.flip-card-front, .flip-card-back { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; padding: 1.5rem; border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.flip-card-back { transform: rotateY(180deg); }
.team-avatar { width: 90px; height: 90px; border-radius: 50%; overflow: hidden; margin: 0 auto 1rem; border: 2px solid var(--primary); box-shadow: 0 0 20px rgba(230, 57, 70, 0.15); }
.team-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.team-name { font-family: var(--font-heading); font-size: 1rem; font-weight: 600; color: var(--text-bright); margin-bottom: 0.5rem; letter-spacing: 0.5px; }
.team-role { color: var(--primary); font-size: 0.85rem; font-weight: 500; margin-bottom: 0.5rem; }
.team-badge { display: inline-block; background: var(--primary-dim); color: var(--primary); padding: 0.3rem 0.8rem; border-radius: 1rem; font-size: 0.75rem; font-weight: 600; border: 1px solid rgba(230, 57, 70, 0.15); margin-top: 0.5rem; }
.team-desc { color: var(--text-muted); font-size: 0.85rem; line-height: 1.5; margin-bottom: 0.75rem; }
.team-skills { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; margin-bottom: 0.75rem; }
.skill-tag { padding: 0.2rem 0.6rem; border: 1px solid rgba(230, 57, 70, 0.2); border-radius: 1rem; font-size: 0.7rem; color: var(--text-muted); background: rgba(230, 57, 70, 0.05); }
.team-social { display: flex; gap: 0.75rem; justify-content: center; }
.team-social a { color: var(--primary); transition: all 0.3s; display: flex; align-items: center; }
.team-social a:hover { color: var(--text-bright); text-shadow: 0 0 10px var(--primary-glow); transform: scale(1.15); }
.team-social svg { width: 20px; height: 20px; }
.mentor-card { max-width: 380px; margin: 0 auto; background: linear-gradient(135deg, var(--bg-glass), rgba(230, 57, 70, 0.03)); border: 1px solid rgba(230, 57, 70, 0.2); box-shadow: 0 0 40px rgba(230, 57, 70, 0.05); }

/* Contact Page */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.form-card { background: var(--bg-glass); backdrop-filter: blur(16px); border: 1px solid var(--border-glass); border-radius: var(--radius); padding: 2rem; transition: border-color var(--transition); }
.form-card:hover { border-color: var(--border-glow); }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 500; margin-bottom: 0.5rem; color: var(--text-muted); font-size: 0.9rem; }
.form-input { width: 100%; padding: 0.75rem 1rem; background: rgba(5, 5, 16, 0.6); border: 1px solid var(--border-glass); border-radius: 8px; font-size: 1rem; color: var(--text-main); font-family: var(--font-body); transition: all var(--transition); }
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 15px rgba(230, 57, 70, 0.1); outline: none; }
.form-input::placeholder { color: rgba(136, 146, 176, 0.5); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.info-card { background: var(--bg-glass); backdrop-filter: blur(16px); border: 1px solid var(--border-glass); border-radius: var(--radius); padding: 1.5rem; transition: all var(--transition); display: flex; align-items: flex-start; gap: 1rem; }
.info-card:hover { border-color: var(--border-glow); }
.info-icon { width: 48px; height: 48px; min-width: 48px; background: var(--primary-dim); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--primary); transition: all var(--transition); }
.info-card:hover .info-icon { background: var(--primary); color: var(--bg-deep); box-shadow: var(--glow-sm); }
.info-title { font-weight: 600; color: var(--text-bright); margin-bottom: 0.25rem; }
.info-value { color: var(--primary); font-weight: 500; }
.info-desc { color: var(--text-muted); font-size: 0.85rem; }
.social-btn { display: inline-flex; align-items: center; gap: 0.5rem; background: transparent; border: 1px solid var(--border-glass); color: var(--text-muted); padding: 0.5rem 1rem; border-radius: 8px; font-size: 0.9rem; transition: all var(--transition); cursor: pointer; text-decoration: none; }
.social-btn:hover { border-color: var(--primary); color: var(--primary); }
.quick-action { width: 100%; display: flex; align-items: center; gap: 0.5rem; background: transparent; border: 1px solid var(--border-glass); color: var(--text-muted); padding: 0.75rem 1rem; border-radius: 8px; font-size: 0.9rem; transition: all var(--transition); cursor: pointer; text-decoration: none; font-family: var(--font-body); }
.quick-action:hover { border-color: var(--primary); color: var(--primary); }

/* PPP Form */
.form-box { max-width: 600px; margin: 2rem auto; padding: 2rem; background: var(--bg-glass); backdrop-filter: blur(16px); border: 1px solid var(--border-glow); border-radius: var(--radius); box-shadow: 0 0 40px rgba(230, 57, 70, 0.05); color: var(--text-main); }
.form-box .form-group label { color: var(--primary); font-weight: 600; }
.form-box .btn { width: 100%; background: linear-gradient(135deg, var(--primary), #c62828); color: var(--bg-deep); font-weight: 700; font-size: 1rem; padding: 0.85rem; }
.form-box .btn:hover { box-shadow: var(--glow-md); transform: translateY(-2px); }

/* Logo story */
.logo-story-card { padding: 2rem; border: 1px solid var(--border-glow); background: var(--bg-glass); backdrop-filter: blur(16px); border-radius: var(--radius-lg); overflow: hidden; }
.logo-story-card video { width: 100%; max-height: 400px; object-fit: contain; border-radius: var(--radius); }
.logo-animation-container { position: relative; height: 200px; display: flex; align-items: center; justify-content: center; }

/* Reveal (sub-pages) */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    html { font-size: 14px; }
    .section { padding: 4rem 0; }
    .grid-2 { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .ppp-visual-box { height: 280px; }
    .info-tag.top-right, .info-tag.bottom-left { position: static; margin-top: 0.75rem; }
    .philosophy-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .hero-title { font-size: clamp(2rem, 8vw, 3.5rem); }
    .scroll-progress { display: none; }
    #custom-cursor, #cursor-ring { display: none; }
    body { cursor: auto; }
    .film-grain { display: none; }
}

@media (max-width: 480px) {
    .hero-btns { flex-direction: column; align-items: center; }
    .btn-lg { width: 100%; }
}

/* ABOUT SECTION ICON LOGIC */

.feature-icon i {
    position: relative;
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
}

.card:hover .fa-bullseye {
    animation: targetImpact 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.fa-bullseye::after {
    content: '▹';
    position: absolute;
    top: -15px; left: -15px;
    font-family: var(--font-body);
    color: var(--text-bright);
    font-size: 1.2rem;
    opacity: 0;
    transform: translate(-20px, -20px) rotate(45deg);
}

.card:hover .fa-bullseye::after {
    animation: dartFly 0.4s ease-out forwards;
}

@keyframes targetImpact {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(0.8) rotate(-10deg); }
    70% { transform: scale(1.2) rotate(5deg); }
}

@keyframes dartFly {
    0% { opacity: 0; transform: translate(-30px, -30px) rotate(45deg); }
    100% { opacity: 1; transform: translate(5px, 5px) rotate(45deg); }
}

.card:hover .fa-users {
    animation: huddle 0.6s ease-in-out infinite alternate;
}

.fa-users::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 100%; height: 100%;
    border-radius: 50%;
    border: 2px solid var(--primary);
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
}

.card:hover .fa-users::after {
    animation: networkPulse 1.5s infinite ease-out;
}

@keyframes huddle {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

@keyframes networkPulse {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(2.2); opacity: 0; }
}

.card:hover .fa-rocket {
    animation: rocketIgnition 0.3s ease-out forwards, rocketFlight 0.4s ease-in-out 0.3s infinite alternate;
}

.fa-rocket::after {
    content: '»';
    position: absolute;
    bottom: -15px; left: -15px;
    color: var(--primary);
    font-size: 1.2rem;
    opacity: 0;
    transform: rotate(-45deg);
}

.card:hover .fa-rocket::after {
    animation: rocketTrail 0.4s linear infinite;
    animation-delay: 0.3s;
}

@keyframes rocketIgnition {
    0% { transform: translate(0, 0) scale(1); }
    20% { transform: translate(-2px, 2px) scale(1); }
    40% { transform: translate(2px, -2px) scale(1); }
    100% { transform: translate(5px, -5px) scale(1.15); }
}

@keyframes rocketFlight {
    0% { transform: translate(5px, -5px) scale(1.15); }
    100% { transform: translate(8px, -8px) scale(1.15); }
}

@keyframes rocketTrail {
    0% { opacity: 0; transform: translate(0, 0) rotate(-45deg); }
    50% { opacity: 0.8; }
    100% { opacity: 0; transform: translate(-15px, 15px) rotate(-45deg); }
}

.card:hover .fa-lightbulb {
    color: #ff3333 !important;
    transform: scale(1.25);
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.8), 0 0 20px rgba(255, 0, 0, 0.6), 0 0 30px rgba(255, 0, 0, 0.4);
    animation: bulbFlicker 2s infinite alternate;
}

@keyframes bulbFlicker {
    0%, 100% { opacity: 1; filter: brightness(1); }
    50% { opacity: 0.85; filter: brightness(0.8); }
}

.card:hover .fa-laptop {
    animation: levitate 1s ease-in-out infinite alternate;
}

.fa-laptop::after {
    content: '</>';
    position: absolute;
    top: -10px; left: 50%;
    transform: translateX(-50%);
    font-family: monospace;
    font-size: 0.7rem;
    color: var(--primary);
    font-weight: 800;
    opacity: 0;
}

.card:hover .fa-laptop::after {
    animation: floatCode 1.5s linear infinite;
}

@keyframes levitate {
    0% { transform: translateY(0); }
    100% { transform: translateY(-8px); }
}

@keyframes floatCode {
    0% { transform: translate(-50%, 0) scale(0.5); opacity: 0; }
    20% { opacity: 1; }
    100% { transform: translate(-50%, -25px) scale(1.2); opacity: 0; }
}

.card:hover .fa-trophy {
    animation: trophyPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    color: #ffd700 !important;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

@keyframes trophyPop {
    0% { transform: scale(1); }
    40% { transform: scale(1.4) rotate(10deg); }
    60% { transform: scale(1.2) rotate(-10deg); }
    80% { transform: scale(1.3) rotate(5deg); }
    100% { transform: scale(1.25) rotate(0deg); }
}

/* FIX PROGRAMS CARD */

.flip-card-inner .flip-card-front.philosophy-card {
    transform: none !important;
}

.flip-card-inner .flip-card-back.philosophy-card {
    transform: rotateY(180deg) !important;
}

.flip-card {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.flip-card:hover {
    transform: translateY(-8px);
}

.flip-card-front, .flip-card-back {
    -webkit-backface-visibility: hidden !important;
    backface-visibility: hidden !important;
}

/* ==========================================================================
   SUCCESS MODAL POPUP
   ========================================================================== */
.success-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.success-modal {
    background: rgba(18, 18, 18, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.success-icon-container {
    width: 80px;
    height: 80px;
    background: rgba(46, 204, 113, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    position: relative;
}

.success-icon-container::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50%;
    border: 2px solid #2ecc71;
    animation: successPulse 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

.success-icon-container i {
    color: #2ecc71;
    font-size: 2.5rem;
    animation: successCheck 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transform: scale(0);
    animation-delay: 0.2s;
}

.success-modal h3 {
    font-family: var(--font-heading);
    color: var(--text-bright);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.success-modal p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.success-modal .btn {
    width: 100%;
}

@keyframes successPulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

@keyframes successCheck {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

/* ==========================================================================
   APP SIDEBAR LAYOUT (Dashboard & Gamification Pages)
   ========================================================================== */
.app-layout {
    display: flex;
    min-height: 100vh;
    padding-top: 80px; /* Account for navbar */
    max-width: 1400px;
    margin: 0 auto;
}

.app-sidebar {
    width: 260px;
    flex-shrink: 0;
    padding: 2rem 1.5rem;
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
    border-right: 1px solid rgba(255,255,255,0.05);
    background: linear-gradient(180deg, rgba(15,15,20,0.6) 0%, rgba(10,10,15,0.2) 100%);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    scrollbar-width: none;
}
.app-sidebar::-webkit-scrollbar { display: none; }

.app-sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.8rem 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.app-sidebar-link i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.3);
    transition: color 0.2s ease;
}

.app-sidebar-link:hover {
    color: var(--text-bright);
    background: rgba(255,255,255,0.04);
}
.app-sidebar-link:hover i {
    color: var(--primary);
}

.app-sidebar-link.active {
    background: rgba(255,0,0,0.08);
    color: var(--primary);
    border: 1px solid rgba(255,0,0,0.2);
}
.app-sidebar-link.active i {
    color: var(--primary);
}

.app-sidebar-divider {
    height: 1px;
    background: rgba(255,255,255,0.05);
    margin: 1rem 0;
}

.app-main-content {
    flex: 1;
    padding: 2rem 3rem 4rem;
    min-width: 0;
}

@media (max-width: 900px) {
    .app-layout {
        flex-direction: column;
    }
    .app-sidebar {
        width: 100%;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        padding: 1rem;
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
    }
    .app-sidebar-link {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    .app-sidebar-divider {
        width: 1px;
        height: auto;
        margin: 0 0.5rem;
    }
    .app-main-content {
        padding: 1.5rem 1rem 3rem;
    }
}

/* ==========================================================================
   NOTIFICATION DROPDOWN
   ========================================================================== */
.notif-wrapper {
    position: relative;
    display: inline-block;
}

.notif-dropdown {
    display: none; 
    position: absolute; 
    top: calc(100% + 10px); 
    right: 0; 
    width: 300px; 
    background: var(--bg-card); 
    border: 1px solid var(--border-glass); 
    border-radius: 12px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); 
    z-index: 100; 
    backdrop-filter: blur(10px); 
    overflow: hidden;
}

@media (max-width: 600px) {
    .notif-dropdown {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        width: 280px; /* Slightly smaller for mobile */
    }
}