﻿:root {
  --bg: #08131f;
  --surface: #0f2235;
  --surface-2: #163149;
  --text: #f6fbff;
  --muted: #a7bccf;
  --accent: #00d3a7;
  --accent-2: #ffb703;
  --accent-3: #29a0ff;
  --line: rgba(255, 255, 255, 0.12);
  --logo-a: #00d3a7;
  --logo-b: #29a0ff;
  --logo-c: #ffb703;
  --logo-glow: rgba(0, 211, 167, 0.45);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Sora", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 8%, #0f2a42 0%, transparent 35%),
    radial-gradient(circle at 92% 18%, #163a52 0%, transparent 30%),
    linear-gradient(140deg, #07101a 0%, #0b1c2b 55%, #0d2436 100%);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

#bubble-field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}

.wrap { width: min(1080px, 92vw); margin: 0 auto; }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  z-index: 30;
}
.brand {
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-text {
  line-height: 1;
}
.brand-mark {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-block;
}
nav { display: flex; gap: 20px; }
nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color .25s ease;
}
nav a:hover { color: var(--text); }

.neon-ring {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: block;
  background:
    conic-gradient(from 0deg, #00e5ff, #00ffa8, #ffe45e, #7b61ff, #00e5ff);
  animation: spin-gear 3.2s linear infinite, pulse-ring 1.6s ease-in-out infinite alternate;
  box-shadow: 0 0 14px rgba(0, 229, 255, .55), 0 0 22px rgba(123, 97, 255, .4);
}
.neon-ring::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #071a2a;
}
.neon-ring::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.95) 0%, #7afcff 35%, rgba(122,252,255,.1) 100%);
  box-shadow: 0 0 10px rgba(122,252,255,.8);
}

.hero { padding: 34px 0 18px; animation: rise .7s ease both; }
.lead {
  color: var(--muted);
  max-width: 64ch;
  font-size: clamp(1.17rem, 1.53vw, 1.35rem);
  line-height: 1.75;
  text-shadow: 0 1px 2px rgba(2, 8, 16, 0.48);
}

.section { padding: 52px 0; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 6px; }
.section-head p, .body-text { color: var(--muted); line-height: 1.7; }

.project-columns {
  margin-top: 18px;
  display: flex;
  gap: 18px;
  align-items: stretch;
}
.project-group {
  flex: 1 1 0;
  min-width: 0;
}
.group-title {
  margin: 0 0 10px;
  font-size: 1.05rem;
  color: var(--text);
  text-shadow: 0 1px 2px rgba(2, 8, 16, 0.5);
}
.card {
  background: linear-gradient(165deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  transition: transform .25s ease, border-color .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 211, 167, .5);
}
.chip {
  display: inline-block;
  font-size: .8rem;
  background: rgba(255, 183, 3, .13);
  color: var(--accent-2);
  padding: 6px 10px;
  border-radius: 999px;
}
.card h3 {
  margin: 14px 0 8px;
  text-shadow: 0 1px 2px rgba(2, 8, 16, 0.5);
}
.card p {
  color: var(--muted);
  text-shadow: 0 1px 2px rgba(2, 8, 16, 0.44);
}
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  background: linear-gradient(180deg, rgba(22, 49, 73, .9), rgba(11, 29, 45, .95));
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 11px;
  padding: 9px 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.links a::after {
  content: "->";
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-size: .85rem;
}
.links a:hover {
  transform: translateY(-2px);
  border-color: rgba(41, 160, 255, .7);
  box-shadow: 0 9px 18px rgba(3, 11, 19, .55);
  background: linear-gradient(180deg, rgba(24, 57, 85, .95), rgba(12, 35, 53, .98));
}

.contact {
  background: linear-gradient(160deg, rgba(0, 211, 167, .11), rgba(0, 211, 167, 0));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
}
.contact h2 {
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  margin-bottom: 4px;
}
.contact .body-text,
.contact p {
  font-size: 0.75rem;
  line-height: 1.5;
}
.footer {
  padding: 36px 0 56px;
  color: var(--muted);
  font-size: .95rem;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(45px);
  z-index: -1;
  opacity: .35;
}
.orb-1 {
  width: 280px;
  height: 280px;
  background: #00d3a7;
  left: -90px;
  top: 20%;
  animation: float-orb-1 14s ease-in-out infinite alternate;
}
.orb-2 {
  width: 340px;
  height: 340px;
  background: #ffb703;
  right: -120px;
  bottom: 8%;
  animation: float-orb-2 18s ease-in-out infinite alternate;
}

.page-head {
  padding: 90px 0 16px;
}
.page-head h1 {
  margin: 8px 0 0;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  line-height: 1.2;
}
.tag {
  margin: 0;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.page-body {
  max-width: 76ch;
  color: var(--muted);
  line-height: 1.75;
}
.page-body h2 {
  margin-top: 28px;
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  color: var(--text);
}
.page-body h3 {
  margin-top: 22px;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--text);
}
.back-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.18);
  background: linear-gradient(180deg, rgba(22, 49, 73, .9), rgba(11, 29, 45, .95));
  padding: 10px 14px;
  border-radius: 11px;
  transition: transform .2s ease, border-color .2s ease;
}
.back-link:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 211, 167, .6);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes spin-gear {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes pulse-ring {
  0% { filter: saturate(1) brightness(1); }
  100% { filter: saturate(1.25) brightness(1.2); }
}
@keyframes float-orb-1 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(30px, -18px, 0) scale(1.06); }
  100% { transform: translate3d(55px, 14px, 0) scale(0.98); }
}
@keyframes float-orb-2 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-28px, 20px, 0) scale(1.05); }
  100% { transform: translate3d(-52px, -16px, 0) scale(0.97); }
}

@media (prefers-reduced-motion: reduce) {
  .orb-1, .orb-2, .neon-ring { animation: none; }
}

@media (max-width: 860px) {
  .topbar { position: static; }
  .topbar { padding: 14px 0; }
  nav {
    gap: 14px;
    font-size: .92rem;
  }
  .lead {
    font-size: clamp(1.02rem, 2.6vw, 1.12rem);
    line-height: 1.62;
  }
  .project-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
    overflow: visible;
    padding-bottom: 0;
  }
  .project-group {
    min-width: 0;
  }
  .card {
    padding: 16px;
  }
  .group-title {
    font-size: .95rem;
    margin-bottom: 8px;
  }
  .chip {
    font-size: .72rem;
    padding: 5px 9px;
  }
  .card h3 {
    font-size: clamp(1.15rem, 2.35vw, 1.28rem);
    line-height: 1.26;
    margin: 12px 0 8px;
  }
  .card p {
    font-size: .88rem;
    line-height: 1.46;
    margin: 0;
  }
  .links a {
    font-size: .82rem;
    padding: 7px 10px;
    border-radius: 10px;
  }
  .contact h2 {
    font-size: 1rem;
  }
  .contact .body-text,
  .contact p {
    font-size: .78rem;
    line-height: 1.45;
  }

  .page-head {
    padding: 58px 0 14px;
  }
  .page-head h1 {
    font-size: 1.72rem;
    line-height: 1.22;
  }
  .tag {
    font-size: .72rem;
  }
  .page-body {
    font-size: .94rem;
    line-height: 1.6;
  }
  .page-body h2 {
    font-size: 1.2rem;
  }
  .page-body h3 {
    font-size: 1.04rem;
  }
  .back-link {
    font-size: .88rem;
    padding: 8px 12px;
  }
}

@media (max-width: 560px) {
  body {
    background:
      radial-gradient(130% 95% at -18% 14%, #11324a 0%, transparent 52%),
      radial-gradient(110% 90% at 116% 16%, #17445d 0%, transparent 48%),
      linear-gradient(150deg, #070f19 0%, #0a1b2b 54%, #0d2437 100%);
  }
  .wrap { width: min(1080px, 92vw); }
  .topbar {
    gap: 12px;
    align-items: center;
  }
  .brand { gap: 8px; }
  .brand-text { font-size: 1.02rem; }
  .brand-mark,
  .neon-ring {
    width: 20px;
    height: 20px;
  }
  nav { font-size: .86rem; gap: 10px; }
  .hero { padding-top: 16px; }
  .lead {
    font-size: .9rem;
    line-height: 1.52;
  }
  .section { padding: 30px 0; }
  .project-columns {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .group-title { font-size: .9rem; }
  .card { padding: 12px; border-radius: 14px; }
  .card h3 {
    font-size: .96rem;
    line-height: 1.3;
  }
  .card p {
    font-size: .74rem;
    line-height: 1.42;
  }
  .links a {
    font-size: .72rem;
    padding: 6px 9px;
    gap: 5px;
  }
  .contact { padding: 16px; }
  .contact h2 { font-size: .95rem; }
  .contact .body-text,
  .contact p {
    font-size: .7rem;
  }
  .footer { font-size: .82rem; }

  .orb-1 {
    width: 210px;
    height: 210px;
    left: -115px;
    top: 24%;
    opacity: .25;
  }
  .orb-2 {
    width: 240px;
    height: 240px;
    right: -130px;
    bottom: 6%;
    opacity: .26;
  }

  .page-head {
    padding: 46px 0 10px;
  }
  .page-head h1 {
    font-size: 1.4rem;
    line-height: 1.2;
  }
  .tag {
    font-size: .66rem;
  }
  .page-body {
    font-size: .86rem;
    line-height: 1.52;
  }
  .page-body h2 {
    font-size: 1.06rem;
    margin-top: 20px;
  }
  .page-body h3 {
    font-size: .94rem;
    margin-top: 16px;
  }
  .back-link {
    font-size: .8rem;
    padding: 7px 10px;
    margin-top: 14px;
  }
}
