﻿/* ==========================================================================
   NEOPULSE — Personal Portfolio
   Design system: dark theme, glassmorphism, neon accents, grid overlay
   ========================================================================== */

:root {
  --bg: #0a0e1f;
  --bg-alt: #101529;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.14);
  --text: #eff2fd;
  --text-dim: #bfc9e4;
  --text-faint: #818cb0;
  --accent: #a99bff;
  --accent-2: #6ee6ff;
  --accent-3: #ff9dbb;
  --success: #5ff0c6;
  --warn: #ffcf80;
  --danger: #ff8590;
  --grad: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 50%, var(--accent-3) 100%);
  --font: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", "Consolas", monospace;
  --radius: 16px;
  --radius-sm: 10px;
  --nav-h: 72px;
  --max-w: 1180px;
  --glow-a: 0 0 40px rgba(169, 155, 255, 0.45);
  --glow-b: 0 0 40px rgba(110, 230, 255, 0.4);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--accent) var(--bg-alt);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(169, 155, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169, 155, 255, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  top: -30%;
  left: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(169, 155, 255, 0.25), transparent 60%);
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
  animation: drift 18s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(12vw, 8vh) scale(1.2); }
}

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

a { color: var(--accent-2); text-decoration: none; transition: color 0.25s; }
a:hover { color: var(--text); }

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

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ---- Typography ------------------------------------------------------- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mono { font-family: var(--mono); }

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

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

.section-tag {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.section-tag::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--accent-2);
}

.section-title { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 12px; }

.section-sub { color: var(--text-dim); max-width: 640px; }

/* ---- Navbar ----------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  background: rgba(5, 6, 15, 0.6);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, border-color 0.3s;
}

.nav.scrolled {
  background: rgba(5, 6, 15, 0.85);
  border-color: rgba(255, 255, 255, 0.12);
}

.nav-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: var(--glow-a);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.6); opacity: 0.6; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}

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

.nav-cta {
  padding: 9px 18px !important;
  background: var(--grad) !important;
  color: #fff !important;
  border-radius: 999px !important;
  font-weight: 600;
  box-shadow: var(--glow-a);
}

.nav-cta:hover { filter: brightness(1.1); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  width: 44px;
  height: 40px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: var(--glow-a);
}

.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--glow-b); color: #fff; }

.btn-ghost {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-ghost:hover { transform: translateY(-3px); border-color: var(--accent-2); color: var(--accent-2); }

.btn i { font-style: normal; }

/* ---- Hero ------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 40px) 24px 80px;
  position: relative;
}

.hero-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-eyebrow {
  font-family: var(--mono);
  color: var(--success);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.hero-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 12px var(--success);
  animation: pulse 2s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  margin-bottom: 20px;
}

.hero-typed {
  font-family: var(--mono);
  color: var(--accent-2);
  min-height: 1.4em;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  margin-bottom: 20px;
}

.hero-typed::after {
  content: "▌";
  animation: blink 0.9s step-end infinite;
  color: var(--accent-3);
}

@keyframes blink { 50% { opacity: 0; } }

.hero-desc { color: var(--text-dim); font-size: 1.05rem; margin-bottom: 34px; max-width: 560px; }

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

/* Hero visual */
.hero-visual { position: relative; }

.orbit {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 380px;
  margin: 0 auto;
}

.orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(110, 230, 255, 0.4);
  animation: spin 24s linear infinite;
}

.orbit-ring:nth-child(2) {
  inset: 12%;
  border-color: rgba(169, 155, 255, 0.4);
  animation-duration: 18s;
  animation-direction: reverse;
  border-style: solid;
  opacity: 0.7;
}

.orbit-ring:nth-child(3) {
  inset: 24%;
  border-color: rgba(255, 157, 187, 0.35);
  animation-duration: 14s;
}

@keyframes spin { to { transform: rotate(360deg); } }

.orbit-core {
  position: absolute;
  inset: 32%;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-weight: 700;
  color: #fff;
  font-size: clamp(0.9rem, 2vw, 1.3rem);
  box-shadow: var(--glow-a), var(--glow-b);
  animation: float 5s ease-in-out infinite;
}

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

.orbit-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 18px var(--accent-2);
}

.orbit-dot.d1 { top: 4%; left: 48%; }
.orbit-dot.d2 { bottom: 12%; left: 10%; background: var(--accent-3); box-shadow: 0 0 18px var(--accent-3); }
.orbit-dot.d3 { bottom: 30%; right: 0; background: var(--success); box-shadow: 0 0 18px var(--success); }

/* Floating tech badges */
.float-chip {
  position: absolute;
  font-family: var(--mono);
  font-size: 0.75rem;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  color: var(--text);
  animation: float 6s ease-in-out infinite;
}

.float-chip.c1 { top: 8%; right: -6%; animation-delay: 0.4s; }
.float-chip.c2 { bottom: 16%; left: -4%; animation-delay: 1.2s; }
.float-chip.c3 { top: 40%; right: -14%; animation-delay: 2s; }

/* ---- Robot (inMoov-inspired) ------------------------------------------ */
.orbit-core.robot {
  background: radial-gradient(circle at 50% 22%, #1b2350, #0a0e22);
  box-shadow:
    0 0 40px rgba(169, 155, 255, 0.3),
    0 0 80px rgba(110, 230, 255, 0.15),
    inset 0 0 40px rgba(110, 230, 255, 0.08);
}

.robot-svg { width: 82%; height: 82%; display: block; }

.robot-svg .r-head { fill: url(#headGrad); stroke: rgba(110, 230, 255, 0.55); stroke-width: 2; }
.robot-svg .r-neck,
.robot-svg .r-ear { fill: #0d1128; stroke: rgba(255, 255, 255, 0.14); stroke-width: 1.5; }
.robot-svg .r-ant { stroke: var(--accent-2); stroke-width: 3; opacity: 0.8; }
.robot-svg .r-ant-tip { fill: var(--accent-3); filter: drop-shadow(0 0 6px var(--accent-3)); }
.robot-svg .r-ear-dot { fill: var(--accent-2); filter: drop-shadow(0 0 4px var(--accent-2)); }
.robot-svg .r-socket { fill: #06080f; stroke: rgba(110, 230, 255, 0.45); stroke-width: 2; }
.robot-svg .r-mouth { fill: #06080f; stroke: rgba(255, 157, 187, 0.5); stroke-width: 2; }
.robot-svg .r-mouth-glow { fill: var(--accent-3); filter: drop-shadow(0 0 8px var(--accent-3)); }
.robot-svg .r-cheek { fill: rgba(255, 157, 187, 0.85); filter: drop-shadow(0 0 6px var(--accent-3)); }

.robot-svg .eye {
  transform-box: fill-box;
  transform-origin: center;
  animation: robotBlink 6s infinite;
}

.robot-svg .eye:nth-child(2) { animation-delay: 0.15s; }

.robot-svg .rp {
  transition: transform 0.18s cubic-bezier(0.3, 1.4, 0.5, 1);
}

@keyframes robotBlink {
  0%, 90%, 100% { transform: scaleY(1); }
  93%, 96% { transform: scaleY(0.1); }
}

/* ---- Stats strip ------------------------------------------------------ */
.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 36px 0;
}

.stat {
  text-align: center;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.stat-num {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 4px;
}

.stat-label { color: var(--text-dim); font-size: 0.85rem; }

/* ---- Cards ------------------------------------------------------------ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  backdrop-filter: blur(10px);
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(110, 230, 255, 0.4);
  box-shadow: var(--glow-b);
}

/* ---- Featured / recent work ------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #151a3a, #1c1040);
}

.card-media .gfx {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-media .gfx span {
  font-family: var(--mono);
  font-size: 2.4rem;
  opacity: 0.85;
  text-shadow: 0 0 30px var(--accent);
}

.card-media img.cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.card-body { padding: 24px; }

.card-body h3 { font-size: 1.25rem; margin-bottom: 8px; }

.card-body p { color: var(--text-dim); font-size: 0.92rem; margin-bottom: 16px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }

.chip {
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--accent-2);
  background: rgba(110, 230, 255, 0.06);
}

.card-link { font-family: var(--mono); font-size: 0.85rem; color: var(--accent-2); }

/* ---- Timeline --------------------------------------------------------- */
.timeline { list-style: none; position: relative; max-width: 760px; margin: 0 auto; }

.timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--grad);
  opacity: 0.6;
}

.timeline li {
  position: relative;
  padding: 0 0 40px 44px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent-2);
  box-shadow: 0 0 14px var(--accent-2);
}

.tl-date { font-family: var(--mono); font-size: 0.8rem; color: var(--success); text-transform: uppercase; letter-spacing: 0.1em; }

.tl-title { font-size: 1.25rem; margin: 4px 0 6px; }

.tl-desc { color: var(--text-dim); font-size: 0.95rem; }

/* ---- Skills ----------------------------------------------------------- */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.skill-cat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}

.skill-cat h3 { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; margin-bottom: 20px; }

.skill-cat h3 .ico { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }

.skill-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.skill-list li { color: var(--text-dim); font-size: 0.98rem; line-height: 1.5; }

.skill-list li:before { content: "▸"; margin-right: 8px; color: var(--accent); }

.skill-bar { margin-bottom: 14px; }

.skill-bar .top { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 0.8rem; margin-bottom: 6px; }

.skill-bar .track {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
}

.skill-bar .fill {
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: var(--grad);
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Blog ------------------------------------------------------------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.blog-card .badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
  background: rgba(169, 155, 255, 0.15);
  color: var(--accent);
  border: 1px solid rgba(169, 155, 255, 0.3);
}

.blog-card h3 { margin-bottom: 8px; }

.blog-card .meta { font-family: var(--mono); font-size: 0.75rem; color: var(--text-faint); margin-bottom: 14px; letter-spacing: 0.04em; }

/* ---- Contact ---------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
}

.contact-info h3 { font-size: 1.4rem; margin-bottom: 14px; }

.contact-info p { color: var(--text-dim); margin-bottom: 28px; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.contact-item .ci-ico {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-2);
}

.contact-item .ci-label { font-size: 0.78rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.08em; }

.contact-item .ci-value { font-family: var(--mono); color: var(--text); }

  .contact-item .ci-value .cv-link {
    background: linear-gradient(135deg, #7f7fd5, #86a8e7, #91eae4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    letter-spacing: 0.02em;
  }

  .contact-item .ci-value .cv-link:hover { filter: brightness(1.2); }

.form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  backdrop-filter: blur(10px);
}

.form label { display: block; font-size: 0.85rem; color: var(--text-dim); margin-bottom: 8px; }

.form input[type="text"],
.form input[type="email"],
.form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  margin-bottom: 20px;
  transition: border-color 0.25s, box-shadow 0.25s;
  outline: none;
}

.form input[type="text"]:focus,
.form input[type="email"]:focus,
.form textarea:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(110, 230, 255, 0.15);
}

.form textarea { min-height: 140px; resize: vertical; }

.form .form-msg {
  display: none;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--success);
}

/* ---- Footer ----------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  background: var(--bg-alt);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer p { color: var(--text-faint); font-size: 0.85rem; }

.footer .footer-tagline {
  order: 5;
  flex-basis: 100%;
  width: 100%;
  margin-top: 24px;
  text-align: center;
  line-height: 1.8;
  font-size: 1.6rem;
  font-family: 'Georgia', 'Times New Roman', serif;
  font-style: italic;
  font-weight: 300;
  letter-spacing: 1.5px;
  color: #aeb9e0;
}

.socials { display: flex; gap: 12px; }

.socials a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  background: var(--surface);
  transition: transform 0.25s, color 0.25s, border-color 0.25s;
}

.socials a:hover { transform: translateY(-3px); color: var(--accent-2); border-color: var(--accent-2); }

.socials svg { width: 18px; height: 18px; display: block; }

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

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ---- Page hero (inner pages) ------------------------------------------ */
.page-hero {
  padding: calc(var(--nav-h) + 80px) 24px 60px;
  text-align: center;
}

.page-hero .section-title { margin-bottom: 16px; }

/* ---- Back to top ------------------------------------------------------ */
#toTop {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glow-a);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 90;
}

#toTop.show { opacity: 1; pointer-events: auto; }
#toTop:hover { transform: translateY(-4px); }

/* ---- Project detail (photo slider + features) ------------------------- */
.slider {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0d1128;
  box-shadow: var(--glow-a);
}

.slider-track {
  display: flex;
  width: 100%;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.slider-track .slide {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px;
  position: relative;
}

.slider-track .slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

.slider-track .slide-glyph {
  font-family: var(--mono);
  font-size: clamp(3rem, 10vw, 6.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  text-shadow: 0 0 50px rgba(255, 255, 255, 0.4);
  margin-bottom: 18px;
}

.slider-track .slide-label {
  font-family: var(--mono);
  font-size: clamp(1rem, 3vw, 1.4rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
}

.slider-track .slide-sub {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 6px;
}

.slider-track .slide.has-img {
  padding: 0;
  display: block;
  background: #0d1128;
}

.slider-track .slide.has-img::after {
  display: none;
}

.slider-track .slide-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.slider-track .slide-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 24px;
  background: linear-gradient(to top, rgba(5, 8, 20, 0.85), rgba(5, 8, 20, 0));
  text-align: left;
  z-index: 1;
}

.slider-track .slide-caption .slide-label {
  font-size: clamp(1rem, 3vw, 1.4rem);
}

.slider-track .slide-caption .slide-sub {
  margin-top: 4px;
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(10, 14, 31, 0.6);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  transition: border-color 0.25s, color 0.25s;
}

.slider-nav.prev { left: 16px; }
.slider-nav.next { right: 16px; }

.slider-nav:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
}

.slider-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}

.slider-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.slider-dots .dot.active {
  background: var(--accent-2);
  border-color: var(--accent-2);
  box-shadow: 0 0 10px var(--accent-2);
}

/* ---- About page life-gallery tabs ------------------------- */
.life-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 28px 0 24px;
}

.life-tab {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(10, 14, 31, 0.6);
  color: var(--text-dim);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.life-tab:hover {
  color: var(--text);
  border-color: var(--accent-2);
}

.life-tab.active {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 50%, var(--accent-3) 100%);
  color: #0d1128;
  border-color: transparent;
  box-shadow: 0 0 16px rgba(110, 230, 255, 0.35);
}

.life-empty {
  display: none;
  text-align: center;
  color: var(--text-dim);
  margin-top: 18px;
  font-style: italic;
}

.chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.detail-section { margin-top: 52px; }

.detail-section h2 { margin-bottom: 18px; }

.detail-para {
  color: var(--text-dim);
  font-size: 1.05rem;
  margin-bottom: 14px;
  max-width: 760px;
}

.feature-list {
  list-style: none;
  display: grid;
  gap: 12px;
  max-width: 760px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--text-dim);
}

.feature-list li::before {
  content: "✓";
  color: var(--success);
  font-weight: 700;
  flex: none;
}

.detail-actions {
  display: flex;
  gap: 14px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.other-list {
  list-style: none;
  display: grid;
  gap: 10px;
  max-width: 420px;
}

.other-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.5;
}

.other-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 8px var(--accent-2);
  flex: none;
  margin-top: 8px;
}

/* ---- Responsive ------------------------------------------------------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .orbit { max-width: 300px; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(5, 6, 15, 0.97);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 4px;
    transform: translateY(-140%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 12px; text-align: center; }
  .nav-toggle { display: flex; }
}

@media (max-width: 520px) {
  .stats-grid { grid-template-columns: 1fr; }
  .logo { font-size: 0.95rem; letter-spacing: -0.02em; }
}

/* ---- Others (tabs + cards + modal) ------------------------------------ */
.oc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 34px;
}

.oc-tab {
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 20px;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, box-shadow 0.25s, background 0.25s;
  outline: none;
}

.oc-tab:hover { color: var(--text); border-color: var(--accent); box-shadow: var(--glow-a); }

.oc-tab.active {
  color: #0a0e1f;
  background: var(--grad);
  border-color: transparent;
  box-shadow: var(--glow-a);
}

.oc-panels { min-height: 120px; }

.oc-panel { display: none; animation: ocFade 0.35s ease; }

.oc-panel.active { display: block; }

@keyframes ocFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.oc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.oc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  outline: none;
}

.oc-card:hover,
.oc-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--accent-2);
  box-shadow: var(--glow-b);
}

.oc-card-top { display: flex; align-items: center; gap: 12px; }

.oc-card-ico {
  width: 42px;
  height: 42px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: rgba(169, 155, 255, 0.12);
  border: 1px solid rgba(169, 155, 255, 0.3);
  border-radius: 12px;
}

.oc-card h3 { font-size: 1.08rem; margin: 0; }

.oc-card p { color: var(--text-dim); font-size: 0.9rem; line-height: 1.55; margin: 0; }

.oc-card-more { font-family: var(--mono); font-size: 0.82rem; color: var(--accent-2); margin-top: auto; }

/* Others modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(3, 5, 15, 0.78);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.open { opacity: 1; visibility: visible; }

.modal-box {
  width: 100%;
  max-width: 560px;
  max-height: 86vh;
  overflow: auto;
  background: #12162b;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 34px 30px 28px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
  position: relative;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.3s;
}

.modal-overlay.open .modal-box { transform: none; }

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-close:hover { color: var(--text); border-color: var(--danger); box-shadow: 0 0 20px rgba(255, 133, 144, 0.25); }

.modal-ico {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: rgba(169, 155, 255, 0.12);
  border: 1px solid rgba(169, 155, 255, 0.3);
  border-radius: 14px;
  margin-bottom: 14px;
}

.modal-title { font-size: 1.4rem; margin-bottom: 14px; }

.modal-body { color: var(--text-dim); font-size: 0.98rem; line-height: 1.7; margin-bottom: 22px; }

.modal-body p { margin: 0 0 10px; }

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

.modal-actions .btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px; }

/* ---- Contact form tweaks ---------------------------------------------- */
.form .form-intro { font-size: 0.9rem; color: var(--text-dim); margin: -6px 0 18px; }

.form-msg {
  display: none;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 0.85rem;
}

.form-msg.ok {
  display: block;
  color: var(--success);
  background: rgba(95, 240, 198, 0.08);
  border: 1px solid rgba(95, 240, 198, 0.35);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}

.form-msg.err {
  display: block;
  color: var(--danger);
  background: rgba(255, 133, 144, 0.08);
  border: 1px solid rgba(255, 133, 144, 0.35);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}