/* --- ABSOLUTE 3D DARK NEON THEME --- */
:root {
    --bg-color: #050505;         
    --accent-red: #ff2a4a;       
    --text-main: #f8fafc;        
    --text-muted: #94a3b8;       
    --pure-white: #FFFFFF;
    
    --glass-bg: rgba(15, 23, 42, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --shadow-soft: 0 15px 40px rgba(0, 0, 0, 0.8); 
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
body { background-color: var(--bg-color); color: var(--text-main); overflow-x: hidden; scroll-behavior: smooth; cursor: none; line-height: 1.6; }

/* --- AMBIENT MESH & 3D CANVAS --- */
#bg-canvas { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -3; pointer-events: none; }
.bg-mesh { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -2; overflow: hidden; background: transparent; }
.bg-mesh::before, .bg-mesh::after { content: ''; position: absolute; width: 50vw; height: 50vw; border-radius: 50%; filter: blur(120px); opacity: 0.25; animation: drift 20s infinite alternate ease-in-out; }
.bg-mesh::before { background: rgba(56, 189, 248, 0.2); top: -10%; left: -10%; }
.bg-mesh::after { background: rgba(225, 29, 72, 0.15); bottom: -10%; right: -10%; animation-delay: -5s; }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(10%, 10%) scale(1.2); } }

/* --- CUSTOM CURSOR --- */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; transform: translate(-50%, -50%); border-radius: 50%; z-index: 9999; pointer-events: none; display: none; }
.cursor-dot { width: 8px; height: 8px; background-color: var(--text-main); }
.cursor-ring { width: 40px; height: 40px; border: 1.5px solid rgba(15, 23, 42, 0.2); transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); will-change: transform, width, height; }
.cursor-ring.active { width: 70px; height: 70px; border-color: rgba(15, 23, 42, 0.3); background-color: transparent; }
a, button, input, .card, .testimonial-card, .close-btn, .program-card { cursor: none !important; }

/* --- MOBILE EKG SCROLLBAR --- */
#scroll-container { position: fixed; top: 0; right: 0; width: 4px; height: 100%; background: rgba(0, 0, 0, 0.05); z-index: 9998; display: none; }
#scroll-bar { width: 100%; height: 0%; background: var(--accent-red); position: relative; }
#scroll-pulse { position: absolute; left: -3px; bottom: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent-red); box-shadow: 0 0 10px var(--accent-red); }
.heartbeat-animation { animation: pulse-spike 0.6s ease-in-out; }
@keyframes pulse-spike { 0% { transform: translateX(0) scale(1); } 25% { transform: translateX(-15px) scale(1.2); } 50% { transform: translateX(10px) scale(0.8); } 75% { transform: translateX(-5px) scale(1.1); } 100% { transform: translateX(0) scale(1); } }

/* --- MOBILE FLOATING BUTTON & OVERLAY MENU --- */
.mobile-floating-btn { display: none; position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--accent-red); color: white; border: none; padding: 15px 40px; font-size: 1.1rem; font-weight: 700; border-radius: 50px; box-shadow: 0 10px 25px rgba(255, 42, 74, 0.4); z-index: 9997; }
.mobile-menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(5, 5, 5, 0.95); backdrop-filter: blur(15px); z-index: 9999; display: flex; flex-direction: column; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.mobile-menu-overlay.active { opacity: 1; pointer-events: auto; }
.mobile-nav-links a { font-size: 2rem; font-weight: 700; color: var(--text-main); text-decoration: none; display: block; margin: 20px 0; text-align: center; transition: color 0.3s; }
.mobile-nav-links a:hover { color: var(--accent-red); }
.close-menu { position: absolute; top: 30px; right: 30px; font-size: 3rem; color: var(--text-main); cursor: pointer; }

@media (max-width: 768px) { 
    #scroll-container { display: block; } 
    .mobile-floating-btn { display: block; }
    body { cursor: auto; padding-bottom: 80px; } 
    a, button, input, .card, .close-btn, .program-card { cursor: pointer !important; } 
}

/* --- GLOBAL UI & GLASSMORPHISM --- */
.glass { background: var(--glass-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--glass-border); border-radius: 20px; box-shadow: var(--shadow-soft); }
section { padding: 100px 5%; max-width: 1200px; margin: 0 auto; position: relative; z-index: 10; }
.section-title { text-align: center; font-size: 2.8rem; margin-bottom: 20px; font-weight: 800; letter-spacing: -1px; }
.section-subtitle { text-align: center; font-size: 1.2rem; color: var(--text-muted); max-width: 700px; margin: 0 auto 60px auto; font-weight: 500; }
.text-center { text-align: center; }

/* Buttons */
.cta-btn, .submit-btn { background: var(--accent-red); color: var(--pure-white); border: none; padding: 16px 32px; font-size: 1.1rem; font-weight: 600; border-radius: 50px; transition: all 0.3s ease; box-shadow: 0 10px 25px rgba(255, 42, 74, 0.4); }
.cta-btn:hover, .submit-btn:hover { transform: translateY(-3px); background: #e62542; box-shadow: 0 15px 30px rgba(255, 42, 74, 0.6); }
.submit-btn { width: 100%; margin-top: 10px; cursor: pointer; }
.outline-btn { background: transparent; color: var(--pure-white); border: 2px solid rgba(255,255,255,0.2); padding: 14px 30px; font-size: 1.1rem; font-weight: 600; border-radius: 50px; transition: all 0.3s ease; }
.outline-btn:hover { background: rgba(255, 255, 255, 0.05); border-color: rgba(255,255,255,0.4); }


/* --- NAVIGATION HEADER --- */
nav { position: fixed; top: 0; width: 100%; padding: 15px 5%; display: flex; justify-content: space-between; align-items: center; z-index: 1000; transition: all 0.4s ease; background: rgba(5, 5, 5, 0.5); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border-bottom: 1px solid rgba(255,255,255,0.05); }
nav.scrolled { background: rgba(5, 5, 5, 0.95); box-shadow: 0 4px 30px rgba(0,0,0,0.5); }
.logo-container { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.nav-logo { height: 50px; width: auto; object-fit: contain; }
.logo-container h1 { font-size: 1.3rem; font-weight: 800; letter-spacing: 0.5px; } 
.logo-container span { color: var(--accent-red); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { text-decoration: none; color: var(--text-main); font-weight: 600; font-size: 0.95rem; transition: color 0.3s; }
.nav-links a:hover { color: var(--accent-red); }
.nav-btn { background: var(--accent-red); color: white; border: none; padding: 10px 24px; border-radius: 50px; font-weight: 600; font-size: 0.95rem; box-shadow: 0 4px 15px rgba(225, 29, 72, 0.2); }
.mobile-menu-btn { display: none; font-size: 1.5rem; }
@media (max-width: 1024px) { .nav-links { display: none; } .mobile-menu-btn { display: block; } }

/* --- HERO SECTION --- */
section.hero { 
    height: 100vh; max-width: 100vw !important; width: 100vw !important; margin: 0 !important; 
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start; text-align: left; position: relative;
    padding: 0 8% !important; background-color: transparent;
    background-image: linear-gradient(to right, rgba(5, 5, 5, 1) 35%, rgba(5, 5, 5, 0.3) 55%, rgba(5, 5, 5, 0) 75%), url('CPR.WEBP');
    background-position: left center, right center; background-size: 100% 100%, cover; background-repeat: no-repeat; overflow: hidden; 
}
.hero-title, .hero-tagline, .hero-caption { z-index: 2; position: relative; max-width: 45%; }
.hero-title { font-size: 6rem; font-weight: 800; letter-spacing: -3px; line-height: 1.05; margin-bottom: 20px; }
.hero-tagline { font-size: 1.6rem; color: var(--text-muted); font-weight: 400; opacity: 0; animation: fadeUp 1s ease forwards 0.8s; }
.hero-caption { font-size: 1.1rem; color: var(--accent-red); font-weight: 700; margin-top: 15px; text-transform: uppercase; letter-spacing: 1px; line-height: 1.6; opacity: 0; animation: fadeUp 1s ease forwards 1s; }

@media (max-width: 768px) {
    section.hero {
        align-items: center; text-align: center; padding-left: 5% !important; padding-right: 5% !important;
        justify-content: flex-start; padding-top: 15vh !important;
        background-image: linear-gradient(to bottom, rgba(5, 5, 5, 1) 45%, rgba(5, 5, 5, 0.8) 65%, transparent 90%), url('CPR.WEBP');
        background-position: top center, bottom center; background-size: 100% 100%, 100% auto;
    }
    .hero-title, .hero-tagline, .hero-caption { max-width: 100%; }
    .hero-title { font-size: 3.5rem; line-height: 1.1; margin-bottom: 15px; }
    .hero-caption { margin-top: 10px; }
}

.reveal-mask { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 20px; margin-bottom: -20px; padding-right: 15px; }
.reveal-mask.shadow-fix { overflow: visible; padding: 0 15px; margin: 0 -15px; }
.reveal-text { display: inline-block; transform: translateY(110%); animation: vitalRise 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards; padding-bottom: 10px; }
.delay-1 { animation-delay: 0.1s; } .delay-2 { animation-delay: 0.3s; }
.cpr-highlight { animation: vitalRise 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.3s, igniteRed 0.6s ease-in-out forwards 1.4s; }
@keyframes vitalRise { to { transform: translateY(0); } }
@keyframes igniteRed { to { color: var(--accent-red); text-shadow: 0 0 40px rgba(225, 29, 72, 0.4); } }
.scroll-indicator { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); opacity: 0; animation: fadeUp 1s ease forwards 1.5s; z-index: 2; }
.mouse { width: 26px; height: 42px; border: 2px solid var(--text-muted); border-radius: 15px; position: relative; }
.mouse::before { content: ''; width: 4px; height: 8px; background: var(--text-main); border-radius: 2px; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); animation: scrollBounce 2s infinite; }
@keyframes scrollBounce { 0% { top: 6px; opacity: 1; } 100% { top: 20px; opacity: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* --- IMPACT SECTION --- */
.impact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; text-align: center; padding: 40px 0; border-top: 1px solid rgba(0,0,0,0.05); border-bottom: 1px solid rgba(0,0,0,0.05); align-items: center; }
.impact-stat h2 { font-size: 4rem; font-weight: 800; color: var(--accent-red); display: inline-block; margin-bottom: 5px; }
.impact-stat span { font-size: 3.5rem; font-weight: 800; color: var(--accent-red); }
.impact-stat p { font-size: 1.2rem; font-weight: 600; color: var(--text-main); }
.impact-stat, .impact-trust { transition: transform 0.4s ease, box-shadow 0.4s ease; transform-style: preserve-3d; }
.impact-stat:hover, .impact-trust:hover { transform: perspective(1000px) translateZ(30px) rotateX(10deg) rotateY(-10deg); box-shadow: -15px 15px 30px rgba(225, 29, 72, 0.15); border-radius: 20px; background: rgba(255,255,255,0.4); padding: 20px; }
.impact-stat p { font-size: 1.2rem; font-weight: 600; color: var(--text-main); }
.impact-trust h2 { font-size: 2.5rem; font-weight: 800; color: var(--accent-red); margin-bottom: 20px; }

/* NEW: Bulleted Trusted List */
.trusted-list { list-style: none; padding: 0; margin: 0; display: inline-block; text-align: left; }
.trusted-list li { font-size: 1.15rem; color: var(--text-muted); font-weight: 600; margin-bottom: 10px; position: relative; padding-left: 20px; }
.trusted-list li::before { content: '•'; color: var(--accent-red); position: absolute; left: 0; font-size: 1.5rem; line-height: 0.9; }
@media (max-width: 768px) { .trusted-list { margin: 0 auto; } }

/* --- WHY CHOOSE US (6-CARD GRID) --- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; perspective: 1200px; margin-bottom: 50px; }
.card { padding: 40px 30px; display: flex; flex-direction: column; align-items: flex-start; text-align: left; transition: transform 0.15s ease-out, box-shadow 0.3s ease; transform-style: preserve-3d; min-height: 250px; }
.card-icon { font-size: 2.2rem; margin-bottom: 20px; transform: translateZ(50px); text-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.card h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 15px; transform: translateZ(20px); line-height: 1.3; color: var(--text-main); }
.card p { color: var(--text-muted); transform: translateZ(10px); font-size: 0.98rem; }
@media (max-width: 1024px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .cards-grid { grid-template-columns: 1fr; } }

/* --- MISSION & VISION BLOCKS --- */
.mission-vision-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin: 80px auto 40px auto; max-width: 1100px; }
.mission-box { text-align: center; padding: 50px 40px; border-radius: 24px; }
.mission-icon { font-size: 3rem; margin: 0 auto 20px auto; }
.heart-pulse { animation: heart-pulse 1.2s infinite ease-in-out; }
.star-float { animation: float 3s ease-in-out infinite; }
@keyframes heart-pulse { 0%, 100% { transform: scale(1); } 25% { transform: scale(1.15); } 45% { transform: scale(1.05); } 70% { transform: scale(1.12); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.mission-box h2 { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.5px; color: var(--text-main); margin-bottom: 15px; }
.red-line-divider { width: 60px; height: 4px; background: var(--accent-red); margin: 0 auto 25px auto; border-radius: 10px; }
.mission-box p { font-size: 1.15rem; color: var(--text-muted); font-weight: 500; line-height: 1.8; }
@media (max-width: 768px) { .mission-vision-wrapper { grid-template-columns: 1fr; gap: 30px; } .mission-box { padding: 40px 25px; } }

/* --- NARRATIVE / WHY CPR MATTERS --- */
.narrative-container { display: flex; align-items: center; justify-content: center; position: relative; margin-top: 40px; }
.narrative-image { width: 55%; height: 500px; z-index: 1; padding: 10px; }
.about-img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; display: block; }
.narrative-text { width: 55%; margin-left: -10%; padding: 60px; z-index: 2; }
.narrative-text h2 { font-size: 2.5rem; margin-bottom: 30px; }

/* NEW: CPR Matters Bullet List */
.matter-list { list-style: none; padding: 0; }
.matter-list li { margin-bottom: 25px; font-size: 1.1rem; color: var(--text-muted); position: relative; padding-left: 35px; line-height: 1.6; }
.matter-list li::before { content: '✓'; position: absolute; left: 0; top: 0px; color: var(--accent-red); font-weight: bold; font-size: 1.4rem; }
.matter-list strong { color: var(--text-main); font-weight: 800; display: block; margin-bottom: 5px; font-size: 1.25rem; }

@media (max-width: 900px) { .narrative-container { flex-direction: column; } .narrative-image, .narrative-text { width: 100%; margin: 0; } .narrative-text { margin-top: -30px; padding: 40px 30px; } }

/* --- PROGRAMS --- */
.programs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.program-card { padding: 50px; position: relative; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.program-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(225, 29, 72, 0.08); }
.program-card::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at 50% 0%, rgba(225, 29, 72, 0.08), transparent 70%); opacity: 0; transition: opacity 0.4s ease; pointer-events: none; }
.program-card:hover::after { opacity: 1; }
.program-card h3 { font-size: 2rem; margin-bottom: 15px; color: var(--text-main); }
.program-desc { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 30px; }
.curriculum-list { list-style: none; display: flex; flex-direction: column; gap: 15px; margin-bottom: 40px; flex-grow: 1; }
.curriculum-list li { background: rgba(255,255,255,0.05); padding: 15px 20px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); font-weight: 500; display: flex; align-items: center; gap: 10px; }
.curriculum-list li::before { content: '✓'; color: var(--accent-red); font-weight: bold; }
.tab-actions { display: flex; gap: 15px; flex-wrap: wrap; }
@media (max-width: 900px) { .programs-grid { grid-template-columns: 1fr; } }

/* --- GALLERY --- */
.gallery-section { max-width: 100%; padding: 100px 0; overflow: hidden; }
.carousel-container { perspective: 1200px; width: 100%; height: 400px; display: flex; justify-content: center; align-items: center; margin-top: 40px; overflow: hidden; }
.carousel-3d { width: 300px; height: 200px; position: relative; transform-style: preserve-3d; transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.carousel-item { position: absolute; width: 300px; height: 200px; left: 0; top: 0; border-radius: 15px; overflow: hidden; box-shadow: 0 15px 35px rgba(0,0,0,0.2); }
.gallery-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel-controls { display: flex; justify-content: center; gap: 20px; margin-top: 30px; }
@media (max-width: 768px) { .carousel-container { height: 300px; perspective: 800px; } .carousel-3d, .carousel-item { width: 220px; height: 150px; } }

/* --- TESTIMONIALS --- */
.slider-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin: 0; }
.testimonial-card { padding: 40px; border-radius: 24px; display: flex; flex-direction: column; justify-content: space-between; }
.stars { color: #F59E0B; font-size: 1.5rem; margin-bottom: 15px; letter-spacing: 2px; }
.testimonial-title { color: var(--text-main); font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; line-height: 1.4; }
.testimonial-card p { font-size: 1.15rem; line-height: 1.7; font-style: italic; margin-bottom: 30px; color: var(--text-muted); }
.testimonial-card strong { color: var(--text-main); font-style: normal; }

/* --- MOBILE TO-AND-FRO SCROLL REVEAL --- */
@media (max-width: 768px) {
    .slider-container { display: flex; flex-direction: column; gap: 30px; }
    .slider-container .testimonial-card.scroll-hidden:nth-child(odd) { transform: translateX(-50px); }
    .slider-container .testimonial-card.scroll-hidden:nth-child(even) { transform: translateX(50px); }
    .slider-container .testimonial-card.scroll-hidden.in-view { transform: translate(0, 0); }
}

/* --- MODALS & BOTTOM SHEET --- */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(8px); display: flex; justify-content: center; align-items: center; z-index: 2000; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-content { width: 90%; max-width: 450px; padding: 40px; text-align: center; transform: scale(0.95) translateY(20px); transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); background: rgba(15, 23, 42, 0.95); border: 1px solid var(--glass-border); position: relative; }
.modal-overlay.active .modal-content { transform: scale(1) translateY(0); }

.sheet-handle { display: none; width: 40px; height: 5px; background: #CBD5E1; border-radius: 10px; margin: 0 auto 20px auto; }
@media (max-width: 768px) {
    .modal-overlay { align-items: flex-end; }
    .bottom-sheet { width: 100%; max-width: 100%; border-radius: 24px 24px 0 0; padding: 30px 20px 50px 20px; transform: translateY(100%); }
    .modal-overlay.active .bottom-sheet { transform: translateY(0); }
    .sheet-handle { display: block; }
    .close-btn { display: none; } 
}

input { width: 100%; padding: 15px; margin-bottom: 20px; background: rgba(255,255,255,0.05); color: var(--text-main); border: 1px solid rgba(255,255,255,0.2); border-radius: 12px; outline: none; font-size: 1rem; transition: all 0.3s; }
input:focus { border-color: var(--accent-red); box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.1); }
.close-btn { position: absolute; top: 20px; right: 20px; font-size: 1.5rem; color: var(--text-muted); font-weight: bold; }
#success-state { display: none; }
.check-icon { font-size: 3.5rem; color: #10B981; margin-bottom: 10px; }

/* Global Scroll Animation Utility */
.scroll-hidden { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.scroll-hidden.in-view { opacity: 1; transform: translate(0, 0); }
.delay-card-1 { transition-delay: 0.15s; } .delay-card-2 { transition-delay: 0.3s; }

@media (max-width: 768px) {
    .delay-card-1, .delay-card-2 { transition-delay: 0s; }
}