:root {
  --bg: #0b0f16;
  --bg-2: #0f1522;
  --ink: #f5f2ea;
  --muted: #b4bccd;
  --accent: #ff6b2d;
  --accent-2: #ffd27a;
  --line: rgba(255, 255, 255, 0.12);
  --card: rgba(15, 21, 34, 0.7);
  --glass: rgba(255, 255, 255, 0.04);
  --shadow: 0 40px 80px rgba(0, 0, 0, 0.45);
}

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

body {
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background: radial-gradient(1200px 700px at 10% 10%, #1e2739 0%, transparent 70%),
    radial-gradient(900px 600px at 90% 20%, #2d1f1a 0%, transparent 60%),
    var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

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

.page {
  position: relative;
}

.noise-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  opacity: 0.12;
  mix-blend-mode: soft-light;
  z-index: 1;
}

.nebula-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.6;
  mix-blend-mode: screen;
  z-index: 0;
}

.cursor-glow {
  position: fixed;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255, 210, 122, 0.35), transparent 70%);
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.45;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 20;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(11, 15, 22, 0.95) 0%, rgba(11, 15, 22, 0.5) 100%);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}

.logo {
  font-family: "Bodoni Moda", serif;
  font-size: 22px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: var(--muted);
}

.nav-links a {
  position: relative;
  padding-bottom: 6px;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--ink);
}

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

.nav-links a.active {
  color: var(--ink);
}

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

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
  font-size: 14px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  z-index: 2;
}

.cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 30px rgba(255, 107, 45, 0.2);
  border-color: rgba(255, 107, 45, 0.6);
}

.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 110px 24px 70px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero > * {
  position: relative;
  z-index: 2;
}


.mega-word {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Bodoni Moda", serif;
  font-size: clamp(120px, 22vw, 320px);
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.035);
  text-transform: uppercase;
  white-space: nowrap;
  z-index: 1;
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.hero-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.glow-text {
  background: linear-gradient(120deg, #fff 10%, #ffd7a4 40%, #ff8b5c 70%, #fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 10px 50px rgba(255, 135, 70, 0.3);
  animation: shimmer 6s ease-in-out infinite;
}

.hero h1,
.section-title {
  font-family: "Bodoni Moda", serif;
  font-size: clamp(40px, 6vw, 70px);
  line-height: 1.05;
  margin-bottom: 16px;
  word-break: keep-all;
  overflow-wrap: normal;
  hyphens: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  word-break: keep-all;
  overflow-wrap: normal;
  hyphens: none;
}

.hero p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.ghost {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  transition: all 0.3s ease;
}

.ghost:hover {
  color: var(--ink);
  border-color: rgba(255, 210, 122, 0.8);
  box-shadow: inset 0 0 0 1px rgba(255, 210, 122, 0.4);
}

.hero-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 300px at 20% 0%, rgba(255, 210, 122, 0.15), transparent 60%);
  opacity: 0.8;
  pointer-events: none;
}

.hero-card::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255, 107, 45, 0.5), transparent 70%);
  top: -110px;
  right: -60px;
  opacity: 0.8;
  animation: float 6s ease-in-out infinite;
}

.hero-card .stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-radius: 16px;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
}

.stat strong {
  font-size: 22px;
}

.stat span {
  color: var(--muted);
  font-size: 13px;
}

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 80px;
  position: relative;
  z-index: 2;
}

.impact-band {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 60px;
  display: grid;
  gap: 18px;
  z-index: 2;
  position: relative;
}

.impact-track {
  display: flex;
  gap: 16px;
  overflow: hidden;
  padding: 14px 0;
  position: relative;
}

.impact-track div {
  display: flex;
  gap: 16px;
  align-items: center;
  animation: marquee 14s linear infinite;
}

.impact-pill {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.spotlight {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 90px;
  position: relative;
  z-index: 2;
}

.spotlight-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  padding: 32px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.spotlight-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 200px at 90% 0%, rgba(255, 210, 122, 0.2), transparent 60%);
  opacity: 0.9;
  pointer-events: none;
}

.spotlight-media {
  min-height: 260px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 107, 45, 0.35), rgba(15, 21, 34, 0.5));
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

.spotlight-metrics {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.spotlight-metrics div {
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  font-size: 14px;
  color: var(--muted);
}

.rail-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  position: relative;
  z-index: 2;
}

.rail-section > * {
  position: relative;
  z-index: 2;
}

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 14px;
  scroll-snap-type: x mandatory;
  scroll-padding: 24px;
}

.rail::-webkit-scrollbar {
  height: 8px;
}

.rail::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}

.rail-card {
  scroll-snap-align: start;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 20px;
  min-height: 200px;
  display: grid;
  gap: 10px;
}

.rail-card strong {
  font-size: 16px;
}

.rail-card span {
  color: var(--muted);
  font-size: 13px;
}

.section p {
  color: var(--muted);
  max-width: 680px;
  line-height: 1.7;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.card {
  background: var(--card);
  border-radius: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}

[data-parallax] {
  --parallax: 0px;
  will-change: transform;
}

[data-parallax]:not([data-tilt]) {
  transform: translateY(var(--parallax));
  transition: transform 0.3s ease;
}

[data-tilt] {
  --rx: 0deg;
  --ry: 0deg;
  --lift: 0px;
  transform: translateY(var(--parallax)) translateY(var(--lift)) rotateX(var(--rx)) rotateY(var(--ry));
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(300px 200px at var(--x, 50%) var(--y, 50%), rgba(255, 210, 122, 0.15), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 210, 122, 0.5);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.card:hover::after {
  opacity: 1;
}

.card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.stack span {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline {
  margin-top: 36px;
  display: grid;
  gap: 16px;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 107, 45, 0.2);
  border: 1px solid rgba(255, 107, 45, 0.4);
  display: grid;
  place-items: center;
  font-weight: 600;
}

.showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.project {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  min-height: 220px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
  border: 1px solid var(--line);
  transform-style: preserve-3d;
}

.project::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(255, 107, 45, 0.4), rgba(15, 21, 34, 0.2));
  opacity: 0.3;
  transition: opacity 0.4s ease;
}

.project:hover::before {
  opacity: 0.6;
}

.project-content {
  position: relative;
  z-index: 1;
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project h4 {
  font-size: 18px;
  margin-bottom: 10px;
}

.project p {
  font-size: 14px;
  color: var(--muted);
}

.project .tag {
  align-self: flex-start;
  margin-top: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
}

.project-case {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 24px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
}

.project-list {
  display: grid;
  gap: 24px;
  margin-top: 36px;
}

.project-image {
  border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  min-height: 220px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 16px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: rgba(10, 12, 18, 0.6);
  display: block;
}

.project-meta {
  display: grid;
  gap: 12px;
}

.project-meta h3 {
  font-size: 22px;
}

.project-meta p {
  color: var(--muted);
  line-height: 1.6;
  word-break: normal;
  overflow-wrap: anywhere;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tags span {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.project-link {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--ink);
  font-size: 13px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.project-link:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 210, 122, 0.6);
}

.contact {
  margin-top: 40px;
  padding: 32px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 210, 122, 0.12), rgba(255, 107, 45, 0.06));
  border: 1px solid rgba(255, 210, 122, 0.3);
  display: grid;
  gap: 16px;
}

.contact .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

footer {
  padding: 40px 24px 80px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 300px;
  flex-wrap: wrap;
}

.footer-image {
  display: inline-flex;
  align-items: center;
  margin: 0 12px 0 0;
  padding: 0;
  vertical-align: middle;
}

.footer-image img {
  width: 200px;
  max-width: 30vw;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transform: rotate(90deg);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  display: block;
}

.floating-orb {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 210, 122, 0.5), transparent 70%);
  filter: blur(0.2px);
  opacity: 0.2;
  top: 60vh;
  left: -80px;
  animation: drift 12s ease-in-out infinite;
  pointer-events: none;
}

.floating-orb.orb-2 {
  width: 180px;
  height: 180px;
  top: 10vh;
  right: -60px;
  left: auto;
  background: radial-gradient(circle at 30% 30%, rgba(255, 107, 45, 0.45), transparent 70%);
  animation-delay: -4s;
}

.reveal {
  opacity: 0;
  transform: translateY(26px) scale(0.98);
  filter: blur(6px);
  transition: opacity 0.8s ease, transform 0.8s ease, filter 0.8s ease;
}

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

.split-text {
  display: inline-block;
}

.split-text span {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px);
}

.split-text .word {
  white-space: nowrap;
}

.stagger > * {
  opacity: 0;
  transform: translateY(18px);
}

.stagger.visible > * {
  animation: staggerIn 0.7s ease forwards;
  animation-delay: calc(var(--i, 0) * 120ms);
}

.hero-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
  margin-top: 18px;
}

.hero-meta span {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.stack-board {
  display: grid;
  gap: 16px;
  margin-top: 36px;
}

.stack-row {
  display: grid;
  grid-template-columns: minmax(140px, 180px) 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.stack-row strong {
  font-size: 15px;
}

.stack-row p {
  font-size: 14px;
  color: var(--muted);
}

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

@keyframes shimmer {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.1);
  }
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

@keyframes drift {
  0%, 100% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(20px) translateX(30px);
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 90px;
  }

  .hero-card {
    order: -1;
  }

  .stack-row {
    grid-template-columns: 1fr;
  }

  .project-case {
    grid-template-columns: 1fr;
  }

  .cursor-glow {
    width: 200px;
    height: 200px;
  }

  .section {
    padding: 50px 20px 70px;
  }

  .nebula-canvas {
    opacity: 0.45;
  }

  .mega-word {
    top: 0;
    font-size: clamp(120px, 28vw, 220px);
    letter-spacing: 0.15em;
  }
}

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