/* ============================================
   INTRIUM - Portfolio Website Styles
   Light Theme
   ============================================ */

/* CSS Variables */
:root {
  --color-bg: #ffffff;
  --color-bg-secondary: #f8f9fa;
  --color-bg-tertiary: #f1f3f5;
  --color-surface: #ffffff;
  --color-surface-hover: #f8f9fa;
  --color-border: #e9ecef;
  --color-border-light: #dee2e6;

  --color-text: #212529;
  --color-text-secondary: #495057;
  --color-text-muted: #868e96;

  --color-primary: #6366f1;
  --color-primary-light: #818cf8;
  --color-primary-dark: #4f46e5;

  --color-accent: #06b6d4;
  --color-accent-secondary: #ec4899;

  --color-success: #10b981;
  --color-warning: #f59e0b;

  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
  --gradient-accent: linear-gradient(135deg, #06b6d4 0%, #6366f1 100%);

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);

  --font-sans: 'Inter', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --container-max: 1200px;
  --header-height: 72px;
}

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 40px;
  }
}

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  width: 100%;
  padding: 0 40px;
}

.nav-logo img {
  height: 20px;
  width: auto;
}

.nav-menu {
  display: none;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out-expo), opacity 0.3s;
}

.nav-toggle.active span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle.active span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

@media (min-width: 768px) {
  .nav-menu {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }
}

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: var(--color-bg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.mobile-nav.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  padding: 40px 24px;
  gap: 8px;
}

.mobile-nav-link {
  display: block;
  font-size: 20px;
  font-weight: 600;
  padding: 16px 0;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  transition: color 0.2s, padding-left 0.3s;
}

.mobile-nav-link:hover {
  color: var(--color-primary);
  padding-left: 8px;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99,102,241,0.15) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(6,182,212,0.1) 0%, transparent 50%),
    radial-gradient(ellipse 50% 30% at 20% 80%, rgba(236,72,153,0.08) 0%, transparent 50%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--color-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 70%);
}

/* Hero Floating Shapes */
.hero-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
}

.hero-shape-1 {
  width: 120px;
  height: 120px;
  top: 20%;
  left: 10%;
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(139,92,246,0.1));
  animation: heroFloat1 15s ease-in-out infinite;
}

.hero-shape-2 {
  width: 80px;
  height: 80px;
  top: 60%;
  right: 15%;
  background: linear-gradient(135deg, rgba(6,182,212,0.12), rgba(99,102,241,0.08));
  animation: heroFloat2 18s ease-in-out infinite;
}

.hero-shape-3 {
  width: 60px;
  height: 60px;
  bottom: 25%;
  left: 20%;
  background: linear-gradient(135deg, rgba(236,72,153,0.1), rgba(168,85,247,0.08));
  animation: heroFloat3 12s ease-in-out infinite;
}

@keyframes heroFloat1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -40px) rotate(120deg); }
  66% { transform: translate(-20px, 20px) rotate(240deg); }
}

@keyframes heroFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 30px) scale(1.1); }
}

@keyframes heroFloat3 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(40px, -20px) rotate(180deg); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 24px;
  padding-top: var(--header-height);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
}

.tag-dot {
  width: 8px;
  height: 8px;
  background: var(--color-success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-title {
  font-size: clamp(36px, 8vw, 64px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.title-line {
  display: block;
}

.title-accent {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 18px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

@media (min-width: 480px) {
  .hero-actions {
    flex-direction: row;
    justify-content: center;
  }
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: var(--gradient-primary);
  color: white;
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: transparent;
  color: var(--color-text);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  transition: background 0.2s, border-color 0.2s;
}

.btn-ghost:hover {
  background: var(--color-bg-secondary);
  border-color: var(--color-border-light);
}

/* Contact Modal */
.contact-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

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

.contact-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(2px);
}

.contact-modal-dialog {
  position: relative;
  width: min(680px, 92vw);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--color-surface);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border-light);
  z-index: 1;
}

.contact-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-bg-tertiary);
  color: var(--color-text-secondary);
  font-size: 20px;
  line-height: 1;
}

.contact-modal-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-modal-desc {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

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

.contact-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text-secondary);
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--color-text);
  background: var(--color-surface);
}

.contact-field textarea {
  resize: vertical;
}

.contact-dropzone {
  border: 1.5px dashed var(--color-border);
  border-radius: 12px;
  padding: 16px;
  background: var(--color-bg-secondary);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.contact-dropzone:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.contact-dropzone.dragover {
  border-color: var(--color-primary);
  background: rgba(99, 102, 241, 0.08);
}

.contact-dropzone-text {
  font-size: 13px;
  color: var(--color-text-secondary);
}

.contact-file-input {
  display: none;
}

.contact-required {
  color: var(--color-primary);
  margin-left: 4px;
}

.contact-file-name {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--color-text-muted);
}

.contact-consent {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-secondary);
}

.contact-status {
  min-height: 20px;
  font-size: 13px;
  color: var(--color-text-secondary);
}

.contact-status.success {
  color: var(--color-success);
}

.contact-status.error {
  color: #ef4444;
}

.contact-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}

.contact-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.contact-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 12px);
  max-width: min(360px, 90vw);
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--color-text);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 3001;
}

.contact-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.contact-toast.success {
  background: #0f766e;
}

.contact-toast.error {
  background: #b91c1c;
}

.contact-toast.loading {
  background: #1f2937;
}

.contact-toast.loading::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  animation: contactSpin 0.9s linear infinite;
  vertical-align: -2px;
}

@keyframes contactSpin {
  to {
    transform: rotate(360deg);
  }
}

/* Hero Scroll */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-text-muted), transparent);
  animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================
   Section Styles
   ============================================ */
section {
  padding: 100px 0;
}

@media (min-width: 768px) {
  section {
    padding: 120px 0;
  }
}

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-header {
  margin-bottom: 48px;
}

.section-header.center {
  text-align: center;
}

/* ============================================
   Decorative Elements
   ============================================ */
.section-decor {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* Decorative Circles */
.decor-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
}

.decor-circle-1 {
  width: 400px;
  height: 400px;
  top: -100px;
  right: -100px;
  background: radial-gradient(circle, rgba(99,102,241,0.08) 0%, transparent 70%);
  animation: float 20s ease-in-out infinite;
}

.decor-circle-2 {
  width: 300px;
  height: 300px;
  bottom: -50px;
  left: -50px;
  background: radial-gradient(circle, rgba(6,182,212,0.06) 0%, transparent 70%);
  animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(20px, -20px) scale(1.05); }
  50% { transform: translate(0, -30px) scale(1); }
  75% { transform: translate(-20px, -10px) scale(0.95); }
}

/* Decorative Lines */
.decor-line {
  position: absolute;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
  height: 1px;
}

.decor-line-1 {
  width: 60%;
  top: 30%;
  left: 20%;
  transform: rotate(-5deg);
  opacity: 0.3;
}

/* Decorative Dots Pattern */
.decor-dots {
  position: absolute;
  width: 200px;
  height: 200px;
  top: 10%;
  right: 5%;
  background-image: radial-gradient(var(--color-border) 1.5px, transparent 1.5px);
  background-size: 20px 20px;
  opacity: 0.5;
}

/* Decorative Gradients */
.decor-gradient {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.decor-gradient-1 {
  width: 500px;
  height: 500px;
  bottom: -200px;
  left: -100px;
  background: rgba(99,102,241,0.08);
}

/* Decorative Rings */
.decor-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--color-border);
}

.decor-ring-1 {
  width: 300px;
  height: 300px;
  top: 10%;
  right: -100px;
  opacity: 0.3;
  animation: rotate 60s linear infinite;
}

.decor-ring-2 {
  width: 200px;
  height: 200px;
  bottom: 20%;
  left: -50px;
  opacity: 0.2;
  animation: rotate 45s linear infinite reverse;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ============================================
   About Section
   ============================================ */
.about {
  position: relative;
  background: var(--color-bg);
  overflow: hidden;
}

.about-intro {
  max-width: 700px;
  margin-bottom: 60px;
}

.about-title {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-desc {
  font-size: 17px;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 28px;
}

.about-award-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--color-bg-tertiary);
  border-radius: 100px;
  color: var(--color-text-secondary);
  font-size: 14px;
}

.about-award-inline svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

.about-award-inline em {
  font-style: normal;
  color: var(--color-text-muted);
  margin-left: 4px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr 2fr;
    gap: 20px;
  }
}

.about-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  text-align: center;
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}

.about-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out-expo);
}

.about-stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(99,102,241,0.12);
  border-color: var(--color-primary-light);
}

.about-stat-card:hover::before {
  transform: scaleX(1);
}

.stat-number {
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: var(--color-text-muted);
}

.about-process-card {
  grid-column: span 2;
  padding: 32px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
}

@media (min-width: 768px) {
  .about-process-card {
    grid-column: auto;
  }
}

.process-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.process-flow {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 768px) {
  .process-flow {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.flow-step {
  font-size: 14px;
  color: var(--color-text);
}

.flow-step span {
  font-weight: 700;
  color: var(--color-primary);
  margin-right: 8px;
}

/* ============================================
   Services Section
   ============================================ */
.services-list {
  display: flex;
  flex-direction: column;
}

.service-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid var(--color-border);
  transition: padding 0.3s, background 0.3s;
  position: relative;
}

.service-row::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.4s var(--ease-out-expo);
}

.service-row:hover::before {
  width: 100%;
}

.service-row:first-child {
  border-top: 1px solid var(--color-border);
}

.service-row:hover {
  padding-left: 16px;
  background: linear-gradient(90deg, rgba(99,102,241,0.02) 0%, transparent 50%);
}

@media (min-width: 768px) {
  .service-row {
    grid-template-columns: 60px 1fr auto;
    gap: 40px;
  }
}

.service-num {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
  font-family: 'Inter', monospace;
}

.service-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.service-name {
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 700;
  transition: color 0.2s;
}

.service-row:hover .service-name {
  color: var(--color-primary);
}

.service-detail {
  font-size: 14px;
  color: var(--color-text-muted);
}

.service-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

@media (min-width: 768px) {
  .service-techs {
    margin-top: 0;
  }
}

.service-techs span {
  padding: 6px 14px;
  background: var(--color-bg-tertiary);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.services {
  position: relative;
  overflow: hidden;
  background: var(--color-bg);
}

/* ============================================
   Projects Section - Horizontal Cards
   ============================================ */
.projects {
  position: relative;
  background: var(--color-bg);
  overflow: hidden;
}

.projects-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.projects-gradient {
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(99,102,241,0.04) 0%, transparent 60%);
}

.section-desc {
  font-size: 16px;
  color: var(--color-text-muted);
  margin-top: 8px;
}

/* Projects Grid - Horizontal Cards */
.projects-table {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Project Card - Horizontal */
.project-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s var(--ease-out-expo);
}

@media (min-width: 768px) {
  .project-card {
    flex-direction: row;
    align-items: stretch;
  }
}

.project-card:hover {
  border-color: var(--color-primary-light);
  box-shadow: 0 12px 40px rgba(99,102,241,0.1);
  transform: translateY(-4px);
}

/* Project Logo Area */
.project-logo-area {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  min-height: 100px;
}

@media (min-width: 768px) {
  .project-logo-area {
    width: 160px;
    min-width: 160px;
    min-height: auto;
    padding: 16px;
  }
}

.project-logo {
  width: 120px;
  height: 80px;
  object-fit: contain;
  transition: transform 0.3s;
}

.project-card:hover .project-logo {
  transform: scale(1.05);
}

/* Project Content */
.project-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
  padding-left: 12px;
  gap: 12px;
}

@media (min-width: 768px) {
  .project-content {
    padding: 24px 28px 24px 16px;
    gap: 14px;
  }
}

/* Project Header */
.project-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.project-categories {
  display: flex;
  gap: 4px;
}

.project-category {
  display: inline-flex;
  padding: 4px 8px;
  background: var(--color-primary);
  color: white;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 4px;
}

.project-year {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
}

.project-client {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.project-header-divider {
  width: 1px;
  height: 14px;
  background: var(--color-border);
}

/* Project Title */
.project-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.4;
  transition: color 0.3s;
}

@media (min-width: 768px) {
  .project-title {
    font-size: 20px;
  }
}

.project-card:hover .project-title {
  color: var(--color-primary);
}

/* Project Description */
.project-desc {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* Project Footer */
.project-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

/* Project Stack */
.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-stack span {
  padding: 4px 10px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: all 0.3s;
}

.project-card:hover .project-stack span {
  border-color: var(--color-primary-light);
  color: var(--color-primary);
}

/* Load More Button */
.projects-more {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.load-more-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s;
}

.load-more-btn span,
.load-more-btn svg {
  position: relative;
  z-index: 1;
}

.load-more-btn:hover {
  border-color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(99,102,241,0.2);
}

.load-more-btn:hover::before {
  opacity: 0.05;
}

.load-more-btn svg {
  transition: transform 0.3s;
}

.load-more-btn:hover svg {
  transform: translateY(3px);
}

.load-more-btn.hidden {
  display: none;
}

/* ============================================
   Clients Section
   ============================================ */
.clients {
  overflow: hidden;
  padding: 0;
  margin-top: -40px;
}

.clients-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 24px 0;
  mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
}

.marquee-track {
  display: flex;
  gap: 80px;
  width: max-content;
  animation: marquee 25s linear infinite;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 40px));
  }
}

.client-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 60px;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.client-item:hover {
  opacity: 1;
}

.client-item img {
  height: 44px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

/* ============================================
   Tech Stack Section
   ============================================ */
.tech {
  position: relative;
  background: var(--color-bg);
  overflow: hidden;
}

.tech-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tech-group {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 28px;
}

.tech-group-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.tech-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 12px;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  background: var(--color-bg-secondary);
  border-radius: 12px;
  transition: transform 0.3s var(--ease-out-expo), background 0.2s, box-shadow 0.3s;
  position: relative;
}

.tech-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
}

.tech-item:hover {
  transform: translateY(-6px) scale(1.05);
  background: var(--color-surface);
  box-shadow: 0 12px 30px rgba(99,102,241,0.15);
}

.tech-item:hover::before {
  opacity: 0.05;
}

.tech-item img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.tech-item span {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-align: center;
}

/* ============================================
   FAQ Section
   ============================================ */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  transition: color 0.2s;
}

.faq-question::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--color-text-muted);
  transition: transform 0.3s, color 0.2s;
}

.faq-item.open .faq-question::after {
  content: '−';
  color: var(--color-primary);
}

.faq-item:hover .faq-question::after {
  color: var(--color-primary);
}

.faq-question-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  transition: color 0.2s;
  padding-right: 24px;
}

.faq-item:hover .faq-question-text {
  color: var(--color-primary);
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.faq-item.open .faq-panel {
  grid-template-rows: 1fr;
}

.faq-answer {
  overflow: hidden;
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

.faq-item.open .faq-answer {
  padding-bottom: 24px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: 48px 0 32px;
}

.footer-inner {
  margin-bottom: 32px;
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-logo {
  height: 28px;
}

.footer-desc {
  font-size: 14px;
  color: var(--color-text-muted);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ============================================
   Floating Buttons
   ============================================ */
.floating {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.floating-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 40%;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.floating-btn:hover {
  animation: none;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.floating-kmong {
  background: #90f770;
  animation-delay: 0s;
}

.floating-kakao {
  animation-delay: -1.5s;
  background: #fee500;
}

.floating-btn img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.floating-btn .kmong-logo {
  width: 48px;
  height: auto;
}

/* ============================================
   Scroll Animations
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

.stagger-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
  .container {
    padding: 0 24px;
  }

  section {
    padding: 80px 0;
  }

  .hero-title {
    font-size: clamp(32px, 7vw, 52px);
  }

  .about-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-process-card {
    grid-column: span 2;
  }

  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .nav-inner {
    padding: 0 20px;
  }

  section {
    padding: 40px 0;
  }

  .section-label {
    font-size: 11px;
  }

  .section-title {
    font-size: 20px;
  }

  .hero {
    min-height: 80vh;
  }

  .hero-content {
    padding: 0 20px;
    padding-top: var(--header-height);
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-desc {
    font-size: 14px;
  }

  .hero-scroll {
    display: none;
  }

  .hero-tag {
    font-size: 11px;
    padding: 6px 12px;
  }

  /* About */
  .about-title {
    font-size: 20px;
  }

  .about-desc {
    font-size: 14px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .about-stat-card {
    padding: 20px 16px;
  }

  .stat-number {
    font-size: 28px;
  }

  .stat-label {
    font-size: 12px;
  }

  .about-process-card {
    grid-column: auto;
    padding: 20px 16px;
  }

  .process-label {
    font-size: 10px;
  }

  .flow-step {
    font-size: 12px;
    padding: 8px 12px;
  }

  .about-award-inline {
    font-size: 11px;
    padding: 8px 12px;
  }

  /* Services */
  .service-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px 0;
  }

  .service-num {
    font-size: 10px;
  }

  .service-name {
    font-size: 15px;
  }

  .service-detail {
    font-size: 12px;
  }

  .service-techs {
    margin-top: 6px;
  }

  .service-techs span {
    font-size: 10px;
    padding: 3px 8px;
  }

  /* Projects */
  .projects-grid {
    gap: 12px;
  }

  .project-card {
    border-radius: 10px;
  }

  .project-logo-area {
    padding: 20px;
    min-height: auto;
  }

  .project-logo {
    width: 100px;
    height: 60px;
  }

  .project-content {
    padding: 16px 20px 20px;
    gap: 8px;
  }

  .project-header {
    gap: 6px;
  }

  .project-category {
    font-size: 9px;
    padding: 3px 6px;
  }

  .project-year, .project-client {
    font-size: 10px;
  }

  .project-title {
    font-size: 14px;
  }

  .project-desc {
    font-size: 12px;
  }

  .project-stack {
    gap: 4px;
  }

  .project-stack span {
    font-size: 9px;
    padding: 2px 6px;
  }

  .load-more-btn {
    padding: 12px 20px;
    font-size: 13px;
  }

  /* Clients */
  .client-item {
    width: 100px;
  }

  .client-item img {
    height: 32px;
  }

  .marquee-track {
    gap: 60px;
  }

  /* Tech */
  .tech-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tech-group {
    padding: 16px;
  }

  .tech-group-title {
    font-size: 13px;
    margin-bottom: 12px;
  }

  .tech-item {
    padding: 10px 6px;
  }

  .tech-item img {
    width: 24px;
    height: 24px;
  }

  .tech-item span {
    font-size: 10px;
  }

  /* FAQ */
  .faq-question {
    padding: 16px 0;
  }

  .faq-question-text {
    font-size: 14px;
    padding-right: 12px;
  }

  .faq-question::after {
    font-size: 18px;
  }

  .faq-answer {
    font-size: 13px;
  }

  /* Footer */
  .footer {
    padding: 32px 0 20px;
  }

  .footer-copyright {
    font-size: 11px;
  }

  /* Floating */
  .floating {
    bottom: 16px;
    right: 16px;
    gap: 8px;
  }

  .floating-btn {
    width: 46px;
    height: 46px;
    border-radius: 40%;
  }

  .floating-btn img {
    width: 28px;
    height: 28px;
  }

  .floating-btn .kmong-logo {
    width: 34px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .nav-inner {
    padding: 0 16px;
  }

  section {
    padding: 32px 0;
  }

  .section-title {
    font-size: 18px;
  }

  .hero-content {
    padding: 0 16px;
    padding-top: var(--header-height);
  }

  .hero-tag {
    font-size: 10px;
    padding: 5px 10px;
  }

  .hero-title {
    font-size: 22px;
  }

  .hero-desc {
    font-size: 13px;
  }

  .about-title {
    font-size: 18px;
  }

  .about-award-inline {
    font-size: 10px;
    padding: 6px 10px;
  }

  .stat-number {
    font-size: 24px;
  }

  .project-logo-area {
    padding: 20px 16px;
  }

  .project-logo {
    width: 80px;
    height: 50px;
  }

  .project-content {
    padding: 14px 16px 18px;
  }

  .project-header {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .project-header-divider {
    display: none;
  }

  .project-title {
    font-size: 13px;
  }

  .project-desc {
    font-size: 11px;
  }

  .floating-btn {
    width: 42px;
    height: 42px;
  }

  .floating-btn img {
    width: 24px;
    height: 24px;
  }

  .floating-btn .kmong-logo {
    width: 30px;
  }
}
