:root {
    --bg-color: #0b0d17;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-color: #3e64ff;
    --accent-hover: #2952e3;
    --error-color: #ff4b4b;
    --success-color: #00e676;
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: radial-gradient(circle at 50% 0%, #1a1f35 0%, #0b0d17 70%);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    padding: 10px 0;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-wrapper {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-right: 20px;
    font-weight: 500;
    transition: var(--transition);
}

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

.social-share {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-self: center;
}

.cta {
    justify-self: end;
}

/* Mobile Header Layout */
@media (max-width: 768px) {
    .nav-wrapper {
        display: flex;
        justify-content: space-between;
    }

    .nav-links {
        display: none;
    }
}

.social-share a {
    color: var(--text-secondary);
    transition: var(--transition);
    display: flex;
    /* Fix vertical alignment of SVGs */
    align-items: center;
}

.social-share a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.cta {
    transform: scale(0.6);
    transform-origin: right center;
}

.donate-btn {
    opacity: 0.8;
    transition: var(--transition);
}

.donate-btn:hover {
    opacity: 1;
}

/* Main Content */
main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.hero-text .lead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.hero-text a {
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.hero-text a:hover {
    border-bottom-color: var(--accent-color);
}

.credits {
    font-size: 0.9rem;
    color: var(--text-secondary);
    opacity: 0.7;
    text-align: left;
}

footer {
    padding: 20px 0;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Signup Card */
.signup-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-header h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 600;
}

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

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

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(0, 0, 0, 0.4);
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.2);
    padding: 5px;
    border-radius: 12px;
}

.radio-option {
    flex: 1;
    position: relative;
}

.radio-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-option label {
    display: block;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    margin: 0;
    color: var(--text-secondary);
    transition: var(--transition);
    font-weight: 500;
}

.radio-option input:checked+label {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 4px 12px rgba(62, 100, 255, 0.3);
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

#feedback-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 12px;
    font-size: 0.9rem;
    display: none;
}

.feedback-success {
    background: rgba(0, 230, 118, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(0, 230, 118, 0.2);
}

.feedback-error {
    background: rgba(255, 75, 75, 0.1);
    color: var(--error-color);
    border: 1px solid rgba(255, 75, 75, 0.2);
}

.earth-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 30px;
    box-shadow: 0 0 30px rgba(62, 100, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        /* Reduced from 40px */
        /* text-align: center; Removed centering */
    }

    .hero-text h1 {
        font-size: 2rem;
        /* Shrunk from 2.5rem */
    }

    .card-header h2 {
        font-size: 1.25rem;
        /* Shrunk from 1.5rem */
    }

    .earth-img {
        margin: 0 0 20px 0;
        /* Left align, reduced bottom margin */
        width: 120px;
        height: 120px;
    }

    /* Shrink Captcha */
    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: 0 0;
        filter: invert(0.9) hue-rotate(180deg);
        /* Force dark mode */
    }

    /* Reduce main padding */
    main {
        padding: 20px 0;
    }

    /* Reduce card padding */
    .signup-card {
        padding: 20px;
    }
}