/* =============================================
   PathFinder AI — Professional Redesign
   ============================================= */

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

:root {
    --primary: #4f46e5;
    --primary-2: #7c3aed;
    --teal: #0ea5e9;
    --teal-2: #06b6d4;
    --amber: #f59e0b;
    --green: #10b981;
    --danger: #ef4444;

    --bg-main: #f0f2ff;
    --bg-sidebar: #ffffff;
    --card: #ffffff;
    --card-2: #f8f9fe;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow-sm: 0 2px 8px rgba(79,70,229,0.07);
    --shadow-md: 0 8px 30px rgba(79,70,229,0.12);
    --shadow-lg: 0 20px 60px rgba(79,70,229,0.18);
    --gradient-hero: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #0ea5e9 100%);
    --gradient-btn: linear-gradient(135deg, #4f46e5, #7c3aed);
    --gradient-btn-teal: linear-gradient(135deg, #0ea5e9, #06b6d4);
}

.dark-mode {
    --bg-main: #080c18;
    --bg-sidebar: #0f1626;
    --card: #141d35;
    --card-2: #1a2540;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border: #1e2d4a;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.4);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    display: flex;
    min-height: 100vh;
    transition: background 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5 {
    font-family: 'Syne', sans-serif;
}

/* ===================== SIDEBAR ===================== */
.sidebar {
    width: 260px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 2rem 1.4rem;
    position: fixed;
    height: 100vh;
    z-index: 100;
    transition: background 0.3s ease;
}

.logo {
    font-family: 'Syne', sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 2.5rem;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 2px;
}
.logo span { color: var(--primary-2); }
.logo em {
    font-style: normal;
    font-size: 0.62rem;
    background: var(--gradient-hero);
    color: white;
    padding: 2px 7px;
    border-radius: 20px;
    margin-left: 6px;
    letter-spacing: 0.5px;
    font-weight: 700;
    vertical-align: middle;
}

.sidebar-nav ul { list-style: none; }

.sidebar-nav li {
    padding: 11px 16px;
    margin-bottom: 6px;
    border-radius: 14px;
    cursor: pointer;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
    letter-spacing: 0.2px;
}

.sidebar-nav li i {
    width: 18px;
    font-size: 0.95rem;
}

.sidebar-nav li:hover {
    background: rgba(79,70,229,0.08);
    color: var(--primary);
}

.sidebar-nav li.active {
    background: var(--gradient-btn);
    color: white;
    box-shadow: 0 6px 20px rgba(79,70,229,0.3);
}

.sidebar-footer { margin-top: auto; }

.theme-toggle-btn {
    width: 100%;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--card-2);
    color: var(--text-muted);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.theme-toggle-btn:hover {
    background: rgba(79,70,229,0.08);
    color: var(--primary);
    border-color: var(--primary);
}

/* ===================== MAIN CONTENT ===================== */
.main-content {
    margin-left: 260px;
    flex: 1;
    padding: 2.5rem 4%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

.content-section { min-height: 80vh; }

/* ===================== HERO ===================== */

/* Floating blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
    animation: blobFloat 8s ease-in-out infinite alternate;
}
.blob-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, #7c3aed, #4f46e5);
    top: -120px; right: -100px;
    animation-delay: 0s;
}
.blob-2 {
    width: 350px; height: 350px;
    background: radial-gradient(circle, #0ea5e9, #06b6d4);
    bottom: 80px; left: 5%;
    animation-delay: 3s;
}
.blob-3 {
    width: 250px; height: 250px;
    background: radial-gradient(circle, #f59e0b, #ef4444);
    top: 40%; right: 15%;
    animation-delay: 5s;
}

@keyframes blobFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 20px) scale(1.08); }
}

.dark-mode .blob { opacity: 0.2; }

.hero-wrapper {
    position: relative;
    z-index: 2;
    max-width: 680px;
    padding-top: 3rem;
    animation: heroFadeIn 0.8s ease both;
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(79,70,229,0.1);
    border: 1px solid rgba(79,70,229,0.25);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 30px;
    margin-bottom: 1.6rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    animation: pulseDot 1.5s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.5); }
    50% { box-shadow: 0 0 0 6px rgba(16,185,129,0); }
}

.hero-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-main);
    margin-bottom: 1.4rem;
    letter-spacing: -1.5px;
}

.hero-gradient {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 2.2rem;
    font-weight: 400;
}

.hero-cta-row {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-cta {
    padding: 16px 34px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 12px 30px rgba(79,70,229,0.35);
}

.hero-stat-row {
    display: flex;
    align-items: center;
    gap: 18px;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}

.hero-stat strong {
    font-family: 'Syne', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat span {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: var(--border);
}

/* Hero Feature Cards */
.hero-cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 4rem;
    position: relative;
    z-index: 2;
    animation: heroFadeIn 1s 0.2s ease both;
}

.feat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px 24px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

.feat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: 20px 20px 0 0;
}

.feat-card--blue::before { background: linear-gradient(90deg, #4f46e5, #7c3aed); }
.feat-card--purple::before { background: linear-gradient(90deg, #7c3aed, #a855f7); }
.feat-card--teal::before { background: linear-gradient(90deg, #0ea5e9, #06b6d4); }

.feat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.feat-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.feat-card--blue .feat-icon { background: rgba(79,70,229,0.1); color: #4f46e5; }
.feat-card--purple .feat-icon { background: rgba(124,58,237,0.1); color: #7c3aed; }
.feat-card--teal .feat-icon { background: rgba(14,165,233,0.1); color: #0ea5e9; }

.feat-card h4 {
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
}

.feat-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===================== CONTAINER HEADER ===================== */
.container-header {
    margin-bottom: 2rem;
}

.container-header h2 {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.container-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.step-hint {
    color: var(--text-muted);
    font-size: 0.87rem;
    margin-bottom: 20px;
    margin-top: 4px;
}

/* ===================== ASSESSMENT CARD ===================== */
.assessment-card {
    background: var(--card);
    padding: 40px;
    border-radius: 28px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

/* ===================== STEPPER ===================== */
.stepper {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
}

.step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--text-muted);
    background: var(--card-2);
    transition: all 0.3s ease;
}

.step span {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.step.active .step-num {
    background: var(--gradient-btn);
    border-color: transparent;
    color: white;
    box-shadow: 0 6px 16px rgba(79,70,229,0.35);
}

.step.active span { color: var(--primary); }

.step-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    margin: 0 12px;
    margin-bottom: 22px;
}

/* ===================== BRANCH CARDS ===================== */
.branch-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.branch-card {
    background: var(--card-2);
    border: 2px solid var(--border);
    padding: 30px 24px;
    border-radius: 22px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.branch-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
}

.branch-cse::before { background: radial-gradient(circle at center, rgba(79,70,229,0.08), transparent); }
.branch-ece::before { background: radial-gradient(circle at center, rgba(16,185,129,0.08), transparent); }
.branch-mech::before { background: radial-gradient(circle at center, rgba(245,158,11,0.08), transparent); }

.branch-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.branch-card:hover::before { opacity: 1; }
.branch-cse:hover { border-color: #4f46e5; }
.branch-ece:hover { border-color: #10b981; }
.branch-mech:hover { border-color: #f59e0b; }

.dept-icon {
    font-size: 2.2rem;
    margin-bottom: 14px;
    display: block;
}
.branch-cse .dept-icon { color: #4f46e5; }
.branch-ece .dept-icon { color: #10b981; }
.branch-mech .dept-icon { color: #f59e0b; }

.branch-card h4 {
    font-family: 'Syne', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-main);
}

.branch-card p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ===================== BADGE ===================== */
.badge {
    background: rgba(79,70,229,0.1);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 20px;
    border: 1px solid rgba(79,70,229,0.2);
    letter-spacing: 0.3px;
}

/* ===================== CHECKBOX GRID ===================== */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.chip { cursor: pointer; }
.chip input { display: none; }
.chip span {
    display: block;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 0.83rem;
    transition: all 0.2s;
    background: var(--card-2);
    color: var(--text-muted);
}

.chip span:hover {
    border-color: var(--primary);
    background: rgba(79,70,229,0.06);
    color: var(--primary);
}

.chip input:checked + span {
    background: var(--gradient-btn);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(79,70,229,0.3);
}

/* ===================== MARKS INPUT ===================== */
.mark-input-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: var(--card-2);
    border-radius: 14px;
    margin-bottom: 10px;
    border: 1px solid var(--border);
    transition: border-color 0.2s;
}

.mark-input-group:hover { border-color: var(--primary); }

.mark-input-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}

.mark-input-group input {
    width: 80px;
    padding: 10px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
    background: var(--card);
    color: var(--text-main);
    transition: border-color 0.2s;
}

.mark-input-group input:focus {
    outline: none;
    border-color: var(--primary);
}

/* ===================== BUTTONS ===================== */
.btn-primary {
    background: var(--gradient-btn);
    color: white;
    border: none;
    padding: 13px 28px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.2px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(79,70,229,0.35);
    filter: brightness(1.05);
}

.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text-main);
    padding: 13px 28px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: 'DM Sans', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: var(--card-2);
    border-color: var(--primary);
    color: var(--primary);
}

.flex-btns { display: flex; gap: 14px; margin-top: 30px; }

/* ===================== RESULTS ===================== */
.results-grid { display: flex; flex-direction: column; gap: 20px; }

.career-card {
    background: var(--card);
    padding: 32px 36px;
    border-radius: 22px;
    border: 1px solid var(--border);
    border-left: 5px solid var(--primary);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.career-card:hover { box-shadow: var(--shadow-md); }

.prob-bar-bg {
    width: 100%;
    height: 8px;
    background: var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.prob-bar-fill {
    height: 100%;
    background: var(--gradient-hero);
    border-radius: 10px;
    transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===================== ACTION BUTTONS (RESULTS) ===================== */
.action-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.action-btns button {
    height: 40px;
    padding: 0 18px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: all 0.22s ease;
    letter-spacing: 0.2px;
}

.btn-ai-roadmap {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    box-shadow: 0 4px 14px rgba(79,70,229,0.3);
}

.btn-interview {
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
    color: white;
    box-shadow: 0 4px 14px rgba(14,165,233,0.3);
}

.btn-assignment {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: white;
    box-shadow: 0 4px 14px rgba(245,158,11,0.3);
}

.btn-report {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 14px rgba(16,185,129,0.3);
}

.action-btns button:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.action-btns button:active { transform: scale(0.97); }
.action-btns button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ===================== AI ROADMAP BOX ===================== */
.ai-roadmap-box {
    margin-top: 12px;
    padding: 22px;
    background: var(--card-2);
    border-radius: 16px;
    border-left: 4px solid var(--primary-2);
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--text-main);
}

/* ===================== LOADER / SPINNER ===================== */
.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 50px;
    color: var(--text-muted);
    font-weight: 500;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.85s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===================== CENTER BTN ===================== */
.center-btn {
    display: flex;
    justify-content: center;
    margin: 2.5rem 0;
}

/* ===================== FOOTER ===================== */
.footer {
    margin-top: auto;
    padding: 1.8rem 0;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.82rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--primary); }

/* ===================== MODALS ===================== */
.modal-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.modal-header h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-main);
}

.modal-close {
    background: var(--card-2);
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover { background: #fee2e2; color: #ef4444; border-color: #fca5a5; }

.modal-input {
    width: 100%;
    padding: 13px 16px;
    border-radius: 12px;
    border: 1.5px solid var(--border);
    background: var(--card-2);
    color: var(--text-main);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    transition: border-color 0.2s;
}

.modal-input:focus {
    outline: none;
    border-color: var(--primary);
}

.report-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Interview Chat */
#interviewChat {
    flex: 1;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--card-2);
}

.ai-msg {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 16px 16px 16px 4px;
    font-size: 0.88rem;
    line-height: 1.55;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text-main);
    align-self: flex-start;
}

.user-msg {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 16px 16px 4px 16px;
    font-size: 0.88rem;
    line-height: 1.55;
    background: var(--gradient-btn);
    color: white;
    align-self: flex-end;
}

.speaking-word {
    color: #a78bfa;
    font-weight: 700;
    text-decoration: underline dotted;
}

/* Quiz */
.quiz-progress-bar-wrap {
    height: 6px;
    background: var(--border);
    border-radius: 10px;
    overflow: hidden;
    margin: 8px 0;
}

.quiz-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--gradient-hero);
    border-radius: 10px;
    transition: width 0.4s ease;
}

.question-count-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 12px;
}

.question-box h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.5;
    color: var(--text-main);
}

.option-card {
    width: 100%;
    background: var(--card-2);
    border: 1.5px solid var(--border);
    padding: 14px 18px;
    border-radius: 12px;
    text-align: left;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.88rem;
    color: var(--text-main);
    font-family: 'DM Sans', sans-serif;
    transition: all 0.2s;
    margin-bottom: 8px;
}

.option-card:hover {
    background: rgba(79,70,229,0.06);
    border-color: var(--primary);
    color: var(--primary);
}

/* Quiz intro */
.quiz-intro {
    text-align: center;
    padding: 30px 20px;
}

.quiz-intro h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.1rem;
    margin: 16px 0 10px;
    color: var(--text-main);
}

.quiz-intro p {
    color: var(--text-muted);
    font-size: 0.87rem;
    margin-bottom: 20px;
}

/* Quiz results */
.quiz-results {
    text-align: center;
    padding: 24px;
}

.quiz-results h2 {
    font-family: 'Syne', sans-serif;
    font-size: 1.4rem;
    margin: 16px 0 10px;
    color: var(--text-main);
}

.quiz-results p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* Mic pulse */
.mic-active {
    background: #ef4444 !important;
    color: white !important;
    border-color: #ef4444 !important;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

/* Modal Overlay */
#modalOverlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    z-index: 1000;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
    .sidebar { width: 220px; }
    .main-content { margin-left: 220px; padding: 1.5rem 4%; }
    .hero-cards-row { grid-template-columns: 1fr; }
    .branch-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .sidebar { display: none; }
    .main-content { margin-left: 0; padding: 1.5rem 5%; }
    .hero-title { font-size: 2.2rem; }
    .assessment-card { padding: 24px 18px; }
    .hero-cta-row { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
    .action-btns button { min-width: 100%; }
}

/* ===================== PHASE BADGES ===================== */
.phase-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.phase-badge--blue { background: rgba(79,70,229,0.1); color: #4f46e5; border: 1px solid rgba(79,70,229,0.2); }
.phase-badge--purple { background: rgba(124,58,237,0.1); color: #7c3aed; border: 1px solid rgba(124,58,237,0.2); }

/* ===================== HERO OUTLINE BUTTON ===================== */
.btn-outline {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.6);
    color: var(--text-main);
    padding: 13px 28px;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    font-family: 'DM Sans', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.25s ease;
    backdrop-filter: blur(4px);
}
.btn-outline:hover {
    background: rgba(124,58,237,0.1);
    border-color: var(--primary-2);
    color: var(--primary-2);
    transform: translateY(-2px);
}

/* ===================== FEAT CARD EXTRAS ===================== */
.feat-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(79,70,229,0.1);
    color: #4f46e5;
    margin-bottom: 10px;
}
.feat-tag--purple { background: rgba(124,58,237,0.1); color: #7c3aed; }
.feat-tag--teal { background: rgba(14,165,233,0.1); color: #0ea5e9; }
.feat-cta {
    display: block;
    margin-top: 14px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #4f46e5;
    letter-spacing: 0.3px;
}

/* ===================== PHASE 2 JOB CARDS ===================== */
.job-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    margin: 20px 0;
}

.job-card {
    background: var(--card-2);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 20px 16px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.job-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-btn);
    opacity: 0;
    transition: opacity 0.25s;
}

.job-card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: var(--shadow-md); }
.job-card:hover::before { opacity: 1; }
.job-card.selected { border-color: var(--primary-2); background: rgba(124,58,237,0.06); box-shadow: 0 0 0 3px rgba(124,58,237,0.15); }
.job-card.selected::before { opacity: 1; background: linear-gradient(90deg, #7c3aed, #a855f7); }

.job-card-icon {
    font-size: 1.6rem;
    margin-bottom: 10px;
    display: block;
}

.job-card h4 {
    font-family: 'Syne', sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--text-main);
    line-height: 1.3;
}

.job-card p {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ===================== PHASE 2 TIMELINE CARDS ===================== */
.timeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 14px;
    margin: 20px 0;
}

.timeline-card {
    background: var(--card-2);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 22px 16px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
}

.timeline-card:hover { transform: translateY(-4px); border-color: var(--teal); box-shadow: 0 8px 24px rgba(14,165,233,0.2); }
.timeline-card.selected { border-color: var(--teal); background: rgba(14,165,233,0.07); box-shadow: 0 0 0 3px rgba(14,165,233,0.15); }

.timeline-icon { font-size: 2rem; margin-bottom: 10px; }

.timeline-card h4 {
    font-family: 'Syne', sans-serif;
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 6px;
}

.timeline-card p { font-size: 0.75rem; color: var(--text-muted); }

/* ===================== SELECTED JOB PILL ===================== */
.selected-job-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(124,58,237,0.1);
    border: 1px solid rgba(124,58,237,0.25);
    color: #7c3aed;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
}

/* ===================== ROADMAP SUMMARY STRIP ===================== */
.roadmap-summary-strip {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.summary-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
}

.summary-chip i { color: var(--primary); font-size: 0.9rem; }

/* ===================== ROADMAP RESULT CARD ===================== */
.roadmap-result-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 36px;
    box-shadow: var(--shadow-md);
    line-height: 1.75;
    color: var(--text-main);
    font-size: 0.92rem;
}

/* Month timeline blocks */
.month-block {
    border-left: 3px solid var(--primary);
    padding: 16px 20px;
    margin-bottom: 18px;
    border-radius: 0 14px 14px 0;
    background: var(--card-2);
    position: relative;
    transition: border-color 0.2s;
}

.month-block:hover { border-color: var(--primary-2); }

.month-block::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 20px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid var(--card);
}

.month-label {
    font-family: 'Syne', sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 8px;
}

.roadmap-section-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 24px 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Skills to develop chips */
.skill-chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.skill-chip {
    background: rgba(79,70,229,0.1);
    color: var(--primary);
    border: 1px solid rgba(79,70,229,0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
}

.skill-chip.new { background: rgba(16,185,129,0.1); color: #059669; border-color: rgba(16,185,129,0.2); }

/* Project cards inside roadmap */
.project-mini-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.project-mini-card .proj-num {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--gradient-btn);
    color: white;
    font-size: 0.78rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: 'Syne', sans-serif;
}

.project-mini-card p { font-size: 0.85rem; color: var(--text-main); line-height: 1.5; margin: 0; }

/* Roadmap formatted content */
.roadmap-result-card strong { color: var(--primary); }
.roadmap-result-card br + br { display: block; content: ''; margin-top: 6px; }

/* ===================== RESPONSIVE PHASE 2 ===================== */
@media (max-width: 640px) {
    .job-card-grid { grid-template-columns: 1fr 1fr; }
    .timeline-grid { grid-template-columns: 1fr 1fr; }
    .roadmap-result-card { padding: 20px 16px; }
}