:root {
  --bg: #070816;
  --bg2: #0f1330;
  --card: rgba(10, 15, 35, 0.78);
  --card2: rgba(5, 10, 25, 0.92);
  --text: #f0f4ff;
  --muted: #a8b8e0;
  --line: rgba(0, 255, 200, 0.18);
  --accent: #00ff88;
  --accent2: #00ccff;
  --accent3: #ff00ff;
  --accent-glow: rgba(0, 255, 136, 0.42);
  --shadow: 0 25px 80px rgba(0, 255, 136, 0.16);
  --radius: 28px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 80%, rgba(0, 255, 136, 0.2), transparent 50%),
    radial-gradient(
      circle at 80% 20%,
      rgba(0, 204, 255, 0.18),
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 40%,
      rgba(255, 0, 255, 0.12),
      transparent 50%
    ),
    linear-gradient(180deg, #000411 0%, var(--bg) 60%, #000411 100%);
  overflow-x: hidden;
  position: relative;
}
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><filter id="n"><feTurbulence baseFrequency=".8" numOctaves="2"/></filter><rect width="200" height="200" filter="url(%23n)" opacity="1"/></svg>');
  z-index: -1;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(
      45deg,
      transparent 30%,
      rgba(0, 255, 136, 0.03) 50%,
      transparent 70%
    ),
    linear-gradient(
      -45deg,
      transparent 30%,
      rgba(0, 204, 255, 0.03) 50%,
      transparent 70%
    );
  pointer-events: none;
  z-index: -1;
  animation: shimmer 8s infinite linear;
}
@keyframes shimmer {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}
a {
  color: inherit;
  text-decoration: none;
}
.container {
  width: min(1200px, 94vw);
  margin: 0 auto;
}
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(10, 10, 26, 0.82);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 32px rgba(0, 255, 136, 0.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 800;
}
.logo {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    var(--accent),
    var(--accent2),
    var(--accent3)
  );
  display: grid;
  place-items: center;
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.45);
  color: #000;
  font-weight: 900;
  font-size: 16px;
  animation: pulse 2s infinite;
}
.sub {
  font-size: 12px;
  color: var(--muted);
}
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.45);
  }
  50% {
    box-shadow: 0 0 52px rgba(0, 255, 136, 0.8);
  }
}
.nav-links {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--muted);
  font-weight: 600;
  padding: 12px 0;
  transition: 0.25s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  text-shadow: 0 0 12px var(--accent-glow);
}
.panel {
  position: relative;
  padding: 96px 0;
  overflow: hidden;
}
.panel::after {
  content: "";
  position: absolute;
  inset: auto 10% 0 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.2;
}
.hero {
  padding-top: 74px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 36px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  background: rgba(0, 255, 136, 0.08);
  border-radius: 999px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.12);
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--accent), var(--accent2));
  box-shadow: 0 0 20px var(--accent-glow);
  animation: pulse-glow 1.5s infinite;
}
@keyframes pulse-glow {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}
h1 {
  margin: 24px 0 18px;
  font-size: clamp(48px, 7vw, 82px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.gradient {
  background: linear-gradient(
    110deg,
    var(--accent),
    var(--accent2),
    var(--accent3)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.75;
  margin-bottom: 8px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 36px;
}
.btn {
  padding: 16px 28px;
  border-radius: 20px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: inline-flex;
  gap: 12px;
  align-items: center;
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
}
.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: 0.6s;
}
.btn:hover::before {
  left: 100%;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #000;
  box-shadow: 0 12px 40px rgba(0, 255, 136, 0.28);
}
.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 255, 136, 0.5);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
  color: var(--text);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 25px var(--accent-glow);
  transform: translateY(-4px);
}
.card,
.terminal-aside {
  background: linear-gradient(145deg, var(--card), var(--card2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}
.terminal-aside {
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
}
.terminal {
  height: 320px;
  background: #000;
  border-radius: var(--radius);
  font-family: "JetBrains Mono", monospace;
  overflow: hidden;
}
.terminal-header {
  background: linear-gradient(90deg, #1a1a2e, #16213e);
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #333;
}
.terminal-header span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}
.close-btn {
  color: #ff4757;
  font-size: 18px;
  font-weight: 700;
}
.terminal-body {
  padding: 24px;
  height: calc(100% - 50px);
  overflow-y: auto;
  color: var(--accent);
  font-size: 14px;
  line-height: 1.6;
}
.cmd-line {
  margin-bottom: 8px;
}
.prompt {
  color: var(--accent);
  margin-right: 8px;
  font-weight: 600;
}
.output {
  color: #66ff99;
  margin: 4px 0 16px 24px;
  background: rgba(0, 255, 136, 0.05);
  padding: 8px 12px;
  border-radius: 6px;
  border-left: 3px solid var(--accent);
}
.cursor .blink {
  color: var(--accent);
  animation: blink-cursor 1s infinite;
  margin-left: 4px;
}
@keyframes blink-cursor {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}
.terminal-body::-webkit-scrollbar,
.rooms-list::-webkit-scrollbar {
  width: 8px;
}
.terminal-body::-webkit-scrollbar-track,
.rooms-list::-webkit-scrollbar-track {
  background: transparent;
}
.terminal-body::-webkit-scrollbar-thumb,
.rooms-list::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 136, 0.3);
  border-radius: 4px;
}
.terminal-body::-webkit-scrollbar-thumb:hover,
.rooms-list::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 255, 136, 0.55);
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 24px;
}
.section-title h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 800;
}
.section-title p {
  margin: 0;
  color: var(--muted);
  max-width: 680px;
  font-size: 16px;
}
.card {
  padding: 28px;
  box-shadow: var(--shadow);
  transition: 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 255, 136, 0.03),
    rgba(0, 204, 255, 0.03)
  );
  opacity: 0;
  transition: 0.35s;
}
.card:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 30px 100px rgba(0, 255, 136, 0.22);
}
.card:hover::after {
  opacity: 1;
}
.glass-card,
.skill-card,
.stats-card,
.project,
.cert-card {
  will-change: transform, opacity;
}
.about-grid,
.project-grid,
.cert-grid,
.skill-grid,
.contact-grid {
  display: grid;
  gap: 24px;
}
.about-grid {
  grid-template-columns: 1fr 1fr;
}
.skill-grid {
  grid-template-columns: repeat(4, 1fr);
}
.project-grid {
  grid-template-columns: repeat(3, 1fr);
}
.cert-grid {
  grid-template-columns: repeat(3, 1fr);
}
.contact-grid {
  grid-template-columns: 1.1fr 0.9fr;
}
.chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
.chip {
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.16);
  transition: 0.3s;
}
.chip:hover {
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 25px var(--accent-glow);
  transform: translateY(-2px);
}
.label {
  color: var(--accent);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.label::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin-top: 6px;
  box-shadow: 0 0 10px var(--accent-glow);
}
.muted {
  color: var(--muted);
  line-height: 1.75;
}
.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
}
.stat-item:last-of-type {
  border-bottom: none;
}
.stat-label {
  color: var(--muted);
}
.stat-value {
  color: var(--accent);
  font-weight: 700;
  text-shadow: 0 0 8px var(--accent-glow);
}
.rooms-container {
  margin-top: 20px;
}
.rooms-container h4 {
  margin: 0 0 16px;
  color: var(--accent2);
  font-size: 16px;
  font-weight: 700;
}
.rooms-list {
  max-height: 220px;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-glow) transparent;
}
.room-item {
  padding: 12px 16px;
  margin-bottom: 8px;
  background: rgba(0, 255, 136, 0.08);
  border-radius: 12px;
  border-left: 3px solid var(--accent);
  font-size: 14px;
  transition: 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.room-item:hover {
  background: rgba(0, 255, 136, 0.15);
  box-shadow: 0 4px 20px rgba(0, 255, 136, 0.16);
  transform: translateX(6px);
}
.project {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 280px;
}
.project .top {
  width: 100%;
  height: 140px;
  border-radius: 22px;
  background: linear-gradient(
    135deg,
    var(--accent-glow),
    rgba(0, 204, 255, 0.2),
    rgba(255, 0, 255, 0.15)
  );
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  box-shadow: 0 0 30px var(--accent-glow);
}
.project h3,
.cert h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}
.project p,
.cert p {
  margin: 4px 0;
  line-height: 1.65;
}
.meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}
.meta span {
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid var(--accent-glow);
  color: var(--accent);
  font-weight: 500;
}
.linkbox {
  padding: 20px 24px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(0, 255, 136, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: 0.3s;
  box-shadow: 0 8px 30px rgba(0, 255, 136, 0.1);
}
.linkbox:hover {
  box-shadow: 0 15px 50px rgba(0, 255, 136, 0.2);
  transform: translateX(4px);
}
.linkbox span {
  color: var(--muted);
  font-size: 15px;
}
.footer {
  padding: 40px 0 50px;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--line);
  margin-top: 30px;
}
.reveal,
.reveal-left,
.reveal-right,
.reveal-section,
.reveal-card,
.project,
.card,
.linkbox,
.terminal-aside,
.hero-copy {
  opacity: 0;
  transform: translateY(46px) scale(0.97);
  filter: blur(8px);
  transition:
    opacity 0.85s ease,
    transform 0.85s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.85s ease;
}
.reveal-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}
.hero-copy.reveal-visible {
  animation: floatInLeft 0.95s ease both;
}
.terminal-aside.reveal-visible {
  animation: floatInRight 0.95s ease both;
}
.reveal-section.reveal-visible .section-title {
  animation: headerRise 0.7s ease both;
}
.reveal-card.reveal-visible,
.project.reveal-visible,
.linkbox.reveal-visible {
  animation: cardPop 0.75s ease both;
}
@keyframes floatInLeft {
  from {
    opacity: 0;
    transform: translateX(-80px) translateY(20px) scale(0.97);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
    filter: blur(0);
  }
}
@keyframes floatInRight {
  from {
    opacity: 0;
    transform: translateX(80px) translateY(20px) scale(0.97);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
    filter: blur(0);
  }
}
@keyframes headerRise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes cardPop {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.92) rotateX(8deg);
  }
  70% {
    transform: translateY(-4px) scale(1.01) rotateX(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0);
  }
}
.panel .section-title,
.panel .hero-grid,
.panel .about-grid,
.panel .skill-grid,
.panel .project-grid,
.panel .cert-grid,
.panel .contact-grid {
  perspective: 1200px;
}
.reveal-section::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 16px;
  transform: translateX(-50%);
  width: 160px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  filter: blur(1px);
  transition: 0.6s;
}
.reveal-visible.reveal-section::before {
  opacity: 0.8;
}
.hero-split .hero-grid {
  position: relative;
}
.hero-split .hero-grid::after {
  content: "";
  position: absolute;
  inset: auto 0 -24px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent2), transparent);
  opacity: 0.25;
}
.hero-copy.reveal-visible .eyebrow {
  animation: pulsebar 1.2s ease;
}
.reveal-card.reveal-visible .label {
  animation: labelGlow 0.6s ease;
}
@keyframes pulsebar {
  0% {
    box-shadow: 0 0 0 rgba(0, 255, 136, 0);
  }
  50% {
    box-shadow: 0 0 24px rgba(0, 255, 136, 0.22);
  }
  100% {
    box-shadow: 0 0 0 rgba(0, 255, 136, 0);
  }
}
@keyframes labelGlow {
  0% {
    transform: translateY(4px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
@media (max-width: 980px) {
  .hero-grid,
  .about-grid,
  .skill-grid,
  .project-grid,
  .cert-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
  .hero {
    padding-top: 54px;
  }
  .panel {
    padding: 72px 0;
  }
  .section-title {
    align-items: flex-start;
  }
  .terminal {
    height: 300px;
  }
}
