/* ====================== ROOT & GLOBAL RESET ====================== */
:root {
    --foundation-green: #7ed957;
    --foundation-purple: #3d07a8;
    --foundation-cream: #faf8f2;
    --text-dark: #1f2937;
    --text-gray: #374151;
    --text-light: #f3f4f6;
}

/* Critical Mobile Gap Fix */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow-x: hidden !important;
}

/* Global Container Protection */
.container {
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
}

/* ====================== HEADER ====================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    width: 100% !important;
}

/* Single Clean Rule for .container.nav */
.container.nav {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0.85rem 1rem !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-sizing: border-box;
}

/* Mobile - Very Tight Padding */
@media (max-width: 480px) {
    .container.nav {
        padding-left: 0.85rem !important;
        padding-right: 0.85rem !important;
    }
}

/* Tablet */
@media (min-width: 481px) and (max-width: 1024px) {
    .container.nav {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }
}

/* Desktop */
@media (min-width: 1025px) {
    .container.nav {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
}

/* ====================== Logo ====================== */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.logo img {
    width: 65px;
    height: 65px;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-text {
    line-height: 1.1;
}

.full-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--foundation-purple);
    margin: 0;
    display: none;
}

.short-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--foundation-purple);
    margin: 0;
    display: block;
}

.logo-text small {
    font-size: 0.78rem;
    color: #6b7280;
    font-weight: 600;
    display: block;
    margin-top: 2px;
}

/* Show full name only on very large screens */
@media (min-width: 1280px) {
    .full-name { display: block; }
    .short-name { display: none; }
    .logo img { width: 72px; height: 72px; }
}

/* ====================== Desktop Navigation ====================== */
.nav-links {
    display: none;
    align-items: center;
    gap: 1.6rem;
    white-space: nowrap;
}

@media (min-width: 1024px) {
    .nav-links {
        display: flex;
    }
}

.nav-links a {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.25s;
}

.nav-links a:hover {
    color: var(--foundation-green);
}

/* Donate Button */
.btn-nav {
    background-color: var(--foundation-green);
    color: var(--foundation-purple);
    padding: 0.85rem 1.75rem;
    border-radius: 9999px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
}

/* ====================== Mobile Menu Button ====================== */
.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    font-size: 1.6rem;
    background: none;
    border: none;
    color: var(--foundation-purple);
    cursor: pointer;
    z-index: 1010;
}

@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* ====================== Mobile Menu ====================== */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1.25rem;
    gap: 1.1rem;
}

.mobile-menu-content a {
    font-size: 1.1rem;
    padding: 0.5rem 0;
    color: #374151;
    text-decoration: none;
}

.mobile-donate-btn {
    background: var(--foundation-green);
    color: var(--foundation-purple);
    text-align: center;
    padding: 1rem;
    border-radius: 9999px;
    font-weight: 700;
    margin-top: 1rem;
}

/* ====================== GALLERY HERO WITH VIDEO ====================== */
.gallery-hero {
    min-height: 100dvh;
    padding-top: 80px;
    position: relative;
}

.gallery-hero .hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.gallery-hero .hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.gallery-hero .hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        to bottom,
        rgba(61, 7, 168, 0.78) 0%,
        rgba(61, 7, 168, 0.68) 45%,
        rgba(61, 7, 168, 0.55) 75%,
        rgba(0, 0, 0, 0.45) 100%
    );
}

.gallery-hero .hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
    padding: 2rem 1.25rem 7rem;
    box-sizing: border-box;
}

.gallery-hero .hero-inner {
    color: white;
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.gallery-hero .hero-tag {
    display: inline-block;
    padding: 0.7rem 1.8rem;
    background: rgba(126, 217, 87, 0.25);
    color: var(--foundation-green);
    border-radius: 9999px;
    font-weight: 700;
    margin-bottom: 1.8rem;
}

.gallery-hero .hero-title {
    font-size: clamp(2.8rem, 9vw, 5.4rem);
    line-height: 1.05;
    font-weight: 700;
    margin-bottom: 1.4rem;
}

.gallery-hero .hero-highlight {
    color: var(--foundation-green);
}

.gallery-hero .hero-desc {
    font-size: clamp(1.15rem, 4.8vw, 1.4rem);
    line-height: 1.6;
    margin-bottom: 3rem;
    opacity: 0.95;
}

.gallery-hero .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    max-width: 420px;
    margin: 0 auto;
}

.gallery-hero .hero-btn-primary,
.gallery-hero .hero-btn-secondary {
    padding: 1.35rem 3rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 9999px;
    text-decoration: none;
    text-align: center;
    transition: all 0.4s ease;
}

.gallery-hero .hero-btn-primary {
    background: var(--foundation-green);
    color: var(--foundation-purple);
}

.gallery-hero .hero-btn-secondary {
    border: 2px solid white;
    color: white;
}

/* Desktop */
@media (min-width: 768px) {
    .gallery-hero .hero-buttons {
        flex-direction: row;
        max-width: none;
        justify-content: center;
    }
    
    .gallery-hero .hero-content {
        padding: 8rem 3rem 10rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .gallery-hero {
        min-height: 95vh;
    }
    .gallery-hero .hero-content {
        padding: 2rem 1rem 5rem;
    }
}

/* ====================== GALLERY PAGE SPECIFIC STYLES ====================== */
.gallery-page {
    padding: 5rem 0 6rem;
    background: #f8f9fa;
}

.gallery-block {
    margin-bottom: 5.5rem;
    background: white;
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.gallery-block h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.8rem, 4.5vw, 2.4rem);
    color: var(--foundation-purple);
    margin-bottom: 0.5rem;
}

.gallery-date {
    color: var(--foundation-green);
    font-weight: 600;
    /* margin-bottom: 1rem; */
    font-size: 1.25rem;
}

.gallery-block p {
    color: #4b5563;
    line-height: 1.7;
    font-size: 1.25rem;
    /* margin-bottom: 2rem; */
}

/* Carousel */
.gallery-carousel {
    overflow-x: auto;
    padding-bottom: 1.2rem;
    scrollbar-width: thin;
    scrollbar-color: var(--foundation-green) #e5e7eb;
}

.gallery-carousel::-webkit-scrollbar {
    height: 8px;
}

.gallery-carousel::-webkit-scrollbar-thumb {
    background: var(--foundation-green);
    border-radius: 10px;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
}

.carousel-item {
    width: 340px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.carousel-item:hover {
    transform: scale(1.04);
}

.carousel-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

/* Gallery CTA */
.gallery-cta {
    margin-top: 4rem;
    padding: 3rem 2rem;
    background: var(--foundation-cream);
    border-radius: 1.5rem;
    text-align: center;
}

.gallery-cta .lead {
    font-size: 1.25rem;
    color: var(--foundation-purple);
    margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 640px) {
    .gallery-block {
        padding: 2rem 1.5rem;
        margin-bottom: 4rem;
    }
    
    .carousel-item {
        width: 280px;
    }
    
    .carousel-item img {
        height: 200px;
    }
}

@media (min-width: 1024px) {
    .gallery-block {
        padding: 3rem;
    }
}

/* ====================== Footer ====================== */
.site-footer {
    background: #1f2937;
    color: #e5e7eb;
    padding-top: 4rem;
}

.footer-content {
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 640px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr 1.2fr;
    }
}

.footer-col h3 {
    color: white;
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 0.85rem;
}

.footer-col a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--foundation-green);
}

/* Logo Column */
.logo-col .footer-logo img {
    height: 180px;
    width: auto;
    border-radius: 0.75rem;
    margin-bottom: 0.2rem;
}

.footer-mission {
    line-height: 1.6;
    max-width: 320px;
    margin-bottom: 1.5rem;
    color: #9ca3af;
}

/* Social Links */
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.1);
    color: white;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--foundation-green);
    color: var(--foundation-purple);
    transform: translateY(-3px);
}

/* Contact Info */
.contact-info i {
    width: 20px;
    color: var(--foundation-green);
    margin-right: 10px;
}

/* Bottom Bar */
.footer-bottom {
    background: #111827;
    padding: 1.5rem 0;
    margin-top: 3rem;
    font-size: 0.95rem;
    color: #9ca3af;
}

.footer-bottom .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.made-with-love {
    color: var(--foundation-green);
    font-weight: 500;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}