:root {
    --bg-primary: #0c0e1a;
    --bg-card: rgba(20, 24, 41, 0.85);
    --text-primary: #e8eaf0;
    --text-secondary: #8b92a8;
    --accent-orange: #f0820a;
    --accent-blue: #4a9eff;
    --accent-cyan: #00d4aa;
    --border: #1e2340;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background image */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('Carrier-Python.avif') center center / cover no-repeat;
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}

/* Dark overlay for readability */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(12, 14, 26, 0.6) 0%,
        rgba(12, 14, 26, 0.4) 50%,
        rgba(12, 14, 26, 0.7) 100%
    );
    pointer-events: none;
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 4rem;
}

.cmdr-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-orange);
    border: 1px solid var(--accent-orange);
    padding: 0.3rem 0.8rem;
    border-radius: 3px;
    margin-bottom: 1rem;
}

.header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.header .subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Projects */
.projects {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    transition: border-color 0.2s, transform 0.2s;
    display: block;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.project-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-2px);
}

.project-card h2 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.project-card .role {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: var(--accent-orange);
    color: var(--bg-primary);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
}

.project-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-card .link-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.project-card .link-row a {
    color: var(--accent-blue);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--accent-blue);
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.project-card .link-row a:hover {
    background: var(--accent-blue);
    color: var(--bg-primary);
}

/* About section */
.about {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 4rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.about h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--accent-cyan);
}

.about p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.about p:last-child {
    margin-bottom: 0;
}

.about .inline-link {
    color: var(--accent-blue);
    text-decoration: none;
}

.about .inline-link:hover {
    color: var(--accent-cyan);
}

/* Footer */
.footer {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.footer a {
    color: var(--accent-blue);
    text-decoration: none;
}

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

/* Support section */
.support {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 4rem;
    text-align: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.support h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--accent-orange);
}

.support p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.donate-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.donate-btn {
    display: inline-block;
    color: var(--bg-primary);
    background: var(--accent-orange);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.7rem 2rem;
    border-radius: 8px;
    transition: background 0.2s, transform 0.2s;
}

.donate-btn:hover {
    background: #ff9a2a;
    transform: translateY(-1px);
}

.donate-btn--recurring {
    background: var(--accent-blue);
}

.donate-btn--recurring:hover {
    background: #6bb3ff;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 2rem 1.2rem;
    }

    .header h1 {
        font-size: 2rem;
    }

    .header .subtitle {
        font-size: 1rem;
    }

    .project-card {
        padding: 1.5rem;
    }

    .project-card h2 {
        font-size: 1.2rem;
        flex-wrap: wrap;
    }

    .project-card .link-row {
        gap: 0.5rem;
    }

    .project-card .link-row a {
        font-size: 0.8rem;
        padding: 0.35rem 0.7rem;
    }
}

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

    .header h1 {
        font-size: 1.7rem;
    }

    .project-card {
        padding: 1.2rem;
    }

    .project-card h2 {
        font-size: 1.1rem;
    }
}
