:root {
    --primary: #042e5a; /* Deep Navy Blue for BlueAnchor */
    --primary-light: #165696;
    --accent: #FCA311; /* Strong visibility Gold/Orange */
    --accent-hover: #ffb840;
    --text-dark: #1F2937;
    --text-light: #F9FAFB;
    --text-light-muted: #D1D5DB;
    --bg-light: #F8FAFC;
    --bg-muted: #E2E8F0;
    --bg-white: #FFFFFF;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    --font-heading: 'Cinzel', serif;
    --font-body: 'Outfit', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    text-transform: capitalize;
}

/* Typography Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-light { color: var(--text-light); }
.w-100 { width: 100%; }
.mt-2 { margin-top: 2rem; }

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

.section-title {
    font-size: 2.5rem;
    color: var(--primary);
    text-align: center;
    margin-bottom: 0.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent);
}

.section-title.text-left::after {
    left: 0;
    transform: none;
}

.section-dark .section-title::after {
    background-color: var(--accent);
}

.section-subtitle {
    text-align: center;
    color: #4B5563;
    margin-bottom: 3rem;
    font-size: 1.2rem;
    font-weight: 500;
}

.lead-text {
    font-size: 1.25rem;
    color: var(--primary);
    line-height: 1.8;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-outline {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-body);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1.05rem;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-white);
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(4, 46, 90, 0.3);
}

.btn-secondary {
    background-color: var(--bg-white);
    color: var(--primary);
    border: 2px solid var(--bg-white);
}

.btn-secondary:hover {
    background-color: transparent;
    color: var(--bg-white);
    border-color: var(--bg-white);
    transform: translateY(-2px);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(4, 46, 90, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-light);
    letter-spacing: 1px;
}

.logo span {
    color: var(--accent);
    font-weight: 600;
}

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

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    font-size: 1rem;
}

.nav-links a:hover:not(.btn-primary) {
    color: var(--accent);
}

.nav-links a.btn-primary {
    background: var(--accent);
    color: var(--primary);
    border-color: var(--accent);
    padding: 0.6rem 1.4rem;
}

.nav-links a.btn-primary:hover {
    background: var(--accent-hover);
}

.menu-toggle {
    display: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background-image: linear-gradient(to right, rgba(4, 46, 90, 0.85), rgba(4, 46, 90, 0.4)), url('new_hero_bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px 20px;
}

.hero-content {
    max-width: 900px;
    animation: fadeInUp 1s ease-out;
    position: relative;
    z-index: 3;
}

.hero-tagline {
    display: block;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.hero h1 {
    font-size: 4rem;
    color: var(--text-light);
    line-height: 1.15;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-light-muted);
    margin-bottom: 2.5rem;
    font-weight: 300;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Sections */
.section {
    padding: 6rem 5%;
}

#what-we-do {
    padding-bottom: 3rem;
}

#programs {
    padding-top: 3rem;
}

.section-dark {
    background-color: var(--primary);
    color: var(--text-light);
}

.bg-muted {
    background-color: var(--bg-muted);
}

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

/* Lists and Grids */
.list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.centered-grid {
    justify-content: center;
}

.list-item {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    font-size: 1.1rem;
    font-weight: 500;
    border-left: 4px solid var(--accent);
    transition: var(--transition);
}

.list-item:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.list-item i {
    font-size: 1.8rem;
    color: var(--primary);
}

/* Program Cards Grid */
.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
    align-items: start; /* Prevents adjacent cards from stretching vertically */
}

/* Fade Card Layout */
.fade-card {
    position: relative;
    height: 320px; /* Fixed height so row doesn't move */
    cursor: pointer;
    overflow: hidden;
    padding: 0; /* Override default glass-card-column padding */
    border-radius: 12px;
}

.card-front, .card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.card-front {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2.5rem 2rem;
    opacity: 1;
    visibility: visible;
}

.card-front .card-icon {
    font-size: 3.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.card-front h3 {
    font-size: 1.4rem;
    color: var(--text-light);
    border-bottom: none;
    margin-bottom: 0.5rem;
    padding-bottom: 0;
}

.click-hint {
    color: var(--accent);
    font-size: 0.95rem;
    opacity: 0.8;
    margin-top: 1rem;
}

.card-back {
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 46, 90, 0.88); /* Deep blue overlay */
    z-index: 0;
}

.card-content {
    position: relative;
    z-index: 1;
    padding: 2.5rem 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fade-card.flipped .card-front {
    opacity: 0;
    visibility: hidden;
}

.fade-card.flipped .card-back {
    opacity: 1;
    visibility: visible;
}

.glass-card-column {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    transition: var(--transition);
    text-align: left;
}

.glass-card-column:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.glass-card-column .card-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.2rem;
}

.glass-card-column h3 {
    font-size: 1.4rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.8rem;
}

.feature-list-small {
    list-style: none;
}

.feature-list-small li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.8rem;
    font-size: 1rem;
    color: var(--text-light-muted);
}

.feature-list-small li::before {
    content: '\f058'; /* FontAwesome check-circle */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--accent);
}

/* Custom styled list */
.styled-list {
    list-style: none;
    margin-top: 1.5rem;
}

.styled-list li {
    font-size: 1.15rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.styled-list i {
    color: var(--primary);
    font-size: 1.5rem;
    margin-top: 3px;
}

/* Split Container Image/Text */
.container-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.rounded-img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.shadow {
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.tag-alert {
    display: inline-block;
    background: var(--primary-light);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
}

/* Glass box in split container */
.glass-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 12px;
    height: 100%;
}

/* Contact form solid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
}

.contact-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    border-top: 4px solid var(--primary);
}

.contact-info p {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-dark);
}

.contact-info i {
    color: var(--accent);
    font-size: 1.5rem;
    width: 30px;
    text-align: center;
}

.solid-form {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group input, .input-group select, .input-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-light);
    border: 1px solid var(--bg-muted);
    border-radius: 6px;
    color: var(--text-dark);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.input-group input:focus, .input-group select:focus, .input-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-white);
}

/* Footer & Legal */
footer {
    background: #021833;
    color: var(--text-light-muted);
    padding: 4rem 5% 2rem;
}

.footer-brand {
    text-align: center;
    margin-bottom: 3rem;
}

.footer-brand h2 {
    color: var(--text-light);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--accent);
    font-size: 1.1rem;
}

.legal-disclaimer {
    background: rgba(0, 0, 0, 0.4);
    border-left: 4px solid #ef4444; /* Red color for disclaimer warning context */
    padding: 1.5rem 2rem;
    margin: 0 auto 3rem;
    max-width: 900px;
    border-radius: 4px;
}

.legal-disclaimer i {
    color: #ef4444;
    margin-right: 0.5rem;
}

.legal-disclaimer strong {
    color: var(--text-light);
    font-family: var(--font-heading);
    letter-spacing: 1px;
    display: block;
    margin-bottom: 1rem;
}

.legal-disclaimer p {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    font-size: 0.9rem;
}

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

/* Responsive */
@media (max-width: 992px) {
    .container-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 { font-size: 3rem; }


}

/* Default state for desktop */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease-out;
    }
    
    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    
    .menu-toggle { display: block; }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons a {
        width: 100%;
    }

    /* MOBILE APP BOTTOM NAVIGATION SPECIFIC */
    body {
        padding-bottom: 74px; /* Space for the fixed bottom nav */
    }
    
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
        z-index: 2000;
        padding: 0.7rem 0 0.5rem;
        justify-content: space-around;
        border-top: 1px solid var(--bg-muted);
        /* iPhone X safe area padding */
        padding-bottom: calc(0.5rem + env(safe-area-inset-bottom));
    }
    
    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: #6B7280;
        font-size: 0.75rem;
        font-weight: 500;
        gap: 0.3rem;
        transition: var(--transition);
        width: 25%;
        -webkit-tap-highlight-color: transparent; /* Remove tap flash */
    }
    
    .nav-item i {
        font-size: 1.3rem;
        margin-bottom: 2px;
    }
    
    .nav-item.active-nav, .nav-item:hover {
        color: var(--primary);
    }
}



/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 38px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    color: white;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

@media (max-width: 768px) {
    .floating-whatsapp {
        bottom: 95px; /* Above the mobile nav bar */
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 32px;
    }
}
/* Splash Screen */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    min-height: 100dvh;
    background-color: var(--primary);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    cursor: pointer;
    margin: 0;
    padding: 0;
}

.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.splash-logo {
    width: 65vw;
    max-width: 450px;
    min-width: 250px;
    height: auto;
    border-radius: 16px;
    background-color: white;
    padding: 12px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.5);
    animation: pulse 2s infinite;
}

.splash-text {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    font-family: var(--font-body);
    font-weight: 400;
    letter-spacing: 5px;
    text-transform: uppercase;
    animation: fadeInOut 2.5s infinite;
    white-space: nowrap;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
    50% { transform: scale(1.05); box-shadow: 0 15px 40px rgba(252, 163, 17, 0.4); }
    100% { transform: scale(1); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
}

@keyframes fadeInOut {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

body.no-scroll {
    overflow: hidden;
}

/* Base Styles for Logos */
.nav-logo-img {
    height: 85px;
    width: auto;
    border-radius: 8px;
    background-color: white;
    padding: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.founder-seal-img {
    height: 150px;
    width: auto;
    border-radius: 8px;
    background-color: white;
    padding: 6px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
    transition: all 0.3s ease;
}

/* Critical Mobile Responsiveness Fixes */
@media (max-width: 768px) {
    .nav-logo-img {
        height: 50px; /* Downsize logo so header doesn't break */
        padding: 2px;
    }
    
    .founder-seal-img {
        height: 85px; /* Downsize founder seal */
        padding: 3px;
    }
    
    .hero {
        /* Fixes massive zoomed background bug on iOS/Mobile browsers */
        background-attachment: scroll !important; 
        background-position: center top !important;
    }
}

/* Team Section Styles */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-member-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: var(--transition);
    border-bottom: 4px solid var(--accent);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.team-member-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.team-image {
    height: 300px;
    background-size: cover;
    background-position: top center;
    background-color: var(--bg-muted);
    display: flex;
    justify-content: center;
    align-items: center;
}

.team-image i {
    font-size: 4rem;
    color: #cbd5e1;
}

.team-content {
    padding: 1.5rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team-content h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.team-role {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 1.05rem;
}

.team-exp {
    color: #4B5563;
    font-size: 0.95rem;
}

.coming-soon .team-content h3 {
    color: #6B7280;
}
.coming-soon .team-role {
    color: #9CA3AF;
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 100px;
    right: 25px;
    background-color: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.scroll-top-btn:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .scroll-top-btn {
        bottom: 160px; /* Above whatsapp and mobile nav */
        right: 20px;
        width: 45px;
        height: 45px;
    }
}
