/* ========================================
   TILKOMPETENT — Custom Styles
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg-dark:    #0e1330;
  --bg-card:    rgba(255,255,255,0.06);
  --border:     rgba(255,255,255,0.11);
  --primary:    #6366f1;
  --primary-2:  #818cf8;
  --violet:     #8b5cf6;
  --gold:       #f59e0b;
  --emerald:    #10b981;
  --text:       #f0f4ff;
  --muted:      #a0aec0;
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  overflow-x: hidden;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ── Gradient Text ── */
.grad-text {
  background: linear-gradient(135deg, #818cf8, #c084fc, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Glass Card ── */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.glass-light {
  background: rgba(255,255,255,0.09);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 16px;
}

/* ── Orbs (animated background blobs) ── */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.orb-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, #6366f1 0%, transparent 70%);
  top: -250px; right: -200px;
  opacity: 0.28;
  animation: orbFloat 10s ease-in-out infinite;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
  bottom: -150px; left: -150px;
  opacity: 0.22;
  animation: orbFloat 14s ease-in-out infinite reverse;
}
.orb-3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, #f59e0b 0%, transparent 70%);
  top: 40%; left: 30%;
  opacity: 0.10;
  animation: orbFloat 8s ease-in-out infinite 2s;
}

/* ── Animations ── */
@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  33%       { transform: translateY(-30px) scale(1.05); }
  66%       { transform: translateY(20px) scale(0.97); }
}

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

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

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

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-16px); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes gradientMove {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Animation helpers */
.anim-fadeup  { animation: fadeInUp 0.7s ease forwards; }
.anim-left    { animation: fadeInLeft 0.7s ease forwards; }
.anim-right   { animation: fadeInRight 0.7s ease forwards; }
.anim-scale   { animation: scaleIn 0.5s ease forwards; }
.anim-float   { animation: floatY 4s ease-in-out infinite; }

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

/* ── Navbar ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all 0.3s ease;
}
.navbar.scrolled {
  background: rgba(6, 12, 26, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.nav-link {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  text-decoration: none;
}
.nav-link:hover { color: #fff; }

/* ── Buttons ── */
.btn-primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  padding: 12px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #818cf8, #a78bfa);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(99,102,241,0.4); }
.btn-primary span { position: relative; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  padding: 12px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.btn-ghost:hover {
  background: var(--bg-card);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
  border-radius: 10px;
}

/* ── Hero gradient border ── */
.grad-border {
  position: relative;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #f59e0b);
}
.grad-border-inner {
  background: var(--bg-dark);
  border-radius: 15px;
  padding: 24px;
}

/* ── Stats cards ── */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
}
.stat-card:hover {
  border-color: rgba(99,102,241,0.5);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(99,102,241,0.15);
}

/* ── Competency cards ── */
.comp-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.comp-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--card-color, #6366f1);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.comp-card:hover::after { transform: scaleX(1); }
.comp-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255,255,255,0.15);
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

/* ── Step connector ── */
.step-line {
  position: absolute;
  top: 28px; left: calc(50% + 28px);
  width: calc(100% - 56px);
  height: 2px;
  background: linear-gradient(90deg, #6366f1, transparent);
}

/* ── Feature card ── */
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.3s ease;
}
.feature-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(99,102,241,0.3);
  transform: translateY(-4px);
}

/* ── Form styles ── */
.form-input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  padding: 14px 16px;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  outline: none;
}
.form-input:focus {
  border-color: var(--primary);
  background: rgba(99,102,241,0.08);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
.form-input::placeholder { color: var(--muted); }

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 8px;
}

/* ── Alert / Flash ── */
.alert {
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert-error   { background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; }
.alert-success { background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.3); color: #6ee7b7; }

/* ── Floating hero cards ── */
.hero-float-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 16px 20px;
}

/* ── Dot grid background ── */
.dot-bg {
  background-image: radial-gradient(circle, rgba(99,102,241,0.18) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* ── Gradient animated bg ── */
.hero-bg {
  background: linear-gradient(-45deg, #0e1330, #1a1040, #0e1a3a, #1e1050);
  background-size: 400% 400%;
  animation: gradientMove 18s ease infinite;
}

/* ── Section heading ── */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Progress bar ── */
.progress-bar {
  background: rgba(255,255,255,0.08);
  border-radius: 100px;
  height: 6px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  transition: width 1.2s ease;
}

/* ── Scroll reveal (JS triggers this) ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .orb-1 { width: 350px; height: 350px; }
  .orb-2 { width: 250px; height: 250px; }
  .step-line { display: none; }
}
