:root {
  /* 색상 파레트 */
  --bg-color: #050507;
  --bg-surface: rgba(20, 20, 28, 0.4);
  --text-main: #FFFFFF;
  --text-muted: #9494A8;
  --accent-primary: #7928CA;
  --accent-secondary: #FF0080;
  --accent-gradient: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  --glass-border: rgba(255, 255, 255, 0.05);

  /* 타이포그래피 */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* 트랜지션 / 디자인 토큰 */
  --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --border-radius: 20px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* =========================================
   유틸리티 클래스
   ========================================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.section-pad {
  padding: 140px 0;
}

text-center {
  text-align: center;
}

.dot {
  color: var(--accent-secondary);
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass {
  background: var(--bg-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* 커스텀 마우스 커서 이펙트 */
.cursor-blob {
  position: fixed;
  top: 0;
  left: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(121, 40, 202, 0.4) 0%, rgba(255, 0, 128, 0) 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none; /* 클릭 방해 금지 */
  z-index: 0;
  transition: width 0.3s, height 0.3s;
  mix-blend-mode: screen;
}

/* =========================================
   타이포그래피
   ========================================= */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
}

.section-heading {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 60px;
}

/* =========================================
   버튼
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  transition: var(--transition);
  cursor: pointer;
  z-index: 10;
  position: relative;
}

.btn-glow {
  background: var(--accent-gradient);
  color: #fff;
  border: none;
}

.btn-glow:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 0, 128, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-3px);
}

/* =========================================
   네비게이션바
   ========================================= */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 24px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 16px 0;
  background: rgba(5, 5, 7, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -1px;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-item {
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.nav-item:hover {
  color: var(--text-main);
}

.btn-nav {
  background: rgba(255, 255, 255, 0.1);
  padding: 10px 24px;
  border-radius: 30px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: 0.3s;
}

/* =========================================
   히어로 섹션
   ========================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: -1;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.6;
  animation: float 10s ease-in-out infinite alternate;
}

.orb-1 { width: 500px; height: 500px; background: rgba(121, 40, 202, 0.3); top: -100px; right: -100px; }
.orb-2 { width: 400px; height: 400px; background: rgba(255, 0, 128, 0.2); bottom: 10%; left: -100px; animation-delay: -5s; }
.orb-3 { width: 300px; height: 300px; background: rgba(0, 112, 243, 0.2); top: 40%; right: 20%; animation-duration: 15s; }

.grid-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: 
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

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

.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.greeting {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(4rem, 10vw, 8rem);
  margin-bottom: 10px;
  letter-spacing: -2px;
}

.hero-subtitle {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--text-muted);
  min-height: 1.2em;
  margin-bottom: 30px;
  font-weight: 300;
}

.typed-cursor {
  display: inline-block;
  width: 3px;
  background-color: var(--accent-secondary);
  animation: blink 1s step-end infinite;
  margin-left: 5px;
}

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

.hero-description {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 50px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.7;
}

.mouse {
  width: 26px;
  height: 42px;
  border: 2px solid var(--text-muted);
  border-radius: 13px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background: var(--text-main);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0% { top: 6px; opacity: 1; }
  100% { top: 20px; opacity: 0; }
}

/* =========================================
   About 섹션
   ========================================= */
.about-flex {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text {
  font-size: 1.15rem;
  color: var(--text-muted);
}

.about-text p {
  margin-bottom: 24px;
}

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

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-box {
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 40px 20px;
  text-align: center;
  transition: var(--transition);
}

.stat-box:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
}

.stat-number {
  font-size: 2.5rem;
  color: var(--text-main);
  margin-bottom: 8px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

/* =========================================
   스킬 섹션
   ========================================= */
.skill-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.skill-card {
  padding: 40px 30px;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.skill-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 255, 255, 0.2);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 24px;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.skill-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.skill-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags span {
  font-size: 0.8rem;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* =========================================
   프로젝트 섹션
   ========================================= */
.projects-wrapper {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.project-item {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;
  padding: 40px;
  border-radius: 30px;
  overflow: hidden;
}

.project-item.reverse {
  grid-template-columns: 1fr 1.2fr;
}

.project-media {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  position: relative;
}

.video-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 ratio */
}

.video-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

.image-placeholder {
  aspect-ratio: 16/10;
  background: linear-gradient(45deg, #1A1A24, #0A0A0F);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup-frame {
  width: 80%;
  height: 80%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  color: var(--text-muted);
}

.mockup-content {
  text-align: center;
}

.mail-icon {
  font-size: 3rem;
  margin-bottom: 10px;
}

.project-title {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.project-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.project-tech span {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  background: rgba(121, 40, 202, 0.15);
  color: #E2B3FF;
  border-radius: 8px;
}

/* =========================================
   연락처 섹션
   ========================================= */
.contact-box {
  padding: 80px 40px;
  border-radius: 40px;
  position: relative;
  overflow: hidden;
}

.contact-box::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(121, 40, 202, 0.1) 0%, transparent 60%);
  z-index: -1;
}

.contact-box h2 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.contact-box p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.email-link {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: opacity 0.3s;
}

.email-link:hover {
  opacity: 0.8;
}

/* =========================================
   푸터
   ========================================= */
footer {
  border-top: 1px solid var(--glass-border);
  padding: 40px 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
}

.copyright {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: right;
}

/* =========================================
   애니메이션 & Reveal 클래스
   ========================================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* =========================================
   반응형 미디어쿼리
   ========================================= */
@media (max-width: 992px) {
  .about-flex {
    grid-template-columns: 1fr;
  }
  
  .project-item, .project-item.reverse {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 100vw; height: 100vh;
    background: rgba(5, 5, 7, 0.98);
    flex-direction: column;
    justify-content: center;
    transition: 0.4s;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .hamburger {
    display: flex;
    z-index: 105;
  }
  
  .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .btn { width: 100%; }
  
  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .copyright { text-align: center; }
  
  /* 모바일에서 커서 숨기기 */
  .cursor-blob { display: none; }
}
