/* 
 * ST IMMACULATE CHARITY ORGANIZATION - PROFESSIONAL NGO DESIGN SYSTEM
 * Clean, High-Contrast, Minimalist Editorial Style
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #002147;
    --secondary: #d90429;
    --accent: #28a745;
    --dark: #1a1a1a;
    --light: #f8f9fa;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-premium: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-ultra: 0 20px 50px rgba(0, 0, 0, 0.15);
    --radius-lg: 24px;
    --radius-md: 16px;
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --accent-rgb: 40, 167, 69;
}

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

html,
body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    background-color: var(--white);
    line-height: 1.6;
    padding-top: 100px;
    position: relative;
}

img {
    border-radius: var(--radius-lg);
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    line-height: 1.2;
    color: var(--primary);
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.01em;
}

.fw-black {
    font-weight: 900 !important;
}

.text-accent {
    color: var(--accent) !important;
}

.uppercase {
    text-transform: uppercase;
}

/* --- Header System --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white) !important;
    z-index: 1040;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.header-top-bar {
    background: #001a35;
    color: #ffffff;
    padding: 10px 0;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-bar-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    text-transform: uppercase;
}

.top-bar-link:hover {
    color: var(--accent);
}

.nav-dock {
    padding: 15px 0;
    background: var(--white) !important;
    transition: var(--transition);
}

.site-header.scrolled .nav-dock {
    padding: 10px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.navbar-logo {
    height: 55px;
    width: 55px;
    background: #fff;
    border-radius: 50%;
    padding: 2px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: var(--transition);
}

@media (max-width: 576px) {
    .navbar-logo {
        height: 40px;
        width: 40px;
    }
}

.navbar-logo img {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

.site-name {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    margin: 0;
    letter-spacing: -0.5px;
}

@media (max-width: 576px) {
    .site-name {
        font-size: 0.9rem;
        letter-spacing: 0;
    }
}

.site-tagline {
    font-size: 0.55rem;
    color: var(--accent);
    font-weight: 800;
    text-transform: uppercase;
    margin-top: 3px;
    letter-spacing: 0.1em;
}

@media (max-width: 576px) {
    .site-tagline {
        font-size: 0.45rem;
        letter-spacing: 0.05em;
        line-height: 1.1;
    }
}

.nav-link {
    font-weight: 600;
    color: var(--primary);
    padding: 8px 15px !important;
    font-size: 0.95rem;
    transition: var(--transition);
}

.offcanvas .nav-link {
    color: var(--white) !important;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent) !important;
}

/* --- Hero & Cinematic Slider --- */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 700px;
    background: #000;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.15);
    transition: transform 8s cubic-bezier(0.1, 0.4, 0.2, 1);
}

.slide.active .slide-bg {
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 15, 30, 0.6) 0%, rgba(0, 15, 30, 0.2) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 950px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0.4s;
}

.slide.active .hero-content {
    opacity: 1;
    transform: translateY(0);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem) !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    letter-spacing: -2px !important;
    text-transform: uppercase;
    margin-bottom: 2rem;
    color: var(--white);
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    max-width: 650px;
    border-left: 4px solid var(--accent);
    padding-left: 25px;
    margin-bottom: 3rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}



.hero-compact {
    height: 50vh !important;
    min-height: 400px !important;
}

.hero-overlay-dark {
    background: linear-gradient(to bottom, rgba(0, 33, 71, 0.8), rgba(0, 33, 71, 0.5)) !important;
}

/* --- Global Components --- */
.btn-premium {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 42px;
    border-radius: 50px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
}

.btn-premium-p {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(40, 167, 69, 0.3);
}

.btn-premium-p:hover {
    background: #218838;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(40, 167, 69, 0.4);
}

.btn-premium-s {
    background: var(--white);
    color: var(--primary);
    border: 1px solid rgba(0, 33, 71, 0.1);
}

.btn-premium-s:hover {
    background: #f8f9fa;
    transform: translateY(-3px) scale(1.02);
    border-color: var(--primary);
}

.card-premium,
.impact-card-premium {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
}

.card-premium:hover,
.impact-card-premium:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: var(--shadow-ultra);
    border-color: var(--accent);
}

.impact-icon-box {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

/* --- Team Book Cards --- */
.book-card-wrapper {
    perspective: 1500px;
    height: 450px;
    margin-bottom: 30px;
}

.book-card {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    transition: transform 1s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

.book-card:hover {
    transform: rotateY(-160deg);
}

.book-inside,
.book-cover {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.book-inside {
    background: var(--white);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.book-cover {
    z-index: 2;
    transform-origin: left;
    transition: transform 1s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: var(--white);
}

.book-cover::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 15px;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.2) 0%, transparent 100%);
    z-index: 5;
}

.book-cover-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.book-image {
    height: 75%;
    width: 100%;
    object-fit: cover;
}

.book-info {
    padding: 25px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bio-text {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 25px;
    display: -webkit-box;
    -webkit-line-clamp: 10;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Stats Glass Section --- */
.stats-bar {
    background: var(--primary);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.stat-item {
    text-align: center;
    color: var(--white);
    position: relative;
    z-index: 2;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--accent);
    display: block;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.6);
}

.social-mini {
    display: flex;
    gap: 10px;
}

.social-mini a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.social-mini a:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-3px);
}

/* --- Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

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

/* --- Visual Polish --- */
.img-premium {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
    transition: var(--transition);
}

.img-premium:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-ultra);
}

/* --- Mobile Specifics --- */
@media (max-width: 991px) {
    body {
        padding-top: 130px;
    }

    .hero-slider {
        height: 80vh;
        min-height: 450px;
    }

    .hero-content {
        text-align: center;
        margin: 0 auto;
    }

    .hero-overlay {
        background: linear-gradient(to bottom, rgba(0, 15, 30, 0.5) 0%, rgba(0, 15, 30, 0.3) 100%);
    }

    .nav-dock {
        padding: 10px 0;
    }

    .hero-title {
        font-size: 2.5rem !important;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 110px;
    }

    .hero-slider {
        height: 75vh;
    }

    .hero-title {
        font-size: 2.2rem !important;
        letter-spacing: -1.5px !important;
    }

    .hero-subtitle {
        font-size: 1rem !important;
    }

    .btn-premium {
        padding: 15px 30px;
        font-size: 0.75rem;
        width: 100%;
        justify-content: center;
    }
}

/* --- Footer --- */
.site-footer {
    background: var(--primary);
    padding: 60px 0 30px;
    color: var(--white);
}

.footer-title {
    color: var(--white);
    font-weight: 800;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 15px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--accent);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    display: block;
    margin-bottom: 1rem;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 10px;
}

.hamburger-icon {
    width: 20px;
    height: 12px;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--primary);
    border-radius: 4px;
    transition: var(--transition);
}

.navbar-toggler-premium {
    width: 45px;
    height: 45px;
    background: rgba(var(--accent-rgb, 40, 167, 69), 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
    z-index: 10;
}

.navbar-toggler-premium:hover,
.navbar-toggler-premium:active {
    background: var(--accent);
}

.navbar-toggler-premium:hover .hamburger-icon span,
.navbar-toggler-premium:active .hamburger-icon span {
    background: var(--white);
}

.navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(2) {
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}

.social-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-5px);
    border-color: var(--accent);
}

.whatsapp-float {
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(15deg);
}

.back-to-top {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.back-to-top:hover {
    background: var(--accent);
    transform: translateY(-5px);
}