/* Utsav Sangroula — Professional Theme
   Consolidated from ~1300 lines of inline styles → clean, maintainable */
:root {
  --primary: #5D5CDE;
  --primary-light: #7A79E9;
  --primary-dark: #4B4ACB;
  --primary-gradient: linear-gradient(135deg, #5D5CDE, #7A79E9);
  --dark-bg: #0F0F0F;
  --dark-card: #1A1A1A;
  --radius-xl: 16px;
  --radius-2xl: 20px;
}

/* Base */
html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--primary) transparent; }
body { overflow-x: hidden; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
section[id] { scroll-margin-top: 88px; }

/* Typography */
.font-display { letter-spacing: -0.02em; }
.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* Focus */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.skip-link { position: absolute; top: -48px; left: 12px; background: var(--primary); color: white; padding: 10px 16px; border-radius: 8px; z-index: 100; font-size: 14px; font-weight: 600; transition: top .25s; }
.skip-link:focus { top: 12px; }

/* Navbar blur */
.navbar-blur {
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  background: rgba(255,255,255,.82);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.dark .navbar-blur {
  background: rgba(15,15,15,.82);
  border-bottom-color: rgba(255,255,255,.06);
}

/* Nav link underline */
.nav-link { position: relative; font-weight: 500; font-size: 14.5px; letter-spacing: -0.01em; }
.nav-link::after {
  content: ""; position: absolute; left: 50%; bottom: -2px; width: 0; height: 2px;
  background: var(--primary); transform: translateX(-50%); transition: width .25s cubic-bezier(.4,0,.2,1); border-radius: 999px;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--primary); }

/* Buttons */
.btn-primary {
  background: var(--primary); color: white; border-radius: 999px; padding: 11px 22px; font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; gap: 8px; transition: all .2s; box-shadow: 0 4px 14px rgba(93,92,222,.25);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(93,92,222,.30); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  border: 1.5px solid var(--primary); color: var(--primary); border-radius: 999px; padding: 10px 22px; font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; gap: 8px; transition: all .2s; background: transparent;
}
.btn-ghost:hover { background: var(--primary); color: white; transform: translateY(-1px); }

/* Cards */
.card {
  background: white; border-radius: var(--radius-xl); border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 4px 24px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.04);
  transition: all .3s cubic-bezier(.4,0,.2,1);
}
.dark .card { background: var(--dark-card); border-color: rgba(255,255,255,.08); box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.10), 0 4px 12px rgba(0,0,0,.06); }
.dark .card:hover { box-shadow: 0 12px 32px rgba(0,0,0,.45); }

/* Section heading */
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); margin-bottom: 8px; }
.section-title { font-size: clamp(28px, 4vw, 36px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.section-desc { color: rgb(107 114 128); max-width: 640px; margin: 12px auto 0; font-size: 16px; line-height: 1.6; }
.dark .section-desc { color: rgb(156 163 175); }

/* Hero */
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(93,92,222,.10); color: var(--primary);
  border: 1px solid rgba(93,92,222,.18); border-radius: 999px; padding: 6px 12px 6px 8px; font-size: 13px; font-weight: 600;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #10B981; box-shadow: 0 0 0 6px rgba(16,185,129,.18); animation: pulseDot 2s infinite; }
@keyframes pulseDot { 0%,100%{ box-shadow:0 0 0 6px rgba(16,185,129,.18);} 50%{ box-shadow:0 0 0 9px rgba(16,185,129,.08);} }
.hero-gradient {
  position: absolute; inset: -40% -20% auto -20%; height: 700px;
  background: radial-gradient(600px 400px at 20% 20%, rgba(93,92,222,.14), transparent 60%),
              radial-gradient(700px 500px at 80% 30%, rgba(122,121,233,.12), transparent 60%);
  pointer-events: none; filter: blur(0px);
}
.dark .hero-gradient { opacity: .6; }

/* Profile */
.profile-wrap { position: relative; width: 320px; height: 320px; }
@media (max-width:768px){ .profile-wrap{ width: 260px; height: 260px; } }
.profile-ring {
  position: absolute; inset: -3px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--primary), #7A79E9, #9D9CF5, var(--primary));
  opacity: .9; filter: blur(0px);
}
.profile-inner { position: absolute; inset: 3px; border-radius: 50%; overflow: hidden; background: white; box-shadow: 0 20px 40px rgba(0,0,0,.12); }
.dark .profile-inner { background: var(--dark-card); }
.profile-inner img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.profile-wrap:hover .profile-inner img { transform: scale(1.03); }
.profile-glow {
  position: absolute; inset: 10px; border-radius: 50%; background: var(--primary-gradient); opacity: .08; filter: blur(24px); z-index: -1;
}

/* Timeline */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(to bottom, var(--primary), transparent); border-radius: 999px; opacity: .25; }
.timeline-item { position: relative; padding-bottom: 28px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute; left: -28px; top: 6px; width: 14px; height: 14px; border-radius: 50%;
  background: white; border: 3px solid var(--primary); box-shadow: 0 0 0 4px rgba(93,92,222,.14);
}
.dark .timeline-dot { background: var(--dark-bg); }

/* Certification pill */
.cert-pill { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; background: rgba(93,92,222,.10); color: var(--primary); border: 1px solid rgba(93,92,222,.14); }

/* Progress */
.progress-track { height: 6px; background: rgba(0,0,0,.06); border-radius: 999px; overflow: hidden; }
.dark .progress-track { background: rgba(255,255,255,.08); }
.progress-fill { height: 100%; background: var(--primary-gradient); border-radius: 999px; width: 0; transition: width 1s cubic-bezier(.4,0,.2,1); }

/* Animations */
@keyframes fadeIn { from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.animate-fadeIn { animation: fadeIn .7s ease both; }
@keyframes shimmer { 0%{transform:translateX(-100%);} 100%{transform:translateX(100%);} }
.shimmer::after {
  content:""; position:absolute; inset:0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
  transform: translateX(-100%); animation: shimmer 2.2s infinite;
}

/* Back to top */
.back-to-top {
  position: fixed; right: 20px; bottom: 20px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: white; display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(93,92,222,.35); opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: all .25s; z-index: 50;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* Toast */
.toast {
  position: fixed; bottom: 20px; right: 20px; padding: 12px 16px; border-radius: 12px; color: white; font-size: 14px; font-weight: 600;
  box-shadow: 0 12px 32px rgba(0,0,0,.18); transform: translateY(16px); opacity: 0; transition: all .28s; z-index: 60;
  display: flex; align-items: center; gap: 10px;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* Form */
.input {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid rgba(0,0,0,.08);
  background: white; font-size: 15px; transition: border-color .2s, box-shadow .2s; outline: none;
}
.dark .input { background: #1F1F1F; border-color: rgba(255,255,255,.10); color: white; }
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(93,92,222,.14); }
.input.error { border-color: #EF4444; }

/* Mobile bottom nav hide by default, shown via JS on mobile */
.mobile-bottom-nav { display: none; }
@media (max-width: 768px){
  .mobile-bottom-nav { display: flex; }
  .hide-mobile { display: none !important; }
}

/* Print */
@media print {
  .navbar-blur, .back-to-top, .toast, .mobile-bottom-nav { display: none !important; }
  .card { box-shadow: none !important; border: 1px solid #e5e7eb !important; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
