/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: white;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== FIXED VIDEO BACKGROUND ===== */
.fixed-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
}

.fixed-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.fixed-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,30,40,0.6) 0%, rgba(0,20,25,0.7) 100%);
    z-index: -1;
}

/* ===== REUSABLE CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 3;
}

/* ===== HEADER / NAVIGATION ===== */
header {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(78, 205, 196, 0.2);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.8rem 30px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Logo styling */
.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 45px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 0.5rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: #4ecdc4;
    color: black;
}

.nav-links a.donate-btn {
    background-color: #4ecdc4;
    color: black;
    font-weight: 600;
}

.nav-links a.donate-btn:hover {
    background-color: #ff6b6b;
    color: white;
}

.menu-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: white;
    background: rgba(0, 0, 0, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ===== SECTION STYLES ===== */
/* section spacing with separator lines */
.home-section,
.program-section,
.impact-section,
.contact-section,
.donate-section {
    padding: 5rem 0;
    border-bottom: 1px solid rgba(127, 224, 219, 0.15);
    position: relative;
    z-index: 2;
    background: transparent;
}

.home-section:last-of-type,
.program-section:last-of-type,
.impact-section:last-of-type,
.contact-section:last-of-type,
.donate-section:last-of-type {
    border-bottom: none;
}

/* headings with text shadow and left border accent */
h1, h2, h3, h4 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

h1 {
    font-size: 3.5rem;
    font-weight: 600;
    color: #b1f0ec;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h2 {
    font-size: 2.6rem;
    font-weight: 500;
    color: #9ee7e2;
    margin-bottom: 2rem;
    border-left: 6px solid #3fa39b;
    padding-left: 1.5rem;
    line-height: 1.3;
}

h3 {
    font-size: 2rem;
    font-weight: 500;
    color: #c2f2ef;
    margin-bottom: 1.2rem;
    line-height: 1.3;
}

h4 {
    font-size: 1.4rem;
    color: #b3efea;
    margin-bottom: 0.8rem;
}

/* glass cards */
.card-glass {
    background: rgba(10, 35, 40, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(78, 205, 196, 0.25);
    border-radius: 32px;
    padding: 2.5rem;
    box-shadow: 0 20px 30px -10px rgba(0,0,0,0.6);
    transition: all 0.3s ease;
}

.card-glass:hover {
    background: rgba(20, 50, 55, 0.45);
    border-color: #4ecdc4;
    transform: translateY(-5px);
}

/* ===== HERO SECTION ===== */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 0 5rem;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
    color: white;
    animation: fadeInUp 1s ease;
}

.hero-logo {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.hero-logo img {
    height: 100px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    transition: all 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    border-left: none;
    padding-left: 0;
}

.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
    color: #4ecdc4;
    border-left: none;
    padding-left: 0;
}

.hero-content .tagline {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    padding: 14px 35px;
    background-color: #4ecdc4;
    color: black;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 2px solid #4ecdc4;
    font-size: 1.1rem;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(78, 205, 196, 0.4);
    background-color: transparent;
    color: #4ecdc4;
}

.cta-outline {
    display: inline-block;
    padding: 14px 35px;
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 2px solid white;
    font-size: 1.1rem;
    backdrop-filter: blur(4px);
}

.cta-outline:hover {
    background-color: white;
    color: black;
    transform: translateY(-3px);
}

/* ===== MISSION SECTION ===== */
#mission .container {
    display: flex;
    gap: 40px;
    justify-content: center;
}

.vision-box, .mission-box {
    flex: 1;
}

.vision-box h3, .mission-box h3 {
    color: #4ecdc4;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* ===== PROGRAMS GRID ===== */
.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.program-card,
.stream-card {
    background: rgba(10, 40, 45, 0.3);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 30px;
    padding: 2rem 1.8rem;
    border: 1px solid rgba(78, 205, 196, 0.2);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.program-card:hover,
.stream-card:hover {
    transform: translateY(-8px);
    background: rgba(30, 83, 89, 0.4);
    border-color: #4ecdc4;
}

/* Program Icons - Fixed sizing */
.program-icon,
.stream-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.program-icon img,
.stream-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.program-card:hover .program-icon img,
.stream-card:hover .stream-icon img {
    transform: scale(1.05);
}

.program-icon i,
.stream-icon i {
    font-size: 3rem;
    color: #4ecdc4;
}

.program-card h3,
.stream-card h3 {
    color: #4ecdc4;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.program-card p,
.stream-card p {
    color: white;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.sdg-badge {
    display: inline-block;
    background: rgba(13, 76, 76, 0.5);
    backdrop-filter: blur(4px);
    padding: 0.3rem 1rem;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #d2f0ed;
    margin: 0.5rem 0 1rem;
    border: 1px solid rgba(78, 205, 196, 0.3);
    align-self: flex-start;
}

.tech-list {
    list-style: none;
    margin: 1rem 0;
    text-align: left;
    width: 100%;
}

.tech-list li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.tech-list i {
    color: #7fe0db;
    width: 1.4rem;
}

.impact-badge {
    background: rgba(20, 75, 80, 0.5);
    backdrop-filter: blur(4px);
    border-radius: 50px;
    padding: 0.5rem 1.2rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #bef0ec;
    margin-top: auto;
    border: 1px solid rgba(78, 205, 196, 0.3);
    width: 100%;
}

/* ===== IMPACT GRID ===== */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.impact-card {
    background: rgba(10, 40, 45, 0.3);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 30px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    border: 1px solid rgba(78, 205, 196, 0.2);
    transition: all 0.3s ease;
}

.impact-card:hover {
    transform: translateY(-5px);
    background: rgba(30, 70, 75, 0.4);
    border-color: #4ecdc4;
}

.impact-card h3 {
    font-size: 4rem;
    color: #7fe0db;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.impact-card p {
    font-size: 1.2rem;
    color: white;
    font-weight: 300;
}

/* ===== SDG GRID ===== */
.sdg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.sdg-item {
    background: rgba(10, 40, 45, 0.3);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 30px;
    padding: 1.5rem 1rem;
    text-align: center;
    border: 1px solid rgba(78, 205, 196, 0.2);
    transition: all 0.3s ease;
    font-weight: 500;
}

.sdg-item:hover {
    transform: translateY(-5px);
    background: rgba(30, 70, 75, 0.4);
    border-color: #4ecdc4;
}

/* ===== MILESTONE GRID ===== */
.milestone-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.milestone-item {
    background: rgba(7, 40, 43, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 24px;
    padding: 1.8rem 1rem;
    text-align: center;
    border: 1px solid rgba(78, 205, 196, 0.25);
    transition: all 0.3s ease;
}

.milestone-item:hover {
    background: rgba(20, 60, 65, 0.45);
    border-color: #4ecdc4;
    transform: translateY(-3px);
}

.milestone-item .date {
    color: #7fe0db;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* ===== STAT HIGHLIGHT ===== */
.stat-highlight {
    display: inline-block;
    background: rgba(15, 74, 79, 0.5);
    backdrop-filter: blur(4px);
    padding: 0.4rem 1.2rem;
    border-radius: 40px;
    font-weight: 700;
    font-size: 1.3rem;
    color: #caf2ef;
    margin: 0.5rem 0;
    border: 1px solid rgba(78, 205, 196, 0.3);
}

/* ===== TOOLS GRID ===== */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.tool-item {
    background: rgba(20, 55, 60, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 50px;
    padding: 0.8rem 1.2rem;
    text-align: center;
    font-weight: 500;
    border: 1px solid rgba(78, 205, 196, 0.25);
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.tool-item:hover {
    background: rgba(40, 90, 95, 0.4);
    border-color: #4ecdc4;
    transform: translateY(-3px);
}

.tool-item i {
    margin-right: 0.4rem;
    color: #8de3de;
}

/* ===== BUTTONS ===== */
.btn-outline {
    display: inline-block;
    padding: 0.8rem 2.2rem;
    border: 2px solid #5bb9b3;
    border-radius: 40px;
    color: #e0fbf8;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    background: #5bb9b3;
    color: #011214;
    transform: translateY(-3px);
}

/* ===== TABLE STYLING ===== */
table {
    width: 100%;
    border-collapse: collapse;
    color: #e0f2f5;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(78, 205, 196, 0.2);
}

th {
    color: #7fe0db;
    font-weight: 600;
}

/* ===== FOOTER STYLES ===== */
footer {
    background: rgba(3, 16, 19, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #9bbfc5;
    text-align: center;
    padding: 2.5rem 2rem;
    border-top: 1px solid #1f444a;
    position: relative;
    z-index: 2;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    text-align: left;
    padding: 0 2rem;
}

.footer-about h3 {
    color: #4ecdc4;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-left: none;
    padding-left: 0;
}

.footer-about p {
    color: #ddd;
    line-height: 1.8;
}

.footer-links h4,
.footer-contact h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    border-left: none;
    padding-left: 0;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #4ecdc4;
}

.footer-contact p {
    margin-bottom: 0.5rem;
    color: #ddd;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-contact i {
    color: #4ecdc4;
    width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #aaa;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.4rem;
    }
    
    .program-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-links a {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 900px) {
    nav {
        padding: 0.8rem 1rem;
    }
    
    .nav-links a {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.8rem;
    }
    
    nav {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left 0.3s ease;
        gap: 1.5rem;
        z-index: 999;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
        padding: 1rem 2rem;
        background: rgba(0, 0, 0, 0.3);
        width: auto;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .hero-content .tagline {
        font-size: 1rem;
    }

    .hero-logo img {
        height: 70px;
    }

    #mission .container {
        flex-direction: column;
        gap: 2rem;
    }

    .program-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .program-icon,
    .stream-icon {
        width: 70px;
        height: 70px;
    }

    .impact-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        gap: 1.5rem;
    }

    .impact-card h3 {
        font-size: 3rem;
    }

    .logo img {
        height: 40px;
    }

    .card-glass {
        padding: 1.8rem;
    }

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-about,
    .footer-links,
    .footer-contact {
        text-align: center;
    }
    
    .footer-contact p {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content h2 {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-button, 
    .cta-outline {
        width: 100%;
        text-align: center;
        padding: 12px 25px;
    }

    .hero-logo img {
        height: 60px;
    }

    .program-icon,
    .stream-icon {
        width: 60px;
        height: 60px;
    }

    .program-icon i,
    .stream-icon i {
        font-size: 2.5rem;
    }

    .program-card h3,
    .stream-card h3 {
        font-size: 1.5rem;
    }

    .impact-card h3 {
        font-size: 2.5rem;
    }
    
    .impact-card p {
        font-size: 1rem;
    }
    
    .card-glass {
        padding: 1.5rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .tool-item {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .logo img {
        height: 35px;
        max-width: 120px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
}