:root {
    /* Light theme */
    --bg: #f9fafb;
    --text: #111827;
    --muted: #6b7280;
    --surface: #ffffff;
    --card: #ffffff;
    --border: #e5e7eb;
    --input-bg: #ffffff;
    --input-border: #d1d5db;
    --primary: #4169E1;
    --primary-strong: #1E3A8A;
}

[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0b1220;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --surface: #0f172a;
    --card: #111827;
    --border: #1f2937;
    --input-bg: #1a1f2e;
    --input-border: #374151;
    --primary: #60a5fa;
    --primary-strong: #3b82f6;
}

html, body {
    font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
    font-size: 16px;
    color: var(--text);
    background: var(--bg);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-strong); }

h1, h2, h3, h4, h5, h6 { font-weight: 700; color: var(--text); margin-top: 0; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}
.btn-primary { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%); color: white; }
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(65, 105, 225, 0.4);
}
.btn-secondary { background: var(--surface); color: var(--primary); }
.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}
.btn-light { background: var(--surface); color: var(--primary); }
.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 255, 255, 0.3);
}

.form-control, .form-input, .form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 1rem;
    background: var(--input-bg);
    color: var(--text);
    transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.form-control:focus, .form-input:focus, .form-textarea:focus { border-color: var(--primary); outline: none; }
.form-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}
.validation-message {
    color: #e50000;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 1rem;
}
.alert-success { background: #e6ffed; color: #1a7f37; }
.alert-danger, .alert-error { background: #ffe6e6; color: #b32121; }
.mt-3 {
    margin-top: 1rem;
}
.mt-4 {
    margin-top: 2rem;
}
.text-center {
    text-align: center;
}
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(.23,1.01,.32,1);
}
.scroll-animate.animated {
    opacity: 1;
    transform: translateY(0);
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    h1 {
        font-size: 2rem;
    }
}