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

:root {
  --primary: #6C63FF;
  --secondary: #FF6584;
  --accent: #43E97B;
  --dark: #0F0E17;
  --dark2: #1A1A2E;
  --card: #16213E;
  --text: #FFFFFE;
  --muted: #A7A9BE;
  --gradient: linear-gradient(135deg, #6C63FF, #43E97B);
}

/* ===== LIGHT MODE ===== */
[data-theme="light"] {
  --dark:  #F4F4F8;
  --dark2: #E8E8F0;
  --card:  #FFFFFF;
  --text:  #0F0E17;
  --muted: #6B6B80;
}

[data-theme="light"] body {
  background: var(--dark);
  color: var(--text);
}

[data-theme="light"] nav {
  background: rgba(244,244,248,0.92);
  border-bottom: 1px solid rgba(108,99,255,0.15);
}

[data-theme="light"] .feature-card,
[data-theme="light"] .talent-card,
[data-theme="light"] .profile-card,
[data-theme="light"] .auth-card,
[data-theme="light"] .roadmap-content,
[data-theme="light"] .stat-big {
  background: #FFFFFF;
  border-color: rgba(108,99,255,0.15);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

[data-theme="light"] .features { background: var(--dark2); }
[data-theme="light"] .roadmap  { background: var(--dark2); }
[data-theme="light"] footer    { background: var(--dark2); border-top: 1px solid rgba(108,99,255,0.15); }

[data-theme="light"] .benefits-table td { border-bottom: 1px solid #E5E7EB; }
[data-theme="light"] .benefits-table tr:nth-child(even) td { background: #F9FAFB; }

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea {
  background: #F9FAFB;
  border-color: rgba(108,99,255,0.25);
  color: var(--text);
}

[data-theme="light"] .tag { background: rgba(108,99,255,0.1); }

[data-theme="light"] .hero::before {
  background: radial-gradient(circle, rgba(108,99,255,0.08) 0%, transparent 70%);
}

[data-theme="light"] .filter-form input,
[data-theme="light"] .filter-form select {
  background: #fff;
  border-color: rgba(108,99,255,0.2);
  color: var(--text);
}

/* transition for smooth switch */
body, nav, .feature-card, .talent-card, .profile-card,
.auth-card, footer, .form-group input, .form-group select,
.form-group textarea, .benefits-table td {
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--dark);
  color: var(--text);
  overflow-x: hidden;
}

/* NAVBAR */
nav {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  padding: 18px 60px;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(15,14,23,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(108,99,255,0.2);
}
.logo {
  font-size: 1.4rem; font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  text-decoration: none;
}
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .95rem; transition: color .3s; }
.nav-links a:hover { color: var(--primary); }
.nav-btn {
  background: var(--gradient); color: white; border: none;
  padding: 10px 24px; border-radius: 25px; cursor: pointer;
  font-weight: 600; font-size: .9rem; text-decoration: none;
  transition: opacity .3s, transform .2s;
}
.nav-btn:hover { opacity: .85; transform: translateY(-1px); }

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

.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(108,99,255,0.15);
  border: 1px solid rgba(108,99,255,0.3);
  cursor: pointer; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .3s, transform .2s;
}
.theme-toggle:hover {
  background: rgba(108,99,255,0.3);
  transform: rotate(20deg) scale(1.1);
}

/* HERO */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  justify-content: center; text-align: center;
  padding: 100px 20px 60px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(108,99,255,.15) 0%, transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%,-50%); pointer-events: none;
}
.hero-badge {
  display: inline-block;
  background: rgba(108,99,255,.15); border: 1px solid rgba(108,99,255,.4);
  color: #a89fff; padding: 6px 18px; border-radius: 20px;
  font-size: .85rem; margin-bottom: 24px; letter-spacing: 1px;
}
.hero h1 { font-size: clamp(2.5rem,6vw,5rem); font-weight: 900; line-height: 1.1; margin-bottom: 24px; }
.hero h1 span { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 580px; margin: 0 auto 40px; line-height: 1.7; }
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn-primary {
  background: var(--gradient); color: white; padding: 14px 36px;
  border-radius: 30px; text-decoration: none; font-weight: 700; font-size: 1rem;
  border: none; cursor: pointer; display: inline-flex; align-items: center;
  transition: transform .2s, box-shadow .3s;
  box-shadow: 0 4px 20px rgba(108,99,255,.4);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(108,99,255,.6); }

.btn-outline {
  border: 2px solid rgba(108,99,255,.5); color: var(--text);
  padding: 14px 36px; border-radius: 30px; text-decoration: none;
  font-weight: 600; font-size: 1rem; display: inline-flex; align-items: center;
  transition: border-color .3s, background .3s;
}
.btn-outline:hover { border-color: var(--primary); background: rgba(108,99,255,.1); }

.hero-stats { display: flex; gap: 48px; justify-content: center; margin-top: 64px; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-item .num { font-size: 2.2rem; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-item .label { font-size: .85rem; color: var(--muted); margin-top: 4px; }

/* SECTIONS */
section { padding: 100px 60px; }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: clamp(1.8rem,4vw,2.8rem); font-weight: 800; margin-bottom: 12px; }
.section-title h2 span { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.section-title p { color: var(--muted); font-size: 1rem; max-width: 500px; margin: 0 auto; }

/* FEATURES */
.features { background: var(--dark2); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 28px; max-width: 1200px; margin: 0 auto; }
.feature-card {
  background: var(--card); border: 1px solid rgba(108,99,255,.15);
  border-radius: 20px; padding: 36px 28px;
  transition: transform .3s, border-color .3s, box-shadow .3s;
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gradient); opacity: 0; transition: opacity .3s;
}
.feature-card:hover { transform: translateY(-6px); border-color: rgba(108,99,255,.4); box-shadow: 0 12px 40px rgba(108,99,255,.15); }
.feature-card:hover::before { opacity: 1; }
.feature-icon { width: 56px; height: 56px; background: rgba(108,99,255,.15); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 20px; }
.feature-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.feature-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: .9rem; line-height: 1.6; }

/* TALENTS */
.talents-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 24px; max-width: 1100px; margin: 0 auto; }
.talent-card {
  background: var(--card); border: 1px solid rgba(255,255,255,.06);
  border-radius: 20px; padding: 28px 24px; text-align: center;
  transition: transform .3s, box-shadow .3s;
}
.talent-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.talent-avatar {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; font-weight: 800; color: white;
}
.talent-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.talent-card .role { font-size: .82rem; color: var(--muted); margin-bottom: 12px; }
.talent-card .region { font-size: .8rem; color: #a89fff; margin-bottom: 16px; }
.talent-score { display: inline-block; background: var(--gradient); color: white; padding: 4px 14px; border-radius: 12px; font-size: .82rem; font-weight: 700; }
.talent-tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.tag { background: rgba(108,99,255,.15); color: #a89fff; padding: 3px 10px; border-radius: 10px; font-size: .75rem; }

/* BENEFITS TABLE */
.benefits-table { max-width: 900px; margin: 0 auto; border-radius: 20px; overflow: hidden; border: 1px solid rgba(108,99,255,.2); }
.benefits-table table { width: 100%; border-collapse: collapse; }
.benefits-table th { background: var(--gradient); color: white; padding: 18px 24px; text-align: left; font-size: .95rem; }
.benefits-table td { padding: 18px 24px; border-bottom: 1px solid rgba(255,255,255,.05); font-size: .9rem; }
.benefits-table tr:nth-child(even) td { background: rgba(108,99,255,.05); }
.benefits-table tr:last-child td { border-bottom: none; }
.benefits-table td:first-child { font-weight: 700; color: #a89fff; }

/* CTA */
.cta { text-align: center; padding: 100px 20px; position: relative; overflow: hidden; }
.cta h2 { font-size: clamp(2rem,5vw,3.5rem); font-weight: 900; margin-bottom: 16px; }
.cta h2 span { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.cta p { color: var(--muted); font-size: 1.05rem; margin-bottom: 40px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* FOOTER */
footer {
  background: var(--dark2); border-top: 1px solid rgba(108,99,255,.15);
  padding: 40px 60px; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 16px;
}
footer p { color: var(--muted); font-size: .85rem; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: .85rem; transition: color .3s; }
.footer-links a:hover { color: var(--primary); }

/* SHAPES */
.shape { position: absolute; border-radius: 50%; pointer-events: none; animation: float 6s ease-in-out infinite; }
.shape-1 { width: 80px; height: 80px; background: rgba(108,99,255,.1); top: 20%; left: 8%; }
.shape-2 { width: 50px; height: 50px; background: rgba(67,233,123,.1); top: 60%; right: 10%; animation-delay: 2s; }
.shape-3 { width: 120px; height: 120px; background: rgba(255,101,132,.07); bottom: 15%; left: 15%; animation-delay: 4s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

/* AUTH */
.auth-section { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 100px 20px 40px; }
.auth-card { background: var(--card); border: 1px solid rgba(108,99,255,.2); border-radius: 24px; padding: 48px 40px; width: 100%; max-width: 480px; }
.auth-card h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 8px; }
.auth-card h2 span { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.auth-sub { color: var(--muted); font-size: .95rem; margin-bottom: 28px; }
.auth-link { text-align: center; margin-top: 20px; color: var(--muted); font-size: .9rem; }
.auth-link a { color: var(--primary); text-decoration: none; }

/* FORMS */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 16px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(108,99,255,.25);
  border-radius: 12px; color: var(--text); font-size: .95rem;
  transition: border-color .3s; font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--primary); }
.form-group select option { background: var(--dark2); }

/* ALERTS */
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-size: .9rem; }
.alert-error   { background: rgba(255,101,132,.15); border: 1px solid rgba(255,101,132,.3); color: #ff8fa3; }
.alert-success { background: rgba(67,233,123,.12); border: 1px solid rgba(67,233,123,.3); color: #7effc4; }

/* PROFILE */
.profile-section { padding: 120px 60px 60px; max-width: 1100px; margin: 0 auto; }
.profile-header { display: flex; gap: 28px; align-items: center; margin-bottom: 40px; flex-wrap: wrap; }
.profile-avatar {
  width: 90px; height: 90px; border-radius: 50%;
  background: var(--gradient); display: flex; align-items: center;
  justify-content: center; font-size: 2.2rem; font-weight: 900; color: white;
  flex-shrink: 0; overflow: hidden;
}
.profile-info h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 6px; }
.role-badge { display: inline-block; background: rgba(108,99,255,.2); color: #a89fff; padding: 3px 12px; border-radius: 10px; font-size: .8rem; margin-bottom: 6px; }
.profile-info .region { font-size: .9rem; color: #a89fff; margin-bottom: 4px; }
.profile-info .score { font-size: .9rem; color: var(--accent); }
.profile-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(300px,1fr)); gap: 24px; }
.profile-card { background: var(--card); border: 1px solid rgba(108,99,255,.15); border-radius: 20px; padding: 28px; }
.profile-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; }

/* FILTER */
.filter-form { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; padding: 0 20px; }
.filter-form input,
.filter-form select { padding: 10px 16px; background: var(--card); border: 1px solid rgba(108,99,255,.25); border-radius: 12px; color: var(--text); font-size: .9rem; min-width: 200px; }
.filter-form select option { background: var(--dark2); }

/* RESPONSIVE */
@media (max-width: 768px) {
  nav { padding: 16px 20px; }
  .nav-links { display: none; }
  section { padding: 70px 20px; }
  footer { padding: 30px 20px; flex-direction: column; text-align: center; }
  .profile-section { padding: 100px 20px 40px; }
  .auth-card { padding: 32px 24px; }
}

/* Django form-control alias */
.form-control {
  width: 100%; padding: 12px 16px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(108,99,255,.25);
  border-radius: 12px; color: var(--text); font-size: .95rem;
  transition: border-color .3s; font-family: inherit;
}
.form-control:focus { outline: none; border-color: var(--primary); }
select.form-control option { background: var(--dark2); }

[data-theme="light"] .form-control {
  background: #F9FAFB; color: var(--text);
}

.field-error { color: #ff8fa3; font-size: .82rem; margin-top: 4px; }

/* ===== LUCIDE ICONS ===== */
[data-lucide] { display: inline-block; vertical-align: middle; }

.logo [data-lucide]        { width: 22px; height: 22px; stroke: url(#grad) #6C63FF; }
.nav-links [data-lucide]   { width: 15px; height: 15px; margin-right: 4px; }
.btn-primary [data-lucide],
.btn-outline [data-lucide] { width: 16px; height: 16px; margin-right: 6px; }
.feature-icon [data-lucide]{ width: 28px; height: 28px; stroke: var(--primary); }
.hero-badge [data-lucide]  { width: 14px; height: 14px; margin-right: 4px; }
.region [data-lucide]      { width: 13px; height: 13px; margin-right: 3px; color: #a89fff; }
.talent-score [data-lucide]{ width: 13px; height: 13px; margin-right: 3px; color: #FFD700; }
.benefits-table td [data-lucide] { width: 15px; height: 15px; margin-right: 6px; color: var(--primary); }
.theme-toggle [data-lucide]{ width: 18px; height: 18px; }
.auth-icon                 { text-align: center; margin-bottom: 16px; }
.auth-icon [data-lucide]   { width: 48px; height: 48px; stroke: var(--primary); }
.form-group label [data-lucide] { width: 14px; height: 14px; margin-right: 4px; color: var(--muted); }
.alert [data-lucide]       { width: 15px; height: 15px; margin-right: 6px; vertical-align: middle; }
footer .logo [data-lucide] { width: 18px; height: 18px; }

/* ===== BADGE DOT ===== */
.badge-dot {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; border-radius: 9px;
  background: var(--secondary); color: white;
  font-size: .68rem; font-weight: 700; padding: 0 5px;
  position: relative; top: -8px; left: -4px;
}
.nav-links li { position: relative; }

/* ===== NAVBAR AVATAR ===== */
.nav-avatar-link { display:flex; align-items:center; }
.nav-avatar-img {
  width: 34px; height: 34px; border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(108,99,255,.5);
  transition: border-color .3s, transform .2s;
}
.nav-avatar-img:hover { border-color: var(--primary); transform: scale(1.08); }
.nav-avatar-placeholder {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; font-weight: 800; color: white;
  border: 2px solid rgba(108,99,255,.4);
  transition: transform .2s;
}
.nav-avatar-placeholder:hover { transform: scale(1.08); }

/* ===== NAV SEARCH ===== */
.nav-search {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(108,99,255,.2);
  border-radius: 20px; padding: 6px 14px;
  transition: border-color .3s;
}
.nav-search:focus-within { border-color: var(--primary); }
.nav-search [data-lucide] { width: 15px; height: 15px; color: var(--muted); flex-shrink:0; }
.nav-search input {
  background: none; border: none; outline: none;
  color: var(--text); font-size: .88rem; width: 140px;
}
.nav-search input::placeholder { color: var(--muted); }

[data-theme="light"] .nav-search { background: rgba(0,0,0,.04); }
