/**
 * MINEDUB Teacher Recruitment Portal - Premium Design System
 * 2026 Modern Government Standard
 */

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

:root {
    /* Brand Colors - Deep & Premium */
    --brand-primary: #1e3a8a;       /* Deep Royal Blue */
    --brand-secondary: #3b82f6;     /* Vibrant Blue */
    --brand-accent: #f59e0b;        /* Gold/Amber */
    --brand-success: #10b981;       /* Emerald */
    --brand-danger: #ef4444;        /* Rose Red */
    
    /* Neutral Palette */
    --surface-dark: #0f172a;        /* Navy Black */
    --surface-light: #ffffff;
    --surface-gray: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    
    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    
    /* Spacing & Layout */
    --header-height: 80px;
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    
    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* ============================================
   GLOBAL RESET & TYPOGRAPHY
   ============================================ */
body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--surface-gray);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--surface-dark);
}

/* ============================================
   GLASSMORPHISM UTILITIES
   ============================================ */
.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

/* ============================================
   PREMIUM NAVBAR
   ============================================ */
.minedub-navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.minedub-navbar.scrolled {
    padding: 0.75rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--brand-primary) !important;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-secondary) !important;
    padding: 0.6rem 1.25rem !important;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--brand-primary) !important;
    background: rgba(30, 58, 138, 0.05);
}

/* ============================================
   HERO SECTION - MESH GRADIENT
   ============================================ */
.hero-section {
    position: relative;
    padding: 8rem 0 6rem;
    overflow: hidden;
    background: var(--surface-dark);
    color: white;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.4) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(245, 158, 11, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(30, 58, 138, 1) 0%, transparent 60%);
    filter: blur(60px);
    animation: pulse-bg 10s ease-in-out infinite alternate;
}

@keyframes pulse-bg {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.1); opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 800;
    background: linear-gradient(to right, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    text-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* ============================================
   PREMIUM BUTTONS
   ============================================ */
.btn-premium {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.4);
    color: white;
}

.btn-premium::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
    transition: 0.5s;
}

.btn-premium:hover::after {
    left: 100%;
}

.btn-outline-glass {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.btn-outline-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    color: white;
    transform: translateY(-3px);
}

/* ============================================
   FEATURE CARDS (STEPS)
   ============================================ */
.feature-card-premium {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 3rem 2rem;
    height: 100%;
    position: relative;
    border: 1px solid var(--gray-100);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
    overflow: hidden;
}

.feature-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card-premium:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.feature-card-premium:hover::before {
    transform: scaleX(1);
}

.step-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    color: var(--surface-gray);
    opacity: 0.5;
    line-height: 1;
    transition: all 0.3s ease;
}

.feature-card-premium:hover .step-badge {
    color: var(--brand-primary);
    opacity: 0.1;
    transform: scale(1.2) rotate(-10deg);
}

.icon-box-premium {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--brand-primary);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.feature-card-premium:hover .icon-box-premium {
    background: var(--brand-primary);
    color: white;
    transform: rotate(5deg);
}

/* ============================================
   FORMS & INPUTS - MODERN
   ============================================ */
.form-floating > .form-control {
    border-radius: var(--border-radius-md);
    border: 2px solid var(--gray-200);
    padding-top: 1.625rem;
    padding-bottom: 0.625rem;
}

.form-floating > .form-control:focus {
    border-color: var(--brand-secondary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.card-form {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    .feature-card-premium {
        padding: 2rem;
        margin-bottom: 1rem;
    }
}
