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

:root {
    --primary-color: #1e3a8a;
    --primary-light: #3b82f6;
    --secondary-color: #0284c7;
    --accent-color: #f59e0b;
    --accent-hover: #d97706;
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #1e3a8a 100%);
    --card-bg: #ffffff;
    --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --border-radius: 16px;
    --font-family: 'Prompt', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    font-family: var(--font-family);
    background-color: #f8fafc;
    color: #334155;
    overflow-x: hidden;
}

/* Header & Hero Section */
.hero-section {
    background: var(--bg-gradient);
    color: white;
    padding: 80px 0 100px;
    position: relative;
    border-radius: 0 0 40px 40px;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.badge-live-count {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 8px 20px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.25;
    background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphism Cards */
.competency-card {
    background: #ffffff;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    border: 1px solid #f1f5f9;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.competency-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.12);
    border-color: #cbd5e1;
}

.competency-badge {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
}

/* Specific competency card headers */
.comp-1 { background: #eff6ff; color: #1d4ed8; }
.comp-2 { background: #f0fdf4; color: #15803d; }
.comp-3 { background: #fffbeb; color: #b45309; }
.comp-4 { background: #fef2f2; color: #b91c1c; }
.comp-5 { background: #f5f3ff; color: #6d28d9; }

/* Subject List */
.subject-pill {
    background: #f8fafc;
    border-left: 4px solid var(--primary-light);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

/* Registration Section & Form */
#register {
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 40%, #edf2f7 100%);
    position: relative;
    overflow: hidden;
}

#register::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #2563eb 0%, #f59e0b 50%, #1d4ed8 100%);
}

.registration-card {
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.15), 0 0 0 1px rgba(37, 99, 235, 0.08);
    border: 1px solid #e2e8f0;
    padding: 45px;
    position: relative;
    overflow: hidden;
}

.registration-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, #3b82f6, #f59e0b, #10b981);
}

.form-step-badge {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.form-control, .form-select {
    border-radius: 12px;
    padding: 13px 18px;
    font-size: 1rem;
    border: 1.8px solid #cbd5e1;
    background-color: #f8fafc;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control:focus, .form-select:focus {
    background-color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18);
    transform: translateY(-1px);
}

.input-group-text {
    border-radius: 12px 0 0 12px;
    border: 1.8px solid #cbd5e1;
    border-right: none;
    background-color: #f1f5f9;
}

.input-group .form-control {
    border-radius: 0 12px 12px 0;
}

.form-label {
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.highlight-box-phone {
    background: #fffbeb;
    border: 1.5px dashed #f59e0b;
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
}

.highlight-box-phone:focus-within {
    background: #ffffff;
    border-color: #d97706;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.15);
}

.btn-primary-custom {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #1d4ed8 100%);
    color: white;
    font-weight: 700;
    font-size: 1.15rem;
    padding: 16px 36px;
    border-radius: 16px;
    border: none;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.4);
    letter-spacing: 0.5px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 50%, #0f172a 100%);
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 16px 35px rgba(37, 99, 235, 0.5);
    color: #ffffff;
}

.btn-primary-custom:active {
    transform: translateY(-1px);
}

/* Section Header */
.section-title {
    font-weight: 700;
    font-size: 2rem;
    color: #0f172a;
    position: relative;
    display: inline-block;
    margin-bottom: 12px;
}

.section-subtitle {
    color: #64748b;
    font-size: 1.05rem;
}

/* Footer */
footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 40px 0;
    margin-top: 80px;
}

footer a {
    color: #cbd5e1;
    text-decoration: none;
}

footer a:hover {
    color: white;
}

/* Admin Styling */
.admin-card {
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.stat-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    .registration-card {
        padding: 24px 18px;
    }
}
