:root {
  --bg: #050712;
  --text: #f8fafc;
  --muted: #a9b4c7;
  --muted2: #7d8aa3;
  --line: rgba(255, 255, 255, 0.12);
  --line2: rgba(255, 255, 255, 0.2);
  --glass: rgba(255, 255, 255, 0.065);
  --glass2: rgba(255, 255, 255, 0.095);
  --purple: #8b5cf6;
  --blue: #3b82f6;
  --cyan: #38bdf8;
  --green: #4ade80;
  --radius: 28px;
  --shadow: 0 40px 120px rgba(0, 0, 0, 0.46);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  width: 100%;
  max-width: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 18% 10%, rgba(139, 92, 246, 0.25), transparent 30%),
    radial-gradient(circle at 86% 15%, rgba(59, 130, 246, 0.18), transparent 32%),
    radial-gradient(circle at 50% 90%, rgba(56, 189, 248, 0.08), transparent 30%),
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.026) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

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

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

button {
  font: inherit;
}

/* INTRO */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  min-height: 100svh;
  background:
    radial-gradient(circle at 50% 34%, rgba(139, 92, 246, 0.18), transparent 26%),
    radial-gradient(circle at 50% 54%, rgba(59, 130, 246, 0.10), transparent 26%),
    linear-gradient(180deg, #040610 0%, #060817 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.preloader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-bg-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at center, black, transparent 72%);
}

.intro-code-rain {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.18;
  z-index: 1;
}

.code-column {
  position: absolute;
  top: -260px;
  width: max-content;
  max-width: 130px;
  color: rgba(147, 197, 253, 0.28);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.9;
  white-space: pre;
  overflow: hidden;
  filter: blur(0.1px);
  animation-name: codeFall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  text-shadow: 0 0 18px rgba(96, 165, 250, 0.20);
}

@keyframes codeFall {
  from {
    transform: translateY(-12%);
  }
  to {
    transform: translateY(130vh);
  }
}

.intro-core {
  position: relative;
  z-index: 3;
  width: min(86vw, 520px);
  display: grid;
  place-items: center;
  gap: 20px;
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  animation: introIn 0.75s cubic-bezier(.2,.8,.2,1) 0.18s forwards;
}

@keyframes introIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.intro-terminal {
  width: min(86vw, 440px);
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)),
    rgba(3, 7, 18, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 30px 90px rgba(0,0,0,0.45),
    0 0 70px rgba(139,92,246,0.12);
  opacity: 0;
  transform: translateY(12px);
  animation: introFadeUp 0.55s ease 0.38s forwards;
}

.intro-terminal-top {
  height: 38px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.intro-terminal-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.intro-terminal-top span:nth-child(1) {
  background: #fb7185;
}

.intro-terminal-top span:nth-child(2) {
  background: #facc15;
}

.intro-terminal-top span:nth-child(3) {
  background: #4ade80;
}

.intro-terminal-body {
  padding: 18px 20px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.75;
  color: #dbeafe;
}

.intro-terminal-body p {
  opacity: 0;
  transform: translateX(-10px);
  animation: introLine 0.42s ease forwards;
}

.intro-terminal-body p:nth-child(1) {
  animation-delay: 0.56s;
}

.intro-terminal-body p:nth-child(2) {
  animation-delay: 0.76s;
}

.intro-terminal-body p:nth-child(3) {
  animation-delay: 0.96s;
}

.intro-terminal-body span {
  color: #a78bfa;
}

.intro-terminal-body strong {
  color: var(--green);
}

@keyframes introLine {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.intro-brand {
  margin-top: 8px;
  padding: 14px 18px;
  border-radius: 24px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 22px 70px rgba(0,0,0,0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  opacity: 0;
  transform: translateY(12px);
  animation: introFadeUp 0.55s ease 1.08s forwards;
}

.intro-brand img {
  width: 56px;
  height: 56px;
  border-radius: 17px;
  box-shadow:
    0 0 50px rgba(139, 92, 246, 0.45),
    0 0 90px rgba(59, 130, 246, 0.18);
}

.intro-brand b {
  font-size: clamp(25px, 4vw, 36px);
  letter-spacing: clamp(8px, 1.7vw, 14px);
  color: #fff;
  clip-path: inset(0 100% 0 0);
  animation: introTextReveal 0.75s cubic-bezier(.2,.8,.2,1) 1.18s forwards;
}

@keyframes introTextReveal {
  to {
    clip-path: inset(0 0 0 0);
  }
}

.intro-subtitle {
  color: rgba(226,232,240,0.72);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 4px;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  animation: introFadeUp 0.5s ease 1.32s forwards;
}

.intro-loader {
  width: min(300px, 64vw);
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  overflow: hidden;
  opacity: 0;
  animation: introFadeUp 0.4s ease 1.42s forwards;
}

.intro-loader span {
  display: block;
  width: 100%;
  height: 100%;
  transform: translateX(-100%);
  background: linear-gradient(90deg, var(--purple), var(--blue), var(--cyan));
  box-shadow: 0 0 24px rgba(96, 165, 250, 0.8);
  animation: introLoad 0.95s ease 1.45s forwards;
}

@keyframes introLoad {
  to {
    transform: translateX(0);
  }
}

@keyframes introFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* BACKGROUND */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 300;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--blue), var(--cyan));
}

.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  opacity: 0.5;
}

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

.cursor-glow {
  position: fixed;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(139, 92, 246, 0.18), transparent 65%);
  transition: opacity 0.25s ease;
}

/* HEADER */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 82px;
  padding: 0 7%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(5, 7, 18, 0.75);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(22px);
  transition: 0.25s ease;
}

.header.scrolled {
  height: 70px;
  background: rgba(5, 7, 18, 0.92);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  object-fit: cover;
  box-shadow: 0 0 28px rgba(139, 92, 246, 0.28);
}

.brand-wide {
  width: auto;
  height: 30px;
  max-width: 190px;
  object-fit: contain;
}

.brand-text {
  display: none;
  font-weight: 950;
  letter-spacing: 5px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.nav a {
  position: relative;
  transition: 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -9px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--blue));
  transition: 0.2s ease;
}

.nav a:hover {
  color: #fff;
}

.nav a:hover::after {
  width: 100%;
}

.menu-btn {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
  border-radius: 20px;
  transition: 0.2s ease;
}

/* HERO */

.hero {
  position: relative;
  min-height: calc(100vh - 82px);
  padding: 84px 7% 70px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 70px;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(75px);
  pointer-events: none;
  opacity: 0.55;
  animation: floatOrb 8s ease-in-out infinite;
}

.hero-glow-one {
  width: 330px;
  height: 330px;
  left: 5%;
  top: 15%;
  background: rgba(139, 92, 246, 0.35);
}

.hero-glow-two {
  width: 280px;
  height: 280px;
  right: 9%;
  top: 22%;
  background: rgba(59, 130, 246, 0.26);
  animation-delay: 2s;
}

@keyframes floatOrb {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-28px) scale(1.08);
  }
}

.status-pill {
  max-width: 100%;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 11px 16px;
  margin-bottom: 30px;
  border: 1px solid var(--line2);
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  color: #dbeafe;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.6px;
  white-space: nowrap;
  overflow: hidden;
}

.status-pill span {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  animation: pulse 1.8s infinite;
}

.status-pill i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.7);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.75);
  }
  75% {
    box-shadow: 0 0 0 12px rgba(139, 92, 246, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(139, 92, 246, 0);
  }
}

.hero h1 {
  max-width: 980px;
  font-size: clamp(56px, 6.6vw, 102px);
  line-height: 0.92;
  letter-spacing: -5px;
}

.hero h1 em {
  display: block;
  font-style: normal;
  background: linear-gradient(135deg, #c4b5fd, #60a5fa 75%);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-desc {
  max-width: 660px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.85;
}

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

.btn {
  min-height: 54px;
  padding: 0 25px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 950;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-4px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  box-shadow: 0 20px 65px rgba(78, 70, 229, 0.36);
}

.btn-secondary {
  color: #e5e7eb;
  border: 1px solid var(--line2);
  background: rgba(255,255,255,0.06);
}

.hero-metrics {
  max-width: 780px;
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}

.metric-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,0.055);
  transition: 0.25s ease;
}

.metric-card:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 92, 246, 0.45);
  background: rgba(255,255,255,0.085);
}

.metric-card strong {
  display: block;
  margin-bottom: 7px;
  font-size: 22px;
}

.metric-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.hero-visual {
  perspective: 1100px;
}

.developer-card {
  position: relative;
  width: min(100%, 520px);
  min-height: 560px;
  padding: 32px;
  border: 1px solid var(--line2);
  border-radius: 38px;
  background: linear-gradient(145deg, rgba(255,255,255,0.13), rgba(255,255,255,0.045));
  box-shadow: var(--shadow);
  backdrop-filter: blur(28px);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.15s ease;
}

.card-shine {
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,0.12), transparent 45%);
  animation: shine 5.5s ease-in-out infinite;
}

@keyframes shine {
  0%, 60% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.dev-head {
  position: relative;
  margin-bottom: 42px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.dev-head img {
  width: 82px;
  height: 82px;
  border-radius: 23px;
  object-fit: cover;
}

.dev-head h2 {
  font-size: 32px;
  letter-spacing: -1px;
}

.dev-head p {
  margin-top: 5px;
  color: var(--muted);
}

.code-window {
  position: relative;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 25px;
  background: rgba(3, 7, 18, 0.82);
  overflow: hidden;
}

.code-window-top {
  height: 44px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.code-window-top span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

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

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

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

pre {
  padding: 25px;
  overflow-x: auto;
}

code {
  color: #e2e8f0;
  font-size: 14px;
  line-height: 1.8;
}

.code-key {
  color: #a78bfa;
}

.dev-footer {
  position: relative;
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dev-footer small {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
}

.dev-footer b {
  font-size: 15px;
}

.active-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #bbf7d0;
  font-size: 13px;
  font-weight: 900;
}

.active-badge span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 14px rgba(34,197,94,0.8);
}

/* SECTIONS */

.logo-strip {
  margin: 0 7%;
  padding: 20px 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,0.045);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  overflow: hidden;
}

.logo-strip span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
}

.logo-strip img {
  width: auto;
  height: 42px;
  max-width: 330px;
  object-fit: contain;
}

.section {
  padding: 105px 7%;
}

.section-head {
  max-width: 820px;
  margin-bottom: 44px;
}

.section-head p,
.section-label {
  margin-bottom: 18px;
  color: #a78bfa;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.section-head h2,
.about-section h2,
.brand-panel h2,
.contact-card h2 {
  font-size: clamp(36px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: -4px;
}

.section-head span,
.brand-panel span,
.contact-card span {
  display: block;
  max-width: 720px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.proof-grid,
.projects-grid,
.timeline,
.blog-grid {
  display: grid;
  gap: 22px;
}

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

.projects-grid {
  grid-template-columns: 1.2fr 1fr 1fr;
}

.timeline {
  grid-template-columns: repeat(4, 1fr);
}

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

.proof-card,
.project-card,
.timeline article,
.blog-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.035));
  transition: 0.25s ease;
}

.proof-card:hover,
.project-card:hover,
.timeline article:hover,
.blog-grid article:hover {
  transform: translateY(-10px);
  border-color: rgba(167,139,250,0.48);
}

.proof-card {
  min-height: 220px;
  padding: 28px;
}

.proof-card span,
.timeline article span {
  color: #60a5fa;
  font-size: 13px;
  font-weight: 950;
}

.proof-card h3,
.timeline article h3 {
  margin: 18px 0 12px;
  font-size: 26px;
}

.proof-card p,
.timeline article p,
.blog-grid article p,
.project-card p {
  color: var(--muted);
  line-height: 1.7;
}

.project-card {
  min-height: 350px;
  padding: 30px;
  position: relative;
  overflow: hidden;
}

.project-main {
  background:
    radial-gradient(circle at 20% 0%, rgba(139,92,246,0.22), transparent 40%),
    linear-gradient(145deg, rgba(255,255,255,0.1), rgba(255,255,255,0.035));
}

.project-number {
  margin-bottom: 26px;
  color: rgba(255,255,255,0.15);
  font-size: 66px;
  line-height: 1;
  font-weight: 950;
}

.project-card small {
  color: #93c5fd;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.project-card h3 {
  margin: 18px 0 15px;
  font-size: 30px;
  letter-spacing: -1px;
}

.chip-row {
  margin-top: 25px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.chip-row span {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.055);
  color: #dbeafe;
  font-size: 12px;
  font-weight: 800;
}

.about-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.018));
}

.about-text {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
}

.about-text p + p {
  margin-top: 24px;
}

.mini-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.mini-grid div {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,0.055);
}

.mini-grid b {
  display: block;
  margin-bottom: 8px;
  color: #a78bfa;
}

.mini-grid span {
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 850;
}

.timeline article,
.blog-grid article {
  min-height: 230px;
  padding: 28px;
}

.marquee {
  padding: 18px 0;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: rgba(255,255,255,0.055);
  overflow: hidden;
}

.marquee-track {
  width: max-content;
  display: flex;
  gap: 14px;
  animation: marqueeMove 24s linear infinite;
}

.marquee-track span {
  padding: 13px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  font-weight: 950;
  white-space: nowrap;
}

@keyframes marqueeMove {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.brand-panel {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 38px;
  background:
    radial-gradient(circle at 100% 0%, rgba(139,92,246,0.16), transparent 38%),
    rgba(255,255,255,0.055);
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 36px;
  align-items: center;
}

.brand-image {
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
}

.brand-image img {
  width: 100%;
  transition: 0.35s ease;
}

.brand-image:hover img {
  transform: scale(1.04);
}

.blog-grid article span {
  color: #93c5fd;
  font-size: 13px;
  font-weight: 950;
}

.blog-grid article h3 {
  margin: 18px 0 12px;
  font-size: 25px;
  letter-spacing: -1px;
}

.contact-section {
  padding: 80px 7% 115px;
}

.contact-card {
  max-width: 940px;
  margin: auto;
  padding: 75px 30px;
  border: 1px solid rgba(167,139,250,0.35);
  border-radius: 42px;
  background:
    radial-gradient(circle at 50% 0%, rgba(139,92,246,0.28), transparent 45%),
    rgba(255,255,255,0.06);
  box-shadow: var(--shadow);
  text-align: center;
}

.contact-card span {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 32px;
}

.footer {
  padding: 32px 7%;
  border-top: 1px solid var(--line);
  color: #94a3b8;
  display: flex;
  justify-content: space-between;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */

@media (max-width: 1100px) {
  .hero,
  .projects-grid,
  .about-section,
  .brand-panel,
  .proof-grid {
    grid-template-columns: 1fr;
  }

  .developer-card {
    width: 100%;
    min-height: auto;
  }

  .timeline,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .logo-strip {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 820px) {
  body {
    background:
      radial-gradient(circle at 30% 5%, rgba(139, 92, 246, 0.24), transparent 32%),
      radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.18), transparent 28%),
      #050712;
  }

  .cursor-glow {
    display: none;
  }

  .header {
    height: 76px;
    padding: 0 5%;
  }

  .header.scrolled {
    height: 70px;
  }

  .brand-icon {
    width: 43px;
    height: 43px;
    border-radius: 14px;
  }

  .brand-wide {
    display: none;
  }

  .brand-text {
    display: inline-block;
    font-size: 17px;
    letter-spacing: 6px;
  }

  .menu-btn {
    display: block;
    width: 46px;
    height: 46px;
    border-radius: 16px;
  }

  .nav {
    position: fixed;
    top: 84px;
    left: 5%;
    right: 5%;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(8, 12, 25, 0.96);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: 0.25s ease;
  }

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

  .hero {
    min-height: auto;
    padding: 34px 5% 64px;
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  .hero-content {
    width: 100%;
    order: 1;
  }

  .hero-visual {
    width: 100%;
    order: 2;
    margin-top: 4px;
  }

  .status-pill {
    width: auto;
    max-width: 100%;
    justify-content: flex-start;
    padding: 9px 12px;
    margin-bottom: 22px;
    font-size: 9.2px;
    letter-spacing: 0.65px;
    gap: 6px;
    border-color: rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.055);
  }

  .status-pill span {
    width: 8px;
    height: 8px;
  }

  .status-pill i {
    width: 3px;
    height: 3px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(37px, 11.6vw, 50px);
    line-height: 1.01;
    letter-spacing: -2.2px;
  }

  .hero-desc {
    margin-top: 22px;
    font-size: 15.8px;
    line-height: 1.72;
    max-width: 96%;
    color: rgba(203, 213, 225, 0.86);
  }

  .hero-actions {
    margin-top: 28px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .btn {
    width: 100%;
    min-height: 53px;
    border-radius: 17px;
    font-size: 15px;
  }

  .hero-metrics {
    display: none;
  }

  .developer-card {
    padding: 20px;
    border-radius: 28px;
    margin-top: 0;
  }

  .dev-head {
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
  }

  .dev-head img {
    width: 58px;
    height: 58px;
    border-radius: 17px;
  }

  .dev-head h2 {
    font-size: 23px;
  }

  .dev-head p {
    font-size: 13px;
  }

  .code-window {
    border-radius: 19px;
  }

  .code-window-top {
    height: 36px;
  }

  .code-window-top span {
    width: 9px;
    height: 9px;
  }

  pre {
    padding: 16px;
  }

  code {
    font-size: 10.8px;
    line-height: 1.75;
  }

  .dev-footer {
    margin-top: 18px;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .logo-strip {
    margin: 6px 5% 0;
    padding: 18px;
  }

  .logo-strip img {
    max-width: 220px;
    height: auto;
  }

  .hero-metrics,
  .mini-grid,
  .timeline,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 76px 5%;
  }

  .section-head {
    margin-bottom: 30px;
  }

  .section-head h2,
  .about-section h2,
  .brand-panel h2,
  .contact-card h2 {
    font-size: clamp(34px, 10vw, 46px);
    line-height: 1.02;
    letter-spacing: -2px;
  }

  .section-head span,
  .brand-panel span,
  .about-text,
  .contact-card span {
    font-size: 16px;
  }

  .proof-card,
  .project-card,
  .timeline article,
  .blog-grid article {
    border-radius: 24px;
  }

  .brand-panel {
    padding: 20px;
  }

  .contact-section {
    padding: 70px 5% 95px;
  }

  .contact-card {
    padding: 55px 22px;
  }

  .footer {
    padding: 28px 5%;
    flex-direction: column;
    gap: 8px;
  }

  .intro-code-rain {
    opacity: 0.16;
  }

  .intro-core {
    width: min(90vw, 390px);
    transform: translateY(-4vh) scale(0.96);
  }

  .intro-terminal {
    width: min(90vw, 360px);
    border-radius: 20px;
  }

  .intro-terminal-body {
    padding: 15px 16px;
    font-size: 10.6px;
    line-height: 1.75;
  }

  .intro-brand {
    gap: 13px;
    padding: 12px 15px;
    border-radius: 21px;
  }

  .intro-brand img {
    width: 48px;
    height: 48px;
    border-radius: 15px;
  }

  .intro-brand b {
    font-size: 21px;
    letter-spacing: 7px;
  }

  .intro-subtitle {
    font-size: 10px;
    letter-spacing: 2.4px;
  }

  .intro-loader {
    width: min(260px, 62vw);
  }

  .code-column {
    font-size: 9.5px;
    max-width: 86px;
  }
}

@media (max-width: 390px) {
  .hero h1 {
    font-size: clamp(35px, 11.4vw, 47px);
  }

  .hero-desc {
    font-size: 15.2px;
  }

  .status-pill {
    font-size: 8.6px;
    gap: 5px;
  }

  .brand-text {
    font-size: 16px;
    letter-spacing: 5px;
  }

  .intro-brand b {
    font-size: 20px;
    letter-spacing: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .preloader {
    display: none;
  }
}