@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --bg: #07090d;
  --panel: rgba(255, 255, 255, 0.055);
  --panel-2: rgba(255, 255, 255, 0.085);
  --text: #f5f7fb;
  --muted: #98a0b3;
  --line: rgba(255, 255, 255, 0.11);
  --accent: #8b5cf6;
  --accent-2: #36e4da;
  --accent-3: #63a4ff;
  --radius: 26px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 0%, rgba(104, 65, 255, .16), transparent 34%),
    radial-gradient(circle at 100% 35%, rgba(54, 228, 218, .09), transparent 30%),
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { background: rgba(139, 92, 246, .45); color: white; }

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

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: .17;
}
.orb-one { width: 380px; height: 380px; background: #6d42ff; top: 12%; left: -120px; }
.orb-two { width: 360px; height: 360px; background: #14c8c0; bottom: 0; right: -160px; }

.nav-wrap {
  position: fixed;
  z-index: 50;
  top: 0;
  width: 100%;
  padding: 18px 24px;
}
.nav {
  width: min(1180px, 100%);
  margin: auto;
  height: 70px;
  padding: 0 18px;
  border: 1px solid var(--line);
  background: rgba(7, 9, 13, .63);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .1em; }
.brand-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  color: #06070b;
  background: linear-gradient(135deg, #fff, #96f1ea 48%, #9d7dff);
  box-shadow: 0 0 30px rgba(139, 92, 246, .28);
}
.nav-links { display: flex; align-items: center; gap: 28px; color: #c7ccda; font-size: 14px; }
.nav-links a { transition: color .25s ease; }
.nav-links a:hover { color: white; }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.ghost-btn {
  border: 1px solid var(--line);
  padding: 11px 15px;
  border-radius: 13px;
  color: #dbe0ed;
  font-size: 13px;
  transition: .25s ease;
}
.ghost-btn:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.22); }

.menu-btn {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.menu-btn span { width: 18px; height: 1px; background: white; }

.section { width: min(1180px, calc(100% - 48px)); margin: auto; }
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: 70px;
  align-items: center;
  padding-top: 132px;
  padding-bottom: 80px;
}
.eyebrow, .kicker {
  text-transform: uppercase;
  letter-spacing: .16em;
  color: #b3b9c9;
  font-size: 12px;
  font-weight: 700;
}
.eyebrow { display: inline-flex; align-items: center; gap: 9px; }
.pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ef2b6;
  box-shadow: 0 0 18px #4ef2b6;
  animation: pulse 2s infinite;
}
@keyframes pulse { 50% { opacity: .45; transform: scale(.86); } }

h1, h2, h3 { font-family: "Space Grotesk", Inter, sans-serif; margin: 0; }
h1 {
  margin-top: 20px;
  font-size: clamp(58px, 7.2vw, 104px);
  line-height: .93;
  letter-spacing: -.065em;
  max-width: 760px;
}
.gradient-text {
  background: linear-gradient(100deg, #fff 5%, #9ef5ee 42%, #9a7cff 75%, #e0b1ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-text {
  max-width: 650px;
  margin: 28px 0 0;
  font-size: 18px;
  line-height: 1.75;
  color: var(--muted);
}
.hero-actions { display: flex; gap: 12px; margin-top: 34px; }
.primary-btn, .secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 15px 20px;
  border-radius: 15px;
  font-weight: 700;
  font-size: 14px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.primary-btn {
  color: #090a0f;
  background: linear-gradient(120deg, #f8fbff, #b1f7ef 47%, #a68cff);
  box-shadow: 0 14px 40px rgba(96, 75, 255, .22);
}
.primary-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 50px rgba(96,75,255,.33); }
.secondary-btn { border: 1px solid var(--line); background: rgba(255,255,255,.035); }
.secondary-btn:hover { background: rgba(255,255,255,.075); }
.hero-stats { display: flex; gap: 34px; margin-top: 48px; }
.hero-stats div { display: grid; gap: 3px; }
.hero-stats strong { font-family: "Space Grotesk"; font-size: 17px; }
.hero-stats span { font-size: 12px; color: #737d93; }

.hero-visual { position: relative; }
.visual-card {
  position: relative;
  padding: 18px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.025)),
    rgba(11, 14, 21, .78);
  box-shadow: 0 35px 100px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.05);
  overflow: hidden;
}
.visual-card::before {
  content: "";
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(119, 75, 255, .26);
  filter: blur(70px);
  top: -120px; right: -60px;
}
.window-bar {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 8px 4px 16px;
  color: #6f788e;
  font-size: 11px;
}
.dots { display: flex; gap: 6px; }
.dots span { width: 7px; height: 7px; border-radius: 50%; background: #454c5d; }
.window-title { justify-self: center; }
.window-status { justify-self: end; color: #65e7b5; font-size: 10px; letter-spacing: .12em; }

.terminal {
  position: relative;
  min-height: 250px;
  padding: 24px;
  border-radius: 21px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(2, 4, 8, .76);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  line-height: 1.8;
}
.terminal p { margin: 0 0 12px; }
.muted { color: #596379; }
.accent { color: #a48aff; }
.success { color: #58eab1; }
.small { font-size: 11px; }
.progress { height: 7px; border-radius: 99px; background: #171c27; overflow: hidden; margin: 8px 0 10px; }
.progress span {
  display: block; width: 86%; height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6250ff, #6be1df);
  box-shadow: 0 0 24px rgba(107,225,223,.35);
  animation: load 2s ease both;
}
@keyframes load { from { width: 0; } to { width: 86%; } }

.mini-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin-top: 10px; }
.mini-card {
  min-height: 104px;
  padding: 16px;
  display: grid;
  gap: 4px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 17px;
  background: rgba(255,255,255,.03);
}
.mini-card span { color: #676f83; font-size: 10px; }
.mini-card b { font-family: "Space Grotesk"; }
.mini-card small { color: #737d91; }
.glow-card { background: linear-gradient(135deg, rgba(112,78,255,.16), rgba(50,222,212,.05)); }

.marquee-wrap {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 18px 0;
}
.marquee {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 30px;
  animation: marquee 22s linear infinite;
  color: #6f7789;
  font-family: "Space Grotesk";
  font-size: 12px;
  letter-spacing: .14em;
}
.marquee i { color: #725bff; font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

.section-heading {
  padding-top: 130px;
  padding-bottom: 48px;
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 20px;
  align-items: start;
}
.section-number { color: #5f6779; font-size: 12px; padding-top: 5px; }
.section-heading h2 {
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -.045em;
  max-width: 830px;
  margin-top: 9px;
}

.glass {
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255,255,255,.065), rgba(255,255,255,.025));
  border-radius: var(--radius);
}
.about-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 16px; }
.about-main { padding: clamp(26px, 5vw, 58px); min-height: 330px; display: flex; flex-direction: column; justify-content: space-between; }
.about-main .lead {
  margin: 0;
  max-width: 780px;
  font-family: "Space Grotesk";
  font-size: clamp(27px, 3vw, 44px);
  line-height: 1.15;
  letter-spacing: -.03em;
}
.about-main .lead span { color: #a98cff; }
.about-main > p:last-child { color: var(--muted); max-width: 660px; line-height: 1.7; }
.about-side { display: grid; gap: 16px; }
.feature-card {
  padding: 26px;
  min-height: 157px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: var(--radius);
}
.feature-card > span { color: #9a82ff; }
.feature-card h3 { margin: 22px 0 7px; font-size: 20px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

.projects-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 16px;
}
.project {
  min-height: 420px;
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: #0c0f15;
  padding: 24px;
}
.project-large { grid-row: span 2; min-height: 856px; }
.project-top { display: flex; justify-content: space-between; position: relative; z-index: 2; }
.tag {
  display: inline-flex;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  border-radius: 999px;
  padding: 8px 11px;
  color: #aab1c0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.project-arrow { font-size: 24px; color: #7f8799; transition: transform .25s ease; }
.project:hover .project-arrow { transform: translate(3px,-3px); color: white; }
.project-content { position: absolute; left: 24px; bottom: 24px; z-index: 3; }
.project-content p { color: #777f93; font-size: 11px; text-transform: uppercase; letter-spacing: .11em; }
.project-content h3 { font-size: clamp(30px, 4vw, 48px); letter-spacing: -.04em; margin-bottom: 8px; }
.project-content span { color: #878fa0; font-size: 13px; }
.project-art { position: absolute; inset: 0; pointer-events: none; }
.art-one { background: radial-gradient(circle at 60% 30%, rgba(113, 79, 255, .25), transparent 38%); }
.server-stack {
  width: 56%;
  position: absolute;
  right: -1%;
  top: 22%;
  transform: perspective(800px) rotateY(-20deg) rotateX(10deg);
}
.server-stack div {
  height: 70px;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(90deg, rgba(255,255,255,.09), rgba(255,255,255,.025));
  margin-bottom: 16px;
  border-radius: 14px;
  box-shadow: 0 24px 40px rgba(0,0,0,.24);
}
.art-two { background: radial-gradient(circle at 70% 35%, rgba(65, 224, 216, .16), transparent 36%); }
.rings { position: absolute; right: 9%; top: 20%; width: 230px; height: 230px; }
.rings i {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(141, 235, 230, .22);
}
.rings i:nth-child(2) { inset: 28px; }
.rings i:nth-child(3) { inset: 56px; background: radial-gradient(circle, rgba(105,83,255,.18), transparent 65%); }
.art-three { background: radial-gradient(circle at 65% 30%, rgba(153, 97, 255, .18), transparent 35%); }
.bars { position: absolute; top: 22%; right: 8%; display: flex; align-items: end; gap: 9px; height: 170px; }
.bars i { width: 26px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, #9f84ff, rgba(95,76,255,.2)); }
.bars i:nth-child(1){height:45%}.bars i:nth-child(2){height:72%}.bars i:nth-child(3){height:58%}.bars i:nth-child(4){height:90%}.bars i:nth-child(5){height:76%}

.stack-grid {
  border-top: 1px solid var(--line);
  margin-bottom: 40px;
}
.stack-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  align-items: center;
  min-height: 92px;
  border-bottom: 1px solid var(--line);
  transition: background .25s ease, padding .25s ease;
}
.stack-item:hover { background: rgba(255,255,255,.025); padding: 0 14px; }
.stack-item span, .stack-item small { color: #687184; font-size: 12px; }
.stack-item b { font-family: "Space Grotesk"; font-size: clamp(22px, 3vw, 34px); letter-spacing: -.03em; }
.stack-item small { text-align: right; }

.contact-section { padding-top: 110px; padding-bottom: 90px; }
.contact-card {
  min-height: 440px;
  padding: clamp(30px, 6vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    radial-gradient(circle at 80% 0%, rgba(96, 70, 255, .22), transparent 35%),
    radial-gradient(circle at 10% 100%, rgba(46, 221, 208, .11), transparent 30%),
    rgba(255,255,255,.035);
  overflow: hidden;
}
.contact-card h2 { font-size: clamp(50px, 8vw, 96px); line-height: .94; letter-spacing: -.06em; margin-top: 12px; }
.contact-card p { color: var(--muted); }
.mail-link {
  width: 100%;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Space Grotesk";
  font-size: clamp(20px, 3vw, 32px);
}
.mail-link span { color: #9c82ff; }

footer {
  width: min(1180px, calc(100% - 48px));
  margin: auto;
  padding: 24px 0 42px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #747d90;
  font-size: 12px;
}
footer .brand { color: white; }

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1);
}
.reveal.show { opacity: 1; transform: none; }
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .2s; }

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 102px;
    left: 24px;
    right: 24px;
    padding: 22px;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(7,9,13,.94);
    backdrop-filter: blur(20px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: .25s ease;
  }
  .nav-links.open { opacity: 1; pointer-events: auto; transform: none; }
  .menu-btn { display: flex; }
  .desktop-only { display: none; }
  .hero { grid-template-columns: 1fr; gap: 55px; padding-top: 160px; }
  .hero-visual { max-width: 650px; }
  .about-grid, .projects-grid { grid-template-columns: 1fr; }
  .project-large { grid-row: auto; min-height: 620px; }
}

@media (max-width: 620px) {
  .nav-wrap { padding: 12px; }
  .nav { height: 62px; padding: 0 13px; }
  .section { width: min(100% - 26px, 1180px); }
  h1 { font-size: clamp(52px, 15vw, 78px); }
  .hero { padding-top: 130px; }
  .hero-text { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-stats { gap: 18px; justify-content: space-between; }
  .hero-stats span { max-width: 75px; }
  .section-heading { grid-template-columns: 42px 1fr; padding-top: 95px; }
  .mini-grid { grid-template-columns: 1fr 1fr; }
  .project { min-height: 430px; }
  .project-large { min-height: 560px; }
  .server-stack { width: 70%; top: 24%; }
  .stack-item { grid-template-columns: 42px 1fr; min-height: 82px; }
  .stack-item small { display: none; }
  footer { width: calc(100% - 26px); flex-direction: column; align-items: flex-start; gap: 20px; }
}
