/* --- FONTS & VARS --- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;700;800&display=swap');

:root {
    --primary: #1879be;
    --accent: #9ac93b;
    --dark: #0f172a;
    --light: #f8fafc;
    --white: #ffffff;
    
    /* Gradients */
    --grad-main: linear-gradient(135deg, #1879be 0%, #9ac93b 100%);
    --grad-hover: linear-gradient(135deg, #9ac93b 0%, #1879be 100%);
    --grad-text: linear-gradient(to right, #1879be, #86b330);
    --shadow-glow: 0 15px 30px -5px rgba(154, 201, 59, 0.3);
    
    --font-head: 'Outfit', sans-serif; /* Modern, geometrical */
    --font-body: 'Plus Jakarta Sans', sans-serif; /* Clean, tech-friendly */
    
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.6);
    --glass-blur: blur(12px);
    
    --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

/* --- RESET --- */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    font-family: var(--font-body);
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.7;
    overflow-x: hidden;
    /* Subtle mesh background pattern */
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(24, 121, 190, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(154, 201, 59, 0.08) 0%, transparent 40%);
    background-attachment: fixed;
}

h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--dark);
}

h1 { 
    font-size: clamp(2.8rem, 6vw, 4.5rem); 
    letter-spacing: -1px; 
}
h2 { 
    font-size: clamp(2rem, 4vw, 3rem); 
    letter-spacing: -0.5px; 
}

p { color: #475569; 
    margin-bottom: 1.5rem; 
    font-size: 1.1rem; 
}

a { 
    text-decoration: none; 
    transition: all 0.4s var(--ease); 
}

img, video { 
    max-width: 100%; 
    display: block; 
    border-radius: 20px; 
}

/* --- UTILITIES --- */
.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

.section-padding { 
    padding: 100px 0; 
    position: relative; 
}

.text-center { 
    text-align: center; 
}

.gradient-text {
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* --- ANIMATED BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    background: var(--grad-main);
    color: white; 
    font-weight: 600;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 10px 20px -10px rgba(24, 121, 190, 0.4);
    border: none;
    cursor: pointer;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--grad-hover);
    z-index: -1;
    transition: opacity 0.5s var(--ease);
    opacity: 0;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px -10px rgba(154, 201, 59, 0.4);
}

.btn:hover::before { 
    opacity: 1; 
}

.btn-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--primary);
    border: 1px solid rgba(24, 121, 190, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-glass:hover {
    background: var(--grad-main);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(24, 121, 190, 0.4);
}

/* --- NAVBAR (Floating Glass) --- */
.navbar {
    position: fixed;
    top: 20px;
    left: 0; 
    right: 0;
    z-index: 9999; /* High z-index to stay on top */
    padding: 0 15px;
    transition: 0.4s;
}



.nav-box {
    background: rgba(255, 255, 255, 0.9); /* Slightly more opaque for readability */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 100px;
    padding: 12px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    max-width: 1200px;
    margin: 0 auto;
    position: relative; /* Needed for mobile menu positioning */
}

/* Logo Image Styling */
.logo {
    display: flex; 
    align-items: center; 
    z-index: 1002; /* Above mobile menu */
}

.logo img { 
    height: 55px; /* Size adjusted */
    width: auto;
}

/* Desktop Nav Links */
.nav-links { 
    display: flex; 
    gap: 30px; 
    list-style: none; 
    align-items: center; 
    margin: 0;
}

.nav-links a { 
    color: var(--dark); 
    font-weight: 500; 
    font-size: 0.95rem; 
    position: relative;
    text-decoration: none;
}

.nav-links a::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px;
    background: var(--grad-text); transition: 0.3s;
}
.nav-links a:hover::after, .nav-links a.active::after { 
    width: 100%; 
}

/* --- HAMBURGER MENU (Base Styles) --- */
.hamburger {
    display: none; /* Hidden on Desktop by default */
    cursor: pointer;
    z-index: 1002; /* Must be higher than nav-links */
    width: 30px;
    height: 20px;
    position: relative;
}

.bar {
    width: 100%;
    height: 3px;
    background-color: var(--primary); /* Blue color to be visible on white */
    border-radius: 3px;
    position: absolute;
    left: 0;
    transition: all 0.3s ease-in-out;
}

.bar:nth-child(1) { 
    top: 0; 
}

.bar:nth-child(2) { 
    top: 50%; 
    transform: translateY(-50%); 
    opacity: 1; 
}
.bar:nth-child(3) { 
    bottom: 0; 
}

/* Hamburger Animation (X Shape) */
.hamburger.open .bar:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.hamburger.open .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.open .bar:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    overflow: hidden;
}

/* Floating Blobs Animation */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    animation: float 10s infinite alternate ease-in-out;
    opacity: 0.6;
}
.blob-1 { 
    top: -10%; 
    left: -10%; 
    width: 500px; 
    height: 500px; 
    background: rgba(24, 121, 190, 0.2); 
}

.blob-2 { 
    bottom: 0%; 
    right: -10%; 
    width: 400px; 
    height: 400px; 
    background: rgba(154, 201, 59, 0.25); 
    animation-delay: -5s; 
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(30px, 50px) rotate(10deg); }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-img-wrap {
    position: relative;
    padding: 20px;
}
.hero-img-wrap::before {
    content: ''; position: absolute; inset: 0;
    border-radius: 30px;
    background: var(--grad-main);
    transform: rotate(-3deg);
    z-index: -1;
    opacity: 0.3;
}
.hero-img {
    border-radius: 20px;
    transform: rotate(2deg);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    transition: 0.5s;
}
.hero-img-wrap:hover .hero-img { 
    transform: rotate(0deg) scale(1.02); 
}

/* --- GLASS CARDS --- */
.grid-3 { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 30px; 
}

.grid-2 { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 50px; 
    align-items: center; 
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.8);
    padding: 40px;
    border-radius: 24px;
    transition: 0.4s var(--ease);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.05);
}

.glass-card:hover {
    transform: translateY(-10px);
    background: white;
    box-shadow: 0 20px 40px -10px rgba(24, 121, 190, 0.15);
    border-color: white;
}

.icon-box {
    width: 60px; height: 60px;
    border-radius: 16px;
    background: rgba(154, 201, 59, 0.15);
    color: var(--accent);
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 25px;
    transition: 0.3s;
}

.glass-card:hover .icon-box { 
    background: var(--grad-main); 
    color: white; 
}

/* --- VIDEO SECTION --- */
.video-frame {
    width: 100%; 
    max-width: 900px; 
    margin: 0 auto;
    border-radius: 24px; 
    overflow: hidden;
    box-shadow: 0 30px 60px -15px rgba(0,0,0,0.25);
    border: 4px solid white;
}

/* --- FORMS --- */
.form-input {
    width: 100%; 
    padding: 16px 20px;
    margin-bottom: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: rgba(255,255,255,0.9);
    font-family: inherit;
    transition: 0.3s;
}
.form-input:focus {
    outline: none; 
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(24, 121, 190, 0.1);
}

/* --- ENHANCED FOOTER --- */
footer {
    background: var(--dark);
    color: #94a3b8;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
}

/* Background mesh effect for footer */
footer::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(24,121,190,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.footer-content {
    position: relative;
    z-index: 2;
    padding-bottom: 60px;
}

.footer-brand h4 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 15px;
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.footer-brand p {
    color: #cbd5e1;
    max-width: 300px;
    margin-bottom: 25px;
}

.footer-heading {
    color: white;
    font-family: var(--font-head);
    font-size: 1.1rem;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #94a3b8;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-links a::before {
    content: '›';
    color: var(--accent);
    font-weight: bold;
    opacity: 0;
    transition: 0.3s;
}

.footer-links a:hover::before {
    opacity: 1;
}

.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    color: #cbd5e1;
}

.contact-info i {
    color: var(--primary);
    margin-top: 4px;
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 5px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: 0.3s var(--ease);
}

.social-btn:hover {
    background: var(--grad-main);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px rgba(24, 121, 190, 0.4);
}

.footer-bottom {
    background: rgba(15, 23, 42, 0.5);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 25px 0;
    text-align: center;
    position: relative;
    z-index: 2;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
    color: #64748b;
}

.creator-credit {
    color: var(--primary);
    font-weight: 500;
}

/* --- RESPONSIVE MEDIA QUERIES (Fixes) --- */

/* Tablet & Mobile (Max Width: 968px) */
/* This covers iPads, Tablets, and Large Phones */
@media (max-width: 968px) {
    
    .navbar { 
        top: 0; 
        padding: 0; 
    }
    
    .nav-box {
        border-radius: 0;
        border: none;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        background: rgba(255,255,255,0.98); /* Solid background for mobile header */
        padding: 15px 20px;
    }

    /* SHOW HAMBURGER */
    .hamburger { 
        display: block; 
    }

    /* Mobile Menu Styles */
    .nav-links {
        position: fixed;
        top: 80px; /* Pushes it below the navbar */
        left: 0;
        width: 100%;
        height: auto;
        background: white;
        flex-direction: column;
        align-items: center; /* Center text */
        padding: 40px 20px;
        gap: 25px;
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
        
        /* Hiding Logic */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.4s var(--ease);
        z-index: 998;
    }

    /* Active State (When menu is open) */
    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links li { 
        width: 100%; 
        text-align: center; 
    }

    .nav-links a { 
        font-size: 1.2rem; 
        display: block; 
        padding: 5px 0; 
    }
    
    /* Make Donate Button Full Width on Mobile */
    .nav-links .btn {
        width: 100%;
        margin-top: 10px;
    }

    /* Adjust Layouts */
    .hero { 
        padding-top: 130px; 
        text-align: center; 
    }

    .hero-grid, .grid-2 { 
        grid-template-columns: 1fr; 
        gap: 40px; 
    }

    .hero-img-wrap { 
        max-width: 500px; 
        margin: 30px auto 0; 
    }

    .hero-actions {
        justify-content: center !important;
    }
}

div.glass-card {
    padding: 20px;
}

/* Small Mobile (Max Width: 450px) */
@media (max-width: 450px) {
    h1 { 
        font-size: 2.2rem; 
    }

    h2 { 
        font-size: 1.8rem; 
    }
    
    .nav-box { 
        padding: 15px; 
    }

    .logo img { 
        height: 45px; 
    } /* Smaller logo on small phones */
    
    .container { 
        padding: 0 20px; 
    }
    
    /* Center Footer */
    footer { 
        text-align: center;
    }

    .footer-brand p {
        margin: 0px 50px;
    }

    .footer-links, .contact-info, .social-icons {
        align-items: center;
        justify-content: center;
    }

    .social-icons {
        margin-top: 10px;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px); /* Starts slightly lower */
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1); /* Smooth easing */
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* AUTOMATIC STAGGERING FOR GRIDS */
/* This makes cards inside a revealed section pop up one by one */
.reveal.active .glass-card:nth-child(1),
.reveal.active .gallery-item:nth-child(1),
.reveal.active .feature-card:nth-child(1) { 
    transition-delay: 0.1s; 
}

.reveal.active .glass-card:nth-child(2),
.reveal.active .gallery-item:nth-child(2),
.reveal.active .feature-card:nth-child(2) { 
    transition-delay: 0.2s; 
}

.reveal.active .glass-card:nth-child(3),
.reveal.active .gallery-item:nth-child(3),
.reveal.active .feature-card:nth-child(3) { 
    transition-delay: 0.3s; 
}

.reveal.active .glass-card:nth-child(4),
.reveal.active .gallery-item:nth-child(4),
.reveal.active .feature-card:nth-child(4) { 
    transition-delay: 0.4s; 
}

.reveal.active .glass-card:nth-child(5),
.reveal.active .gallery-item:nth-child(5),
.reveal.active .feature-card:nth-child(5) { 
    transition-delay: 0.5s; 
}

.reveal.active .glass-card:nth-child(6),
.reveal.active .gallery-item:nth-child(6),
.reveal.active .feature-card:nth-child(6) { 
    transition-delay: 0.6s; 
}


/* --- VIDEO SLIDER STYLES --- */
.slider-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-track {
    width: 100%;
    position: relative;
    overflow: hidden;
    min-height: 500px; /* Adjust based on video height */
}

/* Slide Animation */
.slide {
    display: none;
    width: 100%;
    animation: fadeEffect 0.6s ease;
}

.slide.active {
    display: block;
}

@keyframes fadeEffect {
    from { 
        opacity: 0; 
        transform: scale(0.98); 
    }

    to { 
        opacity: 1; 
        transform: scale(1); 
    }
}

/* Slider Buttons */
.slider-btn {
    background: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    color: var(--primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: var(--grad-main);
    color: white;
    transform: translateY(-53%);
}

.prev-btn { 
    left: -60px; 
}

.next-btn { 
    right: -60px; 
}

/* Responsive Buttons (Inside container on mobile) */
@media (max-width: 768px) {
    .prev-btn { 
        left: -10px; 
    }

    .next-btn { 
        right: -10px; 
    }

    .slider-track { 
        min-height: auto; 
    }
}

/* Dots */
.slider-dots {
    text-align: center;
    margin-top: 20px;
}

.dot {
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #cbd5e1;
    border-radius: 50%;
    display: inline-block;
    transition: 0.3s;
    cursor: pointer;
}

.dot.active {
    background-color: var(--primary);
    transform: scale(1.3);
}


/* --- EVENT DETAILS PAGE STYLES --- */

.event-meta-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 30px;
    background: white;
    box-shadow: 0 20px 40px -10px rgba(24, 121, 190, 0.15);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    justify-content: center;
}

.meta-item .icon {
    font-size: 2rem;
    color: var(--primary);
    background: rgba(24, 121, 190, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.meta-item h5 {
    margin: 0;
    font-size: 0.9rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.meta-item p {
    margin: 0;
    font-weight: 600;
    color: var(--dark);
    font-size: 1.1rem;
}

.border-left {
    border-left: 1px solid #e2e8f0;
}

/* Responsive Event Bar */
@media (max-width: 768px) {
    .event-meta-bar {
        flex-direction: column;
        gap: 30px;
        align-items: flex-start;
    }
    
    .meta-item {
        width: 100%;
        justify-content: flex-start;
    }
    
    .border-left {
        border-left: none;
        border-top: 1px solid #e2e8f0;
        padding-top: 20px;
    }
}