:root {
    /* Color Palette - Dark Premium */
    --bg-dark: #0f172a;
    /* Slate 900 */
    --bg-darker: #020617;
    /* Slate 950 */
    --primary: #06b6d4;
    /* Cyan 500 */
    --primary-glow: rgba(6, 182, 212, 0.5);
    --secondary: #8b5cf6;
    /* Violet 500 */
    --secondary-glow: rgba(139, 92, 246, 0.5);
    --text-main: #f8fafc;
    /* Slate 50 */
    --text-muted: #94a3b8;
    /* Slate 400 */
    --glass-bg: rgba(30, 41, 59, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-hover: rgba(30, 41, 59, 0.8);

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    --gradient-text: linear-gradient(to right, #22d3ee, #c084fc);

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(6, 182, 212, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 40%);
    min-height: 100vh;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(15, 23, 42, 0.8);
    border-bottom: 1px solid var(--glass-border);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 40px;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-muted);
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 99px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(6, 182, 212, 0.4);
}

.btn-secondary {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: var(--glass-border);
    border-color: var(--primary);
}

.btn-disabled {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.5;
}

/* AI Companion */
.ai-companion-container {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 100px;
    height: 100px;
    z-index: 2000;
    cursor: pointer;
    perspective: 1000px;
}

.ai-companion-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
    background: #0f172a;
    flex-shrink: 0;
    /* Prevent squishing in flex containers */
    aspect-ratio: 1 / 1;
    /* Enforce square ratio */
    /* Match body bg to blend any non-transparent edges */
    animation: float 6s ease-in-out infinite;
    position: relative;
    z-index: 2002;
}

.ai-companion-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ai-message-bubble {
    position: absolute;
    bottom: 110px;
    right: 0;
    width: 280px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--primary);
    padding: 20px;
    border-radius: 20px;
    border-bottom-right-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 2001;
    pointer-events: none;
    /* Prevent clicks when hidden */
}

.ai-message-bubble.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}


/* Glass Cards */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 30px;
    transition: all 0.3s ease;
}

.glass-card:hover {
    background: var(--card-hover);
    border-color: var(--primary);
    transform: translateY(-5px);
}

/* Sections */
.hero-section {
    padding-top: 160px;
    padding-bottom: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat-item h3 {
    font-size: 2rem;
    color: var(--secondary);
}

.stat-item p {
    font-size: 0.9rem;
}

/* Job Grid */
.job-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.job-tag {
    background: rgba(139, 92, 246, 0.2);
    color: #c084fc;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
}

.learning-path-preview {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

.learning-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--primary);
}

/* Form Styles */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-muted);
}

.form-input {
    width: 100%;
    padding: 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    transition: 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.15);
}

/* Progress-bar (New Minimalist) */
/* Progress-bar (New Minimalist) */
.progress-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
    position: relative;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.progress-container::before {
    content: '';
    position: absolute;
    top: 20px;
    /* Center with circle height */
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--glass-border);
    transform: translateY(-50%);
    z-index: 1;
}

.step-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    background: none;
    gap: 12px;
}

.progress-step {
    width: 40px;
    height: 40px;
    background: var(--bg-dark);
    border-radius: 50%;
    border: 2px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: 0.3s;
}

.progress-step.active {
    border-color: var(--primary);
    background: var(--bg-dark);
    color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.progress-step.completed {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--bg-dark);
}

.progress-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
    text-align: center;
}

.progress-step.active~.progress-label {
    color: var(--primary);
    font-weight: 500;
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes progressIndeterminate {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

/* Footer */
.footer {
    border-top: 1px solid var(--glass-border);
    background: rgba(2, 6, 23, 0.5);
    padding: 60px 0 30px;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-link {
    color: var(--text-muted);
    transition: color 0.3s;
    font-size: 0.95rem;
}

.footer-link:hover {
    color: var(--primary);
}

.copyright {
    color: rgba(148, 163, 184, 0.6);
    font-size: 0.85rem;
    margin-top: 20px;
}

/* Mobile Responsiveness */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .header-content {
        padding: 0 20px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--bg-darker);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-links.active {
        display: flex;
    }

    .hero-section {
        flex-direction: column;
        padding-top: 120px;
        text-align: center;
    }

    .hero-text {
        margin-bottom: 40px;
    }

    .hero-stats {
        justify-content: center;
    }

    .progress-container {
        overflow-x: auto;
        padding-bottom: 10px;
        justify-content: flex-start;
        gap: 40px;
    }

    .progress-container::before {
        width: 100%;
    }

    .glass-card {
        padding: 20px;
    }

    /* Stack Grids */
    .job-grid,
    div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    .ai-companion-container {
        bottom: 20px;
        right: 20px;
        width: 80px;
        height: 80px;
    }
}

/* Result Card */
.result-card {
    text-align: center;
    padding: 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    backdrop-filter: blur(12px);
}

.score-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 8px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 auto 30px;
    color: var(--primary);
    box-shadow: 0 0 30px var(--primary-glow);
}

.ai-feedback-box {
    background: rgba(15, 23, 42, 0.6);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    margin-bottom: 30px;
    text-align: left;
}

.learning-list-item {
    background: rgba(15, 23, 42, 0.6);
    padding: 16px;
    border-radius: 12px;

    margin-bottom: 12px;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Modal */
.modal-overlay {
    background: rgba(0, 0, 0, 0.6);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-glass-card {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    width: 90%;
    max-width: 650px;
    border-radius: 24px;
    padding: 40px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-glass-card {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.modal-close:hover {
    color: white;
}