@charset "UTF-8";

/* ============================================
   BRIGHT MINIMAL PORTFOLIO - Jo Hyo Hee
   Inspired by Speakeasy-style clean design
   ============================================ */

/* -------- Reset -------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', 'Noto Serif KR', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #ffffff;
  color: #1a1a1a;
  line-height: 1.6;
  overflow-x: hidden;
  min-width: 320px;
}

body.loading {
  overflow: hidden;
}

ul, ol, li { list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; border: none; vertical-align: middle; }
button { background: none; border: none; cursor: pointer; font-family: inherit; color: inherit; }
input, select, textarea { font-family: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', 'Noto Serif KR', Georgia, serif;
  font-weight: 400;
  line-height: 1.15;
}

/* -------- CSS Variables -------- */
:root {
  --bg-primary: #ffffff;
  --bg-section: #fafafa;
  --bg-card: #ffffff;
  --text-primary: #1a1a1a;
  --text-secondary: #555555;
  --text-muted: #999999;
  --border-color: #e8e8e8;
  --border-light: #f0f0f0;
  --accent: #1a1a1a;
  --accent-hover: #333333;
  --font-serif: 'Playfair Display', 'Noto Serif KR', Georgia, serif;
  --font-sans: 'Inter', 'Noto Serif KR', -apple-system, sans-serif;
  --transition: 0.3s ease;
  --inner-width: 1400px;
  --radius: 100px;
  --radius-sm: 12px;
}

/* -------- Hide dark-theme elements -------- */
.noise-overlay,
.cursor-dot,
.cursor-outline {
  display: none !important;
}

/* -------- Dark Mode Variables -------- */
[data-theme="dark"] {
  --bg-primary: #0d0d0d;
  --bg-section: #141414;
  --bg-card: #1a1a1a;
  --text-primary: #f0f0f0;
  --text-secondary: #aaaaaa;
  --text-muted: #666666;
  --border-color: #2a2a2a;
  --border-light: #222222;
  --accent: #f0f0f0;
  --accent-hover: #cccccc;
}

[data-theme="dark"] body {
  background-color: #0d0d0d;
  color: #f0f0f0;
}

[data-theme="dark"] .main-nav {
  background: rgba(13, 13, 13, 0.85);
}

[data-theme="dark"] .main-nav.scrolled {
  box-shadow: 0 1px 0 rgba(255,255,255,0.04);
}

[data-theme="dark"] .nav-toggle span {
  background: #f0f0f0;
}

[data-theme="dark"] .nav-links {
  background: rgba(13, 13, 13, 0.98);
}

[data-theme="dark"] .hero-video-overlay {
  background: linear-gradient(180deg, rgba(13,13,13,0.4) 0%, rgba(13,13,13,0.8) 100%);
}

[data-theme="dark"] .intro-name-display .big-name {
  -webkit-text-stroke-color: #2a2a2a;
}

[data-theme="dark"] .intro-name-display .big-name:hover {
  -webkit-text-stroke-color: #f0f0f0;
}

[data-theme="dark"] .scroll-line::after {
  background: #f0f0f0;
}

[data-theme="dark"] .about-my-self::before {
  background: #f0f0f0;
}

[data-theme="dark"] .photo-frame {
  border-color: #333;
}

[data-theme="dark"] .my-photo img {
  border-color: #333;
}

[data-theme="dark"] .skill-item img {
  border-color: #2a2a2a;
}

[data-theme="dark"] .skill-item img:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
  border-color: #444;
}

[data-theme="dark"] .license-box ul li::before {
  background: #555;
}

[data-theme="dark"] .project-swiper .swiper-slide-active .project-card {
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  border-color: #444;
}

[data-theme="dark"] .modal-overlay {
  background: rgba(0, 0, 0, 0.8);
}

[data-theme="dark"] .modal-content {
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}

[data-theme="dark"] .skill-icons img {
  border-color: #2a2a2a;
}

[data-theme="dark"] .skill-icons img:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

[data-theme="dark"] .epilogue-img img:hover {
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}

[data-theme="dark"] .epilogue-img::after {
  border-color: #333;
}

[data-theme="dark"] .epilogue-big-text span {
  -webkit-text-stroke-color: #2a2a2a;
}

[data-theme="dark"] .contact-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  border-color: #444;
}

[data-theme="dark"] .contact-item > i {
  background: #1a1a1a;
  border-color: #2a2a2a;
}

[data-theme="dark"] .top-btn {
  background: rgba(40, 40, 40, 0.65);
  border-color: rgba(255, 255, 255, 0.1);
  color: #f0f0f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .top-btn:hover {
  background: rgba(50, 50, 50, 0.85);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .top-btn-track {
  stroke: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .top-btn-fill {
  stroke: #f0f0f0;
}

[data-theme="dark"] .section-dots .dot {
  border-color: #444;
}

[data-theme="dark"] .section-dots .dot.active {
  background: #f0f0f0;
  border-color: #f0f0f0;
}

[data-theme="dark"] .section-dots .dot:hover {
  border-color: #f0f0f0;
}

[data-theme="dark"] .scroll-progress {
  background: #f0f0f0;
}

[data-theme="dark"] [data-reveal="split"]::after {
  background: var(--bg-primary);
}

/* -------- Dark Mode Buttons -------- */
[data-theme="dark"] .btn-primary {
  background: #f0f0f0;
  color: #111111;
}

[data-theme="dark"] .btn-primary:hover {
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(255,255,255,0.1);
}

[data-theme="dark"] .btn-outline {
  border-color: #444444;
  color: #f0f0f0;
  background: transparent;
}

[data-theme="dark"] .btn-outline:hover {
  border-color: #f0f0f0;
  box-shadow: 0 4px 16px rgba(255,255,255,0.06);
}

[data-theme="dark"] .resume-btn {
  background: #f0f0f0;
  color: #111111;
}

[data-theme="dark"] .resume-btn:hover {
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(255,255,255,0.1);
}

[data-theme="dark"] .btn-group .modal-btn {
  border-color: #444444;
  color: #f0f0f0;
  background: transparent;
}

[data-theme="dark"] .btn-group .modal-btn:hover {
  border-color: #f0f0f0;
  background: #1a1a1a;
}

[data-theme="dark"] .btn-group .modal-btn.pint {
  background: #f0f0f0;
  color: #111111;
  border-color: #f0f0f0;
}

[data-theme="dark"] .btn-group .modal-btn.pint:hover {
  background: #ffffff;
}

[data-theme="dark"] .modal-close {
  border-color: #444444;
  background: #1a1a1a;
}

[data-theme="dark"] .modal-close:hover {
  border-color: #f0f0f0;
  background: #2a2a2a;
}

[data-theme="dark"] .modal-swiper .swiper-button-prev i,
[data-theme="dark"] .modal-swiper .swiper-button-next i {
  border-color: #444444;
  background: #1a1a1a;
  color: #f0f0f0;
}

[data-theme="dark"] .modal-swiper .swiper-button-prev i:hover,
[data-theme="dark"] .modal-swiper .swiper-button-next i:hover {
  border-color: #f0f0f0;
  background: #2a2a2a;
}

/* -------- Scroll Progress -------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: #1a1a1a;
  z-index: 10001;
  width: 0%;
  transition: width 0.1s linear;
}

/* ============================================
   NAVIGATION
   ============================================ */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10000;
  padding: 18px 0;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.main-nav.scrolled {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}

.nav-inner {
  max-width: var(--inner-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  transition: var(--transition);
}

.nav-logo:hover {
  opacity: 0.6;
}

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
  margin-right: 20px;
}

.nav-link {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
  letter-spacing: 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 1px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Theme toggle */
.theme-toggle {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  cursor: pointer;
}

.theme-toggle:hover {
  border-color: var(--text-primary);
  background: var(--bg-section);
}

.theme-toggle .bi-moon {
  font-size: 15px;
  color: var(--text-primary);
  display: block;
}

.theme-toggle .bi-sun-fill {
  font-size: 15px;
  color: var(--text-primary);
  display: none;
}

[data-theme="dark"] .theme-toggle .bi-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .bi-sun-fill {
  display: block;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
}

.nav-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--text-primary);
  transition: var(--transition);
}

/* -------- Section Dots -------- */
.section-dots {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9998;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid #ccc;
  background: transparent;
  transition: var(--transition);
  cursor: pointer;
}

.section-dots .dot.active {
  background: var(--text-primary);
  border-color: var(--text-primary);
}

.section-dots .dot:hover {
  border-color: var(--text-primary);
}

/* ============================================
   HERO SECTION
   ============================================ */
.intro {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--bg-primary);
  overflow: hidden;
}

.intro::before {
  display: none;
}

/* Hero background video */
.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0.18;
  z-index: 0;
  pointer-events: none;
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.9) 100%);
  z-index: 0;
  pointer-events: none;
}

.intro-inner {
  max-width: var(--inner-width);
  margin: 0 auto;
  padding: 140px 40px 80px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.intro-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.intro-text {
  flex: 1;
  max-width: 620px;
}

.intro-subtitle {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 32px;
  font-weight: 500;
  padding: 6px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
}

.intro-heading {
  font-family: var(--font-serif);
  margin-bottom: 28px;
}

.intro-heading .line {
  display: block;
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.1;
  font-style: italic;
}

.intro-heading .line.accent {
  color: var(--text-primary);
  font-style: italic;
}

.intro-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 44px;
  min-height: 28px;
  font-weight: 400;
}

.intro-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: var(--text-primary);
  color: #ffffff;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0;
  border-radius: var(--radius);
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 32px;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-weight: 500;
  font-size: 14px;
  transition: var(--transition);
  border-radius: var(--radius);
  background: var(--bg-primary);
}

.btn-outline:hover {
  border-color: var(--text-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.btn-outline i {
  font-size: 18px;
}

/* Hero visual */
.intro-visual {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.intro-name-display {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.intro-name-display .big-name {
  font-family: var(--font-serif);
  font-size: clamp(64px, 10vw, 150px);
  font-weight: 400;
  color: transparent;
  -webkit-text-stroke: 1px #e0e0e0;
  line-height: 0.88;
  letter-spacing: -4px;
  transition: var(--transition);
  user-select: none;
  font-style: italic;
}

.intro-name-display .big-name:hover {
  -webkit-text-stroke-color: var(--text-primary);
}

.intro-decoration {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.06;
}

.intro-decoration .float-img {
  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  right: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.scroll-indicator span {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  writing-mode: vertical-lr;
  font-weight: 500;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: var(--border-color);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--text-primary);
  animation: scrollDown 2.5s ease-in-out infinite;
}

@keyframes scrollDown {
  0% { top: -100%; }
  100% { top: 100%; }
}

/* ============================================
   SECTION COMMON
   ============================================ */
.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 56px;
}

.section-number {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 1px;
  font-weight: 500;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 400;
  color: var(--text-primary);
  font-style: italic;
}

.section-line {
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
  min-height: 100vh;
  padding: 120px 0;
  background: var(--bg-section);
  position: relative;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--border-color);
}

.about-inner {
  max-width: var(--inner-width);
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}

.about-wrapper {
  display: flex;
  gap: 48px;
}

/* Profile Card */
.about-my-self {
  width: 300px;
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 40px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.about-my-self::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
}

.my-photo {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
}

.my-photo img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--border-color);
}

.photo-frame {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 1px dashed #ddd;
  animation: spin 30s linear infinite;
}

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

.my-desc h3 {
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: 14px;
  font-family: var(--font-serif);
  font-weight: 500;
}

.my-desc ul li {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.my-desc ul li i {
  color: var(--text-muted);
  font-size: 13px;
}

.my-resume-btn {
  margin-top: 28px;
}

.resume-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  background: var(--text-primary);
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
  border-radius: var(--radius);
}

.resume-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.resume-btn i {
  font-size: 15px;
}

/* About right side */
.about-desc-wrap {
  flex: 1;
}

.about-desc-skill-lic {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
}

.skill-box {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 28px;
}

.skill-box h3,
.license-box h3,
.adu-box h3,
.career-box h3 {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.skill-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skill-item {
  display: flex;
  gap: 10px;
}

.skill-item img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid var(--border-light);
}

.skill-item img:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  border-color: var(--border-color);
}

/* Skill icon tooltip */
.skill-icon-wrap {
  position: relative;
  display: inline-block;
}

.skill-icon-wrap::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--text-primary);
  color: var(--bg-primary);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
  z-index: 10;
}

.skill-icon-wrap:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.ai-box {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 28px;
}

.ai-box h3 {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.license-box {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 28px;
}

.license-box ul li {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 7px;
  padding-left: 14px;
  position: relative;
  line-height: 1.6;
}

.license-box ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 4px;
  height: 4px;
  background: #ccc;
  border-radius: 50%;
}

/* Education & Career */
.about-bottom-row {
  display: flex;
  gap: 24px;
}

.adu-box,
.career-box {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 28px;
}

.adu-box ul li,
.career-box ul li {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}

.adu-box ul li:last-child,
.career-box ul li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.timeline-date {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  font-weight: 500;
}

.timeline-text {
  display: block;
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.5;
  font-weight: 400;
}

/* ============================================
   PROJECT SECTION
   ============================================ */
#project {
  min-height: 100vh;
  padding: 120px 0;
  position: relative;
  background: var(--bg-primary);
}

#project::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--border-color);
}

.project-inner {
  max-width: var(--inner-width);
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}


/* Project Tabs */
.project-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.project-tab {
  padding: 10px 32px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-sans);
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
}

.project-tab:hover {
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

.project-tab.active {
  color: #fff;
  background: var(--text-primary);
  border-color: var(--text-primary);
}

[data-theme="dark"] .project-tab.active {
  color: #111;
  background: #f0f0f0;
  border-color: #f0f0f0;
}

/* Project Carousel */
.project-carousel-wrap {
  overflow: hidden;
  padding: 40px 0 60px;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
}

.project-swiper {
  overflow: visible;
  padding: 20px 0;
}

.project-swiper .swiper-wrapper {
  align-items: center;
}

.project-swiper .swiper-slide {
  width: 300px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.5s ease,
              filter 0.5s ease;
  opacity: 0.5;
  transform: scale(0.82);
  filter: grayscale(1) brightness(0.85);
}

.project-swiper .swiper-slide-active {
  opacity: 1;
  transform: scale(1.12);
  filter: grayscale(0) brightness(1);
  z-index: 2;
}

.project-swiper .swiper-slide-prev,
.project-swiper .swiper-slide-next {
  opacity: 0.7;
  transform: scale(0.92);
  filter: grayscale(0.6) brightness(0.9);
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.4s ease, border-color 0.3s ease;
  position: relative;
}

.project-swiper .swiper-slide-active .project-card {
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
  border-color: #ddd;
}

.project-card-img {
  width: 100%;
  overflow: hidden;
  background: var(--bg-section);
  aspect-ratio: 4 / 3;
}

.project-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.project-swiper .swiper-slide-active .project-card:hover .project-card-img img {
  transform: scale(1.05);
}

.project-card-info {
  padding: 16px 18px 18px;
}

.project-card-info p {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  font-family: var(--font-sans);
  letter-spacing: -0.2px;
}

.project-tag {
  display: inline-block;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 2px 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-weight: 500;
}

.project-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
  font-size: 16px;
  font-family: var(--font-sans);
}

/* Carousel Glass Scrollbar */
.carousel-scrollbar {
  display: flex;
  justify-content: center;
  padding-top: 36px;
}

.carousel-scrollbar-track {
  width: 280px;
  height: 38px;
  border-radius: 100px;
  background: rgba(180, 190, 210, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04),
              inset 0 1px 2px rgba(255, 255, 255, 0.4);
  position: relative;
  opacity: 1 !important;
}

.carousel-scrollbar-track .swiper-scrollbar-drag {
  height: 30px;
  top: 3px;
  border-radius: 100px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12),
              0 0 0 1px rgba(0, 0, 0, 0.04);
  cursor: grab;
}

.carousel-scrollbar-track .swiper-scrollbar-drag:active {
  cursor: grabbing;
  background: #f5f5f5;
}

[data-theme="dark"] .carousel-scrollbar-track {
  background: rgba(80, 90, 110, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.15),
              inset 0 1px 2px rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .carousel-scrollbar-track .swiper-scrollbar-drag {
  background: #e0e0e0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3),
              0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* ============================================
   MODAL
   ============================================ */
.modal-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.modal-content {
  position: relative;
  width: 92%;
  max-width: 1300px;
  max-height: 90vh;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 24px 80px rgba(0,0,0,0.1);
}

.modal-close {
  position: absolute;
  right: 20px;
  top: 20px;
  z-index: 10;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  transition: var(--transition);
}

.modal-close:hover {
  border-color: var(--text-primary);
  background: var(--bg-section);
}

.modal-close i {
  font-size: 16px;
  color: var(--text-primary);
}

.modal-swiper {
  position: relative;
  overflow: hidden;
}

.modal-swiper .swiper-wrapper {
  display: flex;
  transition-property: transform;
  box-sizing: content-box;
}

.modal-swiper .swiper-slide {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
}

.modal-slide-inner {
  display: flex;
  padding: 56px;
  gap: 40px;
  min-height: 560px;
}

.modal-text-box {
  flex: 1;
  padding-top: 16px;
}

.modal-text-box h3 {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-family: var(--font-sans);
  font-weight: 500;
}

.modal-text-box h1 {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 68px);
  color: var(--text-primary);
  line-height: 1.08;
  margin-bottom: 24px;
  font-style: italic;
}

.modal-text-box p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.modal-text-box .modal-text-span {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

.modal-text-box .modal-text-span strong {
  color: var(--text-primary);
  font-weight: 600;
}

.skill-icons {
  margin-top: 20px;
}

.skill-icons img {
  width: 40px;
  height: 40px;
  margin-right: 6px;
  border-radius: 8px;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid var(--border-light);
}

.skill-icons img:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.modal-img-box {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-img-box .project-gif {
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: 8px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.modal-img-box .project-gif.gongcha-gif,
.modal-img-box .project-gif.portfolio-gif {
  max-width: 480px;
}

.modal-img-box .mobile-preview {
  width: 100%;
  max-width: 620px;
  max-height: 480px;
  object-fit: contain;
  position: relative;
  z-index: 2;
}

.btn-group {
  position: absolute;
  bottom: 30%;
  left: 56px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-group .modal-btn {
  display: inline-block;
  padding: 10px 24px;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
  border-radius: var(--radius);
  background: var(--bg-primary);
}

.btn-group .modal-btn:hover {
  border-color: var(--text-primary);
  background: var(--bg-section);
}

.btn-group .modal-btn.pint {
  background: var(--text-primary);
  color: #ffffff;
  border-color: var(--text-primary);
}

.btn-group .modal-btn.pint:hover {
  background: var(--accent-hover);
}

/* Swiper nav */
.modal-swiper .swiper-button-prev,
.modal-swiper .swiper-button-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-swiper .swiper-button-prev::after,
.modal-swiper .swiper-button-next::after {
  display: none;
}

.modal-swiper .swiper-button-prev i,
.modal-swiper .swiper-button-next i {
  font-size: 20px;
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
  cursor: pointer;
}

.modal-swiper .swiper-button-prev i:hover,
.modal-swiper .swiper-button-next i:hover {
  border-color: var(--text-primary);
  background: var(--bg-section);
}

.modal-swiper .swiper-button-prev {
  left: 16px;
}

.modal-swiper .swiper-button-next {
  right: 16px;
}

.modal-swiper * {
  user-select: none;
  -webkit-user-drag: none;
}

/* ============================================
   EPILOGUE / CONTACT
   ============================================ */
.epilogue {
  min-height: 100vh;
  min-height: 100svh;
  padding: 140px 0 80px;
  background: var(--bg-section);
  position: relative;
  overflow: hidden;
}

.epilogue::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--border-color);
}

.epilogue-inner {
  max-width: var(--inner-width);
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}

.epilogue-content {
  display: flex;
  gap: 72px;
  align-items: center;
  margin-bottom: 80px;
}

.epilogue-left {
  flex-shrink: 0;
}

.epilogue-img {
  position: relative;
}

.epilogue-img img {
  width: 300px;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.epilogue-img img:hover {
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}

.epilogue-img::after {
  content: '';
  position: absolute;
  top: 12px;
  left: 12px;
  right: -12px;
  bottom: -12px;
  border: 1px dashed #ddd;
  border-radius: var(--radius-sm);
  z-index: -1;
}

.epilogue-right {
  flex: 1;
}

.epilogue-quote {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 44px;
  font-style: italic;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.contact-item:hover {
  border-color: #ccc;
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.contact-item > i {
  font-size: 18px;
  color: var(--text-muted);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-section);
  border: 1px solid var(--border-light);
  flex-shrink: 0;
}

.contact-label {
  display: block;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
  font-weight: 500;
}

.contact-item p {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.4;
}

.contact-item a {
  color: var(--text-primary);
  transition: var(--transition);
}

.contact-item a:hover {
  color: var(--text-secondary);
}

.copy-email {
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.copy-email:hover {
  color: var(--text-secondary) !important;
}

.copy-email svg {
  opacity: 0.3;
  transition: var(--transition);
}

.copy-email:hover svg {
  opacity: 0.7;
}

.copy-email.copied {
  color: var(--text-muted) !important;
}

/* Big background text */
.epilogue-big-text {
  text-align: center;
  overflow: hidden;
}

.epilogue-big-text span {
  font-family: var(--font-serif);
  font-size: clamp(80px, 14vw, 180px);
  font-weight: 400;
  color: transparent;
  -webkit-text-stroke: 1px #e0e0e0;
  letter-spacing: -5px;
  line-height: 1;
  user-select: none;
  display: block;
  font-style: italic;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--border-color);
  background: var(--bg-primary);
}

.footer-inner {
  max-width: var(--inner-width);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-inner p {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 14px;
}

.footer-links a {
  font-size: 16px;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* ============================================
   TOP BUTTON
   ============================================ */
.top-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9997;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.8);
  transition: opacity 0.4s ease, visibility 0.4s ease,
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  padding: 0;
}

.top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.top-btn:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.top-btn-icon {
  position: relative;
  z-index: 2;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.top-btn:hover .top-btn-icon {
  transform: translateY(-2px);
}

.top-btn-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.top-btn-track {
  fill: none;
  stroke: var(--border-color);
  stroke-width: 2;
}

.top-btn-fill {
  fill: none;
  stroke: var(--text-primary);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 131.95;
  stroke-dashoffset: 131.95;
  transition: stroke-dashoffset 0.1s linear;
}

/* ============================================
   PRELOADER
   ============================================ */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s cubic-bezier(0.65, 0, 0.35, 1),
              visibility 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.preloader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  text-align: center;
}

.preloader-text {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  overflow: hidden;
}

.preloader-word {
  font-family: var(--font-serif);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 400;
  font-style: italic;
  color: var(--text-primary);
  display: inline-block;
  transform: translateY(120%);
  animation: preloaderWordIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.preloader-word:nth-child(2) { animation-delay: 0.15s; }
.preloader-word:nth-child(3) { animation-delay: 0.3s; }

@keyframes preloaderWordIn {
  to { transform: translateY(0); }
}

.preloader-bar {
  width: 120px;
  height: 2px;
  background: var(--border-color);
  margin: 0 auto;
  border-radius: 2px;
  overflow: hidden;
}

.preloader-bar-fill {
  width: 0%;
  height: 100%;
  background: var(--text-primary);
  animation: preloaderFill 1.8s cubic-bezier(0.65, 0, 0.35, 1) 0.4s forwards;
}

@keyframes preloaderFill {
  to { width: 100%; }
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */

/* Fade up */
[data-reveal="fade-up"] {
  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);
}

[data-reveal="fade-up"].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Fade left */
[data-reveal="fade-left"] {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal="fade-left"].revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Fade right */
[data-reveal="fade-right"] {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal="fade-right"].revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Split text reveal (clip-path mask) */
[data-reveal="split"] {
  display: block;
  overflow: hidden;
}

[data-reveal="split"]::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  transform: translateX(0);
  transition: transform 0.9s cubic-bezier(0.65, 0, 0.35, 1);
}

[data-reveal="split"] {
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s,
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

[data-reveal="split"].revealed {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal="split"].revealed::after {
  transform: translateX(101%);
}

/* Scale up */
[data-reveal="scale"] {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal="scale"].revealed {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children */
.stagger-reveal > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-reveal.revealed > *:nth-child(1) { transition-delay: 0s; }
.stagger-reveal.revealed > *:nth-child(2) { transition-delay: 0.08s; }
.stagger-reveal.revealed > *:nth-child(3) { transition-delay: 0.16s; }
.stagger-reveal.revealed > *:nth-child(4) { transition-delay: 0.24s; }
.stagger-reveal.revealed > *:nth-child(5) { transition-delay: 0.32s; }
.stagger-reveal.revealed > *:nth-child(6) { transition-delay: 0.4s; }
.stagger-reveal.revealed > *:nth-child(7) { transition-delay: 0.48s; }
.stagger-reveal.revealed > *:nth-child(8) { transition-delay: 0.56s; }

.stagger-reveal.revealed > * {
  opacity: 1;
  transform: translateY(0);
}

/* Section line grow animation */
.section-line {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-line.revealed {
  transform: scaleX(1);
}

/* Section number count animation */
.section-number {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.section-number.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   MAGNETIC BUTTON
   ============================================ */
.magnetic {
  transition: transform 0.3s cubic-bezier(0.33, 1, 0.68, 1),
              background 0.3s ease,
              box-shadow 0.3s ease,
              border-color 0.3s ease;
  will-change: transform;
}

/* ============================================
   SMOOTH HOVER EFFECTS (enhanced)
   ============================================ */
.project-card {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease;
}

.contact-item {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease;
}

/* ============================================
   PARALLAX
   ============================================ */
[data-parallax] {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* ============================================
   EPILOGUE big text horizontal scroll
   ============================================ */
.epilogue-big-text span {
  transition: transform 0.1s linear;
  will-change: transform;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .about-wrapper {
    flex-direction: column;
    gap: 32px;
  }

  .about-my-self {
    width: 100% !important;
    flex-direction: row;
    text-align: left;
    padding: 28px 32px;
    gap: 28px;
    display: flex;
    align-items: center;
  }

  .about-my-self .my-photo {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .about-my-self .my-photo img {
    width: 100px;
    height: 100px;
  }

  .about-my-self .my-desc ul li {
    justify-content: flex-start;
  }

  .about-my-self .my-resume-btn {
    margin-top: 16px;
  }

  .about-desc-skill-lic {
    gap: 16px;
  }

  .about-bottom-row {
    gap: 16px;
  }

  .project-swiper .swiper-slide {
    width: 260px;
  }

  .modal-slide-inner {
    flex-direction: column;
    padding: 36px;
    min-height: auto;
  }

  .modal-img-box {
    min-height: auto;
  }

  .btn-group {
    position: relative;
    bottom: auto;
    left: auto;
    margin-top: 16px;
    padding: 0 36px 36px;
  }

  .epilogue-content {
    gap: 48px;
  }

  .epilogue-img img {
    width: 250px;
    height: 300px;
  }
}

@media (max-width: 768px) {
  .section-dots {
    display: none;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    z-index: 9999;
  }

  [data-theme="dark"] .nav-links {
    background: rgba(13, 13, 13, 0.98);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links .nav-link {
    font-size: 22px;
    letter-spacing: 1px;
    color: var(--text-primary);
  }

  .nav-toggle {
    display: flex;
    z-index: 10001;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

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

  .intro-visual {
    justify-content: center;
  }

  .intro-name-display {
    align-items: center;
  }

  .intro-cta {
    justify-content: center;
  }

  .scroll-indicator {
    display: none;
  }

  /* About section — stack at 768px */
  .about-my-self {
    flex-direction: column !important;
    text-align: center !important;
    width: 100% !important;
    margin: 0 auto;
    padding: 32px 28px !important;
  }

  .skill-grid {
    flex-direction: column;
    gap: 10px;
  }

  .skill-item {
    flex-wrap: wrap;
    justify-content: center;
  }

  .skill-icon-wrap {
    flex: 0 0 auto;
  }

  .about-my-self .my-photo {
    margin-bottom: 16px;
  }

  .about-my-self .my-photo img {
    width: 120px !important;
    height: 120px !important;
  }

  .about-my-self .my-desc ul li {
    justify-content: center !important;
  }

  .about-desc-skill-lic {
    flex-direction: column;
  }

  .about-bottom-row {
    flex-direction: column;
  }

  /* Epilogue stack */
  .epilogue-content {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .epilogue-img::after {
    display: none;
  }

  .epilogue-img img {
    width: 240px;
    height: 280px;
  }

  .contact-info {
    max-width: 480px;
    margin: 0 auto;
  }

  .project-swiper .swiper-slide {
    width: 220px;
  }

  .project-carousel-wrap {
    padding: 20px 0 40px;
  }

  .section-header {
    margin-bottom: 36px;
  }

  .modal-content {
    overflow-y: auto;
  }

  .modal-slide-inner {
    padding: 28px 18px;
  }

  .modal-img-box {
    min-height: auto;
  }

  .modal-img-box .mobile-preview {
    max-height: 40vh;
    width: auto;
    max-width: 100%;
    object-fit: contain;
  }

  .modal-img-box .project-gif {
    max-height: 40vh;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    position: relative;
    top: auto;
    left: auto;
    transform: none;
  }

  .modal-swiper .swiper-button-prev,
  .modal-swiper .swiper-button-next {
    width: 32px;
    height: 32px;
  }

  .modal-swiper .swiper-button-prev i,
  .modal-swiper .swiper-button-next i {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .modal-swiper .swiper-button-prev {
    left: 6px;
  }

  .modal-swiper .swiper-button-next {
    right: 6px;
  }

  .btn-group {
    padding: 0 18px 28px;
    flex-wrap: wrap;
  }

  .btn-group .modal-btn {
    padding: 9px 16px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .intro-inner {
    padding: 100px 20px 40px;
  }

  .about-inner,
  .project-inner,
  .epilogue-inner {
    padding: 0 20px;
  }

  .about,
  #project,
  .epilogue {
    padding: 80px 0;
  }

  .epilogue {
    min-height: auto;
  }

  .intro-heading .line {
    font-size: 34px;
  }

  .intro-name-display .big-name {
    font-size: 56px;
  }

  .project-swiper .swiper-slide {
    width: 200px;
  }

  .epilogue-big-text span {
    font-size: 48px;
    letter-spacing: -2px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 0 20px;
  }
}
