/* ========================================
   MONMAS - Monad Charity Initiative
   ======================================== */

   :root {
    /* Theme Colors */
    --monad-purple: #836EF9;
    --monad-purple-light: #B5A9FF;
    --monad-purple-dark: #4F41A8;
    --monad-accent: #9F8CFF;
    
    /* Charity Accents */
    --charity-red: #FF4D6A;
    --charity-red-soft: #FF8FA0;
    
    /* Neutrals & Backgrounds */
    --bg-dark: #050508;
    /* High opacity for readability over background image */
    --bg-card: rgba(10, 10, 15, 0.9); 
    --bg-card-hover: rgba(20, 20, 30, 0.95);
    
    /* Text Colors - High Contrast */
    --text-primary: #FFFFFF;
    --text-secondary: #CBD5E1; /* Lighter grey for visibility */
    --text-muted: #94A3B8;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #836EF9 0%, #9F8CFF 100%);
    --gradient-text: linear-gradient(to right, #FFFFFF 0%, #B5A9FF 100%);
    --gradient-charity: linear-gradient(135deg, #FF4D6A 0%, #FF8FA0 100%);
    
    /* Design Tokens */
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    --container-width: 1240px;
    --section-padding: 80px; /* Reduced from 100px */
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --border-subtle: 1px solid rgba(255, 255, 255, 0.1);
    --shadow-card: 0 20px 40px -10px rgba(0, 0, 0, 0.7);
    
    /* Custom Frame Image - Set this to your frame image path */
    --frame-image: url('Assets/22.png');
}

/* ========================================
   Reset & Base
   ======================================== */

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

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

body {
    font-family: var(--font-body);
    /* Heavy dark overlay (0.85) to ensure text pops against the snowflake pattern */
    background: 
        linear-gradient(rgba(5, 5, 8, 0.85), rgba(5, 5, 8, 0.85)),
        url('Assets/18.png') no-repeat center center fixed;
    background-size: cover;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

img, svg {
    display: block;
    max-width: 100%;
}

/* ========================================
   Background Effects (RESTORED)
   ======================================== */

/* Ensures these elements don't push content down */
.snow-canvas, .bg-animation, .particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Click-through */
    z-index: 0;
}

.snow-canvas {
    z-index: 9999; /* Snow on top of everything */
    opacity: 0.8;
}

.bg-animation {
    z-index: -1;
}

.particles {
    z-index: 1;
}

/* Pulse Animation for Badges */
.pulse {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--charity-red);
    box-shadow: 0 0 0 rgba(255, 77, 106, 0.7);
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(255, 77, 106, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 77, 106, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 77, 106, 0); }
}

/* ========================================
   Navigation
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(5, 5, 8, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: var(--border-subtle);
    transition: transform 0.3s ease;
}

.navbar.hidden {
    transform: translateY(-100%);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-cta {
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    color: #FFF !important;
}

.nav-cta:hover {
    background: var(--text-primary);
    color: var(--bg-dark) !important;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu span {
    width: 24px;
    height: 2px;
    background: white;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 82px;
    left: 0;
    right: 0;
    background: #0F0F16;
    padding: 20px;
    flex-direction: column;
    gap: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    z-index: 999;
}

.mobile-nav.active { display: flex; }
.mobile-nav a { 
    padding: 15px; 
    text-align: center; 
    background: rgba(255,255,255,0.05); 
    border-radius: 8px;
    font-weight: 600;
}

/* ========================================
   Splash Hero (Top)
   ======================================== */

.splash-hero {
    min-height: 100vh;
    width: 100%;
    background: url('Assets/21.jpeg') no-repeat center center;
    background-size: cover;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 40px;
    overflow: hidden;
    z-index: 2; /* Ensure it's above background effects */
}

.splash-overlay {
    position: absolute;
    inset: 0;
    /* Stronger gradient at bottom to match intro background */
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.4) 60%, #050508 100%);
    z-index: 1;
}

/* Top Left Logo */
.splash-logo {
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 10;
}

.splash-logo .logo-img {
    height: 80px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}

/* Top Right Links */
.splash-header-links {
    position: absolute;
    top: 40px;
    right: 40px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 16px;
}

.x-link {
    width: 48px;
    height: 48px;
    background: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFF;
    border: 1px solid rgba(255,255,255,0.2);
    transition: transform 0.2s;
}

.x-link svg { width: 22px; height: 22px; }

.monmas-bubble {
    padding: 12px 28px;
    background: var(--monad-purple);
    color: #FFF;
    border-radius: 100px;
    font-weight: 800;
    font-family: var(--font-heading);
    border: 1px solid rgba(255,255,255,0.2);
    transition: transform 0.2s;
}

.splash-link:hover { transform: scale(1.05); }

/* Scroll Indicator */
.scroll-indicator {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: bounce 2s infinite;
    margin-bottom: 20px;
}

.arrow-down { font-size: 1.2rem; }

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* ========================================
   Intro Section
   ======================================== */

.intro {
    padding: 100px 0;
    position: relative;
    text-align: center;
    background: transparent;
    z-index: 3; /* Higher than splash for seamless scroll */
}

/* Fade in from splash */
.intro::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, #050508 0%, rgba(5,5,8,0) 100%);
    pointer-events: none;
    z-index: -1;
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
}

.intro-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 77, 106, 0.15);
    border: 1px solid var(--charity-red);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--charity-red);
    margin-bottom: 30px;
    text-transform: uppercase;
}

.intro-description {
    font-size: 1.35rem;
    color: #E2E8F0;
    margin-bottom: 50px;
    line-height: 1.7;
}

.intro-description strong { color: #FFF; }

/* Stats */
.intro-stats-container {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.countdown-container, .intro-stat-card {
    background: var(--bg-card);
    border: var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px 30px;
    backdrop-filter: blur(10px);
}

.countdown-container { display: flex; gap: 15px; }

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.countdown-item span {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    color: #FFF;
}

.countdown-item label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 5px;
}

.intro-stat-card .stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--monad-purple-light);
    display: block;
}

.intro-stat-card .stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Buttons */
.intro-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: transform 0.2s;
}

.btn-primary {
    background: #FFF;
    color: #000;
    border: 1px solid #FFF;
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: #FFF;
    border: 1px solid rgba(255,255,255,0.2);
}

.btn:hover { transform: translateY(-3px); }
.btn-icon { width: 20px; height: 20px; }

/* ========================================
   Sections (Charity, About, etc)
   ======================================== */

.charity, .about, .impact, .transparency, .roadmap, .team, .cta, .gallery {
    padding: 100px 0;
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header.text-left {
    text-align: left;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255,255,255,0.1);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--monad-purple-light);
    margin-bottom: 15px;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Cards - High Contrast Fix (RESTRICTED to specific elements) */
.charity-banner, .cta-content, .roadmap-content {
    background: var(--bg-card);
    border: var(--border-subtle);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease;
}

/* ========================================
   NEW SPLIT LAYOUT (About Section)
   ======================================== */

.split-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.split-content {
    text-align: left;
    padding-left: 50px; /* Added significant indentation */
}

.lead-text {
    font-size: 1.3rem;
    line-height: 1.6;
    color: #FFF;
    margin-bottom: 40px;
}

/* Vertical Feature List */
.feature-list-vertical {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.feature-row {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feature-icon {
    font-size: 1.8rem;
    background: rgba(255, 255, 255, 0.05);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-text h3 {
    font-size: 1.25rem;
    color: #FFF;
    margin-bottom: 5px;
}

.feature-text p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Image Card - Frame Image Only */
.image-card {
    background: none;
    padding: 0;
    border: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: none;
}

/* Remove any pseudo-element borders */
.image-card::before {
    display: none;
}

.feature-img {
    max-width: 100%;
    height: auto;
    border: none;
    border-radius: 0;
    filter: none;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
    display: block;
}

.image-card:hover .feature-img {
    transform: scale(1.02); /* Subtle zoom on hover */
}

/* ========================================
   Impact - Floating Stats
   ======================================== */

/* Impact Section */
.impact-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.impact-lead {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFF;
    margin-bottom: 20px;
}

.impact-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.impact-stat {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 20px;
    text-align: center;
    min-width: 200px;
    position: relative;
}

.impact-number {
    display: block;
    font-size: 4.5rem; /* Larger */
    font-weight: 800;
    background: var(--gradient-charity);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 10px;
    filter: drop-shadow(0 10px 20px rgba(255, 77, 106, 0.3));
}

.impact-label {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #FFF;
    opacity: 0.8;
}

/* ========================================
   Transparency & Donation Table
   ======================================== */

.transparency-steps {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    margin-bottom: 50px;
}

.step-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius-lg);
    border: var(--border-subtle);
    text-align: center;
    position: relative;
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-dark);
    border: 1px solid rgba(255,255,255,0.2);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--monad-purple-light);
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.step-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.step-card p {
    font-size: 0.9rem;
    margin: 0;
}

.step-arrow {
    font-size: 2rem;
    color: rgba(255,255,255,0.2);
}

.transparency-note {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.link-highlight {
    color: var(--charity-red-soft);
    text-decoration: underline;
}

.btn-small {
    padding: 10px 24px;
    font-size: 0.9rem;
    margin-top: 15px;
}

/* Live Donation Table */
.donation-history {
    background: var(--bg-card);
    border: var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 1000px;
    margin: 0 auto;
    backdrop-filter: blur(12px);
}

.history-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #FFF;
}

.table-container {
    width: 100%;
    overflow-x: auto;
}

.donation-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.donation-table th {
    text-align: left;
    padding: 15px;
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.donation-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: #FFF;
}

.donation-table tr:last-child td {
    border-bottom: none;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-badge.success {
    background: rgba(46, 213, 115, 0.15);
    color: #2ed573;
    border: 1px solid rgba(46, 213, 115, 0.3);
}

.tx-link {
    color: var(--monad-purple-light);
    font-family: monospace;
    font-size: 0.9rem;
    opacity: 0.8;
}

.tx-link:hover { opacity: 1; text-decoration: underline; }

.amount-cell {
    font-weight: 700;
    color: var(--monad-accent);
}

/* ========================================
   Mission - Centered Reading Text
   ======================================== */

.team-description {
    text-align: center;
    max-width: 700px; /* Constrained width for readability */
    margin: 0 auto 50px;
}

.team-description p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.team-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mission/Team - Minimal Icons */
.team-card { 
    background: transparent;
    border: 1px solid transparent;
    box-shadow: none;
    text-align: center; 
    padding: 30px; 
    transition: all 0.3s ease;
    border-radius: var(--radius-lg);
}

.team-card:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}

.team-avatar { 
    font-size: 3.5rem; 
    margin-bottom: 20px; 
    display: block; 
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.5));
}

.team-card span {
    font-weight: 700;
    font-size: 1.1rem;
    color: #FFF;
}

/* Bottom Fade for Middle Section (Snowflake Background) - Applied to Team Section */
.team::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to top, #050508 0%, rgba(5,5,8,0) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Charity Banner */
.charity-banner {
    display: flex;
    align-items: center;
    gap: 30px; /* Reduced gap */
    padding: 25px 30px; /* Reduced padding */
    max-width: 900px; /* Constrain width */
    margin: 0 auto; /* Center it */
}

.charity-logo { 
    font-size: 3.5rem; /* Reduced from 5rem */
    flex-shrink: 0;
}

.charity-info h3 { 
    font-size: 1.5rem; /* Reduced from 2rem */
    margin-bottom: 10px;
}

.charity-info p {
    font-size: 0.95rem; /* Slightly smaller text */
    margin-bottom: 0;
}

.btn-charity {
    background: var(--charity-red);
    color: white;
    padding: 12px 24px; /* Reduced padding */
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem; /* Smaller button text */
    white-space: nowrap; /* Prevent wrapping */
}

/* Roadmap - Horizontal Layout */
.roadmap-timeline-horizontal {
    max-width: 1200px;
    margin: 60px auto 0;
    position: relative;
    padding: 60px 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.timeline-line-horizontal {
    position: absolute;
    top: 80px; /* Below markers */
    left: 60px;
    right: 60px;
    height: 2px;
    background: rgba(255,255,255,0.2);
    z-index: 1;
}

.roadmap-item-horizontal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
    flex: 1;
    max-width: 280px;
}

.roadmap-marker-horizontal {
    width: 50px;
    height: 50px;
    background: #000;
    border: 2px solid var(--monad-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    flex-shrink: 0;
    z-index: 2;
    position: relative;
}

.roadmap-marker-horizontal.final {
    border-color: var(--charity-red);
}

.roadmap-content-horizontal {
    background: var(--bg-card);
    border: var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 25px;
    width: 100%;
    text-align: center;
    backdrop-filter: blur(12px);
}

.roadmap-content-horizontal h3 { 
    font-size: 1.3rem; 
    margin-bottom: 10px;
    color: #FFF;
}

.roadmap-content-horizontal p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.roadmap-gifts {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--monad-purple-light);
    font-weight: 600;
    margin-top: 10px;
}

/* Legacy Vertical Roadmap (kept for reference) */
.roadmap-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 40px;
}

.timeline-line {
    position: absolute;
    left: 19px; /* Center of marker width (40px) approx */
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: rgba(255,255,255,0.2);
}

.roadmap-item {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    position: relative;
}

.roadmap-marker {
    width: 40px;
    height: 40px;
    background: #000;
    border: 2px solid var(--monad-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    z-index: 2;
}

.roadmap-content {
    background: var(--bg-card);
    border: var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 25px;
    flex: 1;
}

.roadmap-content h3 { font-size: 1.4rem; margin-bottom: 10px; }

/* Team Grid */
.team-visual {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
}

/* Ticker */
.ticker {
    background: var(--monad-purple);
    padding: 15px 0;
    transform: rotate(-1deg);
    margin: 40px 0;
    position: relative;
    z-index: 5;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    overflow: hidden; /* Hide scrollbar/overflow */
}

.ticker-content {
    display: flex;
    gap: 0;
    width: max-content;
    white-space: nowrap;
    animation: scrollText 20s linear infinite;
}

.ticker-content span {
    font-weight: 800;
    font-size: 1.1rem;
    padding-right: 60px; /* Use padding instead of margin for smoother calculation */
    text-transform: uppercase;
    color: white;
    display: inline-block;
}

@keyframes scrollText {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ========================================
   Gallery Section (Marquee)
   ======================================== */

.gallery {
    overflow: hidden;
    padding-bottom: 120px;
}

.marquee-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.marquee-row {
    display: flex;
    width: 100%;
    overflow: hidden;
    position: relative;
    user-select: none;
}

/* Gradient Fade on Edges */
.marquee-row::before, .marquee-row::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-row::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-dark), transparent);
}

.marquee-row::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-dark), transparent);
}

/* The container that holds BOTH tracks and moves */
.marquee-content-wrapper {
    display: flex;
    gap: 20px;
    width: max-content; /* Critical: allows content to be as wide as needed */
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    will-change: transform; /* Optimize for smooth animation */
    transform: translateZ(0); /* Force hardware acceleration */
    backface-visibility: hidden; /* Prevent flickering */
}

.marquee-left .marquee-content-wrapper {
    animation-name: scrollLeft;
    animation-duration: 45s; /* Adjusted for 7 images per row */
}

.marquee-right .marquee-content-wrapper {
    animation-name: scrollRight;
    animation-duration: 50s; /* Adjusted for 8 images per row */
}

/* The individual tracks (just groups of images) */
.marquee-track {
    display: flex;
    gap: 20px;
    flex-shrink: 0; /* Prevent shrinking */
}

.gallery-item {
    flex-shrink: 0;
    width: 300px;
    height: 200px;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
    background: #000;
    transform: translateZ(0); /* Hardware acceleration */
    will-change: transform;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block; /* Remove inline spacing */
}

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

/* Animations - Move by -50% because we have 2 sets of images */
@keyframes scrollLeft {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); } /* Move half way (one full set length) */
}

@keyframes scrollRight {
    0% { transform: translate3d(-50%, 0, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

/* ========================================
   Bottom Hero (Footer)
   ======================================== */

.bottom-hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    /* Background moved to ::before for masking */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Centered Logic Restored */
    padding: 60px 20px;
    overflow: hidden;
    z-index: 1;
}

/* The Background Image with Fade-In Mask */
.bottom-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('Assets/17.png') no-repeat center center;
    background-size: cover;
    z-index: -2;
    /* MASK: Top and Bottom fade out */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    pointer-events: none;
}

/* Extra Top Gradient for blending with body */
.bottom-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, #050508 0%, rgba(5,5,8,0) 100%);
    z-index: -1;
    pointer-events: none;
}

.footer-overlay {
    position: absolute;
    inset: 0;
    /* Darkens the bottom image for text readability, heavier at bottom */
    background: linear-gradient(to top, rgba(5,5,8,1) 0%, rgba(5,5,8,0.6) 50%, rgba(5,5,8,0.1) 100%);
    z-index: -1;
    pointer-events: none;
}

.bottom-hero .container {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center the inner container content */
    align-items: center;
}

/* Center Group (Logo + Disclaimer) */
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px; 
    margin-bottom: 0; /* Reset margin */
    text-align: center;
}

.footer-brand .logo-img {
    height: 180px;
    width: auto;
    filter: drop-shadow(0 5px 25px rgba(0,0,0,0.6));
}

/* Pinned Bottom Links */
.footer-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 40px; /* Space below logo */
    z-index: 10;
}

.footer-links a {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 12px 30px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    color: #FFF;
}

.footer-links a:hover {
    background: #FFF;
    color: #000;
    transform: translateY(-3px);
}

/* Disclaimer Style - Pinned to Absolute Bottom */
.footer-bottom-bar {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 0 20px;
    z-index: 10;
}

.footer-disclaimer {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    max-width: 800px;
    margin: 0 auto;
}

.footer-disclaimer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
}

/* ========================================
   Responsive Fixes
   ======================================== */

@media (max-width: 1024px) {
    :root { --section-padding: 60px; } 
    .charity-banner { flex-direction: column; text-align: center; gap: 30px; }
    .split-layout { grid-template-columns: 1fr; gap: 40px; }
    .split-content { padding-left: 0; text-align: center; } /* Reset indent on mobile/tablet */
    .split-image { display: none; /* Hide image on mid-sized screens if cluttered */ }
    .team-content { display: flex; flex-direction: column; }
    .team-visual { grid-template-columns: 1fr 1fr; }
    
    /* Transparency Section Mobile */
    .transparency-steps { grid-template-columns: 1fr; gap: 40px; }
    .step-arrow { transform: rotate(90deg); display: block; text-align: center; }
    
    /* Horizontal Roadmap - Stack on tablet */
    .roadmap-timeline-horizontal {
        flex-direction: column;
        align-items: center;
        gap: 40px;
        padding: 40px 20px;
    }
    
    .timeline-line-horizontal {
        display: none; /* Hide horizontal line on mobile */
    }
    
    .roadmap-item-horizontal {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .navbar { padding: 12px 0; }
    .nav-links, .nav-cta { display: none; }
    .mobile-menu { display: flex; }
    
    .splash-logo { top: 25px; left: 20px; }
    .splash-header-links { top: 25px; right: 20px; }
    
    .intro-stats-container { flex-direction: column; align-items: center; }
    .impact-stats { flex-direction: column; }
    .team-visual { grid-template-columns: 1fr 1fr; }
    
    .section-title { font-size: 2.5rem; }
    
    .footer-brand .logo-img { height: 140px; }
    
    /* Ensure Split Layout stacks on mobile */
    .split-layout { display: flex; flex-direction: column; }
    .split-image { display: block; width: 100%; margin-top: 20px; }
}

@media (max-width: 480px) {
    .btn { width: 100%; justify-content: center; }
    .team-visual { grid-template-columns: 1fr; }
    .footer-links { flex-direction: column; gap: 15px; width: 100%; }
    .footer-links a { width: 100%; text-align: center; }
}
