/* ============================================
   RMS Landing Page — Premium Stylesheet
   ============================================ */

@font-face {
    font-family: 'Jameel Noori Nastaleeq';
    src: url('https://cdn.jsdelivr.net/gh/nafeespp/urdu-fonts/Jameel-Noori-Nastaleeq.ttf') format('truetype');
    font-display: swap;
}

:root {
    --indigo: #4f46e5;
    --indigo-dark: #4338ca;
    --indigo-light: #eef2ff;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-400: #94a3b8;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-900: #0f172a;
    --emerald: #059669;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Plus Jakarta Sans', sans-serif; color: var(--slate-900); background: #fff; overflow-x: hidden; }

/* ---- NAVBAR ---- */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: transparent; transition: 0.35s;
}
.navbar.scrolled {
    background: rgba(255,255,255,0.95); backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.04); border-bottom: 1px solid var(--slate-100);
}
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 18px 30px;
    display: flex; justify-content: space-between; align-items: center;
}
.nav-brand {
    font-size: 1.6rem; font-weight: 900; color: white; text-decoration: none;
    display: flex; align-items: center; gap: 10px;
}
.navbar.scrolled .nav-brand { color: var(--slate-900); }
.brand-icon {
    width: 36px; height: 36px; background: var(--indigo); color: white;
    border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.1rem; font-weight: 900;
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
    color: rgba(255,255,255,0.8); text-decoration: none; font-weight: 700; font-size: 0.9rem;
    transition: 0.2s;
}
.navbar.scrolled .nav-links a { color: var(--slate-600); }
.nav-links a:hover { color: white; }
.navbar.scrolled .nav-links a:hover { color: var(--indigo); }
.nav-cta {
    padding: 10px 20px !important; border: 2px solid rgba(255,255,255,0.3) !important;
    border-radius: 12px !important;
}
.nav-cta-primary {
    padding: 10px 20px !important; background: var(--indigo) !important;
    border-radius: 12px !important; color: white !important;
}
.mobile-menu {
    display: none; background: none; border: none; color: white;
    font-size: 1.5rem; cursor: pointer;
}
.navbar.scrolled .mobile-menu { color: var(--slate-900); }

/* ---- HERO ---- */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    justify-content: center; text-align: center; padding: 120px 20px 80px;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 40%, #312e81 100%);
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: bgShift 20s linear infinite;
}
@keyframes bgShift { from { transform: translateY(0); } to { transform: translateY(40px); } }

.hero-container { position: relative; z-index: 2; max-width: 900px; }
.hero-badge {
    display: inline-block; background: rgba(79,70,229,0.2); color: #a5b4fc;
    padding: 8px 20px; border-radius: 50px; font-size: 0.85rem; font-weight: 800;
    margin-bottom: 30px; border: 1px solid rgba(79,70,229,0.3);
}
.hero h1 { font-size: 3.8rem; font-weight: 900; color: white; line-height: 1.1; margin-bottom: 20px; letter-spacing: -0.03em; }
.gradient-text { background: linear-gradient(135deg, #818cf8, #a78bfa, #c084fc); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { font-size: 1.4rem; color: #a5b4fc; font-weight: 600; margin-bottom: 15px; direction: rtl; font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', serif; line-height: 2.2; }
.hero-desc { font-size: 1.1rem; color: rgba(255,255,255,0.6); max-width: 700px; margin: 0 auto 40px; line-height: 1.7; }

.hero-actions { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; margin-bottom: 60px; }
.btn-hero-primary {
    padding: 18px 40px; background: var(--indigo); color: white; border-radius: 16px;
    font-weight: 800; font-size: 1.1rem; text-decoration: none; transition: 0.3s;
    box-shadow: 0 15px 30px -10px rgba(79,70,229,0.5);
}
.btn-hero-primary:hover { transform: translateY(-3px); background: var(--indigo-dark); }
.btn-hero-outline {
    padding: 18px 40px; background: transparent; color: white; border: 2px solid rgba(255,255,255,0.2);
    border-radius: 16px; font-weight: 800; font-size: 1.1rem; text-decoration: none; transition: 0.3s;
}
.btn-hero-outline:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05); }

.hero-stats { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.stat-pill {
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
    padding: 12px 24px; border-radius: 50px; color: rgba(255,255,255,0.7); font-size: 0.9rem; font-weight: 600;
}
.stat-num { color: white; font-weight: 900; }

/* ---- SECTIONS COMMON ---- */
.section-container { max-width: 1200px; margin: 0 auto; padding: 0 30px; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-badge {
    display: inline-block; background: var(--indigo-light); color: var(--indigo);
    padding: 6px 18px; border-radius: 50px; font-size: 0.8rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 15px;
}
.section-header h2 { font-size: 2.5rem; font-weight: 900; color: var(--slate-900); margin-bottom: 10px; }
.section-header p { font-size: 1.3rem; color: var(--slate-400); font-weight: 600; direction: rtl; font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', serif; line-height: 2.2; }

/* ---- FEATURES ---- */
.features { padding: 100px 0; background: var(--slate-50); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.feature-card {
    background: white; padding: 35px; border-radius: 24px; border: 1px solid var(--slate-100);
    transition: 0.3s; text-align: center;
}
.feature-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px -15px rgba(0,0,0,0.08); }
.feature-icon {
    width: 60px; height: 60px; border-radius: 18px; display: inline-flex;
    align-items: center; justify-content: center; font-size: 1.8rem; margin-bottom: 20px;
}
.feature-card h3 { font-size: 1.15rem; font-weight: 800; color: var(--slate-900); margin-bottom: 10px; }
.feature-card p { font-size: 1.05rem; color: var(--slate-600); line-height: 2; direction: rtl; font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', serif; }

/* ---- HOW IT WORKS ---- */
.how-section { padding: 100px 0; background: white; }
.steps-grid { display: flex; align-items: center; justify-content: center; gap: 0; flex-wrap: wrap; }
.step-card {
    background: var(--slate-50); padding: 40px 35px; border-radius: 24px; text-align: center;
    width: 280px; border: 1px solid var(--slate-100); transition: 0.3s;
}
.step-card:hover { transform: translateY(-5px); border-color: var(--indigo); }
.step-number {
    width: 50px; height: 50px; background: var(--indigo); color: white; border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.3rem; font-weight: 900; margin-bottom: 20px;
}
.step-card h3 { font-size: 1.1rem; font-weight: 800; color: var(--slate-900); margin-bottom: 10px; }
.step-card p { font-size: 1.05rem; color: var(--slate-600); direction: rtl; font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', serif; line-height: 2; }
.step-line { width: 60px; height: 3px; background: var(--slate-200); flex-shrink: 0; }

/* ---- LOGIN HUB ---- */
.login-section { padding: 100px 0; background: linear-gradient(180deg, var(--slate-50), white); }
.login-hub {
    max-width: 520px; margin: 0 auto; background: white; border-radius: 32px;
    padding: 0; box-shadow: 0 30px 60px -15px rgba(0,0,0,0.08);
    border: 1px solid var(--slate-100); overflow: hidden;
}
.login-tabs { display: flex; background: var(--slate-50); }
.login-tab {
    flex: 1; padding: 18px; background: none; border: none; font-size: 0.9rem;
    font-weight: 800; color: var(--slate-400); cursor: pointer; transition: 0.2s;
    border-bottom: 3px solid transparent; font-family: inherit;
}
.login-tab.active { color: var(--indigo); border-bottom-color: var(--indigo); background: white; }

.login-form { display: none; padding: 40px; }
.login-form.active { display: block; }

.login-error {
    background: #fff1f2; color: #be123c; padding: 15px 20px; font-weight: 700;
    font-size: 0.9rem; text-align: center; border-bottom: 1px solid #fecdd3;
}

.login-form .form-group { margin-bottom: 22px; }
.login-form label {
    display: block; font-size: 0.85rem; font-weight: 700; color: var(--slate-700);
    margin-bottom: 8px;
}
.login-form .form-input {
    width: 100%; height: 52px; padding: 0 18px; border-radius: 14px;
    border: 2px solid var(--slate-100); background: var(--slate-50);
    font-size: 1rem; font-weight: 600; color: var(--slate-900);
    font-family: inherit; transition: 0.2s;
}
.login-form .form-input:focus { border-color: var(--indigo); background: white; outline: none; }

.hint-badge {
    background: var(--slate-100); color: var(--slate-600); padding: 2px 8px;
    border-radius: 6px; font-size: 0.7rem; font-weight: 800; margin-left: 5px;
}

.btn-login {
    width: 100%; height: 56px; background: var(--indigo); color: white; border: none;
    border-radius: 16px; font-weight: 800; font-size: 1.05rem; cursor: pointer;
    transition: 0.3s; font-family: inherit;
    box-shadow: 0 10px 20px -8px rgba(79,70,229,0.4);
}
.btn-login:hover { background: var(--indigo-dark); transform: translateY(-2px); }
.btn-login.student { background: var(--emerald); box-shadow: 0 10px 20px -8px rgba(5,150,105,0.4); }
.btn-login.student:hover { background: #047857; }

.login-hint { text-align: center; margin-top: 20px; font-size: 0.8rem; color: var(--slate-400); font-weight: 600; }

/* ---- FOOTER ---- */
.site-footer { background: var(--slate-900); color: white; padding: 80px 0 0; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; padding-bottom: 50px; }
.footer-logo { font-size: 1.5rem; font-weight: 900; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.footer-brand p { color: var(--slate-400); font-size: 0.9rem; line-height: 1.6; margin-bottom: 8px; }
.footer-urdu { direction: rtl; font-size: 1.1rem !important; color: var(--slate-600) !important; font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', serif !important; line-height: 2 !important; }
.footer-links h4, .footer-contact h4 { font-size: 0.9rem; font-weight: 800; margin-bottom: 20px; color: white; text-transform: uppercase; letter-spacing: 0.1em; }
.footer-links a { display: block; color: var(--slate-400); text-decoration: none; font-size: 0.9rem; font-weight: 600; margin-bottom: 12px; transition: 0.2s; }
.footer-links a:hover { color: white; padding-left: 5px; }
.footer-contact p { color: var(--slate-400); font-size: 0.9rem; margin-bottom: 8px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08); padding: 25px 0; text-align: center;
}
.footer-bottom p { color: var(--slate-600); font-size: 0.85rem; font-weight: 600; }
.footer-bottom strong { color: var(--slate-400); }

/* ---- RESPONSIVE ---- */
@media (max-width: 992px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .hero h1 { font-size: 2.8rem; }
}
@media (max-width: 768px) {
    .nav-links { display: none; position: absolute; top: 70px; left: 0; right: 0; background: white; flex-direction: column; padding: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); border-radius: 0 0 20px 20px; gap: 15px; }
    .nav-links.open { display: flex; }
    .nav-links a { color: var(--slate-700) !important; }
    .mobile-menu { display: block; }
    .hero h1 { font-size: 2.2rem; }
    .hero-desc { font-size: 0.95rem; }
    .features-grid { grid-template-columns: 1fr; }
    .steps-grid { flex-direction: column; gap: 15px; }
    .step-line { width: 3px; height: 30px; }
    .step-card { width: 100%; }
    .login-hub { border-radius: 24px; }
    .login-form { padding: 30px; }
    .stat-pill { font-size: 0.8rem; padding: 10px 16px; }
}
