/* ============================================================
   DevKorea - Full-Stack Developer Portfolio
   Main Stylesheet
   Korean Modern & Clean Design
   ============================================================ */

/* ============================================================
   1. CSS Custom Properties
   ============================================================ */
:root {
  --primary: #111827;
  --primary-light: #182033;
  --accent: #5b6ef5;
  --accent-light: #8ea0ff;
  --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  --gradient-5: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  --gradient-6: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
  --section-surface: linear-gradient(180deg, #fbfcff 0%, #f4f7ff 100%);
  --glass: rgba(255, 255, 255, 0.75);
  --text-dark: #1a1a2e;
  --text-gray: #6b7280;
  --text-light: #9ca3af;
  --bg-light: #f4f7ff;
  --bg-white: #ffffff;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s ease;
}


/* ============================================================
   2. Reset & Global Base Styles
   ============================================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: 'Inter', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #e8ecf7;
  background-color: #080d1b;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

ul,
ol {
  list-style: none;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}


/* ============================================================
   3. Layout Utilities
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}


/* ============================================================
   4. Typography Utilities
   ============================================================ */
.text-gradient {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-accent {
  color: var(--accent);
}


/* ============================================================
   5. Button Styles
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-1);
  color: var(--text-dark);
  border: none;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

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

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(67, 97, 238, 0.3);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn-full {
  width: 100%;
}


/* ============================================================
   6. Section Header Styles
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 50px;
  background: rgba(67, 97, 238, 0.08);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-gray);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.section-cta {
  text-align: center;
  margin-top: 50px;
}


/* ============================================================
   7. Navbar
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: transparent;
  transition: var(--transition);
  padding: 16px 0;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
  padding: 10px 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

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

.nav-logo a {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  transition: var(--transition);
}

.navbar.scrolled .nav-logo a {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  padding: 4px 0;
  transition: var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #ffffff;
}

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

.navbar.scrolled .nav-link {
  color: var(--text-gray);
}

.navbar.scrolled .nav-link:hover {
  color: var(--accent);
}

.navbar.scrolled .nav-link.active {
  color: var(--accent);
}

.nav-link.active {
  color: #ffffff;
}

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

.navbar.scrolled .nav-link.active::after {
  background: var(--accent);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: 50px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.nav-cta:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(67, 97, 238, 0.4);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  z-index: 1001;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}

.navbar.scrolled .nav-hamburger span {
  background: var(--primary);
}

.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(5px, -5px);
}


/* ============================================================
   8. Hero Section
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at top, rgba(91,110,245,0.18) 0%, rgba(17,24,39,0.0) 35%),
    linear-gradient(135deg, #0b1020 0%, #111827 38%, #131d38 70%, #0b1020 100%);
  overflow: hidden;
}

.hero-bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  animation: float 8s ease-in-out infinite;
}

.shape-1 {
  width: 500px;
  height: 500px;
  background: var(--gradient-1);
  top: -10%;
  right: -5%;
  animation-delay: 0s;
}

.shape-2 {
  width: 300px;
  height: 300px;
  background: var(--gradient-3);
  bottom: -5%;
  left: -3%;
  animation-delay: 2s;
}

.shape-3 {
  width: 200px;
  height: 200px;
  background: var(--gradient-2);
  top: 40%;
  left: 30%;
  animation-delay: 4s;
}

.shape-4 {
  width: 150px;
  height: 150px;
  background: var(--gradient-4);
  bottom: 20%;
  right: 15%;
  animation-delay: 6s;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 20px 80px;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-content {
  flex: 1;
  max-width: 580px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 50px;
  background: rgba(91, 110, 245, 0.22);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(91, 110, 245, 0.28);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #43e97b;
  animation: pulse 2s ease-in-out infinite;
  position: relative;
}

.badge-dot::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #43e97b;
  animation: pulse 2s ease-in-out infinite;
}

.hero-title {
  font-size: 4.2rem;
  font-weight: 900;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.hero-modern {
  gap: 48px;
  align-items: center;
}

.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-trust-row span {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
  font-weight: 600;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent-light);
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.8;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 0 28px;
}

.stat-item:first-child {
  padding-left: 0;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
}

.hero-visual {
  flex: 1;
  max-width: 520px;
}

.code-editor {
  background: #1e1e3f;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.editor-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.editor-dots {
  display: flex;
  gap: 7px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red {
  background: #ff5f57;
}

.dot.yellow {
  background: #febc2e;
}

.dot.green {
  background: #28c840;
}

.editor-title {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
  flex: 1;
  text-align: center;
}

.editor-body {
  padding: 24px;
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.88rem;
  line-height: 1.8;
}

.code-line {
  white-space: nowrap;
}

.code-keyword {
  color: #c792ea;
  font-weight: 600;
}

.code-var {
  color: #82aaff;
}

.code-prop {
  color: #f07178;
}

.code-string {
  color: #c3e88d;
}

.code-bool {
  color: #ff9cac;
}

.code-comment {
  color: rgba(255, 255, 255, 0.3);
  font-style: italic;
}

.code-method {
  color: #ffd700;
}

.code-line.empty {
  height: 1.8em;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.mouse {
  width: 26px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 13px;
  position: relative;
}

.mouse-wheel {
  width: 4px;
  height: 8px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: mouseWheel 2s ease-in-out infinite;
}

.hero-scroll-indicator span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}


/* ============================================================
   9. Advantages Section
   ============================================================ */
.advantages {
  padding: 100px 0;
  background: var(--bg-light);
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.advantage-card {
  position: relative;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

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

.advantage-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--gradient-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #ffffff;
  margin-bottom: 20px;
}

.advantage-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.advantage-desc {
  font-size: 0.95rem;
  color: var(--text-gray);
  line-height: 1.7;
}

.advantage-number {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 4rem;
  font-weight: 900;
  color: rgba(0, 0, 0, 0.03);
  line-height: 1;
  pointer-events: none;
}


/* ============================================================
   10. Services Preview Section
   ============================================================ */
.services-preview {
  padding: 100px 0;
  background: var(--bg-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 20px;
}

.service-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.service-desc {
  font-size: 0.92rem;
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  transition: var(--transition);
}

.service-link i {
  transition: transform 0.3s ease;
}

.service-link:hover {
  gap: 10px;
}

.service-link:hover i {
  transform: translateX(4px);
}


/* ============================================================
   11. Portfolio Preview Section
   ============================================================ */
.portfolio-preview {
  padding: 100px 0;
  background: var(--bg-light);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.portfolio-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.04);
  cursor: pointer;
}

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

.portfolio-image {
  height: 220px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.gradient-1 {
  background: var(--gradient-1);
}

.gradient-2 {
  background: var(--gradient-2);
}

.gradient-3 {
  background: var(--gradient-3);
}

.gradient-4 {
  background: var(--gradient-4);
}

.gradient-5 {
  background: var(--gradient-5);
}

.gradient-6 {
  background: var(--gradient-6);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-category {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-block;
  padding: 6px 14px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 2;
}

.portfolio-info {
  padding: 24px;
}

.portfolio-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.portfolio-desc {
  font-size: 0.9rem;
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 16px;
}

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

.tech-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  background: rgba(67, 97, 238, 0.08);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
}


/* ============================================================
   12. Portfolio Full Grid (portfolio.php)
   ============================================================ */
.portfolio-full-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.portfolio-full-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.04);
  cursor: pointer;
}

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

.portfolio-full-image {
  height: 220px;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.portfolio-full-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(2px);
}

.portfolio-full-card:hover .portfolio-full-overlay {
  opacity: 1;
}

.portfolio-full-category {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 2;
}

.portfolio-view-btn {
  padding: 12px 28px;
  border-radius: 50px;
  background: #ffffff;
  color: var(--text-dark);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.portfolio-view-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.portfolio-full-info {
  padding: 24px;
}

.portfolio-full-meta {
  margin-bottom: 8px;
}

.portfolio-year {
  font-size: 0.82rem;
  color: var(--text-light);
}

.portfolio-full-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.portfolio-full-desc {
  font-size: 0.9rem;
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.portfolio-full-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 992px) {
  .portfolio-full-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .portfolio-full-grid {
    grid-template-columns: 1fr;
  }
}

/* Modal styles */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  max-width: 700px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: var(--transition);
  z-index: 1;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: rotate(90deg);
}

.modal-body {
  padding: 0;
}

.modal-body img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.modal-body .modal-detail {
  padding: 32px;
}

.modal-body .modal-detail h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.modal-body .modal-detail .modal-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  color: var(--text-light);
  font-size: 0.85rem;
}

.modal-body .modal-detail p {
  font-size: 0.95rem;
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 20px;
}

@media (max-width: 576px) {
  .modal-body img {
    height: 200px;
  }
  .modal-body .modal-detail {
    padding: 24px;
  }
}


/* ============================================================
   13. Contact Section
   ============================================================ */
.contact-section {
  padding: 100px 0;
  background: var(--section-surface);
}

.consult-hero {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.consult-feature {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(67, 97, 238, 0.08);
  border-radius: 18px;
  padding: 16px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow);
}

.consult-feature i {
  color: var(--accent);
}

.info-card-premium,
.info-card-modern {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: var(--shadow-xl);
  padding: 34px;
}

.contact-badge-row, .contact-mini-grid, .contact-form-highlight {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-chip, .highlight-item, .contact-mini-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(67, 97, 238, 0.08);
  color: var(--text-dark);
  font-size: 0.86rem;
  font-weight: 600;
}

.contact-chip-alt {
  background: rgba(124, 58, 237, 0.08);
}

.contact-mini-grid {
  margin-top: 22px;
}

.contact-mini-card {
  border-radius: 16px;
}

.contact-hidden-note {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(17, 24, 39, 0.04);
}

.contact-form-highlight {
  margin-bottom: 18px;
}

.contact-form-highlight .highlight-item i,
.contact-mini-card i {
  color: var(--accent);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info {
  padding-right: 20px;
}

.info-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.info-desc {
  font-size: 1rem;
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 36px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}

.contact-methods-hidden {
  margin-bottom: 22px;
}

.contact-methods-visible .contact-method {
  background: rgba(255,255,255,0.9);
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--bg-light);
  transition: var(--transition);
  cursor: pointer;
}

.contact-method:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow);
}

.method-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #ffffff;
  flex-shrink: 0;
}

.method-icon.kakao {
  background: #fee500;
  color: #3c1e1e;
}

.method-icon.telegram {
  background: #0088cc;
}

.method-icon.email {
  background: #7c3aed;
}

.method-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.method-info p {
  font-size: 0.85rem;
  color: var(--text-gray);
}

.method-arrow {
  margin-left: auto;
  color: var(--text-light);
  font-size: 0.85rem;
  transition: var(--transition);
}

.contact-method:hover .method-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

.working-hours {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: rgba(67, 97, 238, 0.06);
  border: 1px solid rgba(67, 97, 238, 0.1);
  margin-top: 22px;
}

.hours-icon {
  font-size: 1.2rem;
  color: var(--accent);
}

.working-hours span {
  font-size: 0.9rem;
  color: var(--text-gray);
}

.working-hours strong {
  color: var(--text-dark);
}

.contact-form-wrapper {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
}

.required {
  color: #ef4444;
  margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius);
  background: var(--bg-light);
  color: var(--text-dark);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
  background: var(--bg-white);
  box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-light);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-message {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  display: none;
}

.form-message.success {
  display: block;
  background: rgba(72, 187, 120, 0.1);
  color: #16a34a;
  border: 1px solid rgba(72, 187, 120, 0.2);
}

.form-message.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
}


/* ============================================================
   13. Footer
   ============================================================ */
.footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 60px 0 40px;
}

.footer-brand {
  padding-right: 40px;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
  display: inline-block;
}

.footer-desc {
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--accent);
  color: #ffffff;
  transform: translateY(-3px);
}

.footer-links h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  transition: var(--transition);
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

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

.footer-bottom-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.35);
}


/* ============================================================
   14. Chat Widget
   ============================================================ */
.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
}

.chat-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  font-size: 1.4rem;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
  transition: var(--transition);
  position: relative;
  cursor: pointer;
}

.chat-toggle > .fas,
.chat-toggle > .fa,
.chat-toggle > i {
  color: #ffffff !important;
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900;
  font-style: normal;
  line-height: 1;
  position: relative;
  z-index: 2;
}

.chat-toggle:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
}

.chat-toggle-label {
  position: absolute;
  right: 68px;
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  padding: 9px 14px;
  border-radius: 10px;
  background: #ffffff;
  color: #111827;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
}

.chat-toggle-label.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

.chat-toggle .pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--gradient-1);
  animation: pulse 2s ease-out infinite;
  pointer-events: none;
}

.chat-panel {
  position: absolute;
  bottom: 76px;
  right: 0;
  width: 400px;
  height: min(580px, calc(100vh - 160px));
  max-height: min(580px, calc(100vh - 160px));
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  display: none;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #1e293b;
}

.chat-panel.active {
  display: flex;
  animation: slideUp 0.35s ease;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #1e293b;
  color: #ffffff !important;
  flex-shrink: 0;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  color: #ffffff;
  font-size: 1.1rem;
}

.chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.chat-ico {
  display: block;
  flex-shrink: 0;
  fill: currentColor;
  color: inherit;
}

.chat-avatar .chat-ico {
  width: 20px;
  height: 20px;
  color: #ffffff;
  fill: #ffffff;
}

.chat-avatar i,
.chat-header .fas,
.chat-header .fa,
.chat-close i {
  color: #ffffff !important;
  font-style: normal;
  display: inline-block;
  line-height: 1;
}

.chat-header-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
  color: #ffffff !important;
}

.chat-header-info p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75) !important;
  margin: 0;
}

.chat-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85) !important;
  transition: var(--transition);
  cursor: pointer;
  font-size: 0.95rem;
  background: transparent;
  border: none;
  flex-shrink: 0;
}

.chat-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
}

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: none;
  min-height: 0;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  color: #1e293b !important;
  background: #f1f5f9;
}

.chat-welcome {
  text-align: center;
  padding: 20px 12px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.chat-welcome-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
  line-height: 1;
  display: block;
}

.chat-welcome p {
  color: #334155 !important;
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
  padding: 0;
  font-weight: 500;
}

.chat-msg-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 92%;
}

.chat-msg-row.visitor {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-msg-row.admin {
  align-self: flex-start;
}

.chat-msg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: #475569 !important;
  border: 1px solid #cbd5e1;
}

.chat-msg-avatar i,
.chat-msg-avatar .fas,
.chat-msg-avatar .fa {
  color: #475569 !important;
  font-style: normal;
  line-height: 1;
}

.chat-msg-row.admin .chat-msg-avatar {
  background: #dbeafe;
  color: #2563eb !important;
  border-color: #93c5fd;
}

.chat-msg-row.admin .chat-msg-avatar i {
  color: #2563eb !important;
}

.chat-msg-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-msg-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.chat-msg-row.visitor .chat-msg-body {
  align-items: flex-end;
}

.chat-msg-row.admin .chat-msg-body {
  align-items: flex-start;
}

.chat-msg-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: #334155 !important;
  margin-bottom: 2px;
}

.chat-message {
  display: flex;
  flex-direction: column;
  max-width: 100%;
}

.chat-message-content {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.6;
  word-break: break-word;
}

/* 新结构：.chat-msg-row */
.chat-msg-row.admin .chat-message-content {
  background: #ffffff;
  color: #1e293b !important;
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.chat-msg-row.visitor .chat-message-content {
  background: #4361ee;
  color: #ffffff !important;
  border-bottom-right-radius: 4px;
}

/* 旧结构兼容 */
.chat-message.admin .chat-message-content {
  background: #ffffff;
  color: #1e293b !important;
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 4px;
}

.chat-message.visitor .chat-message-content {
  background: #4361ee;
  color: #ffffff !important;
  border-bottom-right-radius: 4px;
}

.chat-time {
  font-size: 0.7rem;
  color: #64748b !important;
  margin-top: 2px;
  padding: 0 2px;
}

.chat-message.visitor .chat-time,
.chat-msg-row.visitor .chat-time {
  text-align: right;
}

.chat-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
  background: var(--bg-light);
  border-radius: var(--radius);
  align-self: flex-start;
}

.chat-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-light);
  animation: typing 1.4s infinite;
}

.chat-typing span:nth-child(2) {
  animation-delay: 0.2s;
}

.chat-typing span:nth-child(3) {
  animation-delay: 0.4s;
}

.chat-footer {
  padding: 14px 16px;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
  color: #1e293b;
  flex-shrink: 0;
}

.chat-input-container {
  display: flex;
  gap: 8px;
  align-items: center;
}

.chat-attach-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #475569 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  border: 1px solid #e2e8f0;
}

.chat-attach-btn i,
.chat-attach-btn .fas,
.chat-send i,
.chat-send .fas {
  color: inherit !important;
  font-style: normal;
  line-height: 1;
}

.chat-attach-btn:hover {
  color: #4361ee !important;
  background: #eef2ff;
  border-color: #c7d2fe;
}

.chat-image-preview {
  position: relative;
  display: inline-block;
  margin-bottom: 8px;
  max-width: 120px;
}

.chat-image-preview img {
  width: 100%;
  border-radius: 8px;
  border: 2px solid rgba(0,0,0,0.08);
}

.chat-preview-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e74c3c;
  color: white !important;
  border: none;
  font-size: 0.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-preview-remove i {
  color: #ffffff !important;
}

.chat-message-image {
  max-width: 200px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s ease;
  display: block;
}

.chat-message-image:hover {
  transform: scale(1.02);
}

.chat-input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 50px;
  font-size: 0.9rem;
  background: #f8fafc;
  color: #0f172a !important;
  transition: var(--transition);
  outline: none;
}

.chat-input:focus {
  border-color: #4361ee;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.chat-input::placeholder {
  color: #94a3b8 !important;
}

.chat-send {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #4361ee;
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
  flex-shrink: 0;
  border: none;
}

.chat-send:hover {
  background: #3451d1;
  transform: scale(1.05);
  color: #ffffff !important;
}

.chat-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.quick-action {
  padding: 6px 14px;
  border-radius: 50px;
  background: #f1f5f9;
  color: #334155 !important;
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid #e2e8f0;
}

.quick-action:hover {
  background: #eef2ff;
  color: #4361ee !important;
  border-color: #c7d2fe;
}


/* ============================================================
   15. Page Banner (Sub-pages)
   ============================================================ */
.page-banner {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f0c29 0%, #1a1a2e 40%, #16213e 70%, #0f3460 100%);
  overflow: hidden;
  text-align: center;
}

.banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.banner-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.banner-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
}

.banner-shape-1 {
  width: 300px;
  height: 300px;
  background: var(--gradient-1);
  top: -20%;
  right: 10%;
  animation: float 8s ease-in-out infinite;
}

.banner-shape-2 {
  width: 200px;
  height: 200px;
  background: var(--gradient-3);
  bottom: -15%;
  left: 5%;
  animation: float 8s ease-in-out infinite 3s;
}

.banner-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 20px 60px;
  position: relative;
  z-index: 2;
}

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

.banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 50px;
  background: rgba(67, 97, 238, 0.15);
  color: var(--accent-light);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 16px;
  border: 1px solid rgba(67, 97, 238, 0.2);
}

.banner-title {
  font-size: 3rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.banner-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 24px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.banner-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.88rem;
}

.banner-breadcrumb a {
  color: rgba(255, 255, 255, 0.5);
  transition: var(--transition);
}

.banner-breadcrumb a:hover {
  color: var(--accent-light);
}

.banner-breadcrumb span {
  color: rgba(255, 255, 255, 0.3);
}


/* ============================================================
   16. Service Detail Section (services.php)
   ============================================================ */
.services-section {
  padding: 80px 0 100px;
  background: var(--bg-white);
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.service-item {
  display: flex;
  gap: 32px;
  background: var(--bg-white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-item:hover {
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-item-number {
  font-size: 4.5rem;
  font-weight: 900;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.2;
  line-height: 1;
  flex-shrink: 0;
  min-width: 80px;
}

.service-item-content {
  flex: 1;
}

.service-item-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.service-item-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--gradient-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #ffffff;
  flex-shrink: 0;
}

.service-item-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-dark);
}

.service-item-desc {
  font-size: 0.95rem;
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: 20px;
}

.service-item-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
}

.service-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.service-feature i {
  color: #16a34a;
  font-size: 0.85rem;
  flex-shrink: 0;
}


/* ============================================================
   17. FAQ Section
   ============================================================ */
.faq-section {
  padding: 100px 0;
  background: var(--bg-light);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.faq-item.active {
  box-shadow: var(--shadow);
  border-color: rgba(67, 97, 238, 0.15);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  gap: 16px;
  transition: var(--transition);
}

.faq-question:hover {
  background: rgba(67, 97, 238, 0.02);
}

.faq-question h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.5;
}

.faq-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-gray);
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
  background: var(--accent);
  color: #ffffff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding: 0 24px 20px;
  font-size: 0.95rem;
  color: var(--text-gray);
  line-height: 1.8;
}


/* ============================================================
   18. Portfolio Section (portfolio.php)
   ============================================================ */
.portfolio-section {
  padding: 80px 0 100px;
  background: var(--bg-white);
}

.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-gray);
  background: var(--bg-light);
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
}

.filter-btn:hover {
  color: var(--accent);
  background: rgba(67, 97, 238, 0.06);
}

.filter-btn.active {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

.portfolio-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.portfolio-modal.active {
  display: flex;
}

.modal-content {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.35s ease;
}

.modal-header {
  position: relative;
  height: 300px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
}

.modal-body {
  padding: 36px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
  backdrop-filter: blur(8px);
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: rotate(90deg);
}


/* ============================================================
   19. CTA Section
   ============================================================ */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #0f0c29 0%, #1a1a2e 50%, #16213e 100%);
  position: relative;
  overflow: hidden;
}

.cta-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.cta-content {
  text-align: center;
  max-width: 650px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2.8rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 16px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.cta-desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 36px;
  line-height: 1.7;
}


/* ============================================================
   20. Animations
   ============================================================ */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes mouseWheel {
  0% {
    opacity: 1;
    top: 5px;
  }
  100% {
    opacity: 0;
    top: 15px;
  }
}


/* ============================================================
   21. Data Animate (Scroll Reveal)
   ============================================================ */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].animated {
  opacity: 1;
  transform: none;
}


/* ============================================================
   22. Services Full Page (services.php)
   ============================================================ */
.services-full {
  padding: 72px 0;
  background: #0b1020;
}

.services-full .service-full-card {
  background: #141c2f;
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 18px 50px rgba(0,0,0,0.24);
}

.services-full .service-full-name,
.services-full .features-title { color: #fff; }
.services-full .service-full-desc,
.services-full .features-list li { color: rgba(255,255,255,0.66); }

.services-full-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.service-full-card {
  background: var(--bg-white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-full-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-full-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.service-full-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--gradient-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #ffffff;
}

.service-full-badge {
  padding: 5px 14px;
  border-radius: 50px;
  background: rgba(67, 97, 238, 0.08);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.service-full-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.service-full-desc {
  font-size: 0.95rem;
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-features {
  margin-bottom: 24px;
}

.features-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.features-list li i {
  color: #16a34a;
  font-size: 0.82rem;
  flex-shrink: 0;
}

.service-full-btn {
  margin-top: 8px;
}


/* ============================================================
   23. Process Section (services.php & about.php)
   ============================================================ */
.process-section {
  padding: 100px 0;
  background: var(--bg-light);
}

.process-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.process-timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(67, 97, 238, 0.15);
}

.process-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  position: relative;
  padding-bottom: 40px;
}

.process-step:last-child {
  padding-bottom: 0;
}

.step-number {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 50%;
  background: var(--gradient-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.step-content {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 24px 28px;
  flex: 1;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 0.92rem;
  color: var(--text-gray);
  line-height: 1.7;
}


/* ============================================================
   24. About Page (about.php)
   ============================================================ */

/* About Intro */
.about-intro {
  padding: 80px 0 100px;
  background: var(--bg-white);
}

.about-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-intro-text {
  font-size: 1rem;
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.about-stat {
  text-align: center;
  padding: 20px 12px;
  background: var(--bg-light);
  border-radius: var(--radius);
}

.about-stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.2;
  margin-bottom: 4px;
}

.about-stat-label {
  font-size: 0.78rem;
  color: var(--text-gray);
  font-weight: 500;
}

.about-code-editor {
  background: #1e1e3f;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.08);
}


/* ============================================================
   25. Skills Section (about.php)
   ============================================================ */
.skills-section {
  padding: 100px 0;
  background: var(--bg-light);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.skill-category {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: var(--transition);
}

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

.skill-category-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.skill-category-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--gradient-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #ffffff;
  flex-shrink: 0;
}

.skill-category-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.skill-tag {
  padding: 5px 14px;
  border-radius: 50px;
  background: rgba(67, 97, 238, 0.08);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
}

.skill-desc {
  font-size: 0.88rem;
  color: var(--text-gray);
  line-height: 1.7;
}


/* ============================================================
   26. Values Section (about.php)
   ============================================================ */
.values-section {
  padding: 100px 0;
  background: var(--bg-white);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  background: var(--bg-white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.value-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--gradient-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #ffffff;
  margin-bottom: 16px;
}

.value-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.value-desc {
  font-size: 0.9rem;
  color: var(--text-gray);
  line-height: 1.7;
}


/* ============================================================
   27. Contact Methods Section (contact.php)
   ============================================================ */
.contact-methods-section {
  padding: 60px 0 40px;
  background: var(--bg-white);
}

.methods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.method-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 24px;
  background: var(--bg-white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.method-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.method-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #ffffff;
  margin-bottom: 16px;
}

.method-card-icon.kakao {
  background: #fee500;
  color: #3c1e1e;
}

.method-card-icon.telegram {
  background: #0088cc;
}

.method-card-icon.email {
  background: #7c3aed;
}

.method-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.method-card-desc {
  font-size: 0.88rem;
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 16px;
}

.method-card-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
}

.method-card:hover .method-card-action i {
  transform: translateX(4px);
}

.method-card-action i {
  transition: transform 0.3s ease;
}


/* ============================================================
   28. Contact Form Section (contact.php)
   ============================================================ */
.contact-form-section {
  padding: 60px 0 100px;
  background: var(--bg-white);
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: start;
}

.form-header {
  margin-bottom: 28px;
}

.form-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.form-desc {
  font-size: 0.95rem;
  color: var(--text-gray);
}

.contact-form-full {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.contact-form-full .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label i {
  margin-right: 4px;
  color: var(--accent);
  font-size: 0.85rem;
}


/* ============================================================
   29. Contact Sidebar (contact.php)
   ============================================================ */
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  background: var(--bg-white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: var(--transition);
}

.sidebar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.sidebar-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(67, 97, 238, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 1.1rem;
  color: var(--accent);
}

.sidebar-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.sidebar-card p {
  font-size: 0.85rem;
  color: var(--text-gray);
  line-height: 1.6;
}

.sidebar-working-hours {
  background: var(--bg-white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius);
  padding: 24px;
}

.sidebar-working-hours h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.sidebar-working-hours h4 i {
  margin-right: 6px;
  color: var(--accent);
}

.hours-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
}

.hours-row span:first-child {
  color: var(--text-gray);
}

.hours-row span:last-child {
  font-weight: 600;
  color: var(--text-dark);
}

.hours-timezone {
  font-size: 0.78rem;
  color: var(--text-light);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 10px;
}


/* ============================================================
   30. FAQ — Fix selectors to match HTML
   ============================================================ */
.faq-question span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.5;
}

.faq-question i {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-gray);
  font-size: 0.85rem;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
  background: var(--accent);
  color: #ffffff;
}


/* ============================================================
   31. Banner Tag (sub-pages)
   ============================================================ */
.banner-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 50px;
  background: rgba(67, 97, 238, 0.15);
  color: var(--accent-light);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 16px;
  border: 1px solid rgba(67, 97, 238, 0.2);
  letter-spacing: 0.03em;
}

.banner-tag i {
  font-size: 0.78rem;
}

.banner-desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}


/* ============================================================
   32. Working Hours (contact.php - info section)
   ============================================================ */
.working-hours h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.working-hours p {
  font-size: 0.88rem;
  color: var(--text-gray);
}

.working-hours .hours-note {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 2px;
}


/* ============================================================
   33. CTA Card
   ============================================================ */
.cta-card {
  position: relative;
  z-index: 2;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-white {
  background: #ffffff;
  color: var(--text-dark);
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.btn-outline-white {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

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


/* ============================================================
   34. Testimonials Section (homepage)
   ============================================================ */
.testimonials-section {
  padding: 100px 0;
  background: var(--bg-white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: var(--bg-white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: var(--transition);
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
}

.testimonial-stars i {
  color: #fbbf24;
  font-size: 0.9rem;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-text::before {
  content: '"';
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  display: block;
  margin-bottom: 8px;
  font-style: normal;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.testimonial-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.testimonial-info p {
  font-size: 0.82rem;
  color: var(--text-light);
}

.testimonial-project {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  background: rgba(67, 97, 238, 0.06);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  margin-top: 4px;
}


/* ============================================================
   35. Pricing Section (homepage)
   ============================================================ */
.pricing-section {
  padding: 100px 0;
  background: var(--bg-light);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-white);
  border: 2px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

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

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 10px 40px rgba(67, 97, 238, 0.15);
  transform: scale(1.03);
}

.pricing-card.featured:hover {
  transform: scale(1.03) translateY(-8px);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 24px;
  border-radius: 50px;
  background: var(--gradient-1);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pricing-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--gradient-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #ffffff;
  margin: 0 auto 20px;
}

.pricing-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 4px;
  line-height: 1.2;
}

.pricing-price span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-gray);
}

.pricing-period {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 24px;
}

.pricing-features {
  text-align: left;
  margin-bottom: 28px;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 0.9rem;
  color: var(--text-dark);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li i {
  color: #16a34a;
  font-size: 0.82rem;
  flex-shrink: 0;
}

.pricing-features li.disabled {
  color: var(--text-light);
}

.pricing-features li.disabled i {
  color: var(--text-light);
}

.pricing-btn {
  margin-top: auto;
}


/* ============================================================
   36. Scroll Progress Bar
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gradient-1);
  z-index: 10000;
  transition: width 0.1s linear;
}


/* ============================================================
   37. Top Button
   ============================================================ */
.top-btn {
  position: fixed;
  bottom: 24px;
  right: 92px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  z-index: 999;
}

.top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.top-btn:hover {
  background: var(--accent);
  transform: translateY(-3px);
}


/* ============================================================
   38. Logo Styles
   ============================================================ */
.nav-logo,
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon i {
  font-size: 1.4rem;
  color: var(--accent);
}

.nav-logo .logo-icon i {
  color: #ffffff;
}

.navbar.scrolled .nav-logo .logo-icon i {
  color: var(--accent);
}

.footer-logo .logo-icon i {
  color: var(--accent-light);
}


/* ============================================================
   39. Chat Badge
   ============================================================ */
.chat-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}


/* ============================================================
   40. Portfolio View Icon
   ============================================================ */
.portfolio-view-icon {
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}


/* ============================================================
   41. Responsive — Tablet (max-width: 1024px)
   ============================================================ */
@media (max-width: 1024px) {

  /* Section titles */
  .section-title {
    font-size: 2rem;
  }

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

  /* Navbar */
  .nav-hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #12182a;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    padding: 60px 30px 30px;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.25);
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1000;
  }

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

  .nav-link {
    color: #f1f5f9 !important;
    font-size: 1.05rem;
    padding: 14px 0;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

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

  .nav-link:hover {
    color: #93c5fd !important;
  }

  .nav-link.active {
    color: #93c5fd !important;
  }

  .nav-cta {
    margin-top: 20px;
    text-align: center;
    display: block;
  }

  /* Hero */
  .hero-container {
    flex-direction: column;
    text-align: center;
    padding: 140px 20px 100px;
    gap: 40px;
  }

  .hero-content {
    max-width: 100%;
  }

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

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    max-width: 480px;
  }

  /* Advantages */
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Services */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Portfolio */
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-info {
    padding-right: 0;
  }

  /* Service detail */
  .service-item {
    padding: 30px;
  }

  .service-item-features {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    padding-right: 0;
  }

  /* Chat widget */
  .chat-panel {
    width: 340px;
  }

  /* Page banner */
  .banner-title {
    font-size: 2.4rem;
  }

  /* CTA */
  .cta-title {
    font-size: 2.2rem;
  }

  /* Services full */
  .services-full-grid {
    grid-template-columns: 1fr;
  }

  /* About */
  .about-intro-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-intro-visual {
    order: -1;
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Skills */
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Values */
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Testimonials */
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Pricing */
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-card.featured {
    transform: none;
  }

  .pricing-card.featured:hover {
    transform: translateY(-8px);
  }

  /* Contact methods */
  .methods-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Contact form */
  .contact-form-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  /* Process */
  .process-timeline::before {
    left: 28px;
  }
}


/* ============================================================
   42. Responsive — Mobile (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {

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

  .section-desc {
    font-size: 1rem;
  }

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

  /* Portfolio Grid */
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* Hero */
  .hero-title {
    font-size: 2.4rem;
  }

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

  .hero-desc {
    font-size: 1rem;
  }

  .hero-container {
    padding: 120px 20px 80px;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 16px;
  }

  .stat-divider {
    display: none;
  }

  .stat-item {
    padding: 0 16px;
  }

  .stat-number {
    font-size: 1.6rem;
  }

  /* Hide code editor on mobile */
  .hero-visual {
    display: none;
  }

  /* Scroll indicator */
  .hero-scroll-indicator {
    display: none;
  }

  /* Advantages */
  .advantages {
    padding: 70px 0;
  }

  .advantages-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .advantage-card {
    padding: 28px 24px;
  }

  .advantage-number {
    font-size: 3rem;
  }

  /* Services preview */
  .services-preview {
    padding: 70px 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-card {
    padding: 28px 24px;
  }

  /* Portfolio preview */
  .portfolio-preview {
    padding: 70px 0;
  }

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

  .portfolio-image {
    height: 200px;
  }

  /* Contact */
  .contact-section {
    padding: 70px 0;
  }

  .contact-form-wrapper {
    padding: 28px;
  }

  .info-title {
    font-size: 1.5rem;
  }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-links {
    padding-bottom: 8px;
  }

  .footer-bottom-content {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  /* Chat widget — 온라인 상담은 TG 위 */
  .chat-widget {
    bottom: 96px !important;
    right: 16px !important;
  }

  .consult-widget {
    bottom: 24px !important;
    right: 16px !important;
  }

  .chat-toggle {
    width: 52px;
    height: 52px;
    font-size: 1.2rem;
  }

  .chat-panel {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 70px;
    bottom: 168px;
    width: auto;
    height: auto;
    max-height: none;
  }

  .chat-body {
    max-height: none;
    min-height: 0;
  }

  /* Page banner */
  .page-banner {
    min-height: 240px;
  }

  .banner-container {
    padding: 100px 20px 50px;
  }

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

  .banner-subtitle {
    font-size: 0.95rem;
  }

  /* Service detail */
  .services-section {
    padding: 60px 0 80px;
  }

  .service-item {
    flex-direction: column;
    gap: 16px;
    padding: 24px;
  }

  .service-item-number {
    font-size: 3rem;
    min-width: auto;
  }

  .service-item-title {
    font-size: 1.15rem;
  }

  /* FAQ */
  .faq-section {
    padding: 70px 0;
  }

  .faq-question {
    padding: 16px 20px;
  }

  .faq-question span {
    font-size: 0.92rem;
  }

  .faq-answer p {
    padding: 0 20px 16px;
    font-size: 0.9rem;
  }

  /* Portfolio section */
  .portfolio-section {
    padding: 60px 0 80px;
  }

  .portfolio-full-image {
    height: 200px;
  }

  .filter-tabs {
    margin-bottom: 32px;
    gap: 8px;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 0.82rem;
  }

  /* Modal */
  .modal-header {
    height: 200px;
  }

  .modal-body {
    padding: 24px;
  }

  /* CTA */
  .cta-section {
    padding: 70px 0;
  }

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

  /* About */
  .about-intro {
    padding: 60px 0 80px;
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* Skills */
  .skills-section {
    padding: 70px 0;
  }

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

  /* Values */
  .values-section {
    padding: 70px 0;
  }

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

  /* Testimonials */
  .testimonials-section {
    padding: 70px 0;
  }

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

  /* Pricing */
  .pricing-section {
    padding: 70px 0;
  }

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

  .pricing-card.featured {
    transform: none;
  }

  /* Contact methods */
  .methods-grid {
    grid-template-columns: 1fr;
  }

  /* Form row */
  .form-row {
    grid-template-columns: 1fr;
  }

  /* Process */
  .process-timeline::before {
    left: 24px;
  }

  .step-number {
    width: 48px;
    height: 48px;
    min-width: 48px;
    font-size: 0.88rem;
  }

  .process-step {
    gap: 16px;
    padding-bottom: 28px;
  }

  .step-content {
    padding: 18px 20px;
  }

  /* Top button */
  .top-btn {
    right: 72px;
    bottom: 16px;
    width: 38px;
    height: 38px;
    font-size: 0.8rem;
  }
}


/* ============================================================
   43. Responsive — Small Mobile (max-width: 480px)
   ============================================================ */
@media (max-width: 480px) {

  /* Global */
  .container,
  .section-container {
    padding: 0 16px;
  }

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

  .btn-lg {
    padding: 14px 28px;
    font-size: 0.95rem;
  }

  /* Navbar */
  .nav-container {
    padding: 0 16px;
  }

  .nav-logo a {
    font-size: 1.3rem;
  }

  .nav-menu {
    width: 100%;
  }

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

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

  .hero-desc {
    font-size: 0.92rem;
  }

  .hero-container {
    padding: 100px 16px 60px;
  }

  .hero-badge {
    font-size: 0.78rem;
    padding: 6px 14px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    text-align: center;
    justify-content: center;
  }

  .hero-stats {
    gap: 12px;
  }

  .stat-item {
    padding: 0 12px;
    min-width: 80px;
  }

  .stat-number {
    font-size: 1.4rem;
  }

  .stat-label {
    font-size: 0.78rem;
  }

  /* Advantages */
  .advantage-card {
    padding: 24px 20px;
  }

  .advantage-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .advantage-title {
    font-size: 1.05rem;
  }

  .advantage-desc {
    font-size: 0.88rem;
  }

  /* Services */
  .service-card {
    padding: 24px 20px;
  }

  .service-icon {
    font-size: 2rem;
  }

  .service-name {
    font-size: 1.05rem;
  }

  .service-desc {
    font-size: 0.88rem;
  }

  /* Portfolio */
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .portfolio-image,
  .portfolio-full-image {
    height: 180px;
  }

  .portfolio-info,
  .portfolio-full-info {
    padding: 18px;
  }

  .portfolio-name,
  .portfolio-full-name {
    font-size: 1.05rem;
  }

  .portfolio-desc,
  .portfolio-full-desc {
    font-size: 0.85rem;
  }

  .tech-tag {
    font-size: 0.72rem;
    padding: 3px 10px;
  }

  /* Contact */
  .contact-form-wrapper {
    padding: 22px;
  }

  .form-input,
  .form-select,
  .form-textarea {
    padding: 10px 14px;
    font-size: 0.9rem;
  }

  .method-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .contact-method {
    padding: 14px 16px;
  }

  /* Footer */
  .footer-container {
    padding: 0 16px;
  }

  .footer-top {
    padding: 40px 0 30px;
  }

  .footer-social a {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }

  /* Chat — 모바일 화면 맞춤 */
  .chat-panel {
    position: fixed;
    left: 10px;
    right: 10px;
    top: 64px;
    bottom: 160px;
    width: auto;
    height: auto;
    max-height: none;
  }

  .chat-header {
    padding: 12px 16px;
  }

  .chat-body {
    padding: 16px;
    max-height: none;
    min-height: 0;
  }

  .chat-footer {
    padding: 12px;
  }

  .quick-action {
    font-size: 0.75rem;
    padding: 5px 12px;
  }

  /* Page banner */
  .banner-container {
    padding: 90px 16px 40px;
  }

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

  /* Service detail */
  .service-item {
    padding: 20px;
  }

  .service-item-header {
    gap: 12px;
  }

  .service-item-icon {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }

  /* FAQ */
  .faq-question span {
    font-size: 0.88rem;
  }

  .faq-question i {
    width: 28px;
    height: 28px;
    min-width: 28px;
    font-size: 0.78rem;
  }

  /* CTA */
  .cta-title {
    font-size: 1.5rem;
  }

  .cta-desc {
    font-size: 0.92rem;
    margin-bottom: 28px;
  }

  /* Testimonials */
  .testimonial-card {
    padding: 24px 20px;
  }

  /* Pricing */
  .pricing-card {
    padding: 32px 24px;
  }

  .pricing-price {
    font-size: 1.8rem;
  }

  /* About */
  .about-code-editor {
    display: none;
  }

  .about-stat-number {
    font-size: 1.5rem;
  }

  .about-stat-label {
    font-size: 0.72rem;
  }

  /* Services full */
  .service-full-card {
    padding: 28px;
  }
}


/* ============================================================
   25. Utility Classes
   ============================================================ */
.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.no-scroll {
  overflow: hidden;
}


/* ============================================================
   26. Scrollbar Customization
   ============================================================ */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--text-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-gray);
}


/* ============================================================
   27. Selection Highlight
   ============================================================ */
::selection {
  background: rgba(67, 97, 238, 0.2);
  color: var(--text-dark);
}
