/* ===== Reset & Variables ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #3B8DD6;
    --primary-dark: #2a6fb0;
    --primary-light: #e8f1fa;
    --accent: #E8634A;
    --accent-light: #fdeae6;
    --text: #1a2a3a;
    --text-light: #3d4f5f;
    --text-muted: #6b7c8c;
    --bg: #ffffff;
    --bg-alt: #f7f9fc;
    --bg-dark: #0a1628;
    --bg-dark-card: #132040;
    --border: #e2e8f0;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
    --transition: 0.3s ease;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.hidden {
    display: none !important;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn-full {
    width: 100%;
}

.btn-nav {
    padding: 10px 24px;
    background: var(--primary);
    color: white !important;
    border-radius: 50px;
}

.btn-nav:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition);
    padding: 16px 0;
}

.navbar.scrolled {
    border-bottom-color: var(--border);
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
}

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

.logo-img-footer {
    height: 36px;
    filter: brightness(0) invert(1);
}

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

.nav-links a {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    border-radius: 50px;
    transition: all var(--transition);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0a1628 0%, #0d2847 50%, #0e3a6e 100%);
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(10, 22, 40, 0.85) 0%, rgba(13, 40, 71, 0.7) 50%, rgba(14, 58, 110, 0.8) 100%),
        radial-gradient(circle at 20% 80%, rgba(0, 163, 224, 0.15) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 60px 0 120px;
}

.hero-label {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 32px;
    backdrop-filter: blur(4px);
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 700;
    color: white;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero h1 .accent {
    color: var(--accent);
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-buttons .btn-outline {
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.hero-buttons .btn-outline:hover {
    background: white;
    color: var(--text);
    border-color: white;
}

.hero-quote {
    max-width: 480px;
    margin: 0 auto;
    padding: 24px 32px;
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    text-align: left;
}

.hero-quote p {
    color: rgba(255, 255, 255, 0.95);
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.hero-quote span {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
}

.hero h1 .accent {
    color: var(--accent);
}

.hero-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    z-index: 3;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 80px;
}

/* ===== Sections ===== */
.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-cta {
    background: linear-gradient(135deg, #0a1628 0%, #0d2847 50%, #0e3a6e 100%);
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 60px;
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 12px;
}

.section-label.light {
    color: var(--accent);
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-header h2.white {
    color: white;
}

.accent {
    color: var(--primary);
}

.accent-light {
    color: var(--accent);
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
}

.section-description.light {
    color: rgba(255, 255, 255, 0.8);
}

/* ===== About ===== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 64px;
    align-items: center;
}

.about-logo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-photo {
    width: 100%;
    border-radius: var(--radius-lg);
    object-fit: cover;
    max-height: 400px;
    box-shadow: var(--shadow-lg);
}

.about-logo-overlay {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: auto;
    background: white;
    padding: 12px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.about-logo-img {
    width: 100%;
    max-width: 320px;
    height: auto;
}

.about-text h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.about-description {
    font-size: 1.1rem;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 32px;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-highlight {
    padding: 20px 24px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    border-left: 3px solid var(--primary);
}

.about-highlight strong {
    display: block;
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 4px;
}

.about-highlight p {
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* ===== Pillars ===== */
.pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.pillar-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: all var(--transition);
}

.pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.pillar-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.pillar-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.pillar-card p {
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ===== Collaboration ===== */
.collab-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.collab-item {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: all var(--transition);
}

.collab-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}

.collab-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.collab-item h4 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.collab-item p {
    color: var(--text);
    font-size: 0.9rem;
}

/* ===== Forms ===== */
.form-card {
    max-width: 640px;
    margin: 0 auto;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    box-shadow: var(--shadow);
}

.form-card-dark {
    background: white;
    border-color: var(--border);
}

.form-card-dark label {
    color: var(--text);
}

.form-card-dark input,
.form-card-dark select,
.form-card-dark textarea {
    background: white;
    border-color: var(--border);
    color: var(--text);
}

.form-card-dark input::placeholder,
.form-card-dark textarea::placeholder {
    color: var(--text-muted);
}

.form-card-dark input:focus,
.form-card-dark select:focus,
.form-card-dark textarea:focus {
    border-color: var(--primary);
    background: white;
}

.form-card-dark .form-note {
    color: var(--text-muted);
}

.form-card-dark .checkbox-label span {
    color: var(--text-light);
}

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

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 0.95rem;
    color: var(--text);
    background: white;
    transition: all var(--transition);
    appearance: none;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23888' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    accent-color: var(--primary);
}

.checkbox-label span {
    font-size: 0.9rem;
    color: var(--text-light);
}

.form-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 16px;
}

/* ===== Donate ===== */
.donate-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.donate-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: all var(--transition);
    position: relative;
}

.donate-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.donate-card.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.donate-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 4px 20px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.donate-amount {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
}

.donate-label {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.donate-desc {
    color: var(--text);
    font-size: 0.9rem;
    margin-bottom: 24px;
    line-height: 1.5;
}

.donate-info-card {
    max-width: 500px;
    margin: 0 auto;
    background: var(--primary-light);
    border-radius: var(--radius-lg);
    padding: 36px;
    text-align: center;
}

.donate-info-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.bank-details {
    background: white;
    border-radius: var(--radius);
    padding: 20px 24px;
    margin: 20px 0;
}

.bank-details p {
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.iban {
    font-family: monospace;
    font-size: 1rem;
    color: var(--primary);
    letter-spacing: 0.05em;
}

.donate-note {
    font-size: 0.85rem;
    color: var(--text-light);
}

.donate-note a {
    color: var(--primary);
    font-weight: 600;
}

.donate-qr {
    display: flex;
    justify-content: center;
    margin: 24px 0;
}

.qr-code {
    width: 180px;
    height: 180px;
    padding: 12px;
    background: white;
    border-radius: var(--radius);
    border: 2px solid var(--border);
}

/* ===== Contact ===== */
.contact-single {
    max-width: 480px;
    margin: 0 auto;
}

.contact-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    text-align: center;
}

.contact-logo {
    height: 48px;
    width: auto;
    margin: 0 auto 16px;
}

.contact-card h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.contact-location {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-light);
    font-size: 0.9rem;
    transition: color var(--transition);
}

.contact-link:hover {
    color: var(--primary);
}

.contact-link svg {
    flex-shrink: 0;
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 64px 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links h4 {
    color: white;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 12px;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-location {
    font-size: 0.85rem;
    margin-top: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 0.8rem;
}

/* ===== Modal ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: white;
    border-radius: var(--radius-lg);
    padding: 48px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    transform: scale(0.9);
    transition: transform var(--transition);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-icon {
    color: #22c55e;
    margin-bottom: 20px;
}

.modal h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.modal p {
    color: var(--text-light);
    margin-bottom: 24px;
}

/* ===== Photo strip ===== */
.photo-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    height: 280px;
    overflow: hidden;
}

.strip-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.strip-photo:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .photo-strip {
        height: 180px;
    }
}

/* ===== CTA background image ===== */
.section-cta {
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
}

/* ===== Privacy page ===== */
.privacy-content {
    max-width: 720px;
    margin: 0 auto;
}

.privacy-content h2 {
    font-size: 1.3rem;
    margin: 32px 0 12px;
    color: var(--text);
}

.privacy-content p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 12px;
}

.privacy-content ul {
    color: var(--text-light);
    margin: 8px 0 16px 24px;
    line-height: 1.8;
}

.privacy-content a {
    color: var(--primary);
    font-weight: 500;
}

.privacy-content a:hover {
    text-decoration: underline;
}

/* ===== Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fallback: make visible after animation delay if JS observer fails */
@media (prefers-reduced-motion: reduce) {
    .fade-in {
        opacity: 1;
        transform: none;
    }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .pillars {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 80px 32px 32px;
        box-shadow: var(--shadow-lg);
        transition: right var(--transition);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        width: 100%;
        padding: 14px 16px;
    }

    .hero-content {
        padding: 40px 0 100px;
    }

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

    .about-photo {
        max-height: 280px;
    }

    .about-logo-overlay {
        bottom: -12px;
        right: auto;
        width: 90px;
    }

    .about-highlight {
        text-align: left;
    }

    .pillars {
        grid-template-columns: 1fr;
    }

    .collab-grid {
        grid-template-columns: 1fr;
    }

    .donate-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-card {
        padding: 32px 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .section {
        padding: 72px 0;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .donate-amount {
        font-size: 2.2rem;
    }
}
