/* ===================================
   J.A.R.V.I.S GLOBAL BACKGROUND
=================================== */

/* ---------- RESET / BASE ---------- */
html,
body {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* ---------- BACKGROUND TOKENS ---------- */
:root {
  --jarvis-bg-dark: #06133b;
  --jarvis-bg-deep: #5379a1;
  --header-h: 64px;
}

/* ---------- GLOBAL BACKGROUND ---------- */
/* ---------- GLOBAL BACKGROUND ---------- */
body {
  background:
    /* 중앙 코어 글로우 */
    radial-gradient(
      circle at center,
      rgba(219, 7, 7, 0.45) 0%,
      rgba(177, 133, 31, 0.25) 20%,
      rgba(0, 255, 85, 0.15) 35%,
      transparent 55%
    ),
    /* 전체 공간 그라데이션 */
    radial-gradient(
        circle at center,
        var(--jarvis-bg-deep),
        var(--jarvis-bg-dark) 70%
      );

  background-attachment: fixed;
  color: #ffffff;
}
/* ===========================
   HEADER / NAV (JARVIS HUD)
=========================== */
header {
  width: 100%;
  padding: 18px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(2, 10, 20, 0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 234, 255, 0.25);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo {
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 2px;
  color: #9cecff;
  text-shadow: 0 0 8px rgba(0, 234, 255, 0.6);
}

/* ===== NAV LINKS ===== */
.nav-links {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 1.5px;
  color: #6ee7ff;
  padding: 6px 2px;
  transition:
    color 0.3s ease,
    text-shadow 0.3s ease;
}
.nav-links a::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -120%;
  width: 120%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 234, 255, 0.9),
    transparent
  );
  opacity: 0;
  transform: translateY(-50%);
}

/* 레이저 언더라인 */
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00eaff, transparent);
  opacity: 0;
  transform: scaleX(0.2);
  transition: all 0.35s ease;
}

.nav-links a:hover {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(0, 234, 255, 0.9);
}

.nav-links a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

/* 활성 메뉴 (선택) */
.nav-links a.active {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(0, 234, 255, 1);
}

.nav-links a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

@media (max-width: 768px) {
  header {
    height: 45px; /*  모바일 헤더 높이 */

    padding: 0 12px;
    display: flex;
  }

  .header-left {
    gap: 8px; /*  로고–메뉴 간격 축소 */
    padding-right: 12px;
  }

  .logo {
    font-size: 18px;
    letter-spacing: 0.9px;
  }

  /* NAV */
  .nav-links {
    gap: 10px; /*  메뉴 간격 */
  }

  .nav-links a {
    height: 100%; /*  header 기준 */
    display: flex;
    align-items: center; /*  세로 중앙 */
    line-height: 1; /*  baseline 문제 제거 */

    font-size: 10px; /*  모바일 글씨 크기 */
    letter-spacing: 0.3px;
    padding: 0; /* 위아래 padding 제거 */
  }

  /* 언더라인 위치 미세 조정 */
  .nav-links a::after {
    bottom: -3px;
  }
}
