:root {
  --neon: #00d4ff;
  /* --neon-rgb: 0, 212, 255; */
  --dark-bg: #06060b;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "DM Sans", sans-serif;
  background: var(--dark-bg);
  color: #e2e2e8;
  overflow-x: hidden;
}
::selection {
  background: rgba(var(--neon-rgb), 0.3);
  color: #fff;
}
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #0a0a12;
}
::-webkit-scrollbar-thumb {
  background: var(--neon);
  border-radius: 3px;
}

.neon-text {
  color: var(--neon);
  text-shadow:
    0 0 7px rgba(var(--neon-rgb), 0.6),
    0 0 20px rgba(var(--neon-rgb), 0.3);
}
.neon-border {
  border-color: var(--neon);
  box-shadow:
    0 0 8px rgba(var(--neon-rgb), 0.25),
    inset 0 0 8px rgba(var(--neon-rgb), 0.08);
}
.neon-glow {
  box-shadow:
    0 0 15px rgba(var(--neon-rgb), 0.3),
    0 0 40px rgba(var(--neon-rgb), 0.1);
}
.neon-glow-hover:hover {
  box-shadow:
    0 0 20px rgba(var(--neon-rgb), 0.5),
    0 0 60px rgba(var(--neon-rgb), 0.2);
}

.gradient-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon), transparent);
}

.hero-grid {
  background-image:
    linear-gradient(rgba(var(--neon-rgb), 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--neon-rgb), 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.4;
  animation: orbFloat 8s ease-in-out infinite;
}
.orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(var(--neon-rgb), 0.2);
  top: -100px;
  right: -100px;
}
.orb-2 {
  width: 300px;
  height: 300px;
  background: rgba(var(--neon-rgb), 0.12);
  bottom: 10%;
  left: -80px;
  animation-delay: -3s;
}
.orb-3 {
  width: 200px;
  height: 200px;
  background: rgba(0, 150, 255, 0.15);
  top: 40%;
  right: 20%;
  animation-delay: -5s;
}
@keyframes orbFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -20px) scale(1.05);
  }
  66% {
    transform: translate(-20px, 15px) scale(0.95);
  }
}

.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--neon);
  margin-left: 4px;
  animation: blink 0.8s step-end infinite;
  vertical-align: text-bottom;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}
.reveal-delay-4 {
  transition-delay: 0.4s;
}
.reveal-delay-5 {
  transition-delay: 0.5s;
}

.skill-fill {
  width: 0;
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.skill-fill.animated {
  width: var(--w);
}

.tilt-card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  transform-style: preserve-3d;
}
.tilt-card:hover {
  transform: translateY(-6px);
}

.project-card:hover .project-img {
  transform: scale(1.05);
}
.project-img {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-link {
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--neon);
  box-shadow: 0 0 6px rgba(var(--neon-rgb), 0.5);
  transition:
    width 0.3s ease,
    left 0.3s ease;
}
.nav-link.active::after,
.nav-link:hover::after {
  width: 100%;
  left: 0;
}
.nav-link.active {
  color: var(--neon);
}

/* ====== ပြင်ဆင်ထားတဲ့ Mobile Menu ====== */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.mobile-menu.open {
  transform: translateX(0);
}

/* Hamburger lines — အရေးကြီးတာ: မဟုတ်ပါဘူး margin/padding မပါဘဲ ဖြတ်လိုက်မယ် */
.hamburger-wrap {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  z-index: 60;
}
.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  position: absolute;
  left: 50%;
  margin-left: -12px;
  transition:
    top 0.35s cubic-bezier(0.77, 0, 0.175, 1),
    transform 0.35s cubic-bezier(0.77, 0, 0.175, 1),
    opacity 0.2s ease;
}
.hamburger-line:nth-child(1) {
  top: 13px;
}
.hamburger-line:nth-child(2) {
  top: 19px;
}
.hamburger-line:nth-child(3) {
  top: 25px;
}

/* X ဖြတ်တဲ့ state */
.hamburger-wrap.active .hamburger-line:nth-child(1) {
  top: 19px;
  transform: rotate(45deg);
}
.hamburger-wrap.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: translateX(-8px);
}
.hamburger-wrap.active .hamburger-line:nth-child(3) {
  top: 19px;
  transform: rotate(-45deg);
}

.timeline-line {
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--neon),
    rgba(var(--neon-rgb), 0.1)
  );
}
@media (min-width: 768px) {
  .timeline-line {
    left: 50%;
    transform: translateX(-50%);
  }
}
.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 10px rgba(var(--neon-rgb), 0.6);
  position: absolute;
  left: 14px;
  top: 6px;
}
@media (min-width: 768px) {
  .timeline-dot {
    left: 50%;
    transform: translateX(-50%);
  }
}

.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 16px 24px;
  border-radius: 12px;
  background: #161622;
  border: 1px solid rgba(var(--neon-rgb), 0.3);
  color: #fff;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 9999;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--neon);
  color: #fff;
  box-shadow: 0 0 20px rgba(var(--neon-rgb), 0.5);
  border: 1px solid rgba(var(--neon-rgb), 0.3);
  /* color: var(--neon); */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  /* z-index: 100; */
  cursor: pointer;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}
.back-to-top:hover {
  opacity: 0.8;
}

.form-input {
  background: #10101a;
  border: 1px solid #252538;
  border-radius: 12px;
  padding: 14px 18px;
  color: #e2e2e8;
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  width: 100%;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  outline: none;
}
.form-input:focus {
  border-color: var(--neon);
  box-shadow: 0 0 0 3px rgba(var(--neon-rgb), 0.1);
}
.form-input::placeholder {
  color: #4a4a5e;
}
.form-input.error {
  border-color: #ff4444;
}

#particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.magnetic-btn {
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.magnetic-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.magnetic-btn:hover::before {
  opacity: 1;
}

.section-heading::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  margin-top: 12px;
  background: var(--neon);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(var(--neon-rgb), 0.4);
}
.section-heading.center::after {
  margin-left: auto;
  margin-right: auto;
}

a {
  transition: color 0.2s ease;
}

.loader {
  position: fixed;
  inset: 0;
  background: var(--dark-bg);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
}
.loader.hidden {
  opacity: 0;
  visibility: hidden;
}
.loader-ring {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 3px solid #1c1c2b;
  border-top-color: var(--neon);
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Sending state */
.btn-sending {
  pointer-events: none;
  opacity: 0.7;
}
.btn-sending .btn-text {
  display: none;
}
.btn-sending .btn-loader {
  display: inline-flex !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
