﻿@keyframes glowPulse {
    0% { opacity: 0.6; filter: drop-shadow(0 0 18px rgba(124,58,237,0.2)); }
    50% { opacity: 1; filter: drop-shadow(0 0 26px rgba(14,165,233,0.4)); }
    100% { opacity: 0.6; filter: drop-shadow(0 0 18px rgba(124,58,237,0.2)); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes floatY {
    0% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0); }
}

@keyframes floatPulse {
    0%, 100% { transform: translateY(0) scale(1); box-shadow: 0 0 0 rgba(124,58,237,0); }
    50% { transform: translateY(-4px) scale(1.01); box-shadow: 0 16px 32px rgba(124,58,237,0.18); }
}

@keyframes botHover {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-12px) scale(1.04); }
}

:root {
    --bg-primary: #030014;
    --card: rgba(9, 13, 33, 0.9);
    --card-border: rgba(129, 140, 248, 0.3);
    --accent: #7c3aed;
    --text-muted: #b3b6d8;
    --gradient-1: linear-gradient(135deg, #612de3 0%, #0ea5e9 50%, #22d3ee 100%);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    background: var(--bg-primary);
    color: #ffffff;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before,
body::after {
    content: '';
    position: fixed;
    width: 1300px;
    height: 1300px;
    z-index: -2;
    opacity: 0.6;
}

body::before {
    top: -420px;
    right: -220px;
    background: radial-gradient(circle, rgba(99,102,241,0.25), transparent 70%);
}

body::after {
    bottom: -520px;
    left: -280px;
    background: radial-gradient(circle, rgba(6,182,212,0.2), transparent 70%);
}

.floating-lines {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: url('data:image/svg+xml,%3Csvg width="1600" height="1600" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" stroke="rgba(88,28,135,0.15)" stroke-width="0.4"%3E%3Cpath d="M0 120 Q400 60 800 120 T1600 120"/%3E%3Cpath d="M0 360 Q400 300 800 360 T1600 360"/%3E%3Cpath d="M0 600 Q400 540 800 600 T1600 600"/%3E%3Cpath d="M0 840 Q400 780 800 840 T1600 840"/%3E%3Cpath d="M0 1080 Q400 1020 800 1080 T1600 1080"/%3E%3C/g%3E%3C/svg%3E') center/cover repeat;
    opacity: 0.25;
    z-index: -1;
    animation: floatY 9s ease-in-out infinite;
}

.bot-sentinel {
    position: fixed;
    width: clamp(140px, 13vw, 200px);
    pointer-events: none;
    z-index: 2;
    animation: botHover 7s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(15, 23, 42, 0.6));
}

.bot-sentinel svg,
.bot-sentinel img {
    width: 100%;
    height: auto;
    display: block;
}

.bot-sentinel--left {
    left: 2%;
    top: 20%;
}

.bot-sentinel--right {
    right: 2%;
    top: 35%;
    animation-duration: 8s;
    animation-delay: -2s;
}

.bot-sentinel--right img {
    transform: scaleX(-1);
    filter: hue-rotate(35deg);
}

.back-to-top {
    position: fixed;
    right: 28px;
    bottom: 32px;
    border: none;
    border-radius: 999px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-1);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 20px 45px rgba(14, 165, 233, 0.3);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 10;
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

.back-to-top--visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.page-loader {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    background:
        radial-gradient(circle at 30% 30%, rgba(59,130,246,0.15), transparent 60%),
        radial-gradient(circle at 70% 20%, rgba(236,72,153,0.15), transparent 55%),
        rgba(3,0,20,0.95);
    z-index: 999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader--hide {
    opacity: 0;
    visibility: hidden;
}

.globe-spinner {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.18);
    position: relative;
    display: grid;
    place-items: center;
    box-shadow: 0 0 40px rgba(59,130,246,0.4);
    animation: spinGlobe 10s linear infinite;
}

.globe-spinner span {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(59,130,246,0.35);
}

.globe-spinner span:nth-child(1) { width: 80%; height: 80%; }
.globe-spinner span:nth-child(2) { width: 60%; height: 60%; transform: rotate(90deg); }
.globe-spinner span:nth-child(3) {
    width: 100%;
    height: 100%;
    border: 1px dashed rgba(56,189,248,0.6);
    animation: spinGlobe 6s linear infinite reverse;
}

.page-loader p {
    margin: 0;
    font-size: 0.95rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #c7d2fe;
    animation: pulseLoader 2.2s ease-in-out infinite;
}

@keyframes spinGlobe {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulseLoader {
    0%, 100% { opacity: 0.55; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-4px); }
}

.page-shell {
    width: min(1200px, 94%);
    margin: 0 auto;
    padding-bottom: 140px;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 36px 0;
}

.logo { font-weight: 700; letter-spacing: 0.08em; font-size: 1.25rem; }

.nav-links { display: flex; gap: 28px; color: var(--text-muted); font-size: 0.95rem; }
.nav-links span { cursor: pointer; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.region-switcher select {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--card-border);
    border-radius: 999px;
    color: var(--text-muted);
    padding: 6px 14px;
    font-size: 0.85rem;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.language-switcher a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

.language-switcher a.active {
    color: #fff;
}

.cta-btn {
    padding: 10px 24px;
    border-radius: 999px;
    border: none;
    background: var(--gradient-1);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    animation: glowPulse 4s ease-in-out infinite;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: flex-start;
    margin-top: 32px;
}

.hero-video {
    position: relative;
    width: 100vw;
    margin: 0 calc(50% - 50vw);
    padding: clamp(32px, 6vw, 72px) 0;
}

.video-wrapper {
    position: relative;
    width: min(1480px, 92vw);
    margin: 0 auto;
    padding: clamp(14px, 3vw, 28px);
    aspect-ratio: 16 / 9;
    display: flex;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    box-shadow: 0 20px 80px rgba(5, 8, 36, 0.6);
    background: rgba(9, 13, 33, 0.9);
}

.video-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(120deg, rgba(124, 58, 237, 0.45), rgba(14, 165, 233, 0.45));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    border: 0;
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
    }
    .nx-contact-card {
        margin-left: 0;
        max-width: 100%;
    }
}

.glass-card,
.soft-card,
.stat-tile {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 28px;
    padding: 32px;
    box-shadow: 0 20px 80px rgba(5, 8, 36, 0.6);
    backdrop-filter: blur(14px);
    opacity: 0;
    transform: translateY(32px);
}

.soft-card { background: rgba(13, 17, 46, 0.85); }

.hero-text { max-width: 640px; }
.hero-text h1 { font-size: clamp(2.7rem, 4vw, 3.4rem); margin: 0 0 16px; }
.hero-text p { color: var(--text-muted); line-height: 1.7; font-size: 1.1rem; }

.hero-highlights {
    list-style: none;
    padding: 0;
    margin: 26px 0 32px;
    display: grid;
    gap: 14px;
    color: #e2e8f0;
    font-size: 0.98rem;
}

.hero-highlights li::before {
    content: '•';
    color: #38bdf8;
    font-weight: bold;
    margin-right: 10px;
    display: inline-block;
    width: 1em;
}

.hero-highlights li {
    line-height: 1.6;
    margin-bottom: 4px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 40px;
}

.stat-strip { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 28px; }
.stat h3 { margin: 0; font-size: 2.1rem; }
.stat span { color: var(--text-muted); font-size: 0.9rem; }

form { display: flex; flex-direction: column; gap: 14px; }
label { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
input, textarea {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(148,163,184,0.4);
    border-radius: 16px;
    padding: 12px 16px;
    color: #f8fafc;
    font-size: 1rem;
}
textarea { resize: vertical; min-height: 140px; }

.newsletter-form {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

.newsletter-form input {
    flex: 1;
    min-width: 220px;
}

.newsletter-form button {
    flex-shrink: 0;
    padding-left: 32px;
    padding-right: 32px;
}

.login-access {
    margin-top: 28px;
    padding: 24px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.35), rgba(14, 165, 233, 0.4));
    box-shadow: 0 24px 60px rgba(3, 0, 20, 0.45);
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.login-access::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.25), transparent 55%);
    opacity: 0.7;
    pointer-events: none;
}

.login-access__copy {
    flex: 1 1 260px;
    position: relative;
    z-index: 1;
}

.login-pill {
    margin: 0;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    color: rgba(226, 232, 255, 0.8);
}

.login-access__copy h3 {
    margin: 8px 0 6px;
    font-size: 1.5rem;
}

.login-access__copy p {
    margin: 0;
    color: #dbeafe;
}

.login-access__btn {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    background: #ffffff;
    color: #0f172a;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.25);
}

.login-access__btn svg {
    width: 22px;
    height: 22px;
}

.login-access__btn:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 22px 40px rgba(15, 23, 42, 0.35);
}

.login-access__btn:hover svg {
    transform: translateX(3px);
}

.login-pill,
.login-access__copy h3,
.login-access__copy p,
.login-access__btn,
.login-access__btn svg {
    transition: transform 0.25s ease;
}

.login-access__btn svg path {
    stroke: currentColor;
}

.login-access__btn span {
    white-space: nowrap;
}

.btn-primary,
.btn-ghost,
.btn-green {
    border-radius: 999px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    background-size: 200% 200%;
    animation: gradientShift 7s ease infinite;
}

.btn-ghost {
    background: transparent;
    color: #e0e7ff;
    border: 1px solid rgba(226,232,240,0.3);
    transition: transform 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.btn-ghost:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.7);
    color: white;
}

.btn-green ,#donate-btn{
    display: block !important;
    background: linear-gradient(135deg, #10b981, #22d3ee);
    color: #fff;
}

.hero-cta__donate {
    flex-basis: 100%;
    margin-top: 16px;
}

.btn-green:hover {
    transform: translateY(-2px);
}

.btn-animated {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: floatPulse 6s ease-in-out infinite;
}

.btn-animated:hover {
    animation-play-state: paused;
    transform: translateY(-4px);
    box-shadow: 0 20px 35px rgba(56, 189, 248, 0.28);
}

.flash {
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(34,197,94,0.15);
    border: 1px solid rgba(34,197,94,0.4);
    color: #bbf7d0;
    font-size: 0.9rem;
}

.flash-error {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.45);
    color: #fecaca;
}

.form-error {
    font-size: 0.8rem;
    color: #fca5a5;
    margin-top: -8px;
}

.section { margin-top: 80px; }
.section h2 { font-size: 2rem; margin-bottom: 12px; }
.section p { color: var(--text-muted); max-width: 700px; margin-bottom: 32px; }
.section--intro p { max-width: 100%; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.stat-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 32px 28px;
}

.stat-grid > :nth-child(1),
.stat-grid > :nth-child(2) {
    grid-column: span 3;
}

.stat-grid > :nth-child(n+3) {
    grid-column: span 2;
}

.stat-grid > :nth-child(4) {
    grid-column: 5 / span 2;
    grid-row: 2;
}

.stat-grid > :nth-child(n+3):last-child {
    grid-column: 3 / span 2;
    grid-row: 2;
}
.stat-tile { text-align: center; }
.stat-tile h3 { margin: 0; font-size: 25px; }
.stat-tile span { color: var(--text-muted); }

@media (max-width: 900px) {
    .stat-grid {
        grid-template-columns: 1fr;
    }

    .stat-grid > :nth-child(n) {
        grid-column: auto;
        grid-row: auto;
        justify-self: stretch;
    }
}

.dual-column {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    align-items: stretch;
}
.dual-column > .glass-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.pricing-grid--full { grid-template-columns: 1fr; }

.price-card {
    border-radius: 22px;
    border: 1px solid rgba(99, 102, 241, 0.35);
    padding: 20px 22px;
    background: rgba(7, 12, 32, 0.9);
    box-shadow: 0 14px 45px rgba(6, 10, 30, 0.45);
}
.price-card h3 {
    margin: 0 0 6px;
    font-size: 1.25rem;
}
.price-card .price {
    margin: 0 0 4px;
    font-size: 1.1rem;
    color: #a5b4fc;
}
.price-card p {
    margin: 0;
}
.pricing-grid--full .price-card {
    width: min(100%, 420px);
    justify-self: center;
}
.pricing-grid--full .price-card:not(:last-child) {
    margin-bottom: 14px;
}
.pricing-grid--full {
    gap: 16px;
}
.price-card ul { padding-left: 16px; color: var(--text-muted); }

.footer { text-align: center; color: var(--text-muted); font-size: 0.9rem; margin-top: 90px; padding: 40px 0 60px; }

.animate-in { opacity: 1 !important; transform: translateY(0) !important; transition: opacity 0.8s ease, transform 0.8s ease; }

/* Volunteer form refinements */
.nx-contact-card {
    position: relative;
    overflow: hidden;
    max-width: 100%;
    margin-left: 0;
    width: 100%;
}

.nx-contact-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(120deg, rgba(124,58,237,0.6), rgba(14,165,233,0.6));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.nx-card-header .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.4em;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.nx-card-header h3 { margin: 0 0 10px; font-size: 2.15rem; }
.nx-card-header .subline { color: var(--text-muted); margin-bottom: 16px; }

.nx-contact-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.meta-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 0.85rem;
}

.meta-pill strong { color: #fff; font-size: 1rem; }

.nx-form {
    margin-top: 30px;
    width: 100%;
    gap: 22px;
}

.nx-form label {
    display: flex;
    flex-direction: column !important;
    gap: 8px;
}

.nx-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px 16px;
}

.nx-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nx-field span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

.nx-field input,
.nx-field textarea {
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(15,23,42,0.6);
}

.nx-field textarea { min-height: 160px; }

.nx-field--full { grid-column: 1 / -1; }

.nx-form button {
    align-self: flex-start;
    margin-top: 6px;
}

.meta-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(124,58,237,0.2);
    display: grid;
    place-items: center;
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    .bot-sentinel {
        display: none;
    }
}

@media (max-width: 640px) {
    .site-nav { flex-direction: column; gap: 16px; }
    .cta-btn { width: 100%; }
    .hero-text { order: 2; }
    .newsletter-form { flex-direction: column; }
    .newsletter-form button { width: 100%; }
    .login-access { padding: 20px; }
    .login-access__btn { width: 100%; justify-content: center; }
    .back-to-top {
        right: 16px;
        bottom: 20px;
        padding: 10px 14px;
    }
}
