:root {
  --bg: #050608;
  --bg-soft: #0c0e12;
  --panel: rgba(255,255,255,0.055);
  --panel-strong: rgba(255,255,255,0.09);
  --line: rgba(255,255,255,0.12);
  --line-strong: rgba(255,255,255,0.18);
  --text: #f4f4f5;
  --muted: #a4a8b3;
  --accent: #d9d9dd;
  --accent-soft: rgba(255,255,255,0.12);
  --shadow: 0 20px 60px rgba(0,0,0,0.45);
  --radius: 24px;
  --radius-lg: 34px;
  --ease: cubic-bezier(.19,1,.22,1);
  --read: #4da3ff;
  --theme-rgb: 255,255,255;
  --theme-strong: #ffffff;
  --theme-soft: #d7d8dd;
  --theme-tint: rgba(255,255,255,0.12);
  --theme-glow: rgba(255,255,255,0.16);
  --theme-glow-soft: rgba(255,255,255,0.09);
  --theme-shadow: rgba(255,255,255,0.1);
  --theme-dark: #050608;
}

body[data-theme="red"] {
  --theme-rgb: 255,93,93;
  --theme-strong: #ff7a7a;
  --theme-soft: #ffb1b1;
  --theme-tint: rgba(255,93,93,0.16);
  --theme-glow: rgba(255,93,93,0.22);
  --theme-glow-soft: rgba(255,93,93,0.12);
  --theme-shadow: rgba(255,93,93,0.2);
  --read: #ff8d8d;
}

body[data-theme="blue"] {
  --theme-rgb: 87,165,255;
  --theme-strong: #7eb8ff;
  --theme-soft: #b3d5ff;
  --theme-tint: rgba(87,165,255,0.16);
  --theme-glow: rgba(87,165,255,0.22);
  --theme-glow-soft: rgba(87,165,255,0.12);
  --theme-shadow: rgba(87,165,255,0.2);
  --read: #76c1ff;
}

body[data-theme="orange"] {
  --theme-rgb: 255,150,70;
  --theme-strong: #ffb068;
  --theme-soft: #ffd2a6;
  --theme-tint: rgba(255,150,70,0.16);
  --theme-glow: rgba(255,150,70,0.22);
  --theme-glow-soft: rgba(255,150,70,0.12);
  --theme-shadow: rgba(255,150,70,0.2);
  --read: #ffbd74;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(circle at 18% 20%, var(--theme-glow), transparent 22%),
    radial-gradient(circle at 78% 58%, var(--theme-glow-soft), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(var(--theme-rgb),0.06), transparent 30%),
    linear-gradient(135deg, #050608 0%, #090b10 40%, #040507 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  cursor: none;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

body::before {
  background:
    radial-gradient(circle at 10% 15%, rgba(var(--theme-rgb),0.12), transparent 14%),
    radial-gradient(circle at 85% 70%, rgba(var(--theme-rgb),0.08), transparent 18%),
    radial-gradient(circle at 55% 35%, rgba(var(--theme-rgb),0.07), transparent 16%);
  filter: blur(18px);
  animation: drift 16s ease-in-out infinite alternate;
}

body::after {
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 88%);
  opacity: 0.35;
}

@keyframes drift {
  0% { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(20px,-16px,0) scale(1.08); }
}

@keyframes floatY {
  0%,100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes pulseGlow {
  0%,100% { box-shadow: 0 0 0 rgba(255,255,255,0), 0 16px 40px rgba(0,0,0,0.32); }
  50% { box-shadow: 0 0 32px rgba(255,255,255,0.07), 0 22px 60px rgba(0,0,0,0.42); }
}

@keyframes sheen {
  0% { transform: translateX(-140%) skewX(-24deg); }
  100% { transform: translateX(180%) skewX(-24deg); }
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollX {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes typingDots {
  0%, 80%, 100% { transform: translateY(0); opacity: .35; }
  40% { transform: translateY(-4px); opacity: 1; }
}

@keyframes launcherPulse {
  0%, 100% { transform: scale(1); opacity: .55; }
  50% { transform: scale(1.08); opacity: .12; }
}

@keyframes bootPop {
  from {
    opacity: 0;
    transform: translateY(24px) scale(.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 100px 0;
  position: relative;
}

.reveal {
  animation: fadeUp 1s var(--ease) both;
}

.glass {
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 0;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: linear-gradient(180deg, rgba(5,6,8,0.85), rgba(5,6,8,0.45));
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.028));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 14px 40px rgba(0,0,0,0.34), inset 0 1px 0 rgba(255,255,255,0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(255,255,255,0.28), rgba(255,255,255,0.06));
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 10px 30px rgba(0,0,0,0.35);
  position: relative;
  overflow: hidden;
  padding: 0;
}

.brand-badge::after {
  content: "";
  position: absolute;
  inset: -50%;
  background: conic-gradient(from 90deg, transparent, rgba(255,255,255,0.3), transparent 35%);
  animation: spinSlow 6s linear infinite;
  opacity: 0.8;
}

.brand-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 2;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.nav-links a,
.btn,
.social-link,
.card,
.service-card,
.project-card,
.info-tile,
.contact-card,
.quick-btn,
.ai-launcher,
.ai-mini-btn,
.username-submit-btn,
.nav-user-profile {
  transition:
    transform .45s var(--ease),
    box-shadow .45s var(--ease),
    border-color .45s var(--ease),
    background .45s var(--ease),
    opacity .45s var(--ease);
}

.nav-links a {
  color: #c8ccd4;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  isolation: isolate;
}

.nav-links a::before,
.btn::before,
.card::before,
.service-card::before,
.project-card::before,
.contact-card::before,
.info-tile::before,
.quick-btn::before,
.username-submit-btn::before,
.nav-user-profile::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-125%) skewX(-22deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.14), transparent);
  opacity: 0;
  pointer-events: none;
}

.nav-links a:hover::before,
.btn:hover::before,
.card:hover::before,
.service-card:hover::before,
.project-card:hover::before,
.contact-card:hover::before,
.info-tile:hover::before,
.quick-btn:hover::before,
.username-submit-btn:hover::before,
.nav-user-profile:hover::before {
  opacity: 1;
  animation: sheen 1s var(--ease);
}

.nav-links a:hover {
  color: #ffffff;
  border-color: rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.045));
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 28px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.08);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 7px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.92), rgba(255,255,255,0));
  transform: scaleX(0.35);
  opacity: 0;
  transition: transform .38s var(--ease), opacity .38s var(--ease);
  z-index: -1;
}

.nav-links a:hover::after {
  transform: scaleX(1);
  opacity: 1;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-actions .btn {
  padding: 11px 18px;
  font-size: 0.91rem;
}

.profile-menu {
  position: relative;
}

.nav-user-profile {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  color: #eef1f6;
  box-shadow: 0 16px 40px rgba(0,0,0,0.26);
  cursor: none;
  font: inherit;
}

.nav-user-profile.open {
  border-color: rgba(var(--theme-rgb),0.3);
  box-shadow: 0 18px 44px rgba(0,0,0,0.32), 0 0 0 1px rgba(var(--theme-rgb),0.12);
}

.nav-user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: .85rem;
}

.nav-user-name {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .92rem;
  font-weight: 700;
}

.nav-user-caret {
  font-size: .76rem;
  opacity: .78;
  transition: transform .3s ease, opacity .3s ease;
}

.nav-user-profile.open .nav-user-caret {
  transform: rotate(180deg);
  opacity: 1;
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(320px, calc(100vw - 24px));
  padding: 16px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(15,16,20,0.97), rgba(8,9,12,0.99));
  box-shadow: 0 26px 80px rgba(0,0,0,0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
  z-index: 80;
}

.profile-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.profile-dropdown-head {
  margin-bottom: 14px;
}

.profile-dropdown-head strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 5px;
}

.profile-dropdown-head span,
.profile-label {
  color: var(--muted);
  font-size: .84rem;
}

.profile-menu-btn,
.profile-save-btn {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font: inherit;
  cursor: none;
}

.profile-menu-btn {
  width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  margin-bottom: 12px;
}

.profile-rename-form {
  display: none;
  gap: 10px;
  margin-bottom: 16px;
}

.profile-rename-form.show {
  display: grid;
  grid-template-columns: 1fr auto;
}

.profile-rename-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  font: inherit;
  outline: none;
}

.profile-rename-input:focus {
  border-color: rgba(var(--theme-rgb),0.34);
  box-shadow: 0 0 0 4px rgba(var(--theme-rgb),0.08);
}

.profile-save-btn {
  padding: 12px 16px;
  border-radius: 16px;
  font-weight: 800;
  background: linear-gradient(180deg, var(--theme-strong), var(--theme-soft));
  color: var(--theme-dark);
  box-shadow: 0 18px 36px var(--theme-shadow);
}

.profile-theme-wrap {
  display: grid;
  gap: 10px;
}

.theme-swatches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.theme-swatch {
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.045);
  border-radius: 18px;
  padding: 10px;
  display: grid;
  gap: 8px;
  color: var(--text);
  cursor: none;
  font: inherit;
  font-size: .84rem;
  font-weight: 700;
  transition: transform .3s ease, border-color .3s ease, background .3s ease, box-shadow .3s ease;
}

.theme-swatch:hover,
.theme-swatch.active {
  transform: translateY(-2px);
  border-color: rgba(var(--theme-rgb),0.34);
  background: rgba(var(--theme-rgb),0.08);
  box-shadow: 0 12px 28px rgba(0,0,0,0.24);
}

.theme-preview {
  width: 100%;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  display: block;
}

.theme-preview-mono {
  background: linear-gradient(135deg, #050608, #dbdde2);
}

.theme-preview-red {
  background: linear-gradient(135deg, #1b0909, #ff7a7a);
}

.theme-preview-blue {
  background: linear-gradient(135deg, #06111f, #7eb8ff);
}

.theme-preview-orange {
  background: linear-gradient(135deg, #1c1208, #ffb068);
}

.nav-links a i {
  font-size: 0.88rem;
  opacity: 0.9;
  transform: translateY(0);
  transition: transform .35s var(--ease), opacity .35s var(--ease), filter .35s var(--ease);
}

.nav-links a:hover i {
  opacity: 1;
  transform: translateY(-1px) scale(1.08);
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.22));
}

.nav-links a span {
  position: relative;
  top: -0.5px;
}

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 999px;
  padding: 15px 24px;
  font-weight: 700;
  text-decoration: none;
  cursor: none;
  border: 1px solid rgba(255,255,255,0.14);
  will-change: transform;
}

.btn-primary {
  color: var(--theme-dark);
  background: linear-gradient(180deg, var(--theme-strong), var(--theme-soft));
  box-shadow: 0 18px 45px var(--theme-shadow), 0 8px 25px rgba(0,0,0,0.28);
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 24px 60px rgba(var(--theme-rgb),0.18), 0 16px 35px rgba(0,0,0,0.42);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.2);
}

.hero {
  padding: 62px 0 38px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: stretch;
}

.hero-main,
.hero-side {
  border-radius: var(--radius-lg);
  padding: 34px;
  position: relative;
  overflow: hidden;
  min-height: 560px;
}

.hero-main::after,
.hero-side::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255,255,255,0.12), transparent 32%);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  border-radius: 999px;
  padding: 10px 16px;
  color: #d6d8dd;
  font-size: 0.92rem;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(3rem, 5.8vw, 5.1rem);
  line-height: 0.9;
  letter-spacing: -0.065em;
  margin-bottom: 18px;
  max-width: 760px;
}

.hero h1 .stroke {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.65);
  text-shadow: 0 0 30px rgba(255,255,255,0.08);
}

.hero p {
  font-size: 1.02rem;
  color: var(--muted);
  max-width: 620px;
  line-height: 1.68;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 38px;
}

.info-tile {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border-radius: 24px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}

.info-tile:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.075);
}

.info-tile .label {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.info-tile .value {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.hero-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.orb-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 330px;
  animation: floatY 4s ease-in-out infinite;
}

.orb-ring,
.orb-core,
.orb-dots {
  position: absolute;
  border-radius: 50%;
}

.orb-ring {
  width: 300px;
  height: 300px;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: inset 0 0 40px rgba(255,255,255,0.02), 0 0 90px rgba(255,255,255,0.03);
  animation: spinSlow 18s linear infinite;
}

.orb-ring::before,
.orb-ring::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.16);
}

.orb-ring::after {
  inset: 42px;
  border-style: solid;
  opacity: 0.7;
}

.orb-core {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.9), rgba(255,255,255,0.16) 40%, rgba(255,255,255,0.04) 70%, transparent 75%);
  filter: blur(1px);
  box-shadow: 0 0 80px rgba(255,255,255,0.12);
}

.orb-dots {
  width: 340px;
  height: 340px;
  border: 1px solid transparent;
  animation: spinSlow 10s linear infinite reverse;
}

.orb-dots::before,
.orb-dots::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 0 22px rgba(255,255,255,0.35);
  top: 6px;
  left: calc(50% - 7px);
}

.orb-dots::after {
  top: auto;
  bottom: 6px;
  background: rgba(255,255,255,0.6);
}

.side-card {
  padding: 24px;
  border-radius: 28px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  animation: pulseGlow 4.5s ease-in-out infinite;
}

.side-card .mini-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  margin-bottom: 14px;
}

.side-title {
  font-size: 1.75rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.chip {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: #e5e7eb;
  font-size: 0.92rem;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section-head h2 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.section-head p {
  color: var(--muted);
  max-width: 580px;
  line-height: 1.7;
}

.services,
.projects,
.contact-grid {
  display: grid;
  gap: 20px;
}

.services {
  grid-template-columns: repeat(3, 1fr);
}

.projects {
  grid-template-columns: repeat(3, 1fr);
}

.contact-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

.card,
.service-card,
.project-card,
.contact-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 26px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.03));
  box-shadow: 0 18px 50px rgba(0,0,0,0.28);
}

.service-card:hover,
.project-card:hover,
.card:hover,
.contact-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(255,255,255,0.18);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  box-shadow: 0 30px 80px rgba(0,0,0,0.42);
}

.icon-box {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.06));
  border: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 22px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
}

.service-card h3,
.project-card h3,
.contact-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

.service-card p,
.project-card p,
.contact-card p,
.card p {
  color: var(--muted);
  line-height: 1.8;
}

.service-list,
.project-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.service-list li,
.project-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ebedf1;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.07);
  transition: transform .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease);
}

.service-list li:hover,
.project-list li:hover {
  transform: translateX(8px);
  background: rgba(255,255,255,0.075);
  border-color: rgba(255,255,255,0.16);
}

.marquee {
  margin-top: 30px;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: scrollX 24s linear infinite;
}

.marquee-item {
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.045);
  color: #f3f4f6;
  white-space: nowrap;
  font-weight: 600;
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.badge {
  font-size: 0.82rem;
  color: #f4f4f5;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 10px 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-preview {
  height: 190px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 22px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.12), transparent 28%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.08), transparent 22%),
    linear-gradient(135deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
  position: relative;
  overflow: hidden;
}

.project-preview::before,
.project-preview::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
}

.project-preview::before {
  width: 180px;
  height: 180px;
  top: -40px;
  right: -20px;
  animation: spinSlow 16s linear infinite;
}

.project-preview::after {
  width: 110px;
  height: 110px;
  bottom: -20px;
  left: 16px;
  animation: spinSlow 10s linear infinite reverse;
}

.contact-card.large {
  min-height: 100%;
}

.contact-list {
  list-style: none;
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.contact-list li a,
.social-row a {
  color: var(--text);
  text-decoration: none;
}

.contact-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.contact-list li:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.16);
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.social-link {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  font-size: 1.15rem;
  cursor: none;
}

.social-link:hover {
  transform: translateY(-5px) rotate(4deg);
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 18px 36px rgba(0,0,0,0.28);
}

.about-title {
  font-size: clamp(2rem,4vw,3.3rem);
  line-height: .98;
  letter-spacing: -0.05em;
  margin-bottom: 16px;
}

.about-stack {
  margin-top: 26px;
}

.contact-actions {
  margin-top: 26px;
}

.footer {
  padding: 0 0 40px;
}

.footer-card {
  border-radius: 28px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-title {
  font-size: 1.05rem;
}

.footer-sub {
  margin-top: 6px;
}

.muted {
  color: var(--muted);
}

.mouse-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 30%, transparent 68%);
  transform: translate(-50%, -50%);
  filter: blur(18px);
  z-index: -1;
  opacity: 0.9;
}

.custom-cursor,
.custom-cursor-dot {
  position: fixed;
  pointer-events: none;
  z-index: 20000;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.custom-cursor {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.04);
  box-shadow: 0 0 22px rgba(255,255,255,0.12);
  transition: transform .18s ease, width .18s ease, height .18s ease, border-color .18s ease, background .18s ease;
}

.custom-cursor-dot {
  width: 6px;
  height: 6px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 0 12px rgba(255,255,255,0.4);
  transition: transform .14s ease;
}

.custom-cursor.cursor-hover {
  width: 42px;
  height: 42px;
  border-color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.08);
}

/* LOADING SCREEN */
.boot-overlay,
.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background:
    radial-gradient(circle at 18% 20%, rgba(255,255,255,0.10), transparent 22%),
    radial-gradient(circle at 78% 58%, rgba(255,255,255,0.06), transparent 24%),
    linear-gradient(135deg, #050608 0%, #090b10 40%, #040507 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity .55s ease, visibility .55s ease, transform .55s ease;
}

.boot-overlay.hide,
.login-overlay.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.login-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.login-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.boot-card,
.login-card {
  width: min(560px, 100%);
  border-radius: 34px;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  box-shadow: 0 30px 100px rgba(0,0,0,0.5);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 34px;
  text-align: center;
  animation: bootPop .7s var(--ease);
}

.login-card {
  width: min(420px, 100%);
}

.boot-badge,
.login-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: #dde1e8;
  font-size: .9rem;
  margin-bottom: 20px;
}

.boot-card h2,
.login-card h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: .96;
  letter-spacing: -0.05em;
  margin-bottom: 14px;
}

.boot-sub,
.login-card p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.login-small {
  font-size: .82rem;
  color: var(--muted);
  margin-top: 14px;
  margin-bottom: 0;
}

.boot-icon-wrap {
  position: relative;
  width: 104px;
  height: 104px;
  margin: 0 auto 24px;
}

.boot-icon-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.14);
  animation: spinSlow 8s linear infinite;
}

.boot-icon-ring::before,
.boot-icon-ring::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.15);
}

.boot-icon-ring::after {
  inset: 24px;
  border-style: solid;
  opacity: .7;
}

.boot-icon-core,
.login-avatar {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 14px 30px rgba(0,0,0,0.35);
  background: rgba(255,255,255,0.06);
}

.boot-icon-core img,
.login-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.boot-steps {
  display: grid;
  gap: 12px;
  margin-top: 10px;
  margin-bottom: 22px;
}

.boot-step {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.08);
  text-align: left;
  opacity: .72;
}

.boot-step.active,
.boot-step.done {
  opacity: 1;
}

.boot-step.active {
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.boot-step.done .boot-step-state {
  color: #8effb0;
}

.boot-step-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 1rem;
}

.boot-step-text strong {
  display: block;
  font-size: .95rem;
  margin-bottom: 2px;
}

.boot-step-text span {
  color: var(--muted);
  font-size: .8rem;
}

.boot-step-state {
  font-size: .82rem;
  color: #cfd4dc;
}

.boot-progress {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}

.boot-progress-bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffffff, #bfc4ce);
  transition: width .75s var(--ease);
}

.login-avatar {
  margin-bottom: 20px;
}

.username-form {
  display: grid;
  gap: 14px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.username-input {
  width: 100%;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  font: inherit;
  text-align: center;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
}

.username-input:focus {
  border-color: rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.07);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.05);
}

.username-input::placeholder {
  color: #97a0ad;
}

.username-submit-btn {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, #ffffff, #d8d9de);
  color: #050608;
  font: inherit;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: none;
  box-shadow: 0 18px 45px rgba(255,255,255,0.1), 0 8px 25px rgba(0,0,0,0.28);
}

.username-submit-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(255,255,255,0.12), 0 16px 35px rgba(0,0,0,0.42);
}

/* AI CHAT */
.ai-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
}

.ai-launcher {
  position: relative;
  width: 76px;
  height: 76px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.28), transparent 35%),
    linear-gradient(180deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
  box-shadow: 0 24px 60px rgba(0,0,0,0.45), 0 0 30px rgba(255,255,255,0.08), inset 0 1px 0 rgba(255,255,255,0.14);
  display: grid;
  place-items: center;
  cursor: none;
  overflow: hidden;
}

.ai-launcher:hover {
  transform: translateY(-6px) scale(1.05);
  border-color: rgba(255,255,255,0.24);
  box-shadow: 0 32px 80px rgba(0,0,0,0.5), 0 0 36px rgba(255,255,255,0.12), inset 0 1px 0 rgba(255,255,255,0.2);
}

.ai-launcher-rings {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.13);
}

.ai-launcher-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  animation: launcherPulse 2.6s ease-in-out infinite;
}

.ai-launcher-icon {
  position: relative;
  z-index: 2;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.ai-launcher-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ai-launcher-badge {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 4;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #64ff9a;
  border: 2px solid #0d1015;
  box-shadow: 0 0 14px rgba(100,255,154,0.6);
}

.ai-panel {
  position: absolute;
  right: 0;
  bottom: 92px;
  width: min(410px, calc(100vw - 28px));
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(15,16,20,0.96), rgba(8,9,12,0.98));
  box-shadow: 0 28px 90px rgba(0,0,0,0.52), inset 0 1px 0 rgba(255,255,255,0.04);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(.96);
  transform-origin: bottom right;
  transition: opacity .38s var(--ease), transform .38s var(--ease);
}

.ai-widget.open .ai-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.ai-head {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.08), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
}

.ai-head-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-head-left img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 8px 20px rgba(0,0,0,0.24);
}

.ai-head-text {
  display: flex;
  flex-direction: column;
}

.ai-head-text strong {
  display: block;
  font-size: .98rem;
}

.ai-head-text span {
  font-size: .82rem;
  color: var(--muted);
}

.ai-head-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-status-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}

.ai-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #64ff9a;
  box-shadow: 0 0 14px rgba(100,255,154,0.6);
}

.ai-status-text {
  font-size: .78rem;
  color: #dbe0e8;
}

.ai-mini-btn {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: #f3f4f7;
  display: grid;
  place-items: center;
  cursor: none;
}

.ai-mini-btn:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
}

.ai-top-tags {
  padding: 12px 14px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  font-size: .8rem;
  color: #dde1e8;
}

.ai-chat {
  max-height: 320px;
  min-height: 240px;
  overflow-y: auto;
  padding: 14px;
  display: grid;
  gap: 12px;
}

.ai-chat::-webkit-scrollbar {
  width: 8px;
}

.ai-chat::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.12);
  border-radius: 999px;
}

.msg-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.msg-row.user {
  justify-content: flex-end;
}

.msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 32px;
  border: 1px solid rgba(255,255,255,0.14);
}

.msg-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.msg {
  max-width: 78%;
  padding: 12px 14px;
  border-radius: 18px;
  font-size: .95rem;
  line-height: 1.55;
  position: relative;
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
}

.msg.bot {
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.08);
  color: #eef0f4;
  border-bottom-left-radius: 8px;
}

.msg.user {
  background: linear-gradient(180deg, #ffffff, #d8d9de);
  color: #050608;
  border-bottom-right-radius: 8px;
  box-shadow: 0 10px 30px rgba(255,255,255,0.08);
}

.msg-meta {
  margin-top: 7px;
  font-size: .72rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  opacity: .85;
}

.msg.bot .msg-meta {
  justify-content: flex-start;
  color: #bfc4ce;
}

.msg-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.msg-status .checks {
  font-weight: 800;
  letter-spacing: -0.08em;
}

.msg-status.read .checks {
  color: var(--read);
}

.typing-wrap {
  display: none;
  gap: 10px;
  align-items: flex-end;
}

.typing-wrap.active {
  display: flex;
}

.typing {
  padding: 12px 14px;
  border-radius: 18px;
  border-bottom-left-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.82);
  animation: typingDots 1s infinite ease-in-out;
}

.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }

.quick-grid {
  padding: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: grid;
  gap: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
}

.quick-btn {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.03));
  color: #f2f4f7;
  border-radius: 18px;
  padding: 14px;
  text-align: left;
  font: inherit;
  cursor: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.quick-btn:hover {
  transform: translateY(-3px);
  background: linear-gradient(180deg, rgba(255,255,255,0.085), rgba(255,255,255,0.04));
  border-color: rgba(255,255,255,0.16);
  box-shadow: 0 14px 30px rgba(0,0,0,0.25);
}

.quick-btn:disabled {
  opacity: .5;
}

.q-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.q-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  flex: 0 0 34px;
}

.q-arrow {
  opacity: .7;
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}

.quick-btn:hover .q-arrow {
  transform: translateX(4px);
  opacity: 1;
}

@media (max-width: 1180px) {
  .hero-grid,
  .contact-grid,
  .services,
  .projects {
    grid-template-columns: 1fr 1fr;
  }

  .hero-main,
  .hero-side {
    min-height: auto;
  }
}

@media (max-width: 860px) {
  body,
  .btn,
  .quick-btn,
  .social-link,
  .ai-launcher,
  .ai-mini-btn,
  .username-submit-btn,
  .username-input,
  .nav-user-profile,
  .profile-menu-btn,
  .profile-save-btn,
  .profile-rename-input,
  .theme-swatch {
    cursor: auto;
  }

  .custom-cursor,
  .custom-cursor-dot {
    display: none;
  }

  .nav-links {
    display: none;
  }

  .hero-grid,
  .contact-grid,
  .services,
  .projects,
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-main,
  .hero-side,
  .card,
  .service-card,
  .project-card,
  .contact-card,
  .footer-card,
  .boot-card,
  .login-card {
    padding: 22px;
  }

  .hero {
    padding-top: 28px;
  }

  .section {
    padding: 78px 0;
  }

  .orb-ring { width: 240px; height: 240px; }
  .orb-core { width: 140px; height: 140px; }
  .orb-dots { width: 280px; height: 280px; }

  .ai-widget {
    right: 10px;
    bottom: 10px;
  }

  .ai-panel {
    width: calc(100vw - 20px);
  }

  .boot-step {
    grid-template-columns: 36px 1fr;
  }

  .boot-step-state {
    display: none;
  }

  .nav-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .nav-user-profile {
    order: -1;
    width: 100%;
    justify-content: center;
  }

  .profile-menu {
    order: -1;
    width: 100%;
  }

  .profile-dropdown {
    left: 0;
    right: 0;
    width: 100%;
  }

  .profile-rename-form.show,
  .theme-swatches {
    grid-template-columns: 1fr;
  }
}
