:root {
    --bg-color: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.7);
    --primary: #ff5722;
    --primary-glow: rgba(255, 87, 34, 0.2);
    --secondary: #ff8f00;
    --accent: #f59e0b;
    --text-main: #0f172a;
    --text-muted: #475569;
    --glass-border: rgba(0, 0, 0, 0.08);
    --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3, .logo {
    font-family: 'Outfit', sans-serif;
}

/* Background Mesh Gradient */
.mesh-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(circle at 0% 0%, rgba(255, 87, 34, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(255, 143, 0, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(248, 250, 252, 1) 0%, transparent 100%);
    animation: meshFlow 20s infinite alternate ease-in-out;
}

@keyframes meshFlow {
    0% { transform: scale(1) translate(0, 0); }
    50% { transform: scale(1.1) translate(2%, 2%); }
    100% { transform: scale(1) translate(-1%, 1%); }
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 8%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    letter-spacing: -0.5px;
}

.logo i {
    color: var(--primary);
    font-size: 2rem;
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

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

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-main);
}

/* Hero Section */
.hero {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 5%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition);
}

.hero-content {
    z-index: 2;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    font-weight: 800;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.5;
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    background: var(--secondary);
    box-shadow: 0 15px 30px var(--primary-glow);
}

.btn-glow {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 1.2rem 3rem;
    border-radius: 100px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    width: auto;
    min-width: 250px;
    box-shadow: 0 10px 30px var(--primary-glow);
}

.btn-glow:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px var(--primary-glow);
}

/* Upload Container */
.upload-container {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    backdrop-filter: blur(20px);
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    max-width: 500px;
    margin: 1rem auto 0;
}

.upload-container:hover {
    border-color: var(--primary);
    background: rgba(255, 87, 34, 0.05);
    transform: translateY(-5px);
}

.icon-circle {
    width: 70px;
    height: 70px;
    background: rgba(255, 87, 34, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary);
    font-size: 1.8rem;
}

.file-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem 2rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.file-info i {
    color: var(--primary);
}

#removeFile {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 1.1rem;
}

/* Info Sections */
.info-section {
    max-width: 1100px;
    margin: 6rem auto;
    padding: 0 5%;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 800;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.info-card {
    background: var(--card-bg);
    padding: 3rem 2rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.info-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    text-align: left;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.feature-item i {
    font-size: 1.5rem;
    color: #10b981;
    margin-top: 0.2rem;
}

.feature-item h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

/* Process Section */
.process-section {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* Results Section */
.results-section {
    max-width: 1300px;
    margin: 2rem auto;
    padding: 0 5%;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
}

.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.glass-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 87, 34, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.glass-card h3 {
    margin-bottom: 2rem;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-main);
}

.glass-card h3 i {
    color: var(--primary);
}

.score-card { grid-column: span 4; text-align: center; }
.summary-card { grid-column: span 8; }
.skills-card { grid-column: span 6; }
.jobs-card { grid-column: span 6; }
.improvement-card { grid-column: span 12; }

/* Progress Ring */
.score-container {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.progress-ring-circle {
    transition: stroke-dashoffset 1s ease-out;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

.score-text {
    position: absolute;
    font-size: 3rem;
    font-weight: 800;
}

.score-text span:last-child {
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* Tags */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag {
    background: rgba(255, 87, 34, 0.1);
    border: 1px solid rgba(255, 87, 34, 0.2);
    padding: 0.6rem 1.2rem;
    border-radius: 100px;
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 500;
}

/* Jobs Grid */
.jobs-grid {
    display: grid;
    gap: 1.2rem;
}

.job-item {
    background: rgba(0, 0, 0, 0.02);
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.job-item:hover {
    background: rgba(255, 87, 34, 0.05);
    border-color: var(--primary);
}

.job-item h4 {
    margin-bottom: 0.5rem;
    color: var(--text-main);
    font-size: 1.1rem;
}

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

/* Helpers */
.hidden { display: none !important; }

.loader {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255,255,255,0.2);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Animations */
.animate-up {
    animation: fadeInUp 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    opacity: 0;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

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

footer {
    padding: 6rem 2rem 3rem;
    border-top: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    font-size: 1.8rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.footer-logo i { color: var(--primary); }

.footer-content p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.social-links a {
    color: var(--text-muted);
    font-size: 1.4rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    font-size: 0.9rem;
}

.markdown-content {
    line-height: 1.8;
    color: var(--text-muted);
}

.markdown-content ul {
    padding-left: 1.5rem;
    margin-top: 1rem;
}

.markdown-content li {
    margin-bottom: 0.8rem;
}

@media (max-width: 1100px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        margin-top: 2rem;
    }
    .hero h1 { font-size: 3.5rem; }
    .hero p { margin: 0 auto 3rem; }
    .hero-visual { order: -1; }
    .score-card, .summary-card, .skills-card, .jobs-card { grid-column: span 12; }
}
