:root {
  --bg: #080a10;
  --bg-soft: #0d111b;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-strong: rgba(255, 255, 255, 0.09);
  --text: #f7f8fb;
  --muted: #9ca3b5;
  --line: rgba(255, 255, 255, 0.11);
  --primary: #8b5cf6;
  --primary-bright: #a78bfa;
  --secondary: #22d3ee;
  --accent: #f97316;
  --shadow: 0 25px 80px rgba(0, 0, 0, 0.36);
  --radius-large: 30px;
  --radius-medium: 20px;
  --container: 1180px;
}

html[data-theme="light"] {
  --bg: #f6f7fb;
  --bg-soft: #eef0f7;
  --surface: rgba(255, 255, 255, 0.74);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --text: #11131a;
  --muted: #636a7b;
  --line: rgba(17, 19, 26, 0.11);
  --shadow: 0 25px 80px rgba(36, 38, 51, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 12%, rgba(139, 92, 246, 0.12), transparent 26%),
    radial-gradient(circle at 90% 24%, rgba(34, 211, 238, 0.08), transparent 28%),
    var(--bg);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
  transition: color 0.25s ease, background-color 0.25s ease;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

::selection {
  color: #fff;
  background: var(--primary);
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.15;
  background: radial-gradient(circle, var(--primary), transparent 67%);
  transform: translate(-50%, -50%);
  filter: blur(30px);
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 120px 0;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  padding: 18px 0;
  transition: padding 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.site-header.scrolled {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(20px);
}

.navbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.logo span {
  display: grid;
  width: 38px;
  height: 38px;
  margin-right: 2px;
  place-items: center;
  color: #fff;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 32px;
}

.nav-links a {
  position: relative;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  width: 0;
  height: 2px;
  margin: auto;
  content: "";
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.theme-toggle,
.menu-button {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  backdrop-filter: blur(16px);
}

.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.theme-toggle:hover {
  transform: rotate(8deg) translateY(-2px);
  background: var(--surface-strong);
}

.theme-icon {
  font-size: 1rem;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  gap: 5px;
  border-radius: 14px;
}

.menu-button span {
  width: 18px;
  height: 2px;
  border-radius: 20px;
  background: currentColor;
  transition: transform 0.2s ease;
}

.hero {
  display: grid;
  min-height: 100svh;
  padding-top: 150px;
  place-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(350px, 0.92fr);
  align-items: center;
  gap: 80px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 8px 13px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  backdrop-filter: blur(14px);
}

.status-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 5px rgba(74, 222, 128, 0.12);
}

.status-dot::after {
  position: absolute;
  inset: -5px;
  content: "";
  border: 1px solid rgba(74, 222, 128, 0.5);
  border-radius: inherit;
  animation: pulse 2s infinite;
}

.hero-intro {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 650;
}

.hero h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(3.4rem, 8vw, 7.2rem);
  font-weight: 900;
  letter-spacing: -0.075em;
  line-height: 0.93;
}

.gradient-text {
  display: block;
  width: max-content;
  max-width: 100%;
  padding-right: 0.08em;
  color: transparent;
  background: linear-gradient(
    100deg,
    var(--primary-bright) 0%,
    var(--secondary) 50%,
    #5eead4 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-description {
  max-width: 680px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 16px;
  font-weight: 800;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.button:hover {
  transform: translateY(-3px);
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #5b5cf0 55%, #2563eb);
  box-shadow: 0 16px 40px rgba(92, 73, 238, 0.28);
}

.primary-button:hover {
  box-shadow: 0 22px 55px rgba(92, 73, 238, 0.4);
}

.secondary-button {
  border-color: var(--line);
  background: var(--surface);
  backdrop-filter: blur(14px);
}

.secondary-button:hover {
  border-color: rgba(139, 92, 246, 0.5);
  background: var(--surface-strong);
}

.hero-stats {
  display: flex;
  gap: 34px;
  margin-top: 48px;
}

.hero-stats div {
  display: grid;
}

.hero-stats strong {
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.76rem;
}

.hero-visual {
  position: relative;
  display: grid;
  min-height: 520px;
  place-items: center;
}

.profile-card {
  position: relative;
  width: min(100%, 480px);
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025)),
    var(--bg-soft);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
  backdrop-filter: blur(24px);
}

.profile-card::before {
  position: absolute;
  z-index: -1;
  inset: -2px;
  content: "";
  border-radius: 30px;
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.45),
    transparent 35%,
    rgba(34, 211, 238, 0.38)
  );
  filter: blur(14px);
  opacity: 0.55;
}

.profile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
}

.window-dots {
  display: flex;
  gap: 7px;
}

.window-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.window-dots span:nth-child(1) {
  background: #fb7185;
}

.window-dots span:nth-child(2) {
  background: #facc15;
}

.window-dots span:nth-child(3) {
  background: #4ade80;
}

.code-block {
  padding: 38px 30px 44px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(0.82rem, 1.4vw, 0.98rem);
  line-height: 1.85;
}

.code-block p {
  margin: 0;
}

.indent {
  padding-left: 24px;
}

.indent-two {
  padding-left: 48px;
}

.code-purple {
  color: #c084fc;
}

.code-green {
  color: #86efac;
}

.code-orange {
  color: #fdba74;
}

.floating-chip {
  position: absolute;
  padding: 10px 15px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-soft) 82%, transparent);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
  font-size: 0.76rem;
  font-weight: 800;
  backdrop-filter: blur(18px);
}

.chip-one {
  top: 80px;
  right: -26px;
  animation: float 5s ease-in-out infinite;
}

.chip-two {
  bottom: 75px;
  left: -38px;
  animation: float 5.7s ease-in-out infinite reverse;
}

.chip-three {
  right: 36px;
  bottom: -18px;
  animation: float 4.7s ease-in-out infinite;
}

.hero-orb {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(6px);
  opacity: 0.25;
}

.orb-one {
  top: 14%;
  right: 4%;
  width: 330px;
  height: 330px;
  background: var(--primary);
  animation: drift 12s ease-in-out infinite alternate;
}

.orb-two {
  bottom: 6%;
  left: 4%;
  width: 210px;
  height: 210px;
  background: var(--secondary);
  animation: drift 15s ease-in-out infinite alternate-reverse;
}

.scroll-indicator {
  position: absolute;
  bottom: 34px;
  left: 50%;
  display: grid;
  justify-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-indicator i {
  position: relative;
  display: block;
  width: 1px;
  height: 38px;
  overflow: hidden;
  background: var(--line);
}

.scroll-indicator i::after {
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 60%;
  content: "";
  background: var(--text);
  animation: scroll-line 2s infinite;
}

.section-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 22px;
  margin-bottom: 64px;
}

.section-number {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--primary-bright);
  border: 1px solid rgba(139, 92, 246, 0.28);
  border-radius: 14px;
  background: rgba(139, 92, 246, 0.08);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 800;
}

.section-kicker {
  margin: 0 0 7px;
  color: var(--primary-bright);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-heading h2,
.contact h2 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.35rem, 5.3vw, 5rem);
  letter-spacing: -0.065em;
  line-height: 1;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 70px;
}

.about-copy p {
  color: var(--muted);
}

.about-copy .large-copy {
  margin-top: 0;
  color: var(--text);
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 720;
  letter-spacing: -0.035em;
  line-height: 1.35;
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.mini-card,
.skill-panel {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(20px);
}

.mini-card {
  min-height: 210px;
  padding: 26px;
  border-radius: var(--radius-medium);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.mini-card:hover {
  z-index: 2;
  border-color: rgba(139, 92, 246, 0.36);
  background: var(--surface-strong);
  transform: translateY(-8px) rotate(-1deg);
}

.mini-card:nth-child(even):hover {
  transform: translateY(-8px) rotate(1deg);
}

.mini-icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 30px;
  place-items: center;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), #2563eb);
}

.mini-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.mini-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.projects {
  overflow: hidden;
  background:
    linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.035), transparent);
}

.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -32px 0 34px 64px;
}

.filter-button {
  padding: 9px 15px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 760;
  transition: all 0.2s ease;
}

.filter-button:hover,
.filter-button.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary), #2563eb);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.project-card {
  display: flex;
  min-height: 640px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  background: var(--surface);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    opacity 0.3s ease;
  backdrop-filter: blur(20px);
}

.project-card.hidden {
  display: none;
}

.project-card:hover {
  border-color: rgba(139, 92, 246, 0.42);
  transform: translateY(-8px);
}

.project-card.featured {
  grid-column: span 2;
  min-height: unset;
  flex-direction: row;
}

.project-visual {
  position: relative;
  display: grid;
  min-height: 320px;
  overflow: hidden;
  place-items: center;
}

.featured .project-visual {
  width: 52%;
  min-height: 520px;
}

.project-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 30px;
}

.featured .project-content {
  justify-content: center;
  width: 48%;
  padding: 52px;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.project-content h3 {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 4vw, 3.25rem);
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.project-content p {
  margin: 0;
  color: var(--muted);
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.tech-list span {
  padding: 7px 10px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.7rem;
  font-weight: 700;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  margin-top: 34px;
  color: var(--primary-bright);
  font-weight: 800;
}

.text-link span {
  transition: transform 0.2s ease;
}

.text-link:hover span {
  transform: translate(3px, -3px);
}

.anime-visual {
  background:
    radial-gradient(circle at 70% 25%, rgba(34, 211, 238, 0.3), transparent 30%),
    linear-gradient(135deg, #201a45, #0e1335 55%, #071826);
}

.mock-browser {
  width: 85%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  background: #0a0d16;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.38);
  transform: perspective(900px) rotateY(5deg) rotateX(2deg);
}

.mock-bar {
  display: flex;
  gap: 6px;
  padding: 11px;
  background: #151927;
}

.mock-bar span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #565c70;
}

.anime-ui {
  display: grid;
  grid-template-columns: 20% 80%;
  min-height: 310px;
}

.anime-sidebar {
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(#252b40 0 0) 50% 28px / 55% 8px no-repeat,
    repeating-linear-gradient(
      transparent 0 28px,
      rgba(255, 255, 255, 0.055) 29px 38px,
      transparent 39px 58px
    );
}

.anime-content {
  padding: 48px 24px 26px;
}

.anime-title {
  width: 42%;
  height: 15px;
  margin-bottom: 28px;
  border-radius: 6px;
  background: linear-gradient(90deg, #a78bfa, #22d3ee);
}

.anime-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
}

.anime-cards span {
  display: block;
  aspect-ratio: 0.72;
  border-radius: 9px;
  background:
    linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.7)),
    linear-gradient(135deg, #7347dd, #164e63);
}

.anime-cards span:nth-child(2) {
  background:
    linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.7)),
    linear-gradient(135deg, #2563eb, #7c3aed);
}

.anime-cards span:nth-child(3) {
  background:
    linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.7)),
    linear-gradient(135deg, #0891b2, #155e75);
}

.sitehub-visual {
  background:
    radial-gradient(circle at 30% 30%, rgba(139, 92, 246, 0.36), transparent 31%),
    linear-gradient(145deg, #1a1635, #0b1021);
}

.editor-window {
  display: grid;
  grid-template-columns: 12% 48% 40%;
  width: 82%;
  min-height: 225px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: #0c0f18;
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.3);
  transform: rotate(-3deg);
}

.editor-sidebar {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 13px;
  padding-top: 22px;
  background: #151927;
}

.editor-sidebar span {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: #555e77;
}

.editor-code {
  display: grid;
  align-content: center;
  gap: 13px;
  padding: 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.editor-code i {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, #8b5cf6 0 25%, #22d3ee 25% 58%, #41485f 58%);
}

.editor-code i:nth-child(2) {
  width: 72%;
}

.editor-code i:nth-child(3) {
  width: 88%;
}

.editor-code i:nth-child(4) {
  width: 63%;
}

.editor-code i:nth-child(5) {
  width: 78%;
}

.editor-preview {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 20px;
  background: #f6f7fb;
}

.editor-preview b {
  width: 62%;
  height: 16px;
  border-radius: 5px;
  background: #171a24;
}

.editor-preview span {
  height: 7px;
  border-radius: 5px;
  background: #c8ccd8;
}

.editor-preview span:last-child {
  width: 70%;
}

.exam-visual {
  background:
    radial-gradient(circle at 65% 30%, rgba(249, 115, 22, 0.28), transparent 31%),
    linear-gradient(145deg, #2b1514, #18101e);
}

.calendar-shell {
  width: 74%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: #0e111a;
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.3);
  transform: rotate(3deg);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  padding: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.calendar-header span {
  width: 30%;
  height: 8px;
  border-radius: 5px;
  background: #565d73;
}

.calendar-header span:last-child {
  width: 15%;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 18px;
}

.calendar-grid i {
  aspect-ratio: 1.15;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.055);
}

.calendar-grid i:nth-child(6),
.calendar-grid i:nth-child(7) {
  background: linear-gradient(135deg, #f97316, #ea580c);
}

.automation-visual {
  background:
    radial-gradient(circle at 25% 25%, rgba(34, 211, 238, 0.32), transparent 30%),
    linear-gradient(145deg, #071f29, #0e1120);
}

.workflow {
  display: flex;
  align-items: center;
  width: 88%;
  justify-content: center;
}

.workflow-node {
  display: grid;
  min-width: 82px;
  min-height: 82px;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 21px;
  background: linear-gradient(135deg, #0891b2, #6d28d9);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.24);
  font-size: 0.75rem;
  font-weight: 850;
}

.workflow i {
  position: relative;
  width: 15%;
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.19);
}

.workflow i::after {
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  content: "";
  background: #67e8f9;
  animation: workflow-line 1.7s linear infinite;
}

.skills-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.skill-panel {
  padding: 28px;
  border-radius: var(--radius-medium);
}

.skill-label {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.skill-cloud span {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  font-size: 0.82rem;
  font-weight: 720;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.skill-cloud span:hover {
  color: var(--primary-bright);
  border-color: rgba(139, 92, 246, 0.45);
  transform: translateY(-3px);
}

.contact-shell {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 60px;
  overflow: hidden;
  padding: 70px;
  border: 1px solid var(--line);
  border-radius: 36px;
  background:
    radial-gradient(circle at 90% 10%, rgba(34, 211, 238, 0.16), transparent 28%),
    radial-gradient(circle at 10% 100%, rgba(139, 92, 246, 0.17), transparent 32%),
    var(--surface);
  box-shadow: var(--shadow);
}

.contact-copy .section-number {
  margin-bottom: 30px;
}

.contact-copy p:last-child {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
}

.contact-actions {
  display: grid;
  min-width: 240px;
  gap: 12px;
}

.copy-email {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 15px;
  background: transparent;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 750;
  transition: color 0.2s ease, background 0.2s ease;
}

.copy-email:hover {
  color: var(--text);
  background: var(--surface);
}

.site-footer {
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 0.78rem;
}

.footer-content p {
  margin: 0;
}

.footer-content strong {
  color: var(--text);
}

.footer-content a {
  color: var(--text);
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

@keyframes pulse {
  0% {
    opacity: 0.8;
    transform: scale(0.75);
  }
  80%,
  100% {
    opacity: 0;
    transform: scale(1.6);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-14px) rotate(2deg);
  }
}

@keyframes drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(40px, 30px) scale(1.12);
  }
}

@keyframes scroll-line {
  from {
    top: -100%;
  }
  to {
    top: 140%;
  }
}

@keyframes workflow-line {
  from {
    left: -40%;
  }
  to {
    left: 120%;
  }
}

@media (max-width: 980px) {
  .section {
    padding: 96px 0;
  }

  .hero {
    padding-top: 135px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .hero-copy {
    text-align: center;
  }

  .eyebrow {
    margin-inline: auto;
  }

  .hero h1 {
    margin-inline: auto;
  }

  .gradient-text {
    margin-inline: auto;
  }

  .hero-description {
    margin-inline: auto;
  }

  .hero-actions,
  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    min-height: 460px;
  }

  .scroll-indicator {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .project-card.featured {
    flex-direction: column;
  }

  .featured .project-visual,
  .featured .project-content {
    width: 100%;
  }

  .featured .project-visual {
    min-height: 420px;
  }

  .featured .project-content {
    padding: 34px;
  }

  .contact-shell {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 50px;
  }

  .contact-actions {
    min-width: unset;
    width: min(100%, 340px);
  }
}

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .navbar {
    grid-template-columns: auto 1fr auto;
  }

  .menu-button {
    display: grid;
    justify-self: end;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    right: 14px;
    left: 14px;
    display: grid;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: color-mix(in srgb, var(--bg-soft) 94%, transparent);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(24px);
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    padding: 15px 14px;
  }

  .nav-links a::after {
    display: none;
  }

  .theme-toggle {
    position: fixed;
    right: 70px;
  }

  .hero {
    min-height: auto;
    padding-top: 130px;
  }

  .hero h1 {
    font-size: clamp(3.15rem, 15vw, 5.2rem);
  }

  .hero-stats {
    gap: 20px;
  }

  .hero-stats div {
    flex: 1;
  }

  .hero-visual {
    min-height: 390px;
  }

  .profile-card {
    transform: none;
  }

  .chip-one {
    right: -3px;
  }

  .chip-two {
    left: -3px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 42px;
  }

  .about-cards,
  .project-grid,
  .skills-layout {
    grid-template-columns: 1fr;
  }

  .project-filters {
    margin: -18px 0 28px;
  }

  .project-card.featured {
    grid-column: auto;
  }

  .project-card {
    min-height: unset;
  }

  .project-visual,
  .featured .project-visual {
    min-height: 300px;
  }

  .contact-shell {
    padding: 34px 24px;
    border-radius: 26px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 78px 0;
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .hero-stats span {
    font-size: 0.64rem;
  }

  .profile-top {
    padding: 14px;
  }

  .code-block {
    padding: 28px 18px 34px;
    font-size: 0.7rem;
  }

  .indent {
    padding-left: 14px;
  }

  .indent-two {
    padding-left: 28px;
  }

  .floating-chip {
    padding: 8px 11px;
    font-size: 0.65rem;
  }

  .project-content,
  .featured .project-content {
    padding: 25px;
  }

  .mock-browser {
    width: 92%;
  }

  .anime-ui {
    min-height: 230px;
  }

  .workflow-node {
    min-width: 66px;
    min-height: 66px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .cursor-glow {
    display: none;
  }
}