/* ======= CSS Variables & Base ======= */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #f59e0b;
    --accent-red: #ef4444;
    --accent-green: #10b981;
    --dark: #0f172a;
    --dark-alt: #1e293b;
    --light: #f8fafc;
    --white: #ffffff;
    --text: #334155;
    --text-light: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text);
    background-color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

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

.bg-light { background-color: var(--white); }
.bg-dark { background-color: var(--dark); color: var(--white); }

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--dark);
    font-weight: 700;
    line-height: 1.2;
}

.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 {
    color: var(--white);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* ======= Components ======= */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
    color: var(--white);
}

.btn-outline {
    border-color: var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.dark-glass {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ======= Navbar ======= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255,255,255,0.3);
    z-index: 1000;
    transition: var(--transition);
    padding: 1rem 0;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 75px;
    width: auto;
    object-fit: contain;
}

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

.nav-links a:not(.btn) {
    font-weight: 500;
    position: relative;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
}

/* ======= Hero Section ======= */
.hero {
    position: relative;
    padding-top: 150px;
    padding-bottom: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.05), transparent 50%),
                radial-gradient(circle at bottom left, rgba(245, 158, 11, 0.05), transparent 50%);
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
}

.shape-1 {
    top: -10%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: var(--primary);
    animation: float 10s infinite ease-in-out alternate;
}

.shape-2 {
    bottom: 10%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: var(--secondary);
    animation: float 12s infinite ease-in-out alternate-reverse;
}

.shape-3 {
    top: 40%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: var(--accent-green);
    animation: float 8s infinite ease-in-out alternate;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 30px) scale(1.1); }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin: 1rem 0 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--text-light);
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 30px;
    position: relative;
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: var(--shadow-lg);
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    border-radius: 30px;
}

.hero-slideshow .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: heroSlide 16s infinite ease-in-out;
}

.hero-slideshow .slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(245, 158, 11, 0.2));
}

.hero-slideshow .slide:nth-child(1) { animation-delay: 0s; }
.hero-slideshow .slide:nth-child(2) { animation-delay: 4s; }
.hero-slideshow .slide:nth-child(3) { animation-delay: 8s; }
.hero-slideshow .slide:nth-child(4) { animation-delay: 12s; }

@keyframes heroSlide {
    0% { opacity: 0; transform: scale(1.05); }
    5% { opacity: 1; transform: scale(1); }
    20% { opacity: 1; transform: scale(1); }
    25% { opacity: 0; transform: scale(1.05); }
    100% { opacity: 0; transform: scale(1.05); }
}

.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    font-weight: 600;
    animation: bounce 6s infinite ease-in-out;
    z-index: 2;
    white-space: nowrap;
}

.card-1 {
    top: 15%;
    left: -10%;
    animation-delay: 0s;
}

.card-1 i { color: var(--accent-red); font-size: 1.5rem; }

.card-2 {
    bottom: 20%;
    right: -10%;
    animation-delay: 3s;
}

.card-2 i { color: var(--primary); font-size: 1.5rem; }

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ======= About Section ======= */
.about-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.highlight-box {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(37, 99, 235, 0.05);
    border-left: 4px solid var(--primary);
    border-radius: 0 15px 15px 0;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.highlight-box i {
    font-size: 2rem;
    margin-top: 0.2rem;
}

.highlight-box h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.highlight-box p {
    margin-bottom: 0;
    font-size: 1rem;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border-bottom: 4px solid var(--primary);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-card:nth-child(2) {
    border-bottom-color: var(--secondary);
}

.stat-card h3 {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-card:nth-child(2) h3 {
    color: var(--secondary);
}

.stat-card p {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--dark);
}

.stat-card small {
    color: var(--text-light);
    display: block;
    margin-top: 0.5rem;
}

/* ======= Headquarters Section ======= */
.hq-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.hq-info p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.hq-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hq-features li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 500;
}

.hq-features i {
    color: var(--accent-green);
    font-size: 1.2rem;
}

.hq-location {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--light);
    border-radius: 15px;
}

.hq-location i {
    color: var(--accent-red);
    font-size: 1.5rem;
    margin-top: 0.2rem;
}

.hq-location p {
    margin-bottom: 0;
    font-weight: 500;
    font-size: 1rem;
}

.hq-images-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: 1rem;
}

.hq-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.hq-img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
    z-index: 10;
}

.hq-goal-container {
    max-width: 800px;
    margin: 0 auto;
}

.primary-gradient {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border: none;
    text-align: center;
}

.primary-gradient h3 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.primary-gradient p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ======= Objectives Section ======= */
.objective-main {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.objective-main h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.objective-main p {
    font-size: 1.2rem;
    color: var(--dark);
    font-weight: 500;
}

.objectives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.obj-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.obj-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(37, 99, 235, 0));
    z-index: -1;
    transition: var(--transition);
}

.obj-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.obj-card:hover::before {
    height: 100%;
}

.obj-icon {
    width: 70px;
    height: 70px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.obj-card:hover .obj-icon {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

.obj-card h4 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* ======= Image Gallery Section ======= */
.gallery {
    background: var(--white);
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-auto-rows: 200px;
    gap: 1.5rem;
}

.photo-item {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.photo-item:nth-child(2),
.photo-item:nth-child(6) {
    grid-column: span 2;
    grid-row: span 2;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.photo-item:hover img {
    transform: scale(1.1);
}

.photo-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-item:hover::after {
    opacity: 1;
}

/* ======= Support Section ======= */
.support-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.support-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.support-text p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.support-text strong {
    color: var(--secondary);
}

.support-cta {
    text-align: center;
}

.support-cta h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.pix-box {
    margin-top: 2rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px dashed rgba(255, 255, 255, 0.3);
}

.pix-title {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.pix-key {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 2px;
}

/* ======= Board Section ======= */
.board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.board-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--primary);
    transition: var(--transition);
}

.board-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.board-card .role {
    color: var(--primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.board-card .name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
}

.board-card .sub-role {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
    border-top: 1px solid var(--light);
    padding-top: 1rem;
}

.board-others {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
}

.other-group h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.other-group p {
    font-size: 0.95rem;
}

/* ======= Instagram Section ======= */
.instagram {
    text-align: center;
}

.insta-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.insta-link:hover {
    color: #E1306C; /* Instagram brand color */
}

.insta-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
}

.insta-post {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    display: block;
}

.insta-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.insta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.insta-overlay i {
    color: var(--white);
    font-size: 2.5rem;
    transform: scale(0.5);
    transition: transform 0.3s ease;
}

.insta-post:hover img {
    transform: scale(1.1);
}

.insta-post:hover .insta-overlay {
    opacity: 1;
}

.insta-post:hover .insta-overlay i {
    transform: scale(1);
}

.insta-footer {
    margin-top: 2rem;
}

/* ======= Footer ======= */
.footer {
    background: var(--dark-alt);
    color: rgba(255, 255, 255, 0.7);
    padding-top: 5rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 60px;
    filter: brightness(0) invert(1);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color: var(--white);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-contact h3, .footer-donate h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-contact ul li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.footer-contact i {
    color: var(--primary);
    margin-top: 0.3rem;
}

.footer-donate p {
    margin-bottom: 1.5rem;
}

.footer-pix {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 10px;
    display: inline-block;
    border-left: 4px solid var(--secondary);
}

.footer-pix span {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--secondary);
}

.footer-pix strong {
    font-size: 1.2rem;
    color: var(--white);
}

.footer-bottom {
    background: var(--dark);
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.9rem;
}

/* ======= Animations & Utilities ======= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

/* ======= Responsive ======= */
@media (max-width: 992px) {
    .hero-container, .about-grid, .hq-content, .support-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero {
        padding-top: 120px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        height: 400px;
        order: -1;
    }

    .card-1 { left: 5%; }
    .card-2 { right: 5%; }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .board-others {
        grid-template-columns: 1fr;
    }

    .insta-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .insta-post:nth-child(n+10) {
        display: none; /* Hide the last one to keep an even grid if desired, or let it flow */
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        padding: 2rem;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 1001;
    }

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

    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }

    .stat-card h3 {
        font-size: 2.5rem;
    }
    
    .pix-key {
        font-size: 1.5rem;
    }

    .insta-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
