/* ============================================================
   style.css - Suhan Sung Portfolio  (Design v2)
   강원대학교 AI융합학과 · 202310671
   ============================================================ */

/* ============================================================
   1. CSS 변수
   ============================================================ */
:root {
  --color-primary: #6366f1;
  /* 인디고 메인 */
  --color-primary-light: #818cf8;
  /* 밝은 인디고 */
  --color-primary-dark: #4f46e5;
  /* 어두운 인디고 */
  --color-secondary: #a855f7;
  /* 퍼플 */
  --color-accent: #06d6a0;
  /* 민트 그린 */
  --color-accent2: #f59e0b;
  /* 앰버 (수상) */
  --accent-red: #f87171;

  /* 배경 */
  --color-bg: #04050b;
  /* 거의 검정 */
  --color-bg-card: #0e1420;
  /* 카드 배경 (대비 강화) */
  --color-bg-card-2: #131c2e;
  /* 보조 카드 */
  --color-bg-section: #070a12;
  /* 짝수 섹션 */
  --color-surface: rgba(255, 255, 255, 0.05);

  /* 텍스트 */
  --color-text: #f1f5f9;
  --color-text-sub: #94a3b8;
  --color-text-muted: #475569;

  /* 테두리 */
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-strong: rgba(255, 255, 255, 0.14);

  /* 그라디언트 */
  --gradient-primary: linear-gradient(135deg, #6366f1, #a855f7);
  --gradient-accent: linear-gradient(135deg, #06d6a0, #6366f1);
  --gradient-warm: linear-gradient(135deg, #f59e0b, #f87171);
  --gradient-hero: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(99, 102, 241, .18) 0%, transparent 70%);

  /* 글로우 */
  --glow-primary: 0 0 40px rgba(99, 102, 241, .35);
  --glow-sm: 0 0 16px rgba(99, 102, 241, .25);
  --glow-accent: 0 0 30px rgba(6, 214, 160, .3);

  /* 그림자 */
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, .4);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, .5), 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, .6);

  /* 폰트 */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-code: 'Fira Code', 'Courier New', monospace;

  /* 크기 */
  --nav-height: 68px;
  --container-max: 1180px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* 트랜지션 */
  --t: 0.25s ease;
  --t-slow: 0.5s ease;
}

/* ============================================================
   2. 리셋 & 기본
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  overflow-x: hidden;
}

body {
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden;
  /* 전역 noise 텍스처 느낌의 배경 */
  background-image:
    radial-gradient(ellipse 100% 50% at 50% -10%, rgba(99, 102, 241, .12) 0%, transparent 60%);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* 스크롤바 */
::-webkit-scrollbar {
  width: 5px;
}

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--color-primary), var(--color-secondary));
  border-radius: var(--radius-full);
}

/* 다국어 선택 선택적 표시 */
body:not(.lang-en-active) .lang-en {
  display: none !important;
}

body.lang-en-active .lang-ko {
  display: none !important;
}

/* ============================================================
   3. 유틸리티
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

/* 짝수 섹션 배경 — 미묘한 방사형 그라디언트로 구분 */
.about,
.contact {
  background:
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(99, 102, 241, .06) 0%, transparent 70%),
    var(--color-bg-section);
}

.section {
  padding: 7rem 0;
}

/* 섹션 헤더 */
.section__header {
  text-align: center;
  margin-bottom: 4rem;
}

.section__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-code);
  font-size: 0.72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-primary-light);
  background: rgba(99, 102, 241, .1);
  border: 1px solid rgba(99, 102, 241, .25);
  padding: .35rem .9rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

/* 그라디언트 섹션 제목 */
.section__title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -.02em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: .6rem;
  line-height: 1.15;
}

.section__subtitle {
  font-size: 1.05rem;
  color: var(--color-text-sub);
  max-width: 460px;
  margin: 0 auto;
}

/* ============================================================
   4. 버튼
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.6rem;
  border-radius: var(--radius-full);
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--t);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

/* 물결 효과 pseudo */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .1);
  opacity: 0;
  transition: opacity var(--t);
}

.btn:hover::after {
  opacity: 1;
}

.btn--primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, .4);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(99, 102, 241, .55);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary-light);
  border: 1.5px solid rgba(99, 102, 241, .5);
  backdrop-filter: blur(8px);
}

.btn--outline:hover {
  background: rgba(99, 102, 241, .15);
  border-color: var(--color-primary-light);
  transform: translateY(-2px);
}

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

/* ============================================================
   5. 스크롤 등장 애니메이션
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}

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

/* ============================================================
   6. 헤더 & 네비게이션
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: all var(--t);
}

/* 스크롤 후 및 모바일 메뉴 오픈 시 유리 효과 */
.header.scrolled,
.header.open {
  background: rgba(6, 7, 14, .85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, .4);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* 로고 */
.nav__logo {
  font-family: var(--font-code);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  transition: color var(--t);
  letter-spacing: -.01em;
}

.nav__logo:hover {
  color: var(--color-primary-light);
}

.nav__logo-bracket {
  color: var(--color-primary-light);
}

/* 메뉴 */
.nav__menu {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav__link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: .45rem .9rem;
  border-radius: var(--radius-full);
  font-size: .88rem;
  font-weight: 500;
  color: var(--color-text-sub);
  transition: all var(--t);
}

.nav__link i {
  font-size: .82rem;
  opacity: .7;
}

.nav__link:hover,
.nav__link.active {
  color: var(--color-text);
  background: rgba(255, 255, 255, .07);
}

.nav__link.active {
  color: var(--color-primary-light);
}

/* 활성 점 인디케이터 */
.nav__link.active::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 3px;
  background: var(--color-primary-light);
  border-radius: 50%;
  box-shadow: var(--glow-sm);
}

.nav__link {
  position: relative;
}

/* 햄버거 */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--t);
}

.nav__toggle.open .nav__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle.open .nav__toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav__toggle.open .nav__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 네비게이션 액션 (언어 전환기 & 모바일 토글 그룹) */
.nav__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  font-family: var(--font-code);
  font-size: 0.8rem;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--color-text-sub);
  cursor: pointer;
  padding: 0.15rem 0.35rem;
  font-weight: 600;
  transition: color var(--t);
  border-radius: 4px;
}

.lang-btn:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.05);
}

.lang-btn.active {
  color: var(--color-primary-light);
  text-shadow: var(--glow-sm);
  background: rgba(99, 102, 241, 0.15);
}

.lang-divider {
  color: var(--color-border-strong);
  font-weight: 300;
}

/* ============================================================
   7. HERO 섹션
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  /* 고정 네비게이션에 가려지지 않도록 상단 패딩 */
  padding-top: var(--nav-height);
  /* 깊이감 있는 배경 */
  background:
    radial-gradient(ellipse 70% 55% at 65% 50%, rgba(99, 102, 241, .13) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 20% 60%, rgba(168, 85, 247, .08) 0%, transparent 60%),
    var(--color-bg);
}

/* 격자 무늬 배경 */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
  pointer-events: none;
}

/* 파티클 레이어 */
.hero__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 8s ease-in-out infinite;
}

@keyframes particleFloat {

  0%,
  100% {
    opacity: 0;
    transform: translateY(0) scale(1);
  }

  15% {
    opacity: .5;
  }

  85% {
    opacity: .2;
  }

  50% {
    transform: translateY(-100px) scale(1.8);
  }
}

/* 히어로 그리드 레이아웃 */
.hero__content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 5rem;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* 인사말 */
.hero__greeting {
  font-family: var(--font-code);
  font-size: .9rem;
  color: var(--color-accent);
  margin-bottom: .75rem;
  animation: fadeInLeft .7s ease forwards;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__greeting::before {
  content: '▸';
  color: var(--color-primary-light);
}

/* 메인 이름 */
.hero__title {
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.04em;
  margin-bottom: 1rem;
  animation: fadeInLeft .7s ease .08s forwards;
  opacity: 0;
}

.hero__name {
  display: block;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-bottom: 0.1em;
  /* 글로우 효과 (텍스트 그림자 대체) */
  filter: drop-shadow(0 0 30px rgba(99, 102, 241, .45));
}

/* 타이핑 텍스트 */
.hero__subtitle {
  font-size: clamp(.95rem, 2vw, 1.2rem);
  font-family: var(--font-code);
  color: var(--color-text-sub);
  margin-bottom: 1.4rem;
  min-height: 1.8rem;
  animation: fadeInLeft .7s ease .16s forwards;
  opacity: 0;
}

.typing-prefix {
  color: var(--color-text-muted);
}

.typing-wrapper {
  display: inline-block;
  min-width: 24ch;
  text-align: left;
  vertical-align: bottom;
}

.typing-text {
  color: var(--color-text);
  font-weight: 500;
}

.typing-cursor {
  color: var(--color-primary-light);
  animation: blink .65s step-end infinite;
  font-weight: 300;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0
  }
}

/* 설명 */
.hero__description {
  color: var(--color-text-sub);
  font-size: .97rem;
  line-height: 1.85;
  margin-bottom: 2rem;
  animation: fadeInLeft .7s ease .24s forwards;
  opacity: 0;
}

/* 버튼 */
.hero__buttons {
  display: flex;
  gap: .9rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  animation: fadeInLeft .7s ease .32s forwards;
  opacity: 0;
}

/* 소셜 */
.hero__social {
  display: flex;
  gap: .75rem;
  animation: fadeInLeft .7s ease .4s forwards;
  opacity: 0;
}

.social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-strong);
  color: var(--color-text-sub);
  font-size: 1rem;
  transition: all var(--t);
  background: var(--color-surface);
}

.social__link:hover {
  border-color: var(--color-primary-light);
  color: var(--color-primary-light);
  background: rgba(99, 102, 241, .12);
  transform: translateY(-3px);
  box-shadow: var(--glow-sm);
}

/* ── 프로필 카드 비주얼 ── */
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInRight .7s ease .2s forwards;
  opacity: 0;
}

.profile-card {
  position: relative;
  width: 340px;
  height: 340px;
}

/* 아바타 중앙 */
.profile-card__avatar {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
}

/* 글로우 배경 블러 원 */
.profile-card__avatar::before {
  content: '';
  position: absolute;
  inset: -30px;
  background: radial-gradient(circle, rgba(99, 102, 241, .35) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {

  0%,
  100% {
    opacity: .6;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

/* 회전 링 */
.avatar-ring {
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  border-top-color: var(--color-primary);
  border-right-color: rgba(99, 102, 241, .3);
  animation: spin 5s linear infinite;
  box-shadow: 0 0 12px rgba(99, 102, 241, .2);
}

.avatar-ring--2 {
  inset: -32px;
  border-top-color: transparent;
  border-right-color: transparent;
  border-bottom-color: var(--color-secondary);
  border-left-color: rgba(168, 85, 247, .3);
  animation-duration: 8s;
  animation-direction: reverse;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 아이콘 원 */
.avatar-inner {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #1e1f3a, #252650);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.2rem;
  border: 1px solid rgba(99, 102, 241, .3);
  box-shadow: inset 0 2px 8px rgba(99, 102, 241, .2), 0 0 30px rgba(99, 102, 241, .15);
}

.avatar-inner i {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 플로팅 배지 */
.floating-badge {
  position: absolute;
  background: rgba(13, 17, 27, .9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  padding: .55rem 1rem;
  font-size: .78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-card);
  white-space: nowrap;
}

.badge--ai {
  top: 20px;
  right: 0;
  color: var(--color-primary-light);
  border-color: rgba(99, 102, 241, .3);
  animation: floatBadge 3.5s ease-in-out infinite;
}

.badge--web {
  bottom: 30px;
  right: -10px;
  color: var(--color-accent);
  border-color: rgba(6, 214, 160, .3);
  animation: floatBadge 3.5s ease-in-out 1.2s infinite;
}

.badge--award {
  bottom: 50px;
  left: -10px;
  color: var(--color-accent2);
  border-color: rgba(245, 158, 11, .3);
  animation: floatBadge 3.5s ease-in-out 2.4s infinite;
}

@keyframes floatBadge {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* 스크롤 인디케이터 */
.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
}

.hero__scroll a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted);
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: color var(--t);
}

.hero__scroll a:hover {
  color: var(--color-primary-light);
}

.scroll-arrow {
  animation: bounceDown 2s ease-in-out infinite;
}

@keyframes bounceDown {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(7px);
  }
}

/* ============================================================
   8. ABOUT 섹션
   ============================================================ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3.5rem;
  align-items: start;
}

/* 정보 카드 */
.info-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color var(--t), box-shadow var(--t);
  position: relative;
  overflow: hidden;
}

/* 카드 왼쪽 상단 포인트 */
.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--t);
}

.info-card:hover {
  border-color: rgba(99, 102, 241, .3);
  box-shadow: var(--glow-sm);
}

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

.info-card__header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.5rem;
  color: var(--color-primary-light);
}

.info-card__header i {
  font-size: 1.2rem;
}

.info-card__header h3 {
  font-size: 1rem;
  font-weight: 600;
}

.info-list__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .75rem 0;
  border-bottom: 1px solid var(--color-border);
  gap: 1rem;
}

.info-list__item:last-child {
  border-bottom: none;
}

.info-list__label {
  color: var(--color-text-sub);
  font-size: .88rem;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.info-list__label i {
  color: var(--color-primary);
  width: 14px;
  text-align: center;
}

.info-list__value {
  min-width: 0;
  font-size: .88rem;
  font-weight: 500;
  color: var(--color-text);
  text-align: right;
  overflow-wrap: anywhere;
}

/* 소개 */
.about__name {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about__bio {
  color: var(--color-text-sub);
  line-height: 1.85;
  margin-bottom: .9rem;
  font-size: .97rem;
}

.about__bio strong {
  color: var(--color-text);
}

/* 관심사 태그 */
.about__interests {
  margin: 1.5rem 0;
}

.about__interests h4 {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--color-text-muted);
  margin-bottom: .9rem;
}

.interest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.interest-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: .4rem .95rem;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, .08);
  border: 1px solid rgba(99, 102, 241, .18);
  color: var(--color-primary-light);
  font-size: .82rem;
  font-weight: 500;
  transition: all var(--t);
  cursor: default;
}

.interest-tag:hover {
  background: rgba(99, 102, 241, .2);
  border-color: rgba(99, 102, 241, .4);
  transform: translateY(-2px);
}

/* 통계 */
.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--color-border);
}

.stat-item {
  text-align: center;
  padding: 1rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--t);
}

.stat-item:hover {
  border-color: rgba(99, 102, 241, .3);
}

.stat-number {
  display: block;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -.03em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: .72rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* ============================================================
   9. SKILLS 섹션
   ============================================================ */
.skills__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.skill-category {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--t);
  position: relative;
  overflow: hidden;
}

/* 호버 그라디언트 테두리 흉내 */
.skill-category::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--gradient-primary);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--t);
}

.skill-category:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.skill-category:hover::after {
  opacity: 1;
}

.skill-category__header {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: 1.5rem;
}

.skill-category__header h3 {
  font-size: 1rem;
  font-weight: 600;
}

.skill-category__icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.skill-category__icon--ai {
  background: rgba(99, 102, 241, .15);
  color: var(--color-primary-light);
}

.skill-category__icon--web {
  background: rgba(6, 214, 160, .15);
  color: var(--color-accent);
}

.skill-category__icon--backend {
  background: rgba(168, 85, 247, .15);
  color: #c084fc;
}

.skill-category__icon--other {
  background: rgba(245, 158, 11, .15);
  color: var(--color-accent2);
}

/* 스킬 태그 */
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  color: var(--color-text-sub);
  transition: all var(--t);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.skill-tag i {
  font-size: 0.9rem;
  transition: transform var(--t), color var(--t);
}

/* AI/ML tags */
.skill-category--ai .skill-tag:hover {
  border-color: rgba(99, 102, 241, 0.5);
  color: var(--color-primary-light);
  background: rgba(99, 102, 241, 0.12);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
  transform: translateY(-2px);
}

.skill-category--ai .skill-tag:hover i {
  color: var(--color-primary-light);
  transform: scale(1.15) rotate(5deg);
}

/* Web tags */
.skill-category--web .skill-tag:hover {
  border-color: rgba(6, 214, 160, 0.5);
  color: var(--color-accent);
  background: rgba(6, 214, 160, 0.12);
  box-shadow: 0 4px 12px rgba(6, 214, 160, 0.2);
  transform: translateY(-2px);
}

.skill-category--web .skill-tag:hover i {
  color: var(--color-accent);
  transform: scale(1.15) rotate(-5deg);
}

/* Backend tags */
.skill-category--backend .skill-tag:hover {
  border-color: rgba(168, 85, 247, 0.5);
  color: #c084fc;
  background: rgba(168, 85, 247, 0.12);
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.2);
  transform: translateY(-2px);
}

.skill-category--backend .skill-tag:hover i {
  color: #c084fc;
  transform: scale(1.15) rotate(5deg);
}

/* Other tags */
.skill-category--other .skill-tag:hover {
  border-color: rgba(245, 158, 11, 0.5);
  color: var(--color-accent2);
  background: rgba(245, 158, 11, 0.12);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
  transform: translateY(-2px);
}

.skill-category--other .skill-tag:hover i {
  color: var(--color-accent2);
  transform: scale(1.15) rotate(-5deg);
}

/* ============================================================
   10. PROJECTS 섹션
   ============================================================ */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.project-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--t);
  display: flex;
  flex-direction: column;
  position: relative;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--gradient-primary);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--t);
  z-index: 0;
}

.project-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-hover), var(--glow-sm);
}

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

/* 주요 프로젝트: 전체 너비 사용 (span 3) */
.project-card--featured {
  grid-column: span 3;
  display: grid;
  grid-template-columns: 1.7fr 1fr;
}

.project-card--wide {
  grid-column: span 2;
}

.project-card--pillosuffer {
  display: grid;
  grid-template-columns: minmax(220px, .85fr) minmax(0, 1.15fr);
}

.project-card--pillosuffer .project-card__image {
  min-height: 100%;
}

.project-card--pillosuffer .project-card__content {
  min-width: 0;
}

/* 이미지 영역 */
.project-card__image {
  position: relative;
  overflow: hidden;
  min-height: 220px;
}

/* YouTube 영상 래퍼 — 16:9 비율 유지 */
.project-video-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 260px;
  background: #000;
}

.project-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.project-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-img--drone {
  background:
    radial-gradient(ellipse 60% 60% at 50% 50%, rgba(99, 102, 241, .35) 0%, rgba(99, 102, 241, .05) 60%, transparent 80%),
    linear-gradient(145deg, #08091f 0%, #0d1030 100%);
}

.project-img--web {
  background:
    radial-gradient(ellipse 60% 60% at 50% 50%, rgba(6, 214, 160, .3) 0%, rgba(6, 214, 160, .05) 60%, transparent 80%),
    linear-gradient(145deg, #04110e 0%, #091a14 100%);
}

.project-img--data {
  background:
    radial-gradient(ellipse 60% 60% at 50% 50%, rgba(168, 85, 247, .3) 0%, rgba(168, 85, 247, .05) 60%, transparent 80%),
    linear-gradient(145deg, #0d0618 0%, #13091e 100%);
}

.project-img--health {
  background:
    radial-gradient(ellipse 60% 60% at 50% 50%, rgba(248, 113, 113, .35) 0%, rgba(248, 113, 113, .05) 60%, transparent 80%),
    linear-gradient(145deg, #180909 0%, #2e1010 100%);
}

.project-img--safety {
  background:
    radial-gradient(ellipse 60% 60% at 50% 50%, rgba(245, 158, 11, .35) 0%, rgba(245, 158, 11, .05) 60%, transparent 80%),
    linear-gradient(145deg, #181104 0%, #291c06 100%);
}

.drone-visual {
  text-align: center;
  color: var(--color-primary-light);
  filter: drop-shadow(0 0 20px rgba(99, 102, 241, .7));
}

.web-visual {
  color: var(--color-accent);
  filter: drop-shadow(0 0 20px rgba(6, 214, 160, .7));
}

.data-visual {
  color: #c084fc;
  filter: drop-shadow(0 0 20px rgba(192, 132, 252, .7));
}

.health-visual {
  text-align: center;
  color: var(--accent-red);
  filter: drop-shadow(0 0 20px rgba(248, 113, 113, .7));
}

.safety-visual {
  text-align: center;
  color: var(--color-accent2);
  filter: drop-shadow(0 0 20px rgba(245, 158, 11, .7));
}

/* 드론 점 애니메이션 */
.drone-dots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px auto 0;
  width: 56px;
}

.drone-dots span {
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: dotPulse 1.8s ease-in-out infinite;
  box-shadow: 0 0 6px var(--color-accent);
}

.drone-dots span:nth-child(2) {
  animation-delay: .2s;
}

.drone-dots span:nth-child(3) {
  animation-delay: .4s;
}

.drone-dots span:nth-child(4) {
  animation-delay: .6s;
}

.drone-dots span:nth-child(5) {
  animation-delay: .8s;
}

.drone-dots span:nth-child(6) {
  animation-delay: 1s;
}

@keyframes dotPulse {

  0%,
  100% {
    transform: scale(.8);
    opacity: .4;
  }

  50% {
    transform: scale(1.4);
    opacity: 1;
  }
}

/* 수상 배지 */
.project-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #d97706, #f59e0b);
  color: #1c1008;
  padding: .3rem .8rem;
  border-radius: var(--radius-full);
  font-size: .72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 12px rgba(245, 158, 11, .4);
  z-index: 1;
}

/* 카드 본문 */
.project-card__content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
  z-index: 1;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: .9rem;
}

.project-tag {
  padding: .18rem .6rem;
  border-radius: var(--radius-full);
  font-size: .7rem;
  font-weight: 600;
}

.project-tag--ai {
  background: rgba(99, 102, 241, .15);
  color: var(--color-primary-light);
}

.project-tag--web {
  background: rgba(6, 214, 160, .15);
  color: var(--color-accent);
}

.project-tag--other {
  background: rgba(168, 85, 247, .15);
  color: #c084fc;
}

.project-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .6rem;
  line-height: 1.45;
  color: var(--color-text);
}

/* 통합 프로젝트 부제목 */
.project-card__title-sub {
  font-size: .88rem;
  font-weight: 500;
  color: var(--color-accent);
  display: block;
  margin-top: 2px;
}

.project-card__desc {
  font-size: .85rem;
  color: var(--color-text-sub);
  line-height: 1.75;
  flex: 1;
  margin-bottom: 1rem;
}

/* 수상 목록 */
.project-awards {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: 1rem;
  padding: .9rem 1rem;
  background: rgba(245, 158, 11, .05);
  border: 1px solid rgba(245, 158, 11, .15);
  border-radius: var(--radius-md);
}

.award-item {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: .82rem;
}

.award-item>i {
  color: var(--color-accent2);
  flex-shrink: 0;
}

.award-item div {
  display: flex;
  flex-direction: column;
}

.award-item strong {
  color: var(--color-text);
  font-weight: 600;
  font-size: .82rem;
}

.award-item span {
  color: var(--color-text-sub);
  font-size: .75rem;
}

/* 프로젝트 링크 */
.project-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: auto;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: .38rem .85rem;
  border-radius: var(--radius-full);
  font-size: .8rem;
  font-weight: 500;
  border: 1px solid var(--color-border-strong);
  color: var(--color-text-sub);
  background: var(--color-surface);
  transition: all var(--t);
}

.project-link:hover {
  border-color: rgba(99, 102, 241, .4);
  color: var(--color-primary-light);
  background: rgba(99, 102, 241, .08);
}

.project-link--demo {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #fff;
}

.project-link--demo:hover {
  opacity: .85;
  color: #fff;
  transform: translateY(-1px);
}

/* ============================================================
   11. PHOTO & VIDEO 갤러리 섹션
   ============================================================ */

/* 갤러리 3열 그리드 — 모든 셀 동일 높이 */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 320px;
  /* 단일 행, 고정 높이 */
  gap: 1rem;
  margin-bottom: 1.25rem;
}

/* 세로 이미지도 동일 크기 유지 */
.gallery-item--portrait {
  grid-row: span 1;
}

/* 개별 갤러리 아이템 — 높이를 그리드 행에 맞게 고정 */
.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  height: 320px;
  /* 모든 셀 동일 높이 강제 */
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

/* 호버 시 이미지 줌 + 오버레이 */
.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 7, 14, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--t);
  backdrop-filter: blur(2px);
}

.gallery-item:hover .gallery-item__overlay {
  opacity: 1;
}

.gallery-item__overlay i {
  font-size: 2rem;
  color: #fff;
  filter: drop-shadow(0 0 12px rgba(99, 102, 241, .8));
  transform: scale(.8);
  transition: transform var(--t);
}

.gallery-item:hover .gallery-item__overlay i {
  transform: scale(1);
}

/* 그라디언트 테두리 on hover */
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid transparent;
  background: var(--gradient-primary) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--t);
}

.gallery-item:hover::after {
  opacity: 1;
}

/* ===== VIDEO SHOWCASE SECTION (Apple Tabbed Switcher) ===== */
.video-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  margin-top: 3.5rem;
  width: 100%;
}

/* 탭 전환 컨트롤러 */
.video-showcase__tabs {
  position: relative;
  display: inline-flex;
  background: rgba(255, 255, 255, 0.04);
  padding: 6px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  z-index: 10;
}

.showcase-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.75rem;
  border-radius: 25px;
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t);
  z-index: 2;
}

.showcase-tab i {
  font-size: 1rem;
  transition: transform var(--t);
}

.showcase-tab:hover {
  color: var(--color-text);
}

.showcase-tab:hover i {
  transform: scale(1.1);
}

.showcase-tab:active {
  transform: scale(0.96);
}

.showcase-tab.active {
  color: #fff;
  background: var(--gradient-primary);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

/* 비디오 콘텐츠 영역 */
.video-showcase__content {
  position: relative;
  width: 100%;
  min-height: 400px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.showcase-view {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  opacity: 0;
  transform: scale(0.97) translateY(20px);
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, 20px) scale(0.97);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.5s;
  visibility: hidden;
}

.showcase-view.active {
  position: relative;
  left: 0;
  transform: translate(0, 0) scale(1);
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.video-card__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.video-card__tag {
  font-family: var(--font-code);
  font-size: 0.78rem;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.video-card__title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.5px;
}

.showcase-github-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-code);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.35rem 0.85rem;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 0.4rem;
  transition: all var(--t);
}

.showcase-github-link i {
  font-size: 0.95rem;
}

.showcase-github-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

/* Device frame styles */
.device-frame {
  position: relative;
  border-radius: var(--radius-lg);
  background: #000;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 50px rgba(99, 102, 241, 0.05);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform var(--t-slow), box-shadow var(--t-slow);
}

.device-frame:hover {
  transform: translateY(-6px);
  box-shadow: 0 35px 80px -20px rgba(0, 0, 0, 0.95), 0 0 60px rgba(99, 102, 241, 0.12);
}

/* Desktop Bezel Mockup */
.device-frame--desktop {
  width: 100%;
  max-width: 100%;
  border: 12px solid #16161a;
  border-bottom-width: 12px;
  border-radius: 20px;
  aspect-ratio: 16 / 9;
}

/* Mobile Bezel Mockup */
.device-frame--mobile {
  border: 12px solid #16161a;
  border-radius: 20px;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  aspect-ratio: 9 / 16;
}

/* Reflection gloss overlay */
.device-frame__screen-reflection {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 50%);
  pointer-events: none;
  z-index: 3;
}

/* Video inside frame */
.device-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
  outline: none;
}

/* Controls overlay */
.custom-video-controls {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t), background var(--t);
}

.device-frame:hover .custom-video-controls,
.device-frame.controls-active .custom-video-controls {
  opacity: 1;
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.4);
}

.custom-video-controls__center {
  margin: auto;
}

.custom-video-controls__bottom {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  margin-top: auto;
}

/* Glassmorphism Buttons */
.custom-video-controls .play-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.custom-video-controls .play-btn:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
}

.custom-video-controls .play-btn:active {
  transform: scale(0.95);
}

.custom-video-controls .mute-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.2);
}

.custom-video-controls .mute-btn:hover {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.2);
}

.custom-video-controls .mute-btn:active {
  transform: scale(0.95);
}

/* Thin Progress timeline */
.video-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--gradient-primary);
  width: 0%;
  transition: width 0.1s linear;
  z-index: 6;
  pointer-events: none;
}


/* ── 라이트박스dd ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  /* 기본 숨김 */
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

/* 반투명 배경 */
.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 11, .92);
  backdrop-filter: blur(10px);
  cursor: zoom-out;
}

/* 이미지 컨테이너 */
.lightbox__content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .8);
  transform: scale(.92);
  transition: transform .3s ease;
}

.lightbox.open .lightbox__content {
  transform: scale(1);
}

.lightbox__content img {
  display: block;
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
}

/* 닫기 버튼 */
.lightbox__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 2;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--radius-full);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t);
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, .2);
  transform: rotate(90deg);
}

/* 반응형 갤러리 */
@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 220px 220px 220px;
  }

  .gallery-item--portrait {
    grid-row: span 1;
    grid-column: span 2;
    height: 220px;
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 220px);
  }

  .gallery-item--portrait {
    grid-column: span 1;
  }
}

/* ============================================================
   11-B. CONTACT 섹션
   ============================================================ */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: stretch;
}

.contact__info h3 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: .85rem;
}

.contact__desc {
  color: var(--color-text-sub);
  line-height: 1.85;
  margin-bottom: 2.5rem;
  font-size: .97rem;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .9rem 1rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--t);
}

.contact-item:hover {
  border-color: rgba(99, 102, 241, .3);
}

.contact-item__icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, .12);
  border: 1px solid rgba(99, 102, 241, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-light);
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-item__text {
  display: flex;
  flex-direction: column;
}

.contact-item__label {
  font-size: .7rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: .1em;
}

.contact-item__value {
  color: var(--color-text);
  font-weight: 500;
  font-size: .92rem;
  transition: color var(--t);
}

a.contact-item__value:hover {
  color: var(--color-primary-light);
}

/* 폼 */
.form {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* 폼 상단 포인트 라인 */
.form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-primary);
}

.form__group {
  margin-bottom: 1.4rem;
}

.form__group--textarea {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.form__group--textarea .form__textarea {
  flex-grow: 1;
  min-height: 150px;
}

.form__label {
  display: block;
  font-size: .82rem;
  font-weight: 500;
  color: var(--color-text-sub);
  margin-bottom: 7px;
}

.form__input,
.form__textarea {
  width: 100%;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  padding: .75rem 1rem;
  color: var(--color-text);
  font-family: var(--font-main);
  font-size: .93rem;
  transition: border-color var(--t), box-shadow var(--t);
  outline: none;
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--color-text-muted);
}

.form__input:focus,
.form__textarea:focus {
  border-color: rgba(99, 102, 241, .5);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .12);
}

.form__textarea {
  resize: vertical;
  min-height: 130px;
}

.form__success {
  text-align: center;
  color: var(--color-accent);
  font-size: .88rem;
  margin-top: 1rem;
  padding: .9rem;
  background: rgba(6, 214, 160, .08);
  border: 1px solid rgba(6, 214, 160, .2);
  border-radius: var(--radius-md);
}

.form__error {
  text-align: center;
  color: #ef4444;
  font-size: .88rem;
  margin-top: 1rem;
  padding: .9rem;
  background: rgba(239, 68, 68, .08);
  border: 1px solid rgba(239, 68, 68, .2);
  border-radius: var(--radius-md);
}

/* ============================================================
   12. FOOTER
   ============================================================ */
.footer {
  background: #040508;
  border-top: 1px solid var(--color-border);
  padding: 3.5rem 0 2rem;
}

.footer__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer__brand p {
  font-size: .82rem;
  color: var(--color-text-muted);
  margin-top: 5px;
}

.footer__nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer__nav a {
  font-size: .85rem;
  color: var(--color-text-sub);
  transition: color var(--t);
}

.footer__nav a:hover {
  color: var(--color-primary-light);
}

.footer__social {
  display: flex;
  gap: .75rem;
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: .95rem;
  transition: all var(--t);
}

.footer__social a:hover {
  border-color: rgba(99, 102, 241, .4);
  color: var(--color-primary-light);
  background: rgba(99, 102, 241, .08);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--color-border);
  font-size: .8rem;
  color: var(--color-text-muted);
}

/* ============================================================
   13. 맨 위로 버튼
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: .95rem;
  box-shadow: var(--glow-sm);
  transition: all var(--t);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--glow-primary);
}

/* ============================================================
   14. 애니메이션 키프레임
   ============================================================ */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(24px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================================================
   15. 반응형 미디어 쿼리
   ============================================================ */

/* 태블릿 (≤1024px) */
@media (max-width: 1024px) {
  .hero__content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero__buttons,
  .hero__social {
    justify-content: center;
  }

  .hero__visual {
    display: none;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .skills__grid {
    grid-template-columns: 1fr;
  }

  .projects__grid {
    grid-template-columns: 1fr 1fr;
  }

  .project-card--featured {
    grid-column: span 2;
    grid-template-columns: 1fr;
  }

  .project-card--wide {
    grid-column: span 2;
  }

  .project-card--pillosuffer {
    grid-template-columns: .85fr 1.15fr;
  }

  .contact__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* 모바일 (≤768px) */
@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__logo,
  .nav__actions {
    position: relative;
    z-index: 10;
  }

  .nav__menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: rgba(6, 7, 14, .97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    gap: 0;
    padding: .75rem 0;
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--t), opacity var(--t), visibility var(--t);
    z-index: -1;
  }

  .nav__menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__link {
    padding: .9rem 1.75rem;
    border-radius: 0;
  }

  .projects__grid {
    grid-template-columns: 1fr;
  }

  .project-card--featured {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

  .project-card--wide {
    grid-column: span 1;
  }

  .project-card--pillosuffer {
    display: flex;
    flex-direction: column;
  }

  .project-card--pillosuffer .project-card__image {
    min-height: 220px;
  }

  .project-img {
    min-height: 160px;
  }

  .footer__content {
    flex-direction: column;
    text-align: center;
  }

  .footer__nav,
  .footer__social {
    justify-content: center;
  }

  .footer__bottom {
    justify-content: center;
    flex-direction: column;
    text-align: center;
  }
}

/* 소형 모바일 (≤480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }

  .section {
    padding: 5rem 0;
  }

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

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

  .about__stats {
    grid-template-columns: repeat(3, 1fr);
    gap: .5rem;
  }

  .form {
    padding: 1.5rem;
  }

  .back-to-top {
    bottom: 1rem;
    right: 1rem;
  }
}

@media (max-width: 360px) {
  .info-list__item {
    align-items: flex-start;
    flex-direction: column;
    gap: .35rem;
  }

  .info-list__value {
    width: 100%;
    text-align: left;
  }
}
