:root {
    /* Color Palette */
    --primary: #4F46E5;
    --primary-light: #818CF8;
    --primary-dark: #3730A3;
    --secondary: #0EA5E9;
    --bg-color: #0F172A;
    --card-bg: rgba(30, 41, 59, 0.7);
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --success: #10B981;
    --success-bg: rgba(16, 185, 129, 0.1);
    --warning: #F59E0B;
    --danger: #EF4444;
    --danger-bg: rgba(239, 68, 68, 0.1);

    /* Effects */
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --glow: 0 0 20px rgba(79, 70, 229, 0.4);
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);

    /* Typography */
    --font-main: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden;
}

/* Background Animated Elements */
.background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out alternate;
}

.circle-1 {
    width: 400px;
    height: 400px;
    background-color: var(--primary);
    top: -100px;
    left: -100px;
}

.circle-2 {
    width: 300px;
    height: 300px;
    background-color: var(--secondary);
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
}

.circle-3 {
    width: 250px;
    height: 250px;
    background-color: #8B5CF6;
    top: 40%;
    left: 40%;
    animation-delay: -10s;
    opacity: 0.3;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

/* Main Layout */
.container {
    width: 100%;
    max-width: 1100px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    z-index: 1;
}

/* Header */
.app-header {
    text-align: center;
    margin-bottom: 1rem;
}

.logo {
    font-size: 3rem;
    color: var(--primary-light);
    margin-bottom: 0.5rem;
    display: inline-block;
    filter: drop-shadow(var(--glow));
}

.app-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff, #a5b4fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.app-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Section Grid */
.analyzer-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Cards (Glassmorphism) */
.card {
    background: var(--card-bg);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.6);
}

.card h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #E2E8F0;
}

.card h2 i {
    color: var(--primary-light);
}

/* Upload Area */
.upload-area {
    margin-bottom: 1rem;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    background: rgba(15, 23, 42, 0.4);
    cursor: pointer;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--primary-light);
    background: rgba(99, 102, 241, 0.1);
}

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-main);
}

.upload-label i {
    font-size: 2rem;
    color: var(--primary-light);
    margin-bottom: 0.5rem;
}

.upload-label span {
    font-size: 1rem;
    font-weight: 500;
}

.upload-label small {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.divider span {
    padding: 0 10px;
}

/* Input Area */
textarea {
    width: 100%;
    flex-grow: 1;
    min-height: 250px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    resize: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

textarea::placeholder {
    color: var(--text-muted);
}

/* Button */
.btn {
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary), #6366F1);
    color: white;
    box-shadow: var(--glow);
}

.primary-btn:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.6);
}

.primary-btn:active {
    transform: translateY(1px);
}

.primary-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Results Section */
.score-container {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.score-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.score-header h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: #E2E8F0;
}

#score-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary-light), #38BDF8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.progress-track {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 10px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skills-box {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    flex: 1;
}

.skills-box h3 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skills-box.found h3 i {
    color: var(--success);
}

.skills-box.missing h3 i {
    color: var(--danger);
}

.skills-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skills-list li {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    animation: fadeIn 0.4s ease forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.skills-list li.empty-state {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-style: italic;
    padding: 0;
    opacity: 1;
    animation: none;
}

.found .skills-list li:not(.empty-state) {
    background: var(--success-bg);
    border-color: rgba(16, 185, 129, 0.3);
    color: #34D399;
}

.missing .skills-list li:not(.empty-state) {
    background: var(--danger-bg);
    border-color: rgba(239, 68, 68, 0.3);
    color: #F87171;
}

/* Responsive Design */
@media (max-width: 860px) {
    .analyzer-section {
        grid-template-columns: 1fr;
    }

    .logo {
        font-size: 2.5rem;
    }

    .app-header h1 {
        font-size: 2rem;
    }

    .container {
        padding: 1rem;
    }
}