:root {
  --bg: #0a0f13;
  --bg-2: #12191d;
  --panel: rgba(17, 21, 25, 0.82);
  --panel-strong: rgba(11, 15, 18, 0.94);
  --line: rgba(180, 195, 204, 0.16);
  --text: #edf3f7;
  --muted: #b1bcc5;
  --primary: #dfe6eb;
  --secondary: #b8c1c8;
  --accent: #a4b0b8;
  --steel: #c9d2d8;
  --shadow: rgba(2, 7, 10, 0.48);
  --hud: rgba(14, 18, 21, 0.86);
  --hud-strong: rgba(18, 22, 26, 0.96);
  --battle: #9aa6ae;
  --smoke: rgba(200, 210, 216, 0.18);
}

* {
  box-sizing: border-box;
}

.fps-intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--text);
  background: #05080a;
  transition: opacity 0.65s ease, visibility 0.65s ease;
}

.fps-intro.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.fps-intro::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 4px);
  mix-blend-mode: screen;
}

.fps-intro-grid {
  position: absolute;
  inset: -20%;
  opacity: 0.32;
  background-image: linear-gradient(rgba(143,232,255,0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(143,232,255,0.1) 1px, transparent 1px);
  background-size: 48px 48px;
  transform: perspective(500px) rotateX(58deg) translateY(25%);
  transform-origin: center bottom;
  animation: intro-grid 4s linear infinite;
}

.fps-intro-content {
  position: relative;
  z-index: 1;
  width: min(520px, calc(100% - 40px));
  text-align: center;
  animation: intro-enter 0.8s ease both;
}

.fps-intro-kicker,
.fps-intro-meta {
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.fps-intro-kicker {
  margin: 0 0 18px;
  color: var(--primary);
  font-size: 0.72rem;
}

.fps-intro h1 {
  margin: 0 0 28px;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(2rem, 6vw, 4.6rem);
  letter-spacing: 0.08em;
  text-shadow: 0 0 22px rgba(143,232,255,0.35);
}

.fps-intro h1 span {
  color: var(--primary);
  animation: intro-blink 0.8s steps(2) infinite;
}

.fps-loader {
  height: 5px;
  overflow: hidden;
  border: 1px solid rgba(143,232,255,0.4);
  background: rgba(143,232,255,0.08);
}

.fps-loader span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #fff, var(--primary));
  box-shadow: 0 0 16px rgba(143,232,255,0.8);
  animation: intro-load 2.4s cubic-bezier(0.22, 0.8, 0.3, 1) forwards;
}

.fps-intro-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.62rem;
}

@keyframes intro-load { to { width: 100%; } }
@keyframes intro-grid { to { transform: perspective(500px) rotateX(58deg) translateY(29%); } }
@keyframes intro-enter { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: scale(1); } }
@keyframes intro-blink { 50% { opacity: 0; } }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at 18% 22%, rgba(180, 190, 198, 0.12), transparent 22%),
    radial-gradient(circle at 78% 16%, rgba(120, 135, 142, 0.12), transparent 18%),
    radial-gradient(circle at 52% 76%, rgba(160, 168, 174, 0.08), transparent 18%),
    linear-gradient(135deg, #090d10 0%, #121a1d 26%, #161d21 52%, #0d1215 100%);
  color: var(--text);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01) 20%, rgba(0,0,0,0.12)),
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.02),
      rgba(255,255,255,0.02) 1px,
      transparent 1px,
      transparent 4px
    );
  pointer-events: none;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(158, 184, 192, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(158, 184, 192, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, black 22%, transparent 88%);
  opacity: 0.28;
  pointer-events: none;
}

.smoke {
  position: fixed;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.26;
  pointer-events: none;
  animation: drift 26s ease-in-out infinite alternate;
  z-index: 0;
}

.smoke-1 {
  width: 520px;
  height: 520px;
  background: rgba(90, 145, 180, 0.34);
  left: 8%;
  top: 9%;
}

.smoke-2 {
  width: 560px;
  height: 560px;
  background: rgba(170, 110, 60, 0.2);
  right: 7%;
  top: 12%;
  animation-delay: 2s;
}

.smoke-3 {
  width: 480px;
  height: 480px;
  background: rgba(90, 110, 120, 0.2);
  left: 40%;
  bottom: 7%;
  animation-delay: 4s;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  width: calc(100% - 32px);
  max-width: none;
  margin: 10px auto 0;
  padding: 0 18px;
  min-height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(201, 210, 216, 0.18);
  border-radius: 18px;
  background: linear-gradient(90deg, rgba(11,15,18,0.96), rgba(18,22,26,0.86), rgba(10,14,17,0.96));
  backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02), 0 10px 28px rgba(0,0,0,0.2);
}

.topbar .container {
  width: 100%;
  min-height: 72px;
  padding: 0;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.container {
  width: calc(100% - 32px);
  max-width: none;
  margin: 0 auto;
  padding-bottom: 60px;
}

.brand {
  font-family: "Orbitron", sans-serif;
  font-size: 1.12rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  margin: 0;
  color: var(--text);
  text-shadow: 0 0 18px rgba(143, 232, 255, 0.28);
}

.brand span {
  color: var(--steel);
  font-size: 0.7rem;
  line-height: 1;
}

.nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  min-height: 100%;
}

.nav a {
  position: relative;
  color: var(--steel);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  line-height: 1;
  padding: 0;
  margin: 0;
  text-transform: uppercase;
  transition: 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--primary), var(--battle));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav a:hover {
  color: var(--text);
  text-shadow: 0 0 12px rgba(143, 232, 255, 0.22);
}

.nav a:hover::after {
  transform: scaleX(1);
}

.music-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(143, 232, 255, 0.35);
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--primary);
  background: rgba(143, 232, 255, 0.07);
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.2s ease;
}

.music-toggle:hover,
.music-toggle.is-playing {
  color: var(--text);
  border-color: var(--primary);
  background: rgba(143, 232, 255, 0.16);
  box-shadow: 0 0 18px rgba(143, 232, 255, 0.16);
}

.music-icon {
  font-size: 1rem;
  line-height: 1;
}

.hero {
  min-height: 86vh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 390px);
  align-items: center;
  gap: 30px;
  padding: 40px 0 20px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.typing-cursor {
  display: inline-block;
  margin-left: 5px;
  color: var(--primary);
  font-family: "Orbitron", sans-serif;
  font-size: 1.5rem;
  animation: cursor-blink 0.8s steps(2) infinite;
}

.eyebrow,
.kicker,
.tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(201, 210, 216, 0.18);
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}

.ai-specialist {
  display: flex;
  flex-direction: column;
  width: max-content;
  max-width: 92%;
  padding: 10px 14px;
  margin-bottom: 14px;
  text-align: center;
  color: #f0fbff;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(0.9rem, 2.3vw, 1.65rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.035em;
  border: 1px solid rgba(143, 232, 255, 0.4);
  border-radius: 12px;
  background: rgba(8, 14, 18, 0.76);
  box-shadow: 0 0 22px rgba(143, 232, 255, 0.2), inset 0 0 14px rgba(143, 232, 255, 0.06);
  backdrop-filter: blur(8px);
  text-shadow: 0 0 14px rgba(143, 232, 255, 0.38), 0 0 34px rgba(143, 232, 255, 0.16);
  animation: specialist-float 5s ease-in-out infinite;
}

.ai-specialist span:last-child {
  color: transparent;
  background: linear-gradient(90deg, #9dd8ff, #f0fbff, #b9a6ff);
  -webkit-background-clip: text;
  background-clip: text;
}

.glitch {
  margin: 18px 0 14px;
  font-family: "Orbitron", sans-serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 4vw, 5rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
  color: transparent;
  background: linear-gradient(90deg, #e9f6ff 0%, #d2ebff 14%, #9dd8ff 35%, #d9e7ff 58%, #edf8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 18px rgba(143, 232, 255, 0.28), 0 0 28px rgba(160, 119, 80, 0.2);
  animation: textFloat 6s ease-in-out infinite;
}

.glitch .line {
  display: block;
}

.subtitle {
  max-width: 580px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 26px;
}

.cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border: 1px solid rgba(201, 210, 216, 0.18);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #081014;
  background: linear-gradient(135deg, #edf3f7, #c8d0d5);
  border-color: rgba(255,255,255,0.12);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), 0 10px 24px rgba(191, 202, 210, 0.08);
}

.btn-secondary {
  color: var(--text);
  background: linear-gradient(180deg, rgba(17, 20, 23, 0.8), rgba(11, 15, 18, 0.96));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 580px;
}

.mini-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
}

.mini-stat strong {
  font-size: 1.45rem;
  line-height: 1.1;
  color: var(--text);
}

.mini-stat span {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.6;
}

.hero-visual {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.profile-shell {
  position: relative;
  width: min(360px, 100%);
  aspect-ratio: 0.92;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(143, 232, 255, 0.24);
  background: linear-gradient(180deg, rgba(20, 26, 31, 0.82), rgba(10, 15, 20, 0.74));
  box-shadow: 0 24px 50px rgba(2, 10, 16, 0.55), inset 0 0 18px rgba(143, 232, 255, 0.08), 0 0 32px rgba(143, 232, 255, 0.08);
  transition: transform 0.22s ease;
}

.profile-glow {
  position: absolute;
  inset: 14% 20% auto;
  height: 52%;
  border-radius: 40% 60% 50% 50%;
  background: radial-gradient(circle, rgba(143, 232, 255, 0.34), rgba(143, 232, 255, 0.08) 42%, transparent 70%);
  filter: blur(24px);
}

.profile-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8) contrast(1.05) brightness(0.8);
  transform: scale(1.05);
  opacity: 0.82;
  background: #0d1216;
  border-radius: 30px;
}

.profile-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.3)),
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.02),
      rgba(255,255,255,0.02) 1px,
      transparent 1px,
      transparent 4px
    );
  mix-blend-mode: screen;
}

.profile-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(20, 26, 32, 0.54));
}

.floating-chip {
  position: absolute;
  z-index: 5;
  padding: 8px 12px;
  color: var(--text);
  font-family: "Orbitron", sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  border: 1px solid rgba(143, 232, 255, 0.35);
  border-radius: 8px;
  background: rgba(8, 14, 18, 0.8);
  box-shadow: 0 0 18px rgba(143, 232, 255, 0.16);
  backdrop-filter: blur(8px);
  animation: chip-float 4s ease-in-out infinite;
}

.chip-one { bottom: 10%; left: 7%; }
.chip-two { right: 7%; bottom: 23%; }

.profile-badge {
  position: absolute;
  right: 7%;
  bottom: 10%;
  padding: 8px 12px;
  color: var(--text);
  font-family: "Orbitron", sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  border: 1px solid rgba(143, 232, 255, 0.35);
  border-radius: 8px;
  background: rgba(8, 14, 18, 0.8);
  box-shadow: 0 0 18px rgba(143, 232, 255, 0.16);
  backdrop-filter: blur(8px);
  animation: chip-float 4s ease-in-out infinite;
}

.panel {
  margin-top: 42px;
  padding: 30px 26px 26px;
  border: 1px solid rgba(201, 210, 216, 0.12);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(17, 21, 25, 0.8), rgba(13, 17, 21, 0.88));
  backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02), 0 14px 28px rgba(0,0,0,0.22);
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 12px 0 0;
  font-size: clamp(1.7rem, 2vw, 2.3rem);
}

.service-grid,
.experience-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.service-card,
.exp-card,
.project-card {
  position: relative;
  border: 1px solid rgba(143, 232, 255, 0.16);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(16, 25, 31, 0.7), rgba(8, 15, 20, 0.9));
  padding: 22px 20px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}

.service-card:hover,
.exp-card:hover,
.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(143, 232, 255, 0.4);
  box-shadow: 0 0 18px rgba(143, 232, 255, 0.08);
}

.project-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 154px;
  margin: -4px 0 20px;
  perspective: 700px;
}

.project-visual img {
  display: block;
  width: min(86%, 280px);
  height: 150px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(143, 232, 255, 0.34);
  border-radius: 12px;
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.32), 0 0 18px rgba(73, 214, 255, 0.12);
  transform: rotateX(8deg) rotateY(-10deg) rotateZ(-2deg);
  animation: project-float 4.5s ease-in-out infinite;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.project-card:hover .project-visual img {
  transform: rotateX(0) rotateY(0) rotateZ(0) translateY(-4px) scale(1.03);
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.38), 0 0 24px rgba(73, 214, 255, 0.2);
}

@keyframes project-float {
  0%, 100% { transform: rotateX(8deg) rotateY(-10deg) rotateZ(-2deg) translateY(0); }
  50% { transform: rotateX(8deg) rotateY(-10deg) rotateZ(-2deg) translateY(-8px); }
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(122, 242, 255, 0.1);
  border: 1px solid rgba(122, 242, 255, 0.22);
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 18px;
}

.service-card h3,
.exp-card h3,
.project-card h3 {
  margin: 0 0 12px;
  font-size: 1.38rem;
}

.service-card p,
.exp-card p,
.project-card p,
.project-card li {
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 26px;
}

.about-grid p {
  color: var(--muted);
  line-height: 1.8;
  margin: 0 0 16px;
}

.detail-box {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
  padding: 18px;
}

.detail-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.detail-box li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.detail-box li:last-child {
  border-bottom: none;
}

.detail-box span {
  color: var(--muted);
}

.detail-box strong {
  color: var(--text);
  text-align: right;
}

.timeline-list {
  display: grid;
  gap: 18px;
}

.timeline-item {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
}

.content h3 {
  margin: 0 0 8px;
  font-size: 1.18rem;
}

.content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.project-card--wide {
  grid-column: span 1;
}

.project-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--primary);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.status {
  color: var(--accent);
}

.project-card ul {
  margin: 0;
  padding-left: 18px;
}

.project-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
}

.project-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(73, 214, 255, 0.4);
  border-radius: 8px;
  background: rgba(73, 214, 255, 0.08);
}

.project-links a:hover {
  color: var(--bg);
  background: var(--primary);
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skill-list span {
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-size: 0.9rem;
}

.media-slideshow {
  display: grid;
  gap: 18px;
  perspective: 1800px;
  transform-style: preserve-3d;
}

.media-slideshow::before {
  content: "";
  position: absolute;
  inset: -10% -8% auto;
  height: 60%;
  background: radial-gradient(circle, rgba(143, 232, 255, 0.18), transparent 62%);
  filter: blur(26px);
  pointer-events: none;
}

.slide-track {
  position: relative;
  min-height: 440px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(201, 210, 216, 0.15);
  background:
    linear-gradient(180deg, rgba(15, 19, 22, 0.94), rgba(10, 14, 18, 0.96)),
    linear-gradient(135deg, rgba(255,255,255,0.02), transparent 50%, rgba(201,210,216,0.04));
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.02),
    0 18px 32px rgba(0,0,0,0.26),
    0 0 18px rgba(200, 210, 216, 0.04);
  transform-style: preserve-3d;
}

.slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68%;
  height: 82%;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) translateX(90px) rotateY(25deg) scale(0.74);
  filter: blur(2px) brightness(0.7);
  transition:
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.9s ease,
    filter 0.9s ease,
    left 0.9s ease,
    width 0.9s ease,
    height 0.9s ease;
  z-index: 1;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(201, 210, 216, 0.12);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.28);
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
  left: 50%;
  width: 68%;
  height: 82%;
  transform: translate(-50%, -50%) rotateY(0deg) scale(1);
  filter: blur(0) brightness(1);
  z-index: 4;
}

.slide.prev,
.slide.next {
  opacity: 0.76;
  width: 24%;
  height: 58%;
  top: 50%;
  filter: blur(0.4px) brightness(0.85);
}

.slide.prev {
  left: 10%;
  transform: translateY(-50%) rotateY(28deg) scale(0.8);
  z-index: 2;
}

.slide.next {
  left: 66%;
  transform: translateY(-50%) rotateY(-28deg) scale(0.8);
  z-index: 2;
}

.slide.far-prev,
.slide.far-next {
  opacity: 0.25;
  width: 18%;
  height: 44%;
  top: 50%;
}

.slide.far-prev {
  left: 2%;
  transform: translateY(-50%) rotateY(32deg) scale(0.72);
  z-index: 1;
}

.slide.far-next {
  left: 80%;
  transform: translateY(-50%) rotateY(-32deg) scale(0.72);
  z-index: 1;
}

.slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: linear-gradient(180deg, rgba(12, 18, 22, 0.8), rgba(8, 12, 15, 0.95));
  filter: saturate(1.08) contrast(1.06) brightness(0.96);
}

.slide-title {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  margin: 0;
  padding: 0.7rem 0.9rem;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  background: rgba(8, 12, 24, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  backdrop-filter: blur(8px);
}

.slideshow-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.slide-btn {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(201, 210, 216, 0.14);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(11,15,18,0.8));
  color: var(--text);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}

.slide-btn:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(201, 210, 216, 0.25);
  box-shadow: 0 0 16px rgba(201, 210, 216, 0.08);
}

.slide-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.slide-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(201, 210, 216, 0.16);
  transition: all 0.3s ease;
  box-shadow: inset 0 0 8px rgba(255,255,255,0.04);
}

.slide-dot.active {
  background: linear-gradient(135deg, #f0f5f7, #bec7cc);
  box-shadow: 0 0 12px rgba(201, 210, 216, 0.4);
  transform: scale(1.2);
}

.contact-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 8px 8px 0;
}

.contact-box h2 {
  margin: 14px 0 0;
  font-size: clamp(1.5rem, 2vw, 2.3rem);
  max-width: 610px;
}

.footer {
  width: calc(100% - 32px);
  max-width: none;
  margin: 18px auto 40px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
}

.pulse-dots {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.pulse-dot {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 232, 255, 0.9), rgba(143, 232, 255, 0.12) 55%, transparent 100%);
  box-shadow: 0 0 18px rgba(143, 232, 255, 0.35), 0 0 36px rgba(182, 109, 50, 0.12);
  animation: pulseFloat ease-in-out infinite;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(32px, -18px) scale(1.12); }
}

@keyframes pulseFloat {
  0%, 100% {
    transform: translateY(0) scale(0.8);
    opacity: 0.22;
  }
  50% {
    transform: translateY(-26px) scale(1.1);
    opacity: 0.8;
  }
}

@keyframes textFloat {
  0%, 100% {
    transform: translateY(0);
    filter: brightness(1);
  }
  50% {
    transform: translateY(-4px);
    filter: brightness(1.08);
  }
}

@keyframes specialist-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-1deg); }
  50% { transform: translate3d(10px, -12px, 0) rotate(1deg); }
}

@media (prefers-reduced-motion: reduce) {
  .ai-specialist { animation: none; }
}

@keyframes cursor-blink { 50% { opacity: 0; transform: translateX(3px); } }

@keyframes chip-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-2deg); }
  50% { transform: translate3d(0, -12px, 0) rotate(2deg); }
}

@media (max-width: 900px) {
  .hero,
  .about-grid,
  .service-grid,
  .experience-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 20px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none;
  }

  .music-toggle {
    margin-left: auto;
  }

  .contact-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .topbar {
    padding: 12px 14px;
  }

  .brand {
    font-size: 0.82rem;
  }

  .detail-box li {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn {
    width: 100%;
  }

  .panel {
    padding: 20px 14px 18px;
    border-radius: 18px;
  }

  .section-heading {
    margin-bottom: 14px;
  }

  .section-heading h2 {
    font-size: 2rem;
    line-height: 1.1;
  }

  .media-slideshow {
    gap: 12px;
  }

  .slide-track {
    min-height: 330px;
    max-width: 100%;
    border-radius: 20px;
  }

  .slide {
    width: 82%;
    height: 74%;
    border-radius: 14px;
  }

  .slide.active {
    width: 82%;
    height: 74%;
  }

  .slide.prev,
  .slide.next {
    width: 20%;
    height: 52%;
  }

  .slide.prev {
    left: 8%;
    transform: translateY(-50%) rotateY(30deg) scale(0.82);
  }

  .slide.next {
    left: 72%;
    transform: translateY(-50%) rotateY(-30deg) scale(0.82);
  }

  .slide.far-prev,
  .slide.far-next {
    width: 14%;
    height: 36%;
  }

  .slide.far-prev {
    left: 1%;
    transform: translateY(-50%) rotateY(35deg) scale(0.7);
  }

  .slide.far-next {
    left: 85%;
    transform: translateY(-50%) rotateY(-35deg) scale(0.7);
  }

  .slideshow-controls {
    gap: 12px;
  }

  .slide-btn {
    width: 34px;
    height: 34px;
    font-size: 1.3rem;
    border-radius: 10px;
  }

  .slide-dot {
    width: 10px;
    height: 10px;
  }
}
