/* --- PREMIUM DESIGN SYSTEM --- */
:root {
    --primary: #3b82f6; /* Vibrant Blue */
    --primary-dark: #2563eb;
    --accent: #8b5cf6; /* Vibrant Purple */
    --bg-main: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.7);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-full: 9999px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --font-sans: 'Inter', sans-serif;
}

/* Dark theme elements for Hero */
.dark-section {
    --bg-main: #0f172a;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --bg-card: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-sans);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* --- UTILITIES --- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius-lg);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- HEADER / NAVIGATION --- */
header {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    margin: 0 auto;
    max-width: 1200px;
    z-index: 1000;
    padding: 10px 30px;
    display: flex;
    align-items: center;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-text {
    flex: 1;
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-text .accent {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px var(--primary);
}

nav {
    flex: 2;
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-links a:hover::after {
    width: 100%;
}

.lang-container {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.lang-btn {
    background: rgba(15, 23, 42, 0.05);
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    border: 1px solid rgba(15, 23, 42, 0.1);
}

.lang-btn:hover {
    background: var(--text-main);
    color: var(--bg-main);
}

/* --- BUTTONS --- */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white !important;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.4);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 35px -5px rgba(59, 130, 246, 0.5);
}

.btn-primary:hover::before {
    left: 100%;
    transition: 0.7s;
}

.btn-outline {
    background: transparent;
    color: var(--text-main) !important;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(15, 23, 42, 0.1);
    transition: var(--transition);
}

.btn-outline:hover {
    border-color: var(--text-main);
    background: rgba(15, 23, 42, 0.05);
}

.heart-icon {
    display: inline-block;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.3); }
    30% { transform: scale(1); }
    45% { transform: scale(1.3); }
    60% { transform: scale(1); }
}

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 20px;
    color: var(--text-main);
}

.hero-text p {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: var(--transition);
}

.hero-visual:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top right, rgba(59, 130, 246, 0.4), transparent);
    mix-blend-mode: overlay;
}

/* Background Canvas */
#networkCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
    pointer-events: none;
}

/* Abstract blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.5;
    animation: floatBlob 20s infinite alternate;
}

.blob-1 {
    top: -10%; left: -10%;
    width: 50vw; height: 50vw;
    background: rgba(59, 130, 246, 0.3);
}

.blob-2 {
    bottom: -10%; right: -10%;
    width: 40vw; height: 40vw;
    background: rgba(139, 92, 246, 0.2);
    animation-delay: -10s;
}

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(5%, 10%) scale(1.1); }
}


/* --- BENTO GRID INFO SECTION --- */
.info-section {
    padding: 100px 0;
    position: relative;
    z-index: 2;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(220px, auto);
    gap: 20px;
}

.bento-item {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    min-height: fit-content;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border-radius: var(--radius-lg);
}

.bento-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

/* Specific Grid Placements */
.bento-item:nth-child(1) {
    grid-column: span 8;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
}

.bento-item:nth-child(1) h2, .bento-item:nth-child(1) p, .bento-item:nth-child(1) span { color: white !important; }
.bento-item:nth-child(1) p { opacity: 0.8; }

.bento-item:nth-child(2) {
    grid-column: span 4;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    align-self: stretch;
}

.bento-item:nth-child(2) img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.bento-item:hover:nth-child(2) img {
    transform: scale(1.05);
}

.bento-item:nth-child(3) {
    grid-column: span 5;
    background: var(--bg-card);
}

.bento-item:nth-child(4) {
    grid-column: span 7;
    background: var(--bg-card);
}

.bento-icon {
    width: 48px;
    height: 48px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 24px;
}

.bento-item h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--text-main);
}

.bento-item p {
    color: var(--text-muted);
    font-size: 1rem;
}


/* --- CTA SECTION --- */
.cta-section {
    padding: 100px 0;
    position: relative;
    z-index: 2;
}

.cta-box {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4IiBoZWlnaHQ9IjgiPgo8cmVjdCB3aWR0aD0iOCIgaGVpZ2h0PSI4IiBmaWxsPSIjZmZmIiBmaWxsLW9wYWNpdHk9IjAuMDUiLz4KPC9zdmc+');
    opacity: 0.3;
}

.cta-box h2 {
    font-size: 2.2rem;
    color: white;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.cta-box p {
    color: white !important;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
    opacity: 0.9;
}

.cta-box .btn-primary {
    background: white;
    color: var(--primary) !important;
    font-size: 1.1rem;
    padding: 14px 32px;
    z-index: 1;
}

.cta-box .btn-primary:hover {
    background: #f8fafc;
    box-shadow: 0 20px 35px -5px rgba(0, 0, 0, 0.2);
}

/* --- FOOTER --- */
footer {
    background: #000;
    color: white !important;
    padding: 60px 0 100px;
    text-align: center;
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p, footer small {
    color: rgba(255, 255, 255, 0.7) !important;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 800;
    color: white;
}

/* --- SCROLL REVEAL ANIMATIONS --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 1024px) {
    .bento-item:nth-child(1) { grid-column: span 9 !important; }
    .bento-item:nth-child(2) { grid-column: span 3 !important; height: auto; }
    .bento-item:nth-child(3) { grid-column: span 12; }
    .bento-item:nth-child(4) { grid-column: span 12; }
}

@media (max-width: 768px) {
    header {
        top: 10px;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 95% !important;
        max-width: none;
        margin: 0 !important;
        padding: 0 !important;
        display: block;
        right: auto !important;
    }
    
    .navbar {
        padding: 8px 12px;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
    }

    .logo-text {
        flex: 0 1 auto;
    }

    .lang-container {
        position: relative;
        top: 0;
        right: 0;
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .logo-text img {
        height: 40px !important;
        width: auto;
    }

    /* Hide desktop nav */
    header .nav-links {
        display: none;
    }

    .mobile-dock {
        display: flex;
        position: fixed;
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 30px);
        max-width: 420px;
        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border: 1px solid rgba(255, 255, 255, 0.4);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
        border-radius: 30px;
        padding: 6px;
        z-index: 1000;
        justify-content: space-around;
        align-items: center;
    }

    .mobile-dock-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        color: var(--text-muted);
        text-decoration: none;
        padding: 10px 0;
        border-radius: 18px;
        transition: var(--transition);
        font-size: 10px;
        font-weight: 700;
    }

    .mobile-dock-item:active {
        background: rgba(59, 130, 246, 0.1);
        transform: scale(0.95);
    }

    .mobile-dock-item.active {
        color: var(--primary);
    }
    
    .mobile-dock-item svg {
        width: 22px;
        height: 22px;
        margin-bottom: 2px;
    }

    .hero {
        padding: 160px 0 50px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-text p {
        font-size: 1rem;
        margin: 0 auto 24px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .hero-visual {
        height: 300px;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-outline,
    .cta-box .btn-primary {
        width: 100%;
        padding: 18px 32px;
        font-size: 17px;
    }

    .bento-item img {
        height: 250px;
    }

    .bento-item {
        padding: 20px;
    }

    .cta-box h2 {
        font-size: 1.8rem;
    }
    
    body {
        padding-bottom: 100px; /* Space for dock */
    }
    
    .about-panel {
        padding: 30px 20px !important;
    }
}

.about-panel {
    padding: 50px;
}
    
    /* Make lang btn fit header */
    .lang-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    /* Volunteer Form Mobile Fix */
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .bento-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }

    .bento-item {
        width: 100% !important;
        height: auto !important;
        min-height: fit-content !important;
        padding: 30px 20px !important;
        align-self: stretch !important;
    }

    .bento-item:nth-child(2) {
        display: none !important;
    }

    /* Force FA section full width ONLY on index */
    .index-grid .bento-item:nth-child(1) {
        grid-column: span 12 !important;
        width: 100% !important;
    }
    .index-grid .bento-item:nth-child(2) {
        display: none !important;
    }
    .index-grid {
        display: grid !important;
        grid-template-columns: repeat(12, 1fr) !important;
    }

    .iban-box {
        padding: 15px !important;
    }

    .iban-text {
        font-size: 1rem !important;
    }
}

/* --- ADDITIONAL COMPONENT STYLES --- */
.iban-box {
    background: rgba(15, 23, 42, 0.03);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.volunteer-form input, .volunteer-form textarea {
    background: rgba(15, 23, 42, 0.04) !important;
    border: 1.5px solid rgba(15, 23, 42, 0.1) !important;
    color: var(--text-main) !important;
    width: 100% !important;
    min-height: 55px;
    padding: 15px 20px !important;
    font-size: 16px !important;
}

.volunteer-form textarea {
    min-height: 120px;
}

.volunteer-form input:focus, .volunteer-form textarea:focus {
    border-color: var(--primary) !important;
    background: rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.about-item p {
    text-align: justify;
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .cta-box {
        padding: 40px 20px;
    }
    
    .bento-item h2 {
        font-size: 1.3rem;
    }
}
