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

:root {
    --primary: #5f57ff;
    --primary-2: #4338ca;
    --accent: #18d6a3;
    --navy: #17145f;
    --navy-2: #20186f;
    --ink: #1f2552;
    --muted: #6c7294;
    --surface: #ffffff;
    --soft: #f6f7fc;
    --line: #e9ebf5;
    --shadow: 0 22px 55px rgba(37, 35, 92, .12);
}

html { scroll-behavior: smooth; }
body {
    font-family: "Cairo", sans-serif;
    background: #fff;
    color: var(--ink);
    overflow-x: hidden;
}

.admission-navbar {
    padding: 17px 0;
    transition: .3s ease;
    background: rgba(22, 18, 92, .08);
    backdrop-filter: blur(10px);
}
.admission-navbar.scrolled {
    padding: 10px 0;
    background: rgba(22, 18, 92, .94);
    box-shadow: 0 10px 30px rgba(9, 8, 48, .16);
}
.navbar-brand { font-size: 1.3rem; }
.brand-mark {
    width: 38px; height: 38px; border-radius: 12px;
    display: grid; place-items: center;
    color: #0d6f59; background: var(--accent);
    box-shadow: 0 8px 20px rgba(24, 214, 163, .26);
}
.navbar .nav-link { color: rgba(255,255,255,.76); font-weight: 600; position: relative; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: #fff; }
.navbar .nav-link.active::after {
    content: ""; position: absolute; right: 8px; left: 8px; bottom: 2px; height: 2px; border-radius: 99px; background: var(--accent);
}

.hero-section {
    min-height: 760px;
    position: relative;
    color: #fff;
    background:
        radial-gradient(circle at 83% 24%, rgba(97, 87, 255, .36), transparent 25%),
        radial-gradient(circle at 13% 76%, rgba(24, 214, 163, .08), transparent 27%),
        linear-gradient(135deg, #17145f 0%, #21186f 60%, #17145f 100%);
    overflow: hidden;
}
.hero-lines,
.hero-lines::before,
.hero-lines::after {
    position: absolute; content: ""; inset: 0; pointer-events: none;
    background-image: linear-gradient(125deg, transparent 22%, rgba(255,255,255,.045) 22.2%, transparent 22.5%, transparent 55%, rgba(255,255,255,.035) 55.2%, transparent 55.5%);
}
.hero-lines::before { transform: translateX(18%); }
.hero-lines::after { transform: translateX(-26%) scaleX(-1); }
.hero-content { z-index: 2; }
.hero-badge {
    width: fit-content;
    display: flex; align-items: center; gap: 8px;
    border: 1px solid rgba(255,255,255,.13); background: rgba(255,255,255,.07);
    padding: 8px 13px; border-radius: 999px; color: #dfe3ff; font-size: .9rem;
}
.hero-badge i { color: var(--accent); }
.hero-title {
    font-weight: 800; line-height: 1.38; font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -.8px;
}
.hero-title span { color: #fff; position: relative; white-space: nowrap; }
.hero-title span::after { content: ""; position: absolute; right: 0; left: 0; bottom: -7px; height: 5px; border-radius: 30px; background: var(--accent); }
.hero-subtitle { color: rgba(255,255,255,.75); line-height: 2; font-size: 1.05rem; max-width: 660px; }
.hero-cta {
    border: 0; border-radius: 999px; padding: 13px 25px; font-weight: 700;
    background: var(--accent); color: #0d5f50; box-shadow: 0 14px 34px rgba(24,214,163,.22);
}
.hero-cta:hover, .hero-cta:focus { background: #31e0b1; color: #0d5f50; transform: translateY(-2px); }
.hero-link { color: #fff; text-decoration: none; font-weight: 700; display: inline-flex; gap: 8px; align-items: center; }
.hero-link i { font-size: 1.5rem; color: var(--accent); }
.setup-alert { background: rgba(255,193,7,.13); color: #ffe09c; border: 1px solid rgba(255,193,7,.26); border-radius: 15px; padding: 12px 15px; max-width: 560px; }

.hero-visual-wrap { max-width: 590px; margin-inline: auto; position: relative; padding: 42px 28px; }
.hero-visual-card {
    position: relative; z-index: 2; padding: 12px; background: rgba(255,255,255,.94); border-radius: 34px;
    border: 1px solid rgba(255,255,255,.45); box-shadow: 0 35px 70px rgba(4, 4, 46, .38); transform: rotate(-2deg);
}
.hero-visual-card::before {
    content: ""; position: absolute; width: 82%; height: 84%; border: 2px solid rgba(101,91,255,.65); border-radius: 34px; right: -36px; top: -27px; z-index: -1;
}
.hero-visual-card img { border-radius: 26px; width: 100%; aspect-ratio: 1.72 / 1; object-fit: cover; display: block; }
.floating-card {
    position: absolute; z-index: 4; background: #fff; color: var(--ink); box-shadow: 0 16px 38px rgba(5, 6, 56, .25);
    border-radius: 16px; padding: 12px 15px; display: flex; align-items: center; gap: 9px; font-weight: 700;
}
.floating-card i { color: var(--accent); font-size: 1.5rem; }
.floating-card strong { color: var(--primary); font-size: 1.4rem; }
.floating-card span { font-size: .85rem; }
.card-one { top: 12px; left: 0; }
.card-two { right: 4px; bottom: 12px; }
.hero-wave {
    position: absolute; left: -3%; right: -3%; bottom: -40px; height: 95px; border-radius: 50% 50% 0 0 / 100% 100% 0 0; background: #fff; transform: rotate(-1deg);
}

.stats-section { position: relative; z-index: 5; margin-top: -26px; }
.stats-panel { background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.stat-item { padding: 24px 25px; display: flex; gap: 14px; align-items: center; border-left: 1px solid var(--line); }
.stat-item:last-child { border-left: 0; }
.stat-icon { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; color: var(--primary); background: #eeecff; font-size: 1.2rem; }
.stat-item strong { display: block; font-size: 1.5rem; line-height: 1.2; }
.stat-item span { color: var(--muted); font-size: .83rem; }

.section-space { padding: 96px 0; }
.section-heading { max-width: 680px; }
.eyebrow { color: var(--primary); font-size: .83rem; font-weight: 800; letter-spacing: .4px; }
.section-heading h2, .results-header h2 { font-weight: 800; margin-top: 7px; }
.section-heading p { color: var(--muted); line-height: 1.9; }
.how-card { position: relative; padding: 30px; border: 1px solid var(--line); border-radius: 24px; background: #fff; transition: .25s ease; overflow: hidden; }
.how-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.how-card > i { width: 56px; height: 56px; border-radius: 17px; display: grid; place-items: center; background: #eeecff; color: var(--primary); font-size: 1.45rem; margin-bottom: 24px; }
.how-card h3 { font-size: 1.18rem; font-weight: 800; }
.how-card p { color: var(--muted); line-height: 1.9; font-size: .92rem; margin: 0; }
.step-no { position: absolute; left: 22px; top: 18px; font-size: 2.3rem; color: #eff0f8; font-weight: 800; }

.results-section { background: var(--soft); min-height: 520px; }
.results-empty { max-width: 680px; margin: auto; padding: 45px 25px; }
.empty-icon { width: 84px; height: 84px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 28px; background: #eeecff; color: var(--primary); font-size: 2rem; }
.results-empty h2 { font-weight: 800; }
.results-empty p { color: var(--muted); line-height: 1.9; }
.btn-soft { background: #fff; border: 1px solid var(--line); color: var(--ink); border-radius: 13px; padding: 10px 14px; }
.result-disclaimer { padding: 13px 16px; border: 1px solid #d9d5ff; background: #f0efff; border-radius: 14px; display: flex; gap: 10px; color: #4d4898; font-size: .88rem; }

.result-card {
    background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: grid;
    grid-template-columns: 62px minmax(0, 1fr) minmax(220px, 310px); gap: 20px; align-items: center;
    margin-bottom: 14px; transition: .22s ease; box-shadow: 0 8px 24px rgba(43,47,90,.04);
}
.result-card:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(43,47,90,.09); }
.result-rank { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; font-weight: 800; color: var(--primary); background: #eeecff; }
.result-title { font-size: 1rem; font-weight: 800; margin: 0 0 8px; line-height: 1.7; }
.result-title-row { display: flex; align-items: flex-start; gap: 9px; flex-wrap: wrap; margin-bottom: 8px; }
.result-title-row .result-title { margin-bottom: 0; flex: 1 1 320px; }
.match-badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 999px; background: #eefbf7; border: 1px solid #ccefe4; color: #087a60; font-size: .72rem; font-weight: 800; white-space: nowrap; }
.result-meta { display: flex; flex-wrap: wrap; gap: 7px 13px; color: var(--muted); font-size: .79rem; }
.result-meta span { display: inline-flex; align-items: center; gap: 5px; }
.history-chips { margin-top: 11px; display: flex; gap: 6px; flex-wrap: wrap; }
.history-chip { font-size: .72rem; padding: 5px 8px; border-radius: 8px; background: #f4f5fa; color: #555c80; }
.probability-box { min-width: 0; }
.probability-caption { color: var(--muted); font-size: .72rem; font-weight: 700; margin-bottom: 2px; }
.margin-highlight { margin-top: 10px; border-radius: 11px; padding: 8px 10px; display: flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 700; }
.margin-highlight.positive { background: #ecfbf6; color: #087a60; }
.margin-highlight.negative { background: #fff8e8; color: #9a6a00; }
.probability-box.chance-strong .probability-top strong { color: #087a60; }
.probability-box.chance-good .probability-top strong { color: #2f65bb; }
.probability-box.chance-ambitious .probability-top strong { color: #9a6a00; }
.probability-box.chance-limited .probability-top strong { color: #a14f58; }
.probability-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.probability-top strong { font-size: 1.25rem; color: var(--ink); }
.probability-top span { font-size: .76rem; color: var(--muted); }
.progress { height: 9px; background: #edeef5; border-radius: 99px; overflow: hidden; }
.progress-bar { background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 99px; }
.predicted-line { margin-top: 9px; font-size: .76rem; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }

.developer-section { padding: 70px 0 90px; background: #fff; }
.developer-card { max-width: 900px; margin: auto; display: flex; align-items: center; gap: 22px; border: 1px solid var(--line); border-radius: 26px; padding: 22px 26px; box-shadow: 0 18px 45px rgba(33,30,92,.07); }
.developer-photo-wrap { position: relative; flex: 0 0 auto; }
.developer-photo { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; padding: 3px; border: 2px solid var(--accent); }
.dev-status { position: absolute; left: -3px; bottom: 6px; width: 29px; height: 29px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; border: 3px solid #fff; font-size: .72rem; }
.developer-info h3 { margin: 4px 0; font-size: 1.25rem; font-weight: 800; }
.developer-info p { color: var(--muted); margin: 0; font-size: .9rem; }
.developer-links { display: flex; gap: 8px; margin-top: 12px; }
.developer-links a { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; text-decoration: none; background: #f0efff; color: var(--primary); transition: .2s; }
.developer-links a:hover { background: var(--primary); color: #fff; }
.dev-note { margin-right: auto; color: var(--muted); display: flex; align-items: center; gap: 10px; font-size: .8rem; }
.dev-note i { font-size: 1.7rem; color: var(--accent); }
.site-footer { background: #151252; color: rgba(255,255,255,.64); padding: 24px 0; font-size: .8rem; }

.admission-modal { border: 0; border-radius: 27px; padding: 13px; box-shadow: 0 30px 80px rgba(14,15,60,.24); }
.admission-modal .modal-title { font-weight: 800; font-size: 1.4rem; }
.form-label { font-weight: 700; font-size: .9rem; }
.form-select, .form-control { border-radius: 13px; border-color: #e1e3ee; min-height: 52px; }
.form-select:focus, .form-control:focus { border-color: rgba(95,87,255,.55); box-shadow: 0 0 0 .2rem rgba(95,87,255,.10); }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice-card input { display: none; }
.choice-card span { cursor: pointer; min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 13px; border: 1px solid #e1e3ee; color: var(--muted); transition: .2s; }
.choice-card input:checked + span { border-color: var(--primary); background: #efeeff; color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.average-field { position: relative; }
.average-field input { font-size: 1.45rem; font-weight: 800; padding-left: 52px; }
.average-field > span { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); font-weight: 800; color: var(--primary); }
.submit-check { min-height: 56px; border: 0; border-radius: 14px; font-weight: 800; background: linear-gradient(135deg, var(--primary), #7168ff); }
.submit-check:hover { background: linear-gradient(135deg, #5148f4, #655cf5); }

@media (max-width: 991.98px) {
    .admission-navbar { background: rgba(22,18,92,.88); }
    .hero-section { min-height: auto; padding-top: 80px; }
    .hero-section .min-vh-100 { min-height: auto !important; }
    .hero-visual-wrap { max-width: 520px; padding-top: 10px; }
    .hero-title { font-size: clamp(2rem, 8vw, 3rem); }
    .stat-item { border-bottom: 1px solid var(--line); }
    .result-card { grid-template-columns: 52px minmax(0,1fr); }
    .probability-box { grid-column: 2 / -1; }
    .developer-card { align-items: flex-start; }
    .dev-note { display: none; }
}

@media (max-width: 575.98px) {
    .hero-section { padding-top: 94px; }
    .hero-visual-wrap { padding-inline: 8px; }
    .hero-visual-card::before { right: -10px; top: -13px; }
    .floating-card { padding: 9px 11px; }
    .card-one { left: 2px; top: -4px; }
    .card-two { right: 0; bottom: 1px; }
    .hero-wave { height: 60px; bottom: -29px; }
    .stats-section { margin-top: 0; }
    .stat-item { padding: 18px 12px; gap: 10px; }
    .stat-icon { width: 38px; height: 38px; border-radius: 12px; }
    .stat-item strong { font-size: 1.25rem; }
    .section-space { padding: 70px 0; }
    .result-card { grid-template-columns: 46px minmax(0,1fr); gap: 11px; padding: 17px 14px; }
    .result-rank { width: 42px; height: 42px; border-radius: 13px; }
    .developer-card { flex-direction: column; text-align: center; align-items: center; }
    .developer-links { justify-content: center; }
    .admission-modal { padding: 4px; border-radius: 22px; }
}
