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

/* =====================
   CSS 리셋 및 기본 설정
===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* 색상 변수 */
  --color-bg-primary: #0a0e1a;
  --color-bg-secondary: #0f1419;
  --color-accent-cyan: #1bafcd;
  --color-accent-blue: #0099cc;
  --color-accent-black: #000000;
  --color-text-primary: #ffffff;
  --color-text-secondary: #a0aec0;
  --color-glass-bg: rgba(10, 14, 26, 0.6);
  --color-glass-border: rgba(0, 212, 255, 0.2);

  /* 기술 카테고리 색상 */
  --color-frontend: #00d4ff;
  --color-backend: #00ff99;
  --color-devops: #ff6b9d;
  --color-security: #ff5252;

  /* 간격 변수 */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;

  /* 타이포그래피 */
  --font-primary:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Cascadia Code", "Courier New", Courier, monospace;

  /* 효과 */
  --blur-glass: 20px;
  --border-radius: 1rem;
  --transition-speed: 0.3s;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

::selection {
  background: var(--color-accent-cyan);
  color: var(--color-bg-primary);
  text-shadow: none;
}

::-moz-selection {
  background: var(--color-accent-cyan);
  color: var(--color-bg-primary);
}

/* =====================
   WebGL 캔버스
===================== */
#webgl-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* =====================
   노이즈 오버레이 (비활성 - GLSL 셰이더 사용)
===================== */
#noise-overlay {
  display: none;
}

/* =====================
   컨테이너 및 레이아웃
===================== */
.container {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--spacing-2xl) var(--spacing-lg);
}

/* =====================
   히어로 섹션
===================== */
.hero {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
  padding: var(--spacing-2xl) 0 var(--spacing-xl);
}

.hero-greeting {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-accent-cyan);
  margin-bottom: var(--spacing-sm);
  animation: fadeInUp 0.8s ease-out both;
}

h1 {
  font-size: 4.5rem;
  font-weight: 800;
  margin-bottom: var(--spacing-md);
  background: linear-gradient(
    135deg,
    var(--color-text-primary),
    var(--color-accent-cyan)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
  animation: fadeInUp 0.8s ease-out 0.15s both;
}

.subtitle {
  font-size: 1.25rem;
  color: var(--color-text-secondary);
  font-weight: 400;
  line-height: 1.8;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-lg);
  animation: fadeInUp 0.8s ease-out 0.45s both;
}

/* =====================
   네비게이션
===================== */
nav {
  display: flex;
  justify-content: center;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-2xl);
  padding: var(--spacing-sm) var(--spacing-md);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 212, 255, 0.08);
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

nav a {
  color: var(--color-text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--border-radius);
  transition: all var(--transition-speed) ease;
  position: relative;
  overflow: hidden;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
}

nav a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--color-accent-cyan),
    var(--color-accent-blue)
  );
  transition: width var(--transition-speed) ease;
}

nav a::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(0, 212, 255, 0.1) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
  pointer-events: none;
}

nav a:hover,
nav a.active {
  color: var(--color-accent-cyan);
}

nav a:hover::before,
nav a.active::before {
  width: 80%;
}

nav a:hover::after {
  opacity: 1;
}

/* =====================
   햄버거 메뉴 (모바일)
===================== */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: rgba(10, 14, 26, 0.8);
  border: 1px solid var(--color-glass-border);
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 200;
  backdrop-filter: blur(10px);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-accent-cyan);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =====================
   스크롤 인디케이터
===================== */
.scroll-indicator {
  margin-top: var(--spacing-lg);
  text-align: center;
  animation: bounce 2s ease-in-out infinite;
  color: var(--color-accent-cyan);
  opacity: 0.5;
  font-size: 1.1rem;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

/* =====================
   프로젝트 그리드
===================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-2xl);
}

/* =====================
   프로젝트 카드
===================== */
.project-card {
  background: var(--color-glass-bg);
  backdrop-filter: blur(var(--blur-glass));
  -webkit-backdrop-filter: blur(var(--blur-glass));
  border: 1px solid var(--color-glass-border);
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  transition: all var(--transition-speed) ease;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s ease-out both;
  display: flex;
  flex-direction: column;
  align-self: start;
}

.project-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(0, 212, 255, 0.1) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
  pointer-events: none;
}

.project-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-accent-cyan),
    transparent
  );
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
}

.project-card:hover::before {
  opacity: 1;
}

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

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-accent-cyan);
  box-shadow:
    0 22px 65px rgba(0, 212, 255, 0.25),
    inset 0 1px 0 rgba(0, 212, 255, 0.1);
}

.project-card:nth-child(1) {
  animation-delay: 0.1s;
}
.project-card:nth-child(2) {
  animation-delay: 0.2s;
}
.project-card:nth-child(3) {
  animation-delay: 0.3s;
}
.project-card:nth-child(4) {
  animation-delay: 0.4s;
}

/* =====================
   프로젝트 카드 콘텐츠
===================== */
.project-icon {
  width: 80px;
  height: 80px;
  margin-bottom: var(--spacing-md);
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid var(--color-glass-border);
}

.project-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-primary);
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.project-card h3::before {
  content: "▶";
  color: var(--color-accent-cyan);
  font-size: 0.8em;
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
}

.project-card:hover h3::before {
  opacity: 1;
}

.project-description {
  font-size: 1rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-md);
  line-height: 1.7;
  flex-grow: 1;
}

.project-preview {
  width: 100%;
  height: 200px;
  margin: var(--spacing-md) 0;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--color-glass-border);
  transition: all var(--transition-speed) ease;
}

/* =====================
   비공개 프로젝트 미리보기
===================== */
.project-preview.private {
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
    45deg,
    rgba(0, 0, 0, 0.2),
    rgba(0, 0, 0, 0.2) 10px,
    rgba(0, 212, 255, 0.05) 10px,
    rgba(0, 212, 255, 0.05) 20px
  );
  border: 1px dashed var(--color-glass-border);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.project-card:hover .project-preview.private {
  background: repeating-linear-gradient(
    45deg,
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0.15) 10px,
    rgba(0, 212, 255, 0.15) 10px,
    rgba(0, 212, 255, 0.15) 20px
  );
  border-color: rgba(0, 212, 255, 0.6);
  box-shadow:
    inset 0 0 20px rgba(0, 212, 255, 0.1),
    0 0 20px rgba(0, 212, 255, 0.15);
}

/* 스캔라인 오버레이 (상시 노출) */
.project-preview.private::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 212, 255, 0.03) 2px,
    rgba(0, 212, 255, 0.03) 4px
  );
  pointer-events: none;
  z-index: 2;
  transition: all 0.3s ease;
}

.project-card:hover .project-preview.private::before {
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 212, 255, 0.08) 2px,
    rgba(0, 212, 255, 0.08) 4px
  );
  animation: scanlineFlicker 0.15s ease-in-out infinite;
}

.project-preview.private::after {
  content: "ACCESS RESTRICTED";
  font-family: var(--font-primary);
  color: var(--color-text-secondary);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  opacity: 0;
  position: absolute;
  z-index: 3;
  transition: opacity 0.3s ease;
}

.project-preview.private {
  position: relative;
}

/* 접근 제한 HUD 오버레이 */
.access-restricted-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: radial-gradient(
    circle,
    rgba(255, 0, 64, 0.05) 0%,
    transparent 70%
  );
}

.project-card:hover .access-restricted-label {
  opacity: 1;
  background: radial-gradient(
    circle,
    rgba(255, 0, 64, 0.1) 0%,
    transparent 80%
  );
}

.hud-prefix {
  font-family: "Courier New", monospace;
  font-size: 0.7rem;
  color: #ff0040;
  letter-spacing: 0.2rem;
  margin-bottom: 0.5rem;
  opacity: 0.8;
  font-weight: 800;
}

.hud-main {
  font-family: var(--font-primary);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--color-text-primary);
  letter-spacing: 0.15rem;
  text-transform: uppercase;
  text-shadow: 0 0 15px rgba(255, 0, 64, 0.5);
  margin-bottom: 0.3rem;
}

.hud-id {
  font-family: "Courier New", monospace;
  font-size: 0.65rem;
  color: var(--color-accent-cyan);
  background: rgba(0, 212, 255, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.1rem;
  border: 1px solid rgba(0, 212, 255, 0.2);
}

/* HUD 프레임 및 모서리 */
.hud-frame {
  position: absolute;
  inset: var(--spacing-md);
  opacity: 0;
  transition: all 0.5s ease;
  z-index: 15;
  pointer-events: none;
}

.project-card:hover .hud-frame {
  opacity: 1;
  inset: var(--spacing-sm);
}

.hud-corner {
  position: absolute;
  width: 15px;
  height: 15px;
  border-color: #ff0040;
  border-style: solid;
  opacity: 0.8;
}

.top-left {
  top: 0;
  left: 0;
  border-width: 2px 0 0 2px;
}
.top-right {
  top: 0;
  right: 0;
  border-width: 2px 2px 0 0;
}
.bottom-left {
  bottom: 0;
  left: 0;
  border-width: 0 0 2px 2px;
}
.bottom-right {
  bottom: 0;
  right: 0;
  border-width: 0 2px 2px 0;
}

.project-card:hover .hud-main {
  animation: hudTextGlitch 3s infinite;
}

@keyframes hudTextGlitch {
  0%,
  90%,
  100% {
    transform: skew(0deg);
    text-shadow: 0 0 15px rgba(255, 0, 64, 0.5);
  }
  92% {
    transform: skew(10deg);
    text-shadow:
      2px 0 #00ffcc,
      -2px 0 #ff00ff;
  }
  94% {
    transform: skew(-10deg);
    text-shadow:
      -2px 0 #00ffcc,
      2px 0 #ff00ff;
  }
  96% {
    transform: skew(5deg);
    opacity: 0.8;
  }
  98% {
    transform: skew(0deg);
    text-shadow: 3px 0 #ff0040;
  }
}

/* 스캐너 */
.fingerprint-scanner {
  width: 120px;
  height: 140px;
  position: relative;
  z-index: 1;
}

/* 레티클 모서리 (타겟팅 브래킷) */
.fp-reticle {
  position: absolute;
  inset: 0;
  transition: all 0.3s ease;
}

.fp-reticle::before,
.fp-reticle::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--color-accent-cyan);
  border-style: solid;
  opacity: 0.6;
  transition: all 0.3s ease;
}

.fp-reticle::before {
  top: 0;
  left: 0;
  border-width: 2px 0 0 2px;
}

.fp-reticle::after {
  top: 0;
  right: 0;
  border-width: 2px 2px 0 0;
}

/* 스캐너 자체 가상 요소를 통한 하단 모서리 */
.fingerprint-scanner::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border-color: var(--color-accent-cyan);
  border-style: solid;
  border-width: 0 0 2px 2px;
  opacity: 0.6;
  z-index: 4;
}

.fingerprint-scanner::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 20px;
  height: 20px;
  border-color: var(--color-accent-cyan);
  border-style: solid;
  border-width: 0 2px 2px 0;
  opacity: 0.6;
  z-index: 4;
}

/* 지문 릿지 패턴 - 레이어드 타원 */
.fp-ridges {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 90px;
  transition: all 0.3s ease;
}

.fp-ridges::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 42% 42% 46% 46%;
  background:
    radial-gradient(
      ellipse 40px 50px at 50% 48%,
      transparent 14px,
      rgba(0, 212, 255, 0.12) 15px,
      transparent 16px
    ),
    radial-gradient(
      ellipse 34px 42px at 50% 46%,
      transparent 10px,
      rgba(0, 212, 255, 0.14) 11px,
      transparent 12px
    ),
    radial-gradient(
      ellipse 28px 35px at 52% 44%,
      transparent 7px,
      rgba(0, 212, 255, 0.15) 8px,
      transparent 9px
    ),
    radial-gradient(
      ellipse 22px 28px at 48% 45%,
      transparent 5px,
      rgba(0, 212, 255, 0.16) 6px,
      transparent 7px
    ),
    radial-gradient(
      ellipse 16px 21px at 50% 43%,
      transparent 3px,
      rgba(0, 212, 255, 0.18) 4px,
      transparent 5px
    ),
    radial-gradient(
      ellipse 10px 14px at 50% 44%,
      transparent 1px,
      rgba(0, 212, 255, 0.2) 2px,
      transparent 3px
    );
}

.fp-ridges::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 42% 42% 46% 46%;
  background:
    radial-gradient(
      ellipse 50px 60px at 46% 52%,
      transparent 20px,
      rgba(0, 212, 255, 0.08) 21px,
      transparent 22px
    ),
    radial-gradient(
      ellipse 56px 68px at 54% 50%,
      transparent 24px,
      rgba(0, 212, 255, 0.07) 25px,
      transparent 26px
    ),
    radial-gradient(
      ellipse 62px 76px at 48% 54%,
      transparent 28px,
      rgba(0, 212, 255, 0.06) 29px,
      transparent 30px
    );
  /* 사실감을 위한 약간의 오프셋이 적용된 외부 릿지 */
}

/* 글로우 트레일이 포함된 스캔 라인 */
.fp-scan-line {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 212, 255, 0.3) 10%,
    rgba(0, 255, 150, 0.5) 30%,
    #00ffff 50%,
    rgba(0, 255, 150, 0.5) 70%,
    rgba(0, 212, 255, 0.3) 90%,
    transparent
  );
  box-shadow:
    0 0 4px rgba(0, 255, 150, 0.6),
    0 0 12px var(--color-accent-cyan),
    0 0 24px rgba(0, 212, 255, 0.4),
    0 0 40px rgba(0, 212, 255, 0.2),
    0 -6px 16px rgba(0, 255, 150, 0.3),
    0 6px 16px rgba(0, 255, 150, 0.1);
  top: 0;
  z-index: 3;
  filter: blur(0.5px);
  opacity: 0;
}

/* 스캔 라인 뒤의 잔상 글로우 */
.fp-scan-line::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  top: -30px;
  height: 30px;
  background: linear-gradient(
    to top,
    rgba(0, 255, 150, 0.2),
    rgba(0, 212, 255, 0.1),
    transparent
  );
  box-shadow: 0 0 20px rgba(0, 255, 150, 0.2);
  pointer-events: none;
}

/* 스캔 라인 앞의 선행 글로우 */
.fp-scan-line::before {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  top: 2px;
  height: 24px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(0, 255, 150, 0.15),
    transparent
  );
  box-shadow: 0 0 16px rgba(0, 255, 150, 0.25);
  pointer-events: none;
}

/* 상태 텍스트 */
.fp-status {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-primary);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--color-accent-cyan);
  opacity: 0.7;
  animation: textFlicker 1.5s ease-in-out infinite;
  white-space: nowrap;
}

/* 호버 상태 전환 - 스캐너 강화 및 동적 이펙트 */
.project-card:hover .fingerprint-scanner {
  opacity: 1;
  transition:
    opacity 0.3s ease,
    filter 0.3s ease;
  filter: brightness(1.2) saturate(1.3);
  animation: scannerPulse 1.2s ease-in-out infinite;
}

.project-card:hover .fp-reticle::before,
.project-card:hover .fp-reticle::after {
  opacity: 1;
  border-color: #00ff99;
  box-shadow: 0 0 8px rgba(0, 255, 150, 0.5);
  transition: all 0.3s ease;
}

.project-card:hover .fp-scan-line {
  opacity: 1;
  animation: scanLine 2s cubic-bezier(0.42, 0, 0.58, 1) infinite;
  box-shadow:
    0 0 6px rgba(0, 255, 150, 0.8),
    0 0 16px var(--color-accent-cyan),
    0 0 32px rgba(0, 212, 255, 0.5),
    0 0 50px rgba(0, 212, 255, 0.3),
    0 -8px 24px rgba(0, 255, 150, 0.4);
  transition: all 0.3s ease;
}

.project-card:hover .fp-ridges {
  filter: brightness(1.15) drop-shadow(0 0 10px rgba(0, 212, 255, 0.4));
  animation: ridgesPulse 1.5s ease-in-out infinite;
}

.project-card:hover .fp-status {
  color: #00ff99;
  text-shadow: 0 0 8px rgba(0, 255, 150, 0.6);
  animation: statusGlow 1.2s ease-in-out infinite;
}

@keyframes scannerPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

@keyframes ridgesPulse {
  0%,
  100% {
    opacity: 0.9;
  }
  50% {
    opacity: 1;
  }
}

@keyframes statusGlow {
  0%,
  100% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
}

@keyframes scanlineFlicker {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* =====================
   문제 해결 인포그래픽
===================== */
.problem-solution {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
  padding: var(--spacing-md);
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.05) 0%,
    rgba(0, 212, 255, 0.02) 100%
  );
  border-radius: 8px;
  border-left: 3px solid var(--color-accent-cyan);
  border: 1px solid rgba(0, 212, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.problem-solution::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 2px,
    rgba(0, 212, 255, 0.02) 2px,
    rgba(0, 212, 255, 0.02) 4px
  );
  pointer-events: none;
}

.ps-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  position: relative;
  z-index: 1;
}

.ps-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: var(--font-mono);
  transition: all var(--transition-speed) ease;
}

.ps-item:first-child .ps-label {
  background: linear-gradient(
    135deg,
    rgba(255, 82, 82, 0.2),
    rgba(255, 82, 82, 0.1)
  );
  color: #ff7070;
  border: 1px solid rgba(255, 82, 82, 0.3);
}

.ps-item:last-child .ps-label {
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.2),
    rgba(0, 212, 255, 0.1)
  );
  color: var(--color-accent-cyan);
  border: 1px solid rgba(0, 212, 255, 0.3);
}

.ps-text {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* =====================
   기술 태그 (프로젝트 카드)
===================== */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--spacing-md);
}

.tech-tag-sm {
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 16px;
  color: var(--color-text-secondary);
  transition: all var(--transition-speed) ease;
  position: relative;
  overflow: hidden;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tech-tag-sm::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 212, 255, 0.2),
    transparent
  );
  transition: left 0.6s ease;
}

.tech-tag-sm:hover {
  border-color: var(--color-accent-cyan);
  background: rgba(0, 212, 255, 0.15);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.3);
  transform: translateY(-2px);
}

.tech-tag-sm:hover::before {
  left: 100%;
}

/* 기술 태그 — cyan 단일 색상 통일 */

/* =====================
   나의 역할 섹션
===================== */
.my-role {
  margin: var(--spacing-md) 0;
  padding: var(--spacing-md);
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.05),
    rgba(0, 255, 153, 0.05)
  );
  border-left: 3px solid var(--color-frontend);
  border-radius: 0.5rem;
  font-family: var(--font-mono);
}

.role-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-frontend);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.role-items {
  list-style: none;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.role-items li {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.role-items li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--color-frontend);
  font-weight: bold;
}

.role-items li:hover {
  color: var(--color-text-primary);
  text-shadow: 0 0 8px rgba(0, 212, 255, 0.3);
}

/* =====================
   미니 플레이북 에디터 비주얼 카드
===================== */
.soar-visual {
  margin: var(--spacing-md) 0;
}

.playbook-stack {
  perspective: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: var(--spacing-sm) 0;
}

.playbook-layer {
  width: 90%;
  padding: 12px 16px;
  background: var(--color-glass-bg);
  border: 1px solid var(--color-glass-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: default;
}

.playbook-layer[data-soar-layer="3"] {
  transform: rotateX(20deg) translateZ(20px);
  z-index: 3;
}

.playbook-layer[data-soar-layer="2"] {
  transform: rotateX(20deg) translateZ(0px);
  z-index: 2;
  margin-top: -4px;
}

.playbook-layer[data-soar-layer="1"] {
  transform: rotateX(20deg) translateZ(-20px);
  z-index: 1;
  margin-top: -4px;
}

/* 호버: 레이어 펼치기 */
.soar-card:hover .playbook-layer[data-soar-layer="3"] {
  transform: rotateX(5deg) translateZ(30px) translateY(-8px);
  border-color: var(--color-accent-cyan);
}

.soar-card:hover .playbook-layer[data-soar-layer="2"] {
  transform: rotateX(5deg) translateZ(15px);
  border-color: rgba(0, 212, 255, 0.4);
}

.soar-card:hover .playbook-layer[data-soar-layer="1"] {
  transform: rotateX(5deg) translateZ(0px) translateY(8px);
  border-color: rgba(0, 212, 255, 0.3);
}

.layer-icon {
  color: var(--color-accent-cyan);
  font-size: 1.1rem;
}

/* 자동화 플로우 다이어그램 */
.soar-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: var(--spacing-md);
  padding: var(--spacing-sm);
  flex-wrap: wrap;
}

.flow-step {
  padding: 6px 14px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--color-accent-cyan);
  font-weight: 500;
}

.flow-arrow {
  color: var(--color-accent-cyan);
  font-size: 1.2rem;
  opacity: 0.4;
}

.soar-card:hover .flow-arrow {
  animation: arrowPulse 1.5s ease-in-out infinite;
  opacity: 0.6;
}
.soar-card:hover .flow-arrow:nth-child(2) {
  animation-delay: 0s;
}
.soar-card:hover .flow-arrow:nth-child(4) {
  animation-delay: 0.3s;
}
.soar-card:hover .flow-arrow:nth-child(6) {
  animation-delay: 0.6s;
}

/* =====================
   기술 스택 레이어 (Experience 섹션)
===================== */
#experience {
  margin-bottom: var(--spacing-2xl);
}

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: var(--spacing-2xl);
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
  position: relative;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.section-title::before {
  content: "═══════ ";
  font-size: 1rem;
  color: var(--color-accent-cyan);
  opacity: 0.4;
  margin-right: var(--spacing-sm);
  letter-spacing: 0.2em;
}

.section-title::after {
  content: " ═══════";
  font-size: 1rem;
  color: var(--color-accent-cyan);
  opacity: 0.4;
  margin-left: var(--spacing-sm);
  letter-spacing: 0.2em;
}

.tech-layers {
  perspective: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: var(--spacing-xl) 0;
}

.tech-layer {
  width: 85%;
  max-width: 900px;
  padding: var(--spacing-lg);
  background: var(--color-glass-bg);
  backdrop-filter: blur(var(--blur-glass));
  -webkit-backdrop-filter: blur(var(--blur-glass));
  border: 1px solid var(--color-glass-border);
  border-radius: var(--border-radius);
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  position: relative;
}

.tech-layer[data-layer="frontend"] {
  transform: rotateX(15deg) translateZ(60px);
  z-index: 4;
}

.tech-layer[data-layer="realtime"] {
  transform: rotateX(15deg) translateZ(20px);
  z-index: 3;
  margin-top: -20px;
}

.tech-layer[data-layer="automation"] {
  transform: rotateX(15deg) translateZ(-20px);
  z-index: 2;
  margin-top: -20px;
}

.tech-layer[data-layer="infra"] {
  transform: rotateX(15deg) translateZ(-60px);
  z-index: 1;
  margin-top: -20px;
}

.tech-layer:hover {
  transform: rotateX(0deg) translateZ(60px) scale(1.05);
  border-color: var(--color-accent-cyan);
  box-shadow: 0 20px 60px rgba(0, 212, 255, 0.3);
  z-index: 10;
}

.layer-header {
  margin-bottom: var(--spacing-sm);
}

.layer-label {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.layer-content {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}

.tech-tag {
  padding: 4px 12px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--color-text-primary);
  transition: all var(--transition-speed) ease;
}

.tech-tag:hover {
  background: rgba(0, 212, 255, 0.25);
  border-color: var(--color-accent-cyan);
}

/* =====================
   버튼 스타일
===================== */
.button-group {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  margin-top: var(--spacing-md);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: var(--spacing-xs) var(--spacing-md);
  border: 1px solid var(--color-accent-cyan);
  border-radius: 8px;
  background: transparent;
  color: var(--color-accent-cyan);
  font-weight: 500;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all var(--transition-speed) ease;
  cursor: pointer;
}

.btn:hover {
  background: var(--color-accent-cyan);
  color: var(--color-bg-primary);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--color-accent-cyan),
    var(--color-accent-blue)
  );
  border: none;
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.5);
}

/* =====================
   자기소개 섹션
===================== */
#about {
  margin-bottom: var(--spacing-2xl);
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--spacing-xl);
  align-items: start;
}

.about-text p {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: var(--spacing-md);
  position: relative;
  padding-left: var(--spacing-md);
}

.about-text p::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--color-accent-cyan);
  opacity: 0.5;
  font-family: var(--font-mono);
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.stat-item {
  display: flex;
  flex-direction: column;
  padding: var(--spacing-lg) var(--spacing-lg);
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.05) 0%,
    rgba(0, 212, 255, 0.02) 100%
  );
  border: 2px solid rgba(0, 212, 255, 0.2);
  border-radius: 12px;
  transition: all var(--transition-speed) ease;
  position: relative;
  overflow: hidden;
}

.stat-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-accent-cyan),
    transparent
  );
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
}

.stat-item:hover::before {
  opacity: 1;
}

.stat-item:hover {
  border-color: var(--color-accent-cyan);
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.1) 0%,
    rgba(0, 212, 255, 0.05) 100%
  );
  box-shadow:
    0 12px 40px rgba(0, 212, 255, 0.2),
    inset 0 0 20px rgba(0, 212, 255, 0.05);
  transform: translateY(-4px);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-accent-cyan);
  letter-spacing: -0.02em;
  margin-bottom: var(--spacing-xs);
  font-family: var(--font-mono);
}

.stat-item:hover .stat-number {
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-secondary);
  font-family: var(--font-mono);
}

/* =====================
   푸터 / 연락처 섹션
===================== */
footer {
  text-align: center;
  padding: var(--spacing-2xl) 0 var(--spacing-xl);
  margin-top: var(--spacing-2xl);
}

.contact-description {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-lg);
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-2xl);
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--color-glass-bg);
  border: 1px solid var(--color-glass-border);
  border-radius: 12px;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: all var(--transition-speed) ease;
  font-size: 0.95rem;
}

.contact-item:hover {
  border-color: var(--color-accent-cyan);
  color: var(--color-accent-cyan);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.15);
  transform: translateY(-2px);
}

.contact-icon {
  font-size: 1.2rem;
}

.footer-bottom {
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  opacity: 0.6;
}

/* =====================
   애니메이션
===================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes codeFlicker {
  0%,
  100% {
    opacity: 0.6;
  }
  25% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.8;
  }
  75% {
    opacity: 0.4;
  }
}

@keyframes numberPulse {
  0%,
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.05);
    filter: brightness(1.2);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes glitch {
  0% {
    transform: translate(0);
    filter: hue-rotate(0deg);
  }
  20% {
    transform: translate(-2px, 1px);
    filter: hue-rotate(90deg);
  }
  40% {
    transform: translate(1px, -1px);
    filter: hue-rotate(180deg);
  }
  60% {
    transform: translate(-1px, 2px);
    filter: hue-rotate(270deg);
  }
  80% {
    transform: translate(2px, -2px);
    filter: hue-rotate(360deg);
  }
  100% {
    transform: translate(0);
    filter: hue-rotate(0deg);
  }
}

@keyframes colorShift {
  0% {
    text-shadow:
      -2px 0 #ff0000,
      2px 0 #00d4ff;
  }
  100% {
    text-shadow:
      2px 0 #ff0000,
      -2px 0 #00d4ff;
  }
}

@keyframes textFlicker {
  0%,
  100% {
    opacity: 0.8;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes scanLine {
  0% {
    top: 0;
    opacity: 0;
    filter: blur(0.5px) brightness(0.8);
  }
  5% {
    opacity: 0.6;
  }
  8% {
    opacity: 1;
    filter: blur(0.5px) brightness(1.3);
  }
  50% {
    opacity: 1;
    filter: blur(0.5px) brightness(1);
  }
  92% {
    opacity: 1;
    filter: blur(0.5px) brightness(1);
  }
  95% {
    opacity: 0.6;
  }
  100% {
    top: 100%;
    opacity: 0;
    filter: blur(0.5px) brightness(0.8);
  }
}

@keyframes scanGlitch {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.3;
  }
  25% {
    transform: translateY(-2px);
    opacity: 0.5;
  }
  50% {
    transform: translateY(0);
    opacity: 0.3;
  }
  75% {
    transform: translateY(1px);
    opacity: 0.4;
  }
}

@keyframes arrowPulse {
  0%,
  100% {
    opacity: 0.3;
    transform: translateX(0);
  }
  50% {
    opacity: 1;
    transform: translateX(3px);
  }
}

/* =====================
   스크롤 리빌 애니메이션
===================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* =====================
   반응형 디자인
===================== */
@media (max-width: 768px) {
  h1 {
    font-size: 2.8rem;
  }


  .hero-greeting {
    font-size: 0.8rem;
  }

  .subtitle {
    font-size: 1.1rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .about-stats {
    flex-direction: row;
    justify-content: center;
  }

  .stat-item {
    flex: 1;
    align-items: center;
    text-align: center;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .nav-toggle {
    display: flex;
  }

  nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: var(--spacing-xs);
    padding: 4.5rem var(--spacing-md) var(--spacing-md);
    background: rgba(10, 14, 26, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.15);
    z-index: 150;
    margin-bottom: 0;
  }

  nav.open {
    display: flex;
  }

  .container {
    padding: var(--spacing-lg) var(--spacing-md);
  }

  .section-title {
    font-size: 1.8rem;
  }

  .section-title::before,
  .section-title::after {
    display: none;
  }

  .project-card {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .tech-layer {
    width: 95%;
    transform: none !important;
    margin-top: var(--spacing-sm) !important;
  }

  .tech-layer:hover {
    transform: scale(1.02) !important;
  }

  .playbook-layer {
    transform: none !important;
    margin-top: 4px !important;
  }

  .soar-card:hover .playbook-layer {
    transform: none !important;
  }

  .contact-links {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta .btn {
    width: 200px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2.2rem;
  }

  .about-stats {
    flex-direction: column;
  }

  .project-card {
    padding: var(--spacing-md);
  }

  .button-group {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .soar-flow {
    gap: 4px;
  }

  .flow-step {
    padding: 4px 10px;
    font-size: 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-card {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* =====================
   라이트박스
===================== */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

#lightbox.open {
  display: flex;
}

#lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border: 1px solid var(--color-glass-border);
  border-radius: var(--border-radius);
  box-shadow: 0 0 60px rgba(0, 212, 255, 0.2);
  cursor: default;
}

#lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(10, 14, 26, 0.8);
  border: 1px solid var(--color-glass-border);
  color: var(--color-text-primary);
  font-size: 1.2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-speed) ease;
}

#lightbox-close:hover {
  border-color: var(--color-accent-cyan);
  color: var(--color-accent-cyan);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.3);
}

/* =====================
   스크롤바 스타일링
===================== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    var(--color-accent-cyan),
    var(--color-accent-blue)
  );
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent-cyan);
}

.badge {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 12px;
  margin-left: 8px;
  font-weight: 700;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all var(--transition-speed) ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.badge.private {
  background: linear-gradient(135deg, #ff5252, #ff7070);
  color: #fff;
  border: 1px solid rgba(255, 82, 82, 0.6);
}

.badge.private:hover {
  box-shadow: 0 6px 20px rgba(255, 82, 82, 0.4);
  transform: translateY(-2px);
}

.badge.theme {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #f5a623, #f7c948);
  color: #1a1a1a;
  border: 1px solid rgba(245, 166, 35, 0.6);
}

.badge.theme:hover {
  box-shadow: 0 6px 20px rgba(245, 166, 35, 0.4);
  transform: translateY(-2px);
}

/* =====================
   Rwasm 빌드 시각화 (Project Card)
===================== */
.rwasm-visual {
  width: 100%;
  height: 200px;
  margin: var(--spacing-md) 0;
  background: rgba(10, 14, 26, 0.4);
  border: 1px solid var(--color-glass-border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.build-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  margin-bottom: var(--spacing-md);
  position: relative;
  z-index: 2;
}

.build-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 80px;
}

.node-icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cascadia Code", monospace;
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.3s ease;
}

.node-rust .node-icon {
  color: #f06529; /* Rust-ish Orange */
  border-color: rgba(240, 101, 41, 0.3);
}

.node-wasm .node-icon {
  color: #654ff0; /* Wasm-ish Purple/Blue */
  border-color: rgba(101, 79, 240, 0.3);
}

.node-label {
  font-size: 0.65rem;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* Rwasm Core Engine Node */
.node-rwasm {
  position: relative;
}

.node-icon-core {
  width: 54px;
  height: 54px;
  background: radial-gradient(
    circle,
    var(--color-accent-blue) 0%,
    transparent 70%
  );
  border: 2px solid var(--color-accent-cyan);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
  animation: coreRotate 4s linear infinite;
}

.node-icon-core::before,
.node-icon-core::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px dashed var(--color-accent-cyan);
  border-radius: 50%;
  opacity: 0.5;
}

.node-icon-core::after {
  inset: -8px;
  border-style: solid;
  border-width: 1px;
  opacity: 0.2;
  animation: corePulse 2s ease-in-out infinite;
}

/* Connector Lines */
.build-connector {
  flex-grow: 1;
  height: 2px;
  position: relative;
  margin: 0 10px;
}

.connector-line {
  width: 100%;
  height: 100%;
  background: rgba(0, 212, 255, 0.1);
}

.connector-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-accent-cyan),
    transparent
  );
  animation: flowPulse 2s linear infinite;
}

.build-track div:nth-child(2) .connector-pulse {
  animation-delay: 0s;
}
.build-track div:nth-child(4) .connector-pulse {
  animation-delay: 1s;
}

/* Status Text */
.build-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Cascadia Code", monospace;
  font-size: 0.7rem;
  color: var(--color-accent-cyan);
  opacity: 0.8;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: var(--color-accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-accent-cyan);
  animation: dotBlink 1s ease-in-out infinite;
}

/* Animations */
@keyframes coreRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes corePulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.2;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.4;
  }
}

@keyframes flowPulse {
  0% {
    left: -20%;
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}

@keyframes dotBlink {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.8);
  }
}

/* Card Hover Interaction */
.project-card:hover .node-icon-core {
  box-shadow: 0 0 30px var(--color-accent-cyan);
  animation-duration: 2s;
}

.project-card:hover .connector-pulse {
  animation-duration: 1s;
}

/* =====================
   프로젝트 탭 스위처 스타일
===================== */
.section-sub-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-cyan);
  margin-bottom: var(--spacing-lg);
  margin-top: var(--spacing-xl);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-sub-title .tab-decorator {
  color: var(--color-accent-blue);
  opacity: 0.7;
}

.section-sub-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(0, 212, 255, 0.3), transparent);
  margin-left: 12px;
}

.projects-container {
  display: block;
  margin-bottom: var(--spacing-xl);
}
