@import url("https://fonts.googleapis.com/css2?family=Exo+2:wght@300;400;500;600;700&family=Orbitron:wght@400;500;600;700;800&display=swap");

:root {
  --bg-0: #020514;
  --bg-1: #050a2b;
  --bg-2: #1f0b3f;
  --text-main: #e8ecff;
  --text-sub: #b6c5ea;
  --neon-cyan: #43f4ff;
  --neon-blue: #62b2ff;
  --neon-purple: #bf66ff;
  --neon-mint: #6dffd8;
  --border: rgba(113, 170, 255, 0.45);
  --glass: rgba(107, 138, 205, 0.16);
  --glass-strong: rgba(146, 170, 240, 0.2);
  --shadow-main: 0 18px 60px rgba(6, 12, 44, 0.62);
  --container: min(1120px, calc(100% - 2rem));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  overflow-x: hidden;
  color: var(--text-main);
  font-family: "Exo 2", "Segoe UI", sans-serif;
  background: radial-gradient(120% 80% at 20% 0%, #0f1b57 0%, transparent 58%),
    radial-gradient(80% 90% at 100% 5%, #440d72 0%, transparent 62%),
    linear-gradient(145deg, var(--bg-0), var(--bg-1) 38%, var(--bg-2));
}

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

#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.background-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(85px);
  opacity: 0.36;
  transform: translateY(calc(var(--scroll-y, 0px) * -0.02));
}

.orb-1 {
  width: 360px;
  height: 360px;
  top: -140px;
  left: -80px;
  background: rgba(88, 139, 255, 0.62);
}

.orb-2 {
  width: 320px;
  height: 320px;
  top: 18vh;
  right: -120px;
  background: rgba(190, 101, 255, 0.58);
}

.orb-3 {
  width: 300px;
  height: 300px;
  bottom: -140px;
  left: 35%;
  background: rgba(67, 247, 244, 0.48);
}

.site-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: clamp(1rem, 2.6vw, 2.2rem) 0 4rem;
}

.section {
  width: var(--container);
  margin: 0 auto 2rem;
}

.glass-panel {
  background: linear-gradient(145deg, rgba(98, 129, 215, 0.18), rgba(120, 80, 195, 0.14));
  border: 1px solid var(--border);
  border-radius: 1.4rem;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: var(--shadow-main), inset 0 0 0 1px rgba(202, 224, 255, 0.11);
}

.section-title {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.55rem, 2.6vw, 2.35rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-shadow: 0 0 14px rgba(81, 189, 255, 0.56), 0 0 30px rgba(188, 108, 255, 0.42);
}

.section-title-en {
  text-align: center;
}

.browser-frame {
  padding: clamp(0.85rem, 1.5vw, 1.25rem);
}

.browser-toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(164, 199, 255, 0.25);
  background: rgba(11, 23, 62, 0.64);
}

.window-controls {
  display: flex;
  gap: 0.35rem;
  flex: 0 0 auto;
}

.dot {
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 50%;
}

.dot.red {
  background: #ff5f56;
}

.dot.yellow {
  background: #ffbd2f;
}

.dot.green {
  background: #27c93f;
}

.browser-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  flex: 1 1 auto;
}

.browser-nav a {
  font-family: "Orbitron", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: #c7d3ff;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(123, 176, 255, 0.35);
  transition: color 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.browser-nav a:hover,
.browser-nav a:focus-visible {
  color: #f4f8ff;
  border-color: rgba(111, 224, 255, 0.68);
  box-shadow: 0 0 14px rgba(111, 224, 255, 0.38);
}

.contact-chip {
  font-family: "Orbitron", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(206, 219, 255, 0.45);
  background: linear-gradient(135deg, rgba(89, 122, 217, 0.65), rgba(192, 97, 255, 0.62));
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-chip:hover,
.contact-chip:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(105, 209, 255, 0.32);
}

.hero-inner {
  padding: clamp(1.2rem, 3vw, 2.6rem) clamp(0.95rem, 2.5vw, 2.2rem) 1.6rem;
}

.hero-kicker {
  margin: 0;
  color: #9fd8ff;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}

.hero-title {
  margin: 0.5rem 0 0.8rem;
  text-align: center;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(2rem, 9vw, 4.25rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #b4e8ff;
  text-shadow: 0 0 8px rgba(141, 227, 255, 0.95), 0 0 24px rgba(76, 167, 255, 0.9),
    0 0 42px rgba(185, 95, 255, 0.82);
}

.hero-subtitle {
  margin: 0 auto;
  width: min(750px, 100%);
  text-align: center;
  font-size: clamp(0.96rem, 2.2vw, 1.08rem);
  line-height: 1.65;
  color: var(--text-sub);
}

.skill-pills {
  list-style: none;
  margin: 1.45rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
}

.skill-pills li {
  padding: 0.52rem 0.95rem;
  font-size: 0.98rem;
  border-radius: 999px;
  border: 1px solid rgba(133, 202, 255, 0.52);
  background: linear-gradient(120deg, rgba(79, 117, 219, 0.48), rgba(101, 210, 255, 0.34), rgba(181, 99, 255, 0.4));
  box-shadow: 0 0 16px rgba(96, 171, 255, 0.3);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
  animation: floatTag 4.2s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.07s);
}

.skill-pills li:nth-child(2n) {
  animation-duration: 4.8s;
}

.skill-pills li:nth-child(3n) {
  animation-duration: 5.1s;
}

.skill-pills li:hover,
.skill-pills li:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(132, 247, 255, 0.9);
  box-shadow: 0 0 22px rgba(102, 233, 255, 0.56), 0 0 30px rgba(185, 93, 255, 0.34);
}

.hero-preview-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.8vw, 1.2rem);
}

.preview-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(126, 184, 255, 0.5);
  background: rgba(27, 46, 91, 0.55);
  min-height: 170px;
  box-shadow: 0 0 22px rgba(105, 212, 255, 0.22);
}

.preview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tools-panel {
  padding: clamp(1rem, 2vw, 1.8rem);
}

.tools-caption {
  margin: 0.5rem 0 0.95rem;
  color: #b7c6ea;
  font-size: 0.98rem;
}

.skill-list {
  margin-top: 0.85rem;
}

.skill-row {
  margin-bottom: 1.05rem;
}

.skill-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.38rem;
}

.skill-name {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.1rem;
}

.skill-mark {
  display: inline-grid;
  place-items: center;
  width: 1.58rem;
  height: 1.58rem;
  border-radius: 50%;
  font-family: "Orbitron", sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.03em;
  color: #041227;
  background: linear-gradient(140deg, var(--neon-mint), var(--neon-cyan));
  box-shadow: 0 0 12px rgba(104, 241, 255, 0.62);
}

.skill-value {
  font-family: "Orbitron", sans-serif;
  color: #90f0ff;
}

.skill-feature {
  margin: 0 0 0.5rem 2.2rem;
  color: #9eb3df;
  font-size: 0.93rem;
  line-height: 1.4;
}

.progress-track {
  width: 100%;
  height: 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(127, 157, 227, 0.55);
  background: linear-gradient(120deg, rgba(28, 49, 99, 0.62), rgba(75, 62, 148, 0.42));
  overflow: hidden;
}

.progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8d49ff 0%, #38e9ff 52%, #8f52ff 100%);
  box-shadow: 0 0 14px rgba(75, 225, 255, 0.76);
  transition: width 1.2s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.skill-row.animated .progress-fill {
  width: var(--target);
}

.project-shell {
  position: relative;
  padding: clamp(1.15rem, 2.2vw, 1.8rem);
  overflow: hidden;
}

.project-shell::before {
  content: "";
  position: absolute;
  inset: 0.6rem;
  border-radius: 1rem;
  border: 1px solid rgba(91, 242, 255, 0.42);
  box-shadow: inset 0 0 24px rgba(122, 83, 255, 0.3), 0 0 18px rgba(83, 223, 255, 0.24);
  pointer-events: none;
}

.project-shell-header {
  position: relative;
  margin-bottom: 1.1rem;
  text-align: center;
}

.project-shell-header p {
  margin: 0.5rem 0 0;
  color: var(--text-sub);
}

.project-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.8rem, 2vw, 1.2rem);
}

.project-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  text-align: center;
  min-height: 236px;
  padding: 1rem 0.9rem;
  border-radius: 1rem;
  cursor: pointer;
  border: 1px solid rgba(192, 104, 255, 0.72);
  background: linear-gradient(160deg, rgba(184, 223, 255, 0.2), rgba(72, 106, 201, 0.2), rgba(145, 88, 220, 0.18));
  box-shadow: 0 0 14px rgba(183, 96, 255, 0.44), inset 0 0 28px rgba(172, 220, 255, 0.15);
}

.project-card h3 {
  margin: 0;
  font-size: 1.24rem;
}

.project-card p {
  margin: 0;
  color: #c4cff1;
  font-size: 0.96rem;
  line-height: 1.45;
}

.project-icon {
  width: 3.2rem;
  height: 3.2rem;
  display: grid;
  place-items: center;
}

.project-icon svg {
  width: 2.5rem;
  height: 2.5rem;
  stroke: var(--neon-cyan);
  stroke-width: 1.4;
  filter: drop-shadow(0 0 8px rgba(117, 239, 255, 0.5));
}

.neon-button {
  margin-top: 0.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid rgba(74, 248, 255, 0.9);
  border-radius: 0.62rem;
  padding: 0.46rem 0.92rem;
  font-weight: 600;
  color: #58f8ff;
  background: rgba(6, 24, 58, 0.55);
  box-shadow: 0 0 8px rgba(74, 248, 255, 0.5), inset 0 0 8px rgba(74, 248, 255, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.neon-button:hover,
.neon-button:focus-visible {
  transform: translateY(-2px);
  color: #f4fcff;
  box-shadow: 0 0 14px rgba(95, 247, 255, 0.68), 0 0 30px rgba(152, 110, 255, 0.34);
}

.skill-project-shell {
  padding: 0.4rem;
}

.skill-project-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem;
}

.skill-project-card {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(119, 193, 255, 0.52);
  background: linear-gradient(160deg, rgba(58, 85, 163, 0.3), rgba(118, 82, 189, 0.22));
  box-shadow: 0 0 18px rgba(110, 185, 255, 0.22);
}

.skill-project-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.12rem;
}

.skill-project-card p {
  margin: 0 0 0.85rem;
  color: var(--text-sub);
}

.skill-project-card a {
  display: inline-flex;
  cursor: pointer;
  color: var(--neon-cyan);
  border: 1px solid rgba(86, 243, 255, 0.72);
  border-radius: 999px;
  padding: 0.35rem 0.72rem;
  font-size: 0.92rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.skill-project-card a:hover,
.skill-project-card a:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 13px rgba(86, 243, 255, 0.44);
}

.footer {
  width: var(--container);
  margin: 1.35rem auto 0;
  position: relative;
  z-index: 2;
}

.footer-inner {
  text-align: center;
  padding: 1.35rem 1rem 1.6rem;
}

.footer-inner p {
  color: #c6d1f3;
}

.vibe-intro {
  margin: 0.65rem auto 0;
  width: min(760px, 100%);
  color: #b9c8ed;
}

.vibe-skill-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.vibe-skill-card {
  text-align: left;
  border: 1px solid rgba(117, 193, 255, 0.48);
  border-radius: 0.95rem;
  padding: 0.85rem 0.9rem;
  background: linear-gradient(160deg, rgba(55, 89, 176, 0.22), rgba(120, 74, 188, 0.18));
  box-shadow: inset 0 0 12px rgba(145, 220, 255, 0.14);
}

.vibe-skill-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.03rem;
  color: #d9e8ff;
}

.vibe-skill-card p {
  margin: 0;
  color: #b6c9ef;
  line-height: 1.58;
}

.vibe-skill-card code {
  display: block;
  margin-top: 0.45rem;
  color: #7ff6ff;
  font-size: 0.83rem;
  line-height: 1.45;
  word-break: break-word;
}

.copyright {
  margin-top: 0.8rem;
  color: #9eabd0;
  font-size: 0.92rem;
}

.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.2s ease;
}

.tilt-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(154, 247, 255, 0.28), transparent 42%);
  transition: opacity 0.2s ease;
}

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

.reveal {
  opacity: 0;
  transform: translateY(26px) scale(0.986);
  transition: opacity 0.64s ease, transform 0.64s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

:where(ul, ol) {
  margin: 0;
  padding-left: 1.2rem;
}

:where(li) {
  margin-bottom: 0.45rem;
}

:where(li:last-child) {
  margin-bottom: 0;
}

.detail-main {
  padding-top: 1.4rem;
}

.detail-shell {
  padding: 1.1rem 1rem 1.2rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(95, 245, 255, 0.7);
  border-radius: 999px;
  padding: 0.34rem 0.72rem;
  color: #7ff4ff;
  background: rgba(20, 47, 92, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.back-link:hover,
.back-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 14px rgba(95, 245, 255, 0.42);
}

.detail-category {
  margin: 0.9rem 0 0;
  color: #8bdfff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.88rem;
}

.detail-title {
  margin: 0.4rem 0 0;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.7rem, 4.8vw, 2.55rem);
  letter-spacing: 0.05em;
  text-shadow: 0 0 12px rgba(75, 209, 255, 0.56), 0 0 28px rgba(184, 108, 255, 0.38);
}

.detail-tagline {
  margin: 0.55rem 0 0;
  color: #b6c7ec;
  font-size: 1.02rem;
}

.detail-links {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.detail-special-note {
  margin-top: 0.8rem;
  border: 1px solid rgba(255, 203, 108, 0.66);
  border-radius: 0.85rem;
  padding: 0.72rem 0.85rem;
  color: #ffe6ae;
  background: linear-gradient(150deg, rgba(113, 74, 7, 0.36), rgba(68, 47, 8, 0.26));
  line-height: 1.55;
}

.detail-link-btn {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(99, 240, 255, 0.72);
  border-radius: 999px;
  padding: 0.35rem 0.78rem;
  color: #82f5ff;
  background: rgba(16, 45, 95, 0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.detail-link-btn:hover,
.detail-link-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 14px rgba(99, 240, 255, 0.44);
}

.detail-content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
}

.detail-card {
  padding: 1rem 1rem 1.05rem;
}

.detail-card h2 {
  margin: 0 0 0.55rem;
  font-family: "Orbitron", sans-serif;
  font-size: 1.12rem;
  letter-spacing: 0.04em;
  color: #def0ff;
}

.detail-card p,
.detail-card li {
  color: #b8c8ea;
  line-height: 1.6;
}

:focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 2px;
}

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

@media (max-width: 1024px) {
  .project-grid,
  .skill-project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .section {
    width: min(100%, calc(100% - 1.2rem));
  }

  .browser-toolbar {
    flex-wrap: wrap;
    justify-content: center;
  }

  .browser-nav {
    order: 3;
    flex-basis: 100%;
  }

  .hero-title {
    letter-spacing: 0.08em;
  }

  .hero-preview-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 620px) {
  .project-grid,
  .skill-project-grid {
    grid-template-columns: 1fr;
  }

  .project-card,
  .skill-project-card {
    min-height: auto;
  }

  .skill-name {
    font-size: 1rem;
  }

  .skill-feature {
    margin-left: 0;
  }

  .vibe-skill-grid {
    grid-template-columns: 1fr;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
