:root {
    --primary: #7c7cff;
    --secondary: #00ffd5;
    --dark: #0f1220;
    --card: #181c3a;
    --text: #e6e6eb;
    --muted: #9aa0c7;
    --gradient: linear-gradient(135deg, #7c7cff, #00ffd5);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: radial-gradient(circle at top, #1b1f4a, #0b0e1a);
    color: var(--text);
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: auto;
    padding: 40px 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    color: var(--muted);
    font-size: 1rem;
}

.card {
    background: rgba(24, 28, 58, 0.9);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
}

.form-card label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

input[type="file"],
textarea {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: none;
    margin-bottom: 20px;
    background: #0f1330;
    color: var(--text);
    font-size: 0.95rem;
}

textarea {
    resize: vertical;
}

button {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    background: var(--gradient);
    color: #000;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(124, 124, 255, 0.4);
}

.result-card h2 {
    margin-top: 0;
    font-family: 'Space Grotesk', sans-serif;
}

pre {
    white-space: pre-wrap;
    background: #0f1330;
    padding: 20px;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.note {
    margin-top: 15px;
    font-size: 0.8rem;
    color: var(--muted);
    text-align: center;
}
.cta-btn {
    display: inline-block;
    margin-top: 30px;
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 700;
    text-decoration: none;
    background: var(--gradient);
    color: #000;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(124, 124, 255, 0.4);
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 30px;
    background: rgba(15, 18, 32, 0.85);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    margin-bottom: 40px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    font-size: 1.6rem;
}

.brand {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
}

.nav-right a {
    margin-left: 18px;
    text-decoration: none;
    font-weight: 600;
    color: var(--muted);
    transition: color 0.2s ease;
}

.nav-right a:hover {
    color: var(--secondary);
}
.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.score-ring {
    position: relative;
    width: 120px;
    margin: 0 auto 20px;
}

.score-ring svg {
    transform: rotate(-90deg);
}

.score-ring circle {
    fill: none;
    stroke-width: 10;
}

.score-ring circle:first-child {
    stroke: #2a2f6f;
}

.score-ring .progress {
    stroke: #00ffd5;
    stroke-dasharray: 314;
    stroke-dashoffset: 88;
    transition: stroke-dashoffset 0.5s ease;
}

.score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 800;
    font-size: 1.2rem;
}
.social-buttons {
    margin-top: 25px;
}

.social-buttons a {
    display: inline-block;
    margin: 8px;
    padding: 10px 18px;
    border-radius: 12px;
    background: #0f1330;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    border: 1px solid rgba(124, 124, 255, 0.2);
    transition: all 0.2s ease;
}

.social-buttons a:hover {
    background: var(--gradient);
    color: #000;
}
.logo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}
.logo-img {
    filter: drop-shadow(0 0 6px rgba(0, 255, 213, 0.6));
}
.logo-img {
    height: 40px;
}
.skills {
    margin: 10px 0 20px;
}

.skill {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 12px;
    margin: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    background: #0f1330;
    border: 1px solid rgba(124, 124, 255, 0.2);
}

.skill.matched {
    background: rgba(0, 255, 213, 0.15);
    color: #00ffd5;
}

.skill.missing {
    background: rgba(255, 90, 90, 0.15);
    color: #ff5a5a;
}
/* Tabs */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    background: #0f1330;
    color: var(--muted);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
}

.tab-btn.active {
    background: var(--gradient);
    color: #000;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Summary */
.summary-text {
    text-align: center;
    margin-top: 15px;
    color: #cfd3ff;
}

/* Skill Columns */
.skill-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.skill-box {
    background: #0f1330;
    padding: 20px;
    border-radius: 14px;
}

.muted {
    color: var(--muted);
}

/* AI Box */
.ai-box {
    background: #0f1330;
    padding: 20px;
    border-radius: 12px;
    line-height: 1.6;
}
.improve-card {
    background: #0f1330;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 12px;
    border-left: 4px solid #00ffd5;
}
/* Active nav link */
.nav-right a.active {
    color: var(--secondary);
}

/* Result headings */
.result-card h2 {
    margin-top: 0;
}

/* Improvement meta pills */
.improve-meta {
    margin-top: 8px;
}

.pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 6px;
}

/* Priority */
.priority-high { background: rgba(255,90,90,0.2); color: #ff5a5a; }
.priority-medium { background: rgba(255,180,0,0.2); color: #ffb400; }
.priority-low { background: rgba(0,255,213,0.2); color: #00ffd5; }

/* Impact */
.impact-high { border: 1px solid #00ffd5; }
.impact-medium { border: 1px solid #ffb400; }
.impact-low { border: 1px solid #9aa0c7; }

/* Effort */
.effort-low { background: rgba(0,255,213,0.15); }
.effort-medium { background: rgba(255,180,0,0.15); }
.effort-high { background: rgba(255,90,90,0.15); }

.career-warning {
    background: rgba(255, 180, 0, 0.12);
    border-left: 5px solid #ffb400;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    color: #ffdf9e;
    font-size: 0.95rem;
}
.gap-label {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: 6px;
}

.gap-label.resume-fix {
    background: rgba(0,255,213,0.15);
    color: #00ffd5;
}

.gap-label.career-gap {
    background: rgba(255,90,90,0.15);
    color: #ff5a5a;
}
.hero-tagline {
    margin-top: 12px;
    font-size: 1.1rem;
    color: #cbd5f5;
    line-height: 1.5;
}
.job-fit-card {
    background: rgba(99,102,241,0.12);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.job-fit {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    margin-top: 10px;
}

.job-fit.strong-fit {
    background: rgba(0,255,0,0.15);
    color: #4ade80;
}

.job-fit.partial-fit {
    background: rgba(255,200,0,0.15);
    color: #facc15;
}

.job-fit.weak-fit {
    background: rgba(255,90,90,0.15);
    color: #ff5a5a;
}
/* =========================
   Mobile Optimization
   ========================= */
   @media (max-width: 768px) {

    body {
        padding: 0;
        font-size: 15px;
    }

    /* Navbar */
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 16px;
    }

    .nav-left {
        margin-bottom: 10px;
    }

    .nav-right {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        width: 100%;
    }

    .nav-right a {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    /* Headings */
    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    /* Cards */
    .card,
    .job-fit-card,
    .career-warning {
        padding: 16px;
        border-radius: 14px;
    }

    /* Skill lists */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    /* Improvement cards */
    .improve-card {
        padding: 14px;
    }

    .improve-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 8px;
    }

    /* Buttons */
    .cta-btn,
    button {
        width: 100%;
        padding: 12px;
        font-size: 1rem;
    }

    /* Job fit badge */
    .job-fit {
        font-size: 0.9rem;
        padding: 6px 12px;
    }

    /* Footer */
    footer {
        text-align: center;
        font-size: 0.85rem;
        padding: 16px;
    }
}
.results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
a, button {
    -webkit-tap-highlight-color: transparent;
}

button, .cta-btn {
    cursor: pointer;
}
.or-text {
    text-align: center;
    color: #94a3b8;
    margin: 8px 0;
    font-size: 0.85rem;
}

.social-icon {
    width: 22px;
    height: 22px;
    margin-left: 10px;
    opacity: 0.85;
}

.social-icon:hover {
    opacity: 1;
    transform: scale(1.1);
}
.privacy-banner {
    background: rgba(34,197,94,0.12);
    color: #86efac;
    text-align: center;
    font-size: 0.85rem;
    padding: 8px 12px;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 12px;
}

.stat-box {
    background: rgba(99,102,241,0.12);
    padding: 16px;
    border-radius: 12px;
    text-align: center;
}

.stat-num {
    font-size: 1.6rem;
    font-weight: 700;
    display: block;
}

.stat-label {
    font-size: 0.85rem;
    color: #cbd5f5;
}
