:root {
  --bg: #100821;
  --bg-deep: #090313;
  --panel: rgba(255, 255, 255, 0.055);
  --panel-strong: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f8f5ff;
  --muted: #b8abc9;
  --soft: #8f82a8;
  --purple: #a855f7;
  --violet: #7c3aed;
  --pink: #ec4899;
  --cyan: #22d3ee;
  --green: #34d399;
  --red: #fb7185;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
  --radius-lg: 30px;
  --radius-md: 22px;
  --radius-sm: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 50% -10%, rgba(124, 58, 237, 0.26), transparent 36rem),
    radial-gradient(circle at 86% 12%, rgba(236, 72, 153, 0.16), transparent 24rem),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body.dashboard-open {
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.noise-layer {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black 20%, transparent 100%);
}

.orb {
  pointer-events: none;
  position: fixed;
  z-index: -3;
  border-radius: 999px;
  filter: blur(42px);
}

.orb-one {
  top: 14%;
  left: -8rem;
  width: 24rem;
  height: 24rem;
  background: rgba(168, 85, 247, 0.24);
}

.orb-two {
  right: -8rem;
  bottom: 12%;
  width: 28rem;
  height: 28rem;
  background: rgba(34, 211, 238, 0.11);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1160px, calc(100% - 28px));
  margin: 18px auto 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(16, 8, 33, 0.72);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(18px);
}

.brand,
.profile-row,
.hero-actions,
.nav-links,
.status-header,
.heading-row,
.social-row,
.form-actions,
.dashboard-header,
.dashboard-list-header {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
}

.brand-mark,
.avatar {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  color: white;
  font-weight: 800;
  box-shadow: 0 20px 70px rgba(168, 85, 247, 0.35);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 16px;
}

.brand-copy strong,
.brand-copy small {
  display: block;
}

.brand-copy strong {
  font-size: 0.92rem;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.75rem;
}

.nav-links {
  gap: 8px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.nav-links a {
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 8px 14px;
  transition: 0.2s ease;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

main {
  width: min(1080px, calc(100% - 36px));
  margin: 0 auto;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  align-items: center;
  gap: 24px;
  min-height: auto;
  padding: 58px 0 66px;
}

.hero-card,
.status-card,
.glass-panel,
.skill-card,
.projects-shell,
.contact-section,
.dashboard-panel {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.032));
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.hero-card {
  min-height: auto;
  padding: clamp(30px, 5vw, 48px);
  border-radius: var(--radius-lg);
}

.profile-row {
  gap: 16px;
  margin-bottom: 28px;
}

.avatar {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  font-size: 1rem;
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: #d9c7ff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-card h1,
.section-heading h2,
.section-grid h2,
.contact-section h2 {
  margin: 0;
  color: white;
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.96;
}

.hero-card h1 {
  margin-top: 5px;
  font-size: clamp(3rem, 6.4vw, 5.8rem);
}

.hero-lead {
  max-width: 690px;
  margin: 0 0 20px;
  font-size: clamp(1.75rem, 3.5vw, 3.05rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.08;
  background: linear-gradient(90deg, #ffffff, #d7c7ff 50%, #8feaff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtext,
.section-heading p,
.glass-panel p,
.contact-section p,
.status-card p {
  color: var(--muted);
}

.hero-subtext {
  max-width: 590px;
  margin: 0;
  font-size: 1rem;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.primary-button,
.secondary-button,
.ghost-button {
  cursor: pointer;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-button {
  display: inline-flex;
  justify-content: center;
  background: linear-gradient(135deg, var(--purple), var(--violet) 55%, var(--cyan));
  color: white;
  padding: 13px 20px;
  box-shadow: 0 22px 70px rgba(124, 58, 237, 0.32);
}

.secondary-button,
.ghost-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: white;
  padding: 12px 18px;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

.secondary-button:hover,
.ghost-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.status-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  min-height: 420px;
  padding: clamp(24px, 3vw, 32px);
  align-self: center;
}

.status-card::before {
  content: "";
  position: absolute;
  inset: -45% -20% auto;
  height: 22rem;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.38), transparent 62%);
}

.status-card > * {
  position: relative;
}

.status-header {
  justify-content: space-between;
  margin-bottom: 86px;
}

.live-pill {
  border: 1px solid rgba(52, 211, 153, 0.24);
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.08);
  color: #adf5d0;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 8px 12px;
}

.status-year {
  color: var(--muted);
  font-weight: 800;
}

.status-card h2 {
  margin: 0;
  max-width: 320px;
  font-size: clamp(2.05rem, 4vw, 3.45rem);
  letter-spacing: -0.05em;
  line-height: 1;
}

.status-grid,
.mini-card-grid,
.about-highlight-grid,
.skills-grid,
.projects-grid,
.contact-card-grid,
.dashboard-projects {
  display: grid;
  gap: 16px;
}

.status-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 26px;
}

.status-grid div,
.mini-card-grid article,
.about-highlight-grid article,
.skill-card,
.contact-card,
.project-card,
.dashboard-project {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.045);
}

.status-grid div {
  min-width: 0;
  padding: 15px;
}

.status-grid strong,
.status-grid span {
  display: block;
}

.status-grid strong {
  color: white;
  overflow-wrap: anywhere;
  font-size: clamp(1.25rem, 2.3vw, 1.7rem);
}

.status-grid span {
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 700;
}

.section-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  padding: 68px 0;
}

.section-grid h2,
.section-heading h2,
.contact-section h2 {
  margin-top: 12px;
  font-size: clamp(2.25rem, 5vw, 4.25rem);
}

.glass-panel {
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 38px);
}

.glass-panel > p {
  margin-top: 0;
  font-size: 1.12rem;
}

.about-lead {
  color: #eee6ff;
  font-size: 1.18rem;
}

.mini-card-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 26px;
}

.mini-card-grid article,
.about-highlight-grid article {
  padding: 20px;
}

.about-highlight-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 26px;
}

.mini-card-grid span,
.about-highlight-grid span {
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 900;
}

.mini-card-grid strong,
.about-highlight-grid strong {
  display: block;
  margin-top: 14px;
  color: white;
}

.mini-card-grid p,
.about-highlight-grid p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.skills-section,
.projects-section,
.contact-section {
  padding: 68px 0;
}

.center {
  text-align: center;
  margin-inline: auto;
}

.section-heading {
  max-width: 800px;
  margin-bottom: 34px;
}

.heading-row {
  justify-content: space-between;
  gap: 18px;
}

.count-pill {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 9px 13px;
}

.skills-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.skill-card {
  min-height: 160px;
  padding: 20px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.skill-card:hover,
.project-card:hover,
.dashboard-project:hover {
  transform: translateY(-6px);
  border-color: rgba(168, 85, 247, 0.44);
  background: rgba(255, 255, 255, 0.072);
}

.skill-card span {
  color: #d9c7ff;
  font-size: 0.86rem;
  font-weight: 900;
}

.skill-card strong {
  display: block;
  margin-top: 12px;
  color: white;
  font-size: 1rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.skill-tags i {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.065);
  color: #eee6ff;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
  padding: 9px 11px;
}

.skill-pill {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.065);
  color: #eee6ff;
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
  padding: 9px 11px;
}

.skill-bar {
  height: 8px;
  margin-top: 22px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.skill-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
}

.projects-shell {
  min-height: 280px;
  border-radius: var(--radius-lg);
  padding: clamp(18px, 3vw, 24px);
}

.projects-grid {
  grid-template-columns: repeat(3, 1fr);
}

.project-card {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  padding: 22px;
  transition: 0.22s ease;
}

.project-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 17px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.28), rgba(34, 211, 238, 0.18));
  color: white;
  font-weight: 900;
}

.project-card h3 {
  margin: 22px 0 10px;
  color: white;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.project-card p {
  flex: 1;
  margin: 0;
  color: var(--muted);
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

.project-footer a {
  border-radius: 999px;
  background: white;
  color: #14091f;
  font-size: 0.86rem;
  font-weight: 900;
  padding: 10px 14px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.project-footer a:hover {
  background: #e9ddff;
  transform: translateY(-2px);
}

.project-footer span {
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 700;
}

.loading-state,
.empty-state {
  display: grid;
  min-height: 250px;
  place-items: center;
  text-align: center;
}

.loading-state p,
.empty-state p,
.muted-text {
  color: var(--muted);
}

.spinner {
  display: inline-block;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--purple);
  border-radius: 999px;
  animation: spin 0.8s linear infinite;
}

.empty-icon {
  display: grid;
  width: 70px;
  height: 70px;
  margin: 0 auto 18px;
  place-items: center;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.07);
  color: #d9c7ff;
  font-size: 1.7rem;
}

.contact-section {
  margin-bottom: 56px;
  border-radius: var(--radius-lg);
  padding-inline: clamp(20px, 4vw, 40px);
  text-align: center;
}

.contact-section p {
  max-width: 720px;
  margin: 22px auto 0;
  font-size: 1.05rem;
}

.email-link {
  display: inline-block;
  margin-top: 34px;
  color: white;
  font-size: clamp(1.3rem, 4vw, 2rem);
  font-weight: 800;
}

.social-row {
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.contact-card-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 34px;
}

.contact-card {
  padding: 18px;
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  border-color: rgba(168, 85, 247, 0.44);
  background: rgba(255, 255, 255, 0.075);
}

.contact-card span,
.contact-card strong {
  display: block;
}

.contact-card span {
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-card strong {
  margin-top: 10px;
  color: white;
  font-size: 0.96rem;
}

.social-row a {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  font-weight: 800;
  padding: 11px 16px;
  transition: 0.2s ease;
}

.social-row a:hover {
  color: white;
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
}

.site-footer {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 30px 0 52px;
  border-top: 1px solid var(--line);
  color: var(--soft);
  text-align: center;
}

.dashboard-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: end;
  pointer-events: none;
  background: rgba(5, 2, 12, 0);
  opacity: 0;
  transition: opacity 0.25s ease, background 0.25s ease;
}

.dashboard-overlay.open {
  pointer-events: auto;
  background: rgba(5, 2, 12, 0.72);
  opacity: 1;
}

.dashboard-panel {
  width: min(780px, 100%);
  height: min(100vh, 960px);
  overflow: auto;
  border-radius: 34px 0 0 34px;
  padding: clamp(22px, 4vw, 34px);
  transform: translateX(100%);
  transition: transform 0.28s ease;
}

.dashboard-overlay.open .dashboard-panel {
  transform: translateX(0);
}

.dashboard-header {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.dashboard-header h2 {
  margin: 8px 0 0;
  color: white;
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: -0.05em;
  line-height: 1;
}

.icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: white;
  cursor: pointer;
  font-size: 1.7rem;
}

.message {
  min-height: 24px;
  margin-bottom: 16px;
  font-weight: 800;
}

.message.success {
  color: var(--green);
}

.message.error {
  color: var(--red);
}

.message.info {
  color: var(--cyan);
}

.project-form {
  display: grid;
  gap: 16px;
  margin-bottom: 34px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: #dacbff;
  font-size: 0.86rem;
  font-weight: 900;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: none;
  background: rgba(7, 3, 17, 0.58);
  color: white;
  padding: 13px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: rgba(168, 85, 247, 0.74);
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.12);
}

.dashboard-list-header {
  justify-content: space-between;
  margin-bottom: 14px;
}

.dashboard-list-header h3 {
  margin: 0;
}

.dashboard-list-header span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  padding: 7px 12px;
}

.dashboard-projects {
  padding-bottom: 20px;
}

.dashboard-project {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 18px;
  transition: 0.2s ease;
}

.dashboard-project h4 {
  margin: 0 0 5px;
  color: white;
}

.dashboard-project p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.dashboard-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.small-button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: white;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 9px 12px;
}

.small-button.danger {
  color: #fecdd3;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1100px) {
  .desktop-rail {
    display: none;
  }
}

@media (max-width: 900px) {
  .site-header {
    border-radius: 24px;
  }

  .nav-links {
    display: none;
  }

  .hero-section,
  .section-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .status-header {
    margin-bottom: 70px;
  }

  .skills-grid,
  .projects-grid,
  .contact-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mini-card-grid,
  .about-highlight-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  main,
  .site-footer {
    width: min(100% - 24px, 1120px);
  }

  .site-header {
    width: min(100% - 20px, 1160px);
  }

  .brand-copy {
    display: none;
  }

  .hero-card {
    min-height: auto;
  }

  .hero-actions,
  .form-actions,
  .heading-row,
  .dashboard-project {
    align-items: stretch;
    flex-direction: column;
  }

  .status-grid,
  .skills-grid,
  .projects-grid,
  .contact-card-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-panel {
    border-radius: 28px 28px 0 0;
  }

  .dashboard-overlay {
    place-items: end stretch;
  }
}
