@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --accent: #e8b810;
    --accent-hover: #d1a60e;
    --bg: #e7f1fd;
    --dark: #0a4156;
    --dark-lighter: #0e5672;
    --text: #0a2140;
    --text-muted: #5a7184;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow-sm: 0 2px 4px rgba(10, 65, 86, 0.04);
    --shadow: 0 10px 30px rgba(10, 65, 86, 0.08);
    --shadow-lg: 0 20px 40px rgba(10, 65, 86, 0.12);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;

    /* Legacy variables for compatibility */
    --primary: var(--dark);
    --primary-glow: rgba(10, 65, 86, 0.2);
    --border-color: #edf2f7;
    --bg-main: var(--bg);
    --text-main: var(--text);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: radial-gradient(circle at top right, var(--bg) 0%, #ffffff 50%, var(--bg) 100%);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    padding: 0;
    position: relative;
    overflow-x: hidden;
}

/* Background Depth Blobs */
body::before,
body::after {
    content: '';
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(160px);
    z-index: -1;
    opacity: 0.3;
    animation: floatBlobs 25s infinite alternate ease-in-out;
}

body::before {
    background: var(--accent);
    top: -150px;
    left: -150px;
}

body::after {
    background: var(--dark);
    bottom: -150px;
    right: -150px;
    animation-delay: -12s;
}

@keyframes floatBlobs {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    50% {
        transform: translate(100px, 150px) scale(1.1) rotate(90deg);
    }

    100% {
        transform: translate(-50px, 80px) scale(1.2) rotate(180deg);
    }
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2.5rem;
    position: relative;
    z-index: 10;
}

/* --- Navigation --- */
header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

nav {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2.5rem;
}

.logo {
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.03em;
}

.logo span {
    color: var(--accent);
}

.nav-links ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

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

.nav-links a:hover,
.nav-links a.active {
    color: var(--dark);
}

/* --- Cards / Frames --- */
.data-frame {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(10, 65, 86, 0.05);
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.data-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(232, 184, 16, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.data-frame:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(232, 184, 16, 0.3);
}

.data-frame:hover::before {
    opacity: 1;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--accent);
    color: var(--dark);
    box-shadow: 0 4px 15px rgba(232, 184, 16, 0.3);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(232, 184, 16, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--dark);
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(232, 184, 16, 0.3);
}

/* --- Hero --- */
.hero {
    padding: 8rem 2rem;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-size: clamp(3rem, 10vw, 5.5rem);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 2rem;
    letter-spacing: -0.04em;
    line-height: 1;
}

.hero p {
    font-size: 1.35rem;
    color: var(--text-muted);
    max-width: 850px;
    margin: 0 auto 3.5rem;
    line-height: 1.8;
}

/* --- Section Titles --- */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin: 8rem 0 4rem;
    color: var(--dark);
    position: relative;
    letter-spacing: -0.02em;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* --- Forms --- */
.form-container {
    max-width: 800px;
    margin: 4rem auto;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    padding: 4rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--dark);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    background: var(--white);
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text);
    -webkit-appearance: none;
    appearance: none;
}

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

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%235a7184' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    padding-right: 3rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(232, 184, 16, 0.1);
    transform: translateY(-1px);
}

/* --- Stats --- */
.stat-card {
    text-align: center;
    padding: 3rem;
    border-bottom: 6px solid var(--accent);
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.stat-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
    margin-bottom: 1rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.1em;
}

/* --- Footer --- */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 6rem 2rem 4rem;
    margin-top: 10rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--dark-lighter) 50%, var(--accent) 100%);
}

.footer-content {
    max-width: 1300px;
    margin: 0 auto;
    text-align: center;
}

footer a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

footer a:hover {
    color: var(--accent);
}

.donate-btn {
    background: var(--accent);
    color: var(--dark);
    padding: 1.25rem 3.5rem;
    font-size: 1.1rem;
    border-radius: 100px;
    box-shadow: 0 10px 30px rgba(232, 184, 16, 0.3);
}

.donate-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

/* Utility Classes */
.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

.glass-panel {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
}

@media (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }

    .hero h1 {
        font-size: 4rem;
    }

    .hero p {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    nav {
        padding: 1rem 1.5rem;
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        width: 100%;
    }

    .nav-links ul {
        justify-content: center;
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .hero {
        padding: 6rem 1rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.1rem;
        margin-bottom: 2.5rem;
    }

    .hero .btn-group {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .hero .btn {
        width: 100%;
    }

    .section-title {
        font-size: 2.25rem;
        margin: 6rem 0 3rem;
    }

    .form-container {
        padding: 2.5rem 1.5rem;
        margin: 2rem auto;
    }

    .stat-card {
        padding: 2rem;
    }

    .stat-number {
        font-size: 3rem;
    }

    .data-frame {
        padding: 2rem 1.5rem;
    }
}

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

    .logo {
        font-size: 1.5rem;
    }

    .nav-links ul {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .form-container {
        padding: 2rem 1rem;
    }

    .btn {
        padding: 0.85rem 1.5rem;
        font-size: 0.9rem;
    }
}