:root{
  --bg: #0b1020;
  --panel: rgba(255,255,255,0.06);
  --panel-border: rgba(255,255,255,0.12);
  --text: #e8ecf3;
  --muted: rgba(232, 236, 243, 0.72);
  --primary: #6ea8fe;
  --primary2: #a78bfa;
  --shadow: 0 12px 40px rgba(0,0,0,0.35);
}

html { scroll-behavior: smooth; }
body {
  background: radial-gradient(1200px 600px at 20% -10%, rgba(111, 66, 193, 0.25), transparent 60%),
              radial-gradient(900px 500px at 90% 0%, rgba(13, 110, 253, 0.20), transparent 55%),
              var(--bg);
  color: var(--text);
}

.section { padding: 90px 0; }
.section-alt { background: rgba(255,255,255,0.02); border-top: 1px solid rgba(255,255,255,0.06); border-bottom: 1px solid rgba(255,255,255,0.06); }
.section-title { letter-spacing: 0.2px; }

.navbar-blur{
  background: rgba(10, 14, 28, 0.55);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
}
.navbar .nav-link { color: rgba(255,255,255,0.78); }
.navbar .nav-link:hover { color: #fff; }
.navbar-brand { color:#fff; }

.brand-dot{
  width: 10px; height: 10px; border-radius: 50%;
  display:inline-block; margin-right: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  box-shadow: 0 0 0 6px rgba(110,168,254,0.15);
}

.hero{
  position: relative;
  padding-top: 110px;
  padding-bottom: 70px;
  overflow: hidden;
}
.hero-inner{ position: relative; z-index: 2; }
.hero-glow{
  position:absolute; inset: -200px -200px auto auto;
  width: 600px; height: 600px;
  background: radial-gradient(circle at 30% 30%, rgba(110,168,254,0.35), transparent 60%);
  filter: blur(10px);
  transform: rotate(15deg);
  z-index: 1;
}

.eyebrow{
  display:inline-flex; align-items:center;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
}
.typed{
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

.hero-card{
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-card-top{
  display:flex; align-items:center;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.hero-card-body{ padding: 14px; }
.stat{ padding: 10px 0; }
.stat-label{ font-size: 0.82rem; color: var(--muted); }
.stat-value{ font-weight: 600; }

.icon-link{
  width: 40px; height: 40px;
  display:inline-flex; align-items:center; justify-content:center;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: #fff;
  text-decoration:none;
}
.icon-link:hover{ transform: translateY(-1px); background: rgba(255,255,255,0.08); }

.scroll-hint{
  margin-top: 36px;
  display:inline-flex; align-items:center; gap: 10px;
  color: rgba(255,255,255,0.75);
  text-decoration:none;
}
.mouse{
  width: 18px; height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  position: relative;
}
.mouse::after{
  content:"";
  width:4px; height:4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  position:absolute; left:50%; top: 6px;
  transform: translateX(-50%);
  animation: wheel 1.4s infinite;
}
@keyframes wheel { 0%{opacity:.2; transform:translate(-50%,0);} 60%{opacity:1;} 100%{opacity:0; transform:translate(-50%,10px);} }

.profile-card{
  display:flex; gap: 14px; align-items:center;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.profile-avatar{
  width: 64px; height: 64px;
  border-radius: 18px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, rgba(110,168,254,0.25), rgba(167,139,250,0.18));
  border: 1px solid rgba(255,255,255,0.16);
  font-size: 26px;
}

.panel{
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.mini-card{
  display:flex; gap: 12px; align-items:flex-start;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
}
.mini-icon{
  width: 38px; height: 38px;
  display:grid; place-items:center;
  border-radius: 12px;
  background: rgba(110,168,254,0.12);
  border: 1px solid rgba(110,168,254,0.22);
  color: #dbe7ff;
}

.service-card{
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: transform .15s ease, background .15s ease;
}
.service-card:hover{ transform: translateY(-2px); background: rgba(255,255,255,0.075); }
.service-icon{
  width: 44px; height: 44px;
  display:grid; place-items:center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(110,168,254,0.22), rgba(167,139,250,0.14));
  border: 1px solid rgba(255,255,255,0.14);
  margin-bottom: 10px;
  font-size: 18px;
}

/* Chips */
.chip{
  display:inline-flex; align-items:center;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.88);
  font-size: 0.9rem;
}
.chip-verified{
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.10);
}

/* Skills layout (no panel) */
.skill-group{
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
}
.skill-group-title{
  font-weight: 700;
  margin-bottom: 10px;
}
.skill-tags{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Credentials */
.cred-card{
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.cred-top{
  display:flex;
  gap: 12px;
  align-items:center;
}
.cred-logo{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  object-fit: contain;
  padding: 6px;
}
.cred-title{
  font-weight: 700;
  line-height: 1.2;
}
.cred-org{
  font-size: 0.95rem;
  line-height: 1.2;
}
.cred-meta{
  margin-top: 10px;
}

.contact-line{
  display:flex; align-items:center; gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
}
.contact-line i{ width: 18px; text-align:center; color: rgba(255,255,255,0.85); }

footer{
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
}

/* Light theme */
html[data-theme="light"]{
  --bg: #f7f8fc;
  --panel: rgba(255,255,255,0.85);
  --panel-border: rgba(15, 23, 42, 0.08);
  --text: #0f172a;
  --muted: rgba(15, 23, 42, 0.65);
  --shadow: 0 14px 34px rgba(15, 23, 42, 0.10);
}
html[data-theme="light"] body{
  background: radial-gradient(1200px 600px at 20% -10%, rgba(111, 66, 193, 0.12), transparent 60%),
              radial-gradient(900px 500px at 90% 0%, rgba(13, 110, 253, 0.10), transparent 55%),
              var(--bg);
}
html[data-theme="light"] .navbar-blur{
  background: rgba(255,255,255,0.7);
}
html[data-theme="light"] .navbar .nav-link{ color: rgba(15,23,42,0.75); }
html[data-theme="light"] .navbar-brand{ color: #0f172a; }
html[data-theme="light"] .navbar-toggler-icon{ filter: invert(1); }

html[data-theme="light"] .btn-outline-light{
  border-color: rgba(15,23,42,0.2);
  color: rgba(15,23,42,0.85);
}
html[data-theme="light"] .btn-outline-light:hover{
  background: rgba(15,23,42,0.06);
}