/* 
   TalentFlow AI - Premium Design System
   High-end Glassmorphism & High-Contrast Dark Mode
*/

:root {
    --bg-main: #0f172a;
    --bg-secondary: #020617;
    --bg-accent: #1e293b;
    --primary: #10b981; /* Emerald */
    --primary-glow: rgba(16, 185, 129, 0.3);
    --secondary: #3b82f6; /* Blue */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
    --glass: rgba(15, 23, 42, 0.7);
    --accent-gradient: linear-gradient(135deg, var(--primary), var(--secondary));
}

[data-theme="light"] {
    --bg-main: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-accent: #ffffff;
    --primary: #059669;
    --secondary: #2563eb;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: rgba(0, 0, 0, 0.08);
    --glass: rgba(255, 255, 255, 0.8);
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease;
}

nav {
    position: fixed;
    top: 0; width: 100%;
    padding: 20px 8%;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.nav-logo {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.theme-btn {
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    font-size: 1.1rem;
}

section {
    padding: 100px 8%;
    min-height: 100vh;
}

/* Animations */
.animate {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

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

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle at center, var(--primary-glow) 0%, transparent 70%);
}

.hero h1 {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 40px;
}

.btn-cta {
    display: inline-block;
    padding: 16px 32px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    transition: 0.3s;
    box-shadow: 0 10px 20px var(--primary-glow);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px var(--primary-glow);
}

/* Dashboard App UI */
.dashboard-card {
    background: var(--bg-accent);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.upload-box {
    border: 2px dashed var(--border);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    position: relative;
    transition: 0.3s;
}

.upload-box:hover {
    border-color: var(--primary);
    background: rgba(16, 185, 129, 0.05);
}

.upload-box input[type="file"] {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-box .icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: block;
}

#analyzeBtn {
    width: 100%;
    padding: 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
}

#analyzeBtn:disabled {
    background: var(--text-muted);
    opacity: 0.5;
    cursor: not-allowed;
}

/* Results Display */
.result-card {
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 16px;
    position: relative;
}

.score-text {
    position: absolute;
    top: 24px; right: 24px;
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    margin: 4px;
}

.tag-match { background: rgba(16, 185, 129, 0.1); color: var(--primary); border: 1px solid var(--primary); }
.tag-miss  { background: rgba(239, 68, 68, 0.1); color: #ef4444; border: 1px solid #ef4444; }

/* About Section */
.section-head {
    text-align: center;
    margin-bottom: 60px;
}

.section-head h2 { font-size: 3rem; font-weight: 900; margin-bottom: 16px; }

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.about-card {
    background: var(--bg-accent);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--border);
    transition: 0.3s;
}

.about-card:hover { transform: translateY(-10px); }

.about-card .icon { font-size: 2.5rem; margin-bottom: 24px; display: block; }

/* Avatar Section for Owner */
.avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 40px;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    font-weight: 900;
    margin: 0 auto 40px;
}

footer {
    padding: 60px 8%;
    text-align: center;
    border-top: 1px solid var(--border);
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }
