/* CSS Variables for Theme */
:root {
  /* Default Theme: Deep Teal */
  /* Color Order: Deep Teal -> Cream -> Warm Orange -> Charcoal Grey */
  --primary-color: #0b5351;
  --primary-light: #1b6d6b;
  --primary-dark: #083f3d;
  --secondary-color: #5f6d74;
  --accent-color: #e07a5f;
  --success-color: #2d8b79;
  --warning-color: #d39a3c;
  --danger-color: #c45a51;

  --bg-primary: #faf9f6;
  --bg-secondary: #f4f2ec;
  --bg-tertiary: #ece8df;
  --bg-card: #fffdf9;
  --bg-overlay: rgba(54, 69, 79, 0.1);

  --text-primary: #36454f;
  --text-secondary: #53626a;
  --text-tertiary: #6a7981;
  --text-inverse: #faf9f6;

  --border-color: #d9d6ce;
  --border-light: #e8e4db;
  --shadow-sm: 0 1px 2px 0 rgb(54 69 79 / 0.08);
  --shadow-md: 0 4px 8px -2px rgb(54 69 79 / 0.14);
  --shadow-lg: 0 12px 18px -4px rgb(54 69 79 / 0.16);
  --shadow-xl: 0 24px 30px -8px rgb(54 69 79 / 0.18);

  /* Typography */
  --font-primary: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", monospace;

  /* Spacing */
  --container-max-width: 1320px;
  --section-padding: 5rem 0;
  --element-spacing: 2rem;
}

/* Dark Theme */
[data-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --bg-card: #1e293b;
  --bg-overlay: rgba(255, 255, 255, 0.1);

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-tertiary: #94a3b8;
  --text-inverse: #0f172a;

  --border-color: #334155;
  --border-light: #475569;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3), 0 2px 4px -2px rgb(0 0 0 / 0.3);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.3), 0 4px 6px -4px rgb(0 0 0 / 0.3);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.3), 0 8px 10px -6px rgb(0 0 0 / 0.3);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Container */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Section Styles */
section {
  padding: var(--section-padding);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-primary);
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  border-radius: 2px;
}

/* Feature: PPT 스타일 슬라이드 레이아웃 */
/* Run Order: section snap -> section frame -> indicator */
section[id] {
  scroll-margin-top: 80px;
}

.slide-indicator {
  position: fixed;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 0.75rem 0.55rem;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-card) 88%, transparent);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-md);
}

.slide-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  cursor: pointer;
  transition: all 0.25s ease;
}

.slide-dot:hover {
  transform: scale(1.15);
  border-color: var(--primary-color);
}

.slide-dot.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 20%, transparent);
}

/* Desktop에서 PPT 형식 스냅 적용 */
@media (min-width: 769px) {
  html {
    scroll-snap-type: y mandatory;
    scroll-padding-top: 80px;
  }

  body.ppt-portfolio section[id] {
    min-height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    align-items: center;
  }

  body.ppt-portfolio section[id] .container {
    background: color-mix(in srgb, var(--bg-card) 94%, transparent);
    border: 1px solid var(--border-light);
    border-radius: 22px;
    box-shadow: var(--shadow-lg);
    padding: 2.2rem;
  }
}

  section.contact .container {
    height: 800px
  }
/* Theme Toggle */
.theme-toggle {
  position: fixed;
  top: 6rem;
  right: 2rem;
  z-index: 1000;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--text-primary);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.theme-toggle:hover {
  transform: scale(1.1);
  background: var(--primary-color);
  color: var(--text-inverse);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  z-index: 999;
  transition: all 0.3s ease;
}

[data-theme="dark"] .navbar {
  background: rgba(15, 23, 42, 0.95);
}

[data-theme="deep-teal"] .navbar {
  background: rgba(250, 249, 246, 0.95);
}

.nav-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  font-family: var(--font-mono);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

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

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
  padding: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.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 Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e2e8f0" stroke-width="0.5" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.1;
}

/* Hero 배경 장식 요소들 */
.hero-decorations {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.floating-shape {
  position: absolute;
  opacity: 0.1;
  animation: floatShape 6s ease-in-out infinite;
}

.shape-1 {
  top: 15%;
  left: 10%;
  width: 120px;
  height: 120px;
  background: var(--primary-color);
  border-radius: 50%;
  animation-delay: 0s;
}

.shape-2 {
  top: 25%;
  right: 15%;
  width: 80px;
  height: 80px;
  background: var(--accent-color);
  transform: rotate(45deg);
  animation-delay: 1s;
}

.shape-3 {
  bottom: 30%;
  left: 5%;
  width: 60px;
  height: 60px;
  background: var(--primary-light);
  border-radius: 30%;
  animation-delay: 2s;
}

.shape-4 {
  bottom: 15%;
  right: 25%;
  width: 100px;
  height: 100px;
  background: var(--primary-color);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  animation-delay: 3s;
}

/* 플로팅 키워드들 */
.floating-keywords {
  position: absolute;
  width: 100%;
  height: 100%;
}

.keyword {
  position: absolute;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary-color);
  border: 1px solid rgba(0, 139, 139, 0.2);
  animation: floatKeyword 8s ease-in-out infinite;
}

.keyword:nth-child(1) {
  top: 20%;
  left: 8%;
  animation-delay: 0s;
}

.keyword:nth-child(2) {
  top: 35%;
  right: 10%;
  animation-delay: 1.5s;
}

.keyword:nth-child(3) {
  bottom: 25%;
  left: 12%;
  animation-delay: 3s;
}

.keyword:nth-child(4) {
  bottom: 40%;
  right: 8%;
  animation-delay: 4.5s;
}

.keyword:nth-child(5) {
  top: 70%;
  left: 30%;
  animation-delay: 6s;
}

/* 타이핑 효과 */
.typing-effect {
  overflow: hidden;
  border-right: 3px solid var(--primary-color);
  white-space: nowrap;
  width: 0;
  animation: typing 3s steps(35, end), blink-caret 0.75s step-end infinite;
  animation-delay: 1s;
  animation-fill-mode: forwards;
}

.hero-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.highlight {
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin: 1rem 0 2rem;
  font-weight: 500;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-tertiary);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
  color: var(--text-inverse);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: var(--bg-primary);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--text-inverse);
  transform: translateY(-2px);
}

/* Hero Animation */
.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInRight 1s ease-out 0.3s both;
}

.floating-cards {
  position: relative;
  width: 400px;
  height: 300px;
  margin: 0 auto;
  perspective: 1000px;
}

.card {
  position: absolute;
  width: 120px;
  height: 80px;
  background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-inverse);
  font-weight: bold;
  font-size: 0.9rem;
  box-shadow: 0 15px 35px rgba(0, 139, 139, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  transform-style: preserve-3d;
}

.card:hover {
  transform: translateY(-20px) rotateY(10deg) scale(1.1);
  box-shadow: 0 25px 50px rgba(0, 139, 139, 0.4);
}

.card:nth-child(2) {
  top: 50px;
  left: 50px;
  background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
  animation: float1 4s ease-in-out infinite;
}

.card:nth-child(3) {
  top: 20px;
  right: 50px;
  background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
  animation: float2 4s ease-in-out infinite 1s;
}

.card:nth-child(4) {
  bottom: 80px;
  left: 140px;
  background: linear-gradient(45deg, var(--primary-light), var(--accent-color));
  animation: float3 4s ease-in-out infinite 2s;
}

.card:nth-child(5) {
  bottom: 50px;
  right: 80px;
  background: linear-gradient(45deg, var(--primary-dark), var(--primary-color));
  animation: float1 4s ease-in-out infinite 3s;
}

.card:nth-child(6) {
  top: 120px;
  left: 20px;
  background: linear-gradient(45deg, var(--accent-color), var(--primary-light));
  animation: float2 4s ease-in-out infinite 0.5s;
}

.card:nth-child(7) {
  top: 140px;
  right: 20px;
  background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
  animation: float3 4s ease-in-out infinite 1.5s;
}

.glow-effect {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0, 139, 139, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: glow 3s ease-in-out infinite;
  z-index: -1;
}

/* About Section */
.about {
  background: var(--bg-secondary);
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-text h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.highlight-list {
  list-style: none;
  space-y: 1rem;
}

.highlight-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

.highlight-list i {
  color: var(--success-color);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.about-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-card {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.info-card h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-size: 1.1rem;
}

.info-card p {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Skills Section */
.skills {
  background: var(--bg-primary);
}

.skills-group {
  margin-bottom: 4rem;
}

.skills-group:last-child {
  margin-bottom: 0;
}

.group-title {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-light);
}

.group-title i {
  color: var(--primary-color);
}

.group-familiar .group-title i {
  color: var(--secondary-color);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.skill-category {
  background: var(--bg-card);
  padding: 1.75rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Proficient Card Styling */
.group-proficient .skill-category {
  border-top: 4px solid var(--primary-color);
}

.group-proficient .skill-category:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

/* Familiar Card Styling */
.group-familiar .skill-category {
  border-top: 4px solid var(--secondary-color);
  opacity: 0.95;
}

.group-familiar .skill-category:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary-color);
  opacity: 1;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.category-header h3 {
  color: var(--text-primary);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}

.category-header i {
  font-size: 1.4rem;
  color: var(--primary-color);
  background: rgba(0, 139, 139, 0.1);
  padding: 0.6rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.group-familiar .category-header i {
  color: var(--secondary-color);
  background: rgba(100, 116, 139, 0.1);
}

.skill-category:hover .category-header i {
  background: var(--primary-color);
  color: white;
}

.group-familiar .skill-category:hover .category-header i {
  background: var(--secondary-color);
  color: white;
}

.skill-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skill-tag {
  background: var(--bg-primary);
  color: var(--text-secondary);
  padding: 0.4rem 0.9rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.group-proficient .skill-tag:hover {
  background: var(--primary-light);
  color: white;
  border-color: var(--primary-light);
  transform: translateY(-2px);
}

.group-familiar .skill-tag:hover {
  background: var(--secondary-color);
  color: white;
  border-color: var(--secondary-color);
  transform: translateY(-2px);
}

/* Projects Section */
.projects {
  background: var(--bg-secondary);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--bg-card);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
}

.project-header h3 {
  font-size: 1.3rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.project-header i {
  color: var(--primary-color);
}

.project-status {
  background: var(--success-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.project-status:contains("진행중") {
  background: var(--warning-color);
}

.project-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.project-tech span {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 500;
}

.project-period {
  color: var(--text-tertiary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.project-links a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

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

/* Experience Section */
.experience {
  background: var(--bg-primary);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 80px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 5px;
  width: 18px;
  height: 18px;
  background: var(--primary-color);
  border-radius: 50%;
  border: 3px solid var(--bg-primary);
}

.timeline-date {
  position: absolute;
  right: 785px;
  top: 0;
  background: var(--primary-color);
  color: var(--text-inverse);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.timeline-content {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.timeline-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.position {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-style: italic;
}

.achievements {
  list-style: none;
}

.achievements li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

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

/* Education Section */
.education-section {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-color);
}

.education-section h3 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: var(--text-primary);
  text-align: center;
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.education-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.education-card h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-size: 1.2rem;
}

.education-card ul {
  list-style: none;
}

.education-card li {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Contact Section */
.contact {
  background: var(--bg-secondary);
}

.contact-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.social-links-horizontal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  flex-direction: column;
  gap: 1.5rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1rem 2rem;
  background: var(--bg-card);
  border-radius: 0.75rem;
  text-decoration: none;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  min-width: 160px;
}

.social-link:hover {
  background: var(--primary-color);
  color: var(--text-inverse);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.social-link i {
  font-size: 1.3rem;
}

.copy-email-btn {
  position: relative;
}

.copy-hint {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-left: 0.5rem;
  font-weight: normal;
}


/* Mobile adjustments for contact */
@media (max-width: 768px) {
  .social-links-horizontal {
    flex-direction: column;
    width: 100%;
    align-items: center;
  }
  
  .social-link {
    width: 100%;
    max-width: 300px;
  }
}

/* Footer */
.footer {
  background: var(--bg-primary);
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.footer p {
  color: var(--text-tertiary);
  margin-bottom: 0.5rem;
}

/* From Uiverse.io by bhaveshxrawat */ 
.emphasis-card {
  width: 190px;
  height: 80px;
  background: var(--bg-primary);
  position: relative;
  display: flex;
  place-content: center;
  place-items: center;
  overflow: hidden;
  border-radius: 20px;
}

.emphasis-card h3 {
  z-index: 1;
  color: var(--text-inverse);
  font-size: 1rem;
}

.emphasis-card::before {
  content: '';
  position: absolute;
  width: 250px;
  background-image: linear-gradient(180deg, var(--primary-color), var(--accent-color));
  height: 70%;
  animation: rotBGimg 8s linear infinite;
  transition: all 0.2s linear;
}

@keyframes rotBGimg {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.emphasis-card::after {
  content: '';
  position: absolute;
  background: var(--primary-color);
  inset: 5px;
  border-radius: 15px;
}  
/* .emphasis-card:hover:before {
  background-image: linear-gradient(180deg, rgb(81, 255, 0), purple);
  animation: rotBGimg 3.5s linear infinite;
} */

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float1 {
  0%,
  100% {
    transform: translateY(0px) rotateX(0deg);
  }
  50% {
    transform: translateY(-20px) rotateX(5deg);
  }
}

@keyframes float2 {
  0%,
  100% {
    transform: translateX(0px) rotateY(0deg);
  }
  50% {
    transform: translateX(10px) rotateY(10deg);
  }
}

@keyframes float3 {
  0%,
  100% {
    transform: translateY(0px) rotateZ(0deg);
  }
  50% {
    transform: translateY(-15px) rotateZ(5deg);
  }
}

@keyframes glow {
  0%,
  100% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1.2);
  }
}

/* 새로운 애니메이션들 */
@keyframes floatShape {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.1;
  }
  50% {
    transform: translateY(-30px) rotate(180deg);
    opacity: 0.2;
  }
}

@keyframes floatKeyword {
  0%,
  100% {
    transform: translateY(0px) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-20px) scale(1.05);
    opacity: 1;
  }
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: var(--primary-color);
  }
}

/* Scroll Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Styles */
.mobile-device .skill-tag:hover,
.mobile-device .project-card:hover,
.mobile-device .skill-category:hover {
  transform: none;
}

.touch-active {
  transform: scale(0.98);
  opacity: 0.8;
}

/* Ripple Effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  animation: ripple-animation 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-animation {
  0% {
    width: 0;
    height: 0;
    opacity: 1;
  }
  100% {
    width: 40px;
    height: 40px;
    opacity: 0;
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-title {
    font-size: 3rem;
  }

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

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

  .timeline-date {
    position: static;
    display: inline-block;
    margin-bottom: 1rem;
  }

  .timeline-item {
    padding-left: 60px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 3rem 0;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--bg-card);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 2rem;
    transition: left 0.3s ease;
    border-top: 1px solid var(--border-color);
    gap: 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    margin: 0;
    width: 100%;
    text-align: center;
  }

  .nav-link {
    display: block;
    padding: 1rem 2rem;
    width: 100%;
    border-bottom: 1px solid var(--border-light);
    font-size: 1.1rem;
  }

  .nav-link::after {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .theme-toggle {
    top: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
  }

  .slide-indicator {
    display: none;
  }

  .hero {
    min-height: 90vh;
    padding-top: 70px;
  }

  /* 모바일에서 장식 요소들 단순화 */
  .floating-shape {
    opacity: 0.05;
  }

  .shape-1,
  .shape-4 {
    display: none;
  }

  .shape-2 {
    width: 60px;
    height: 60px;
  }

  .shape-3 {
    width: 40px;
    height: 40px;
  }

  /* 모바일에서 키워드 개수 줄이기 */
  .keyword:nth-child(4),
  .keyword:nth-child(5) {
    display: none;
  }

  .keyword {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
  }

  /* 타이핑 효과 조정 */
  .typing-effect {
    border-right-width: 2px;
    animation: typing 2.5s steps(30, end), blink-caret 0.75s step-end infinite;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.3rem;
  }

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

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

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

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

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

  .project-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .timeline {
    margin-left: 0;
  }

  .timeline::before {
    left: 15px;
  }

  .timeline-item {
    padding-left: 45px;
  }

  .timeline-item::before {
    left: 6px;
  }

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

  .floating-cards {
    width: 250px;
    height: 200px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

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

  .skill-category,
  .project-card,
  .timeline-content,
  .education-card {
    padding: 1.5rem;
  }

  .info-card,
  .contact-item {
    padding: 1rem;
  }

  .nav-link {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

  .floating-cards {
    width: 250px;
    height: 200px;
  }
}

/* Print Styles */
@media print {
  .theme-toggle,
  .navbar,
  .hero-buttons,
  .hero-decorations {
    display: none;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
    background: white !important;
    color: black !important;
  }

  /* 타이핑 효과 제거하고 텍스트 모두 표시 */
  .typing-effect {
    width: auto !important;
    border-right: none !important;
    animation: none !important;
    overflow: visible !important;
    white-space: normal !important;
  }

  .section-title {
    font-size: 18pt;
    margin-bottom: 1rem;
    page-break-after: avoid;
  }

  .project-card,
  .skill-category,
  .timeline-content {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
    margin-bottom: 1rem;
  }

  /* PDF용 페이지 나누기 최적화 */
  .hero,
  .about,
  .skills,
  .projects,
  .experience {
    page-break-inside: avoid;
    page-break-after: auto;
  }

  /* 링크 스타일 */
  a {
    color: var(--primary-color) !important;
    text-decoration: underline;
  }

  /* 배경색 강제 적용 */
  * {
    -webkit-print-color-adjust: exact !important;
    color-adjust: exact !important;
  }
}
