@font-face {
  font-family: 'LogoFont';
  src: local('Pretendard'), local('Apple SD Gothic Neo'), local('Malgun Gothic');
}

:root {
  --navy-deep: #060e2e;
  --navy: #0d1b5e;
  --navy-mid: #1a237e;
  --cyan: #00bcd4;
  --cyan-light: #4dd0e1;
  --cyan-pale: #b2ebf2;
  --white: #f0f4f8;
  --white-pure: #ffffff;
  --gray-100: #e8ecf1;
  --gray-200: #c5cdd8;
  --gray-400: #7a8599;
  --gray-600: #4a5568;
  --text-dark: #1a202c;
  --accent: #00e5ff;
  --gold: #ffd54f;
}

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

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

body {
  font-family: 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

nav.scrolled {
  background: rgba(6, 14, 46, 0.92);
  backdrop-filter: blur(20px);
  padding: 0.75rem 3rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--white-pure);
  text-decoration: none;
}

.nav-logo span:first-child { color: var(--cyan-light); }
.nav-logo span:last-child { color: var(--white-pure); }

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cyan);
  transition: width 0.3s;
}

.nav-links a:hover { color: var(--white-pure); }
.nav-links a:hover::after { width: 100%; }

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  margin: 5px 0;
  transition: 0.3s;
}

/* ═══════════════════════════════════════
   HERO
   ═══════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(170deg, var(--navy-deep) 0%, var(--navy) 30%, var(--navy-mid) 60%, #1565c0 85%, var(--cyan) 100%);
  overflow: hidden;
}

.hero-wave-1, .hero-wave-2, .hero-wave-3 {
  position: absolute;
  width: 200%;
  height: 100%;
  left: -50%;
  opacity: 0.08;
}

.hero-wave-1 {
  top: 10%;
  background: radial-gradient(ellipse 80% 50% at 30% 50%, var(--cyan) 0%, transparent 70%);
  animation: waveFloat1 12s ease-in-out infinite;
}

.hero-wave-2 {
  top: 30%;
  background: radial-gradient(ellipse 60% 40% at 70% 50%, var(--accent) 0%, transparent 60%);
  animation: waveFloat2 15s ease-in-out infinite;
  opacity: 0.06;
}

.hero-wave-3 {
  bottom: 0;
  background: radial-gradient(ellipse 90% 60% at 50% 80%, var(--cyan-light) 0%, transparent 70%);
  animation: waveFloat3 10s ease-in-out infinite;
  opacity: 0.1;
}

@keyframes waveFloat1 {
  0%, 100% { transform: translateX(-5%) translateY(0) rotate(-2deg); }
  50% { transform: translateX(5%) translateY(-20px) rotate(2deg); }
}

@keyframes waveFloat2 {
  0%, 100% { transform: translateX(3%) translateY(0) rotate(1deg); }
  50% { transform: translateX(-3%) translateY(15px) rotate(-1deg); }
}

@keyframes waveFloat3 {
  0%, 100% { transform: translateX(-2%) scale(1); }
  50% { transform: translateX(2%) scale(1.05); }
}

/* Wave SVG bottom */
.hero-wave-bottom {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  z-index: 2;
}

.hero-wave-bottom svg {
  display: block;
  width: 100%;
  height: auto;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 0 2rem;
}

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--cyan-light);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.3s forwards;
  font-weight: 600;
}

.hero-logo-text {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.5s forwards;
}

.hero-logo-text .neoul { color: var(--cyan-light); }
.hero-logo-text .soft { color: var(--white-pure); }

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.35rem);
  color: rgba(255,255,255,0.7);
  font-weight: 300;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.7s forwards;
}

.hero-tagline-kr {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  color: rgba(255,255,255,0.45);
  font-weight: 400;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.9s forwards;
}

.hero-cta {
  display: inline-flex;
  gap: 1rem;
  opacity: 0;
  animation: fadeUp 0.8s 1.1s forwards;
}

.btn-primary {
  padding: 0.9rem 2.5rem;
  background: linear-gradient(135deg, var(--cyan), #0097a7);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
  letter-spacing: 0.03em;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 188, 212, 0.4);
}

.btn-outline {
  padding: 0.9rem 2.5rem;
  background: transparent;
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-outline:hover {
  border-color: var(--cyan-light);
  color: var(--cyan-light);
  background: rgba(0, 188, 212, 0.08);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  opacity: 0;
  animation: fadeUp 0.8s 1.5s forwards;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--cyan-light), transparent);
  margin: 0 auto;
  animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

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

/* ═══════════════════════════════════════
   SECTION BASE
   ═══════════════════════════════════════ */
section {
  padding: 7rem 3rem;
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--gray-600);
  line-height: 1.8;
  max-width: 600px;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ═══════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════ */
.about {
  background: var(--white);
  position: relative;
}

.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

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

.stat-card {
  background: var(--white-pure);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid var(--gray-100);
  transition: all 0.3s;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(13, 27, 94, 0.08);
  border-color: var(--cyan-pale);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--navy-mid), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-top: 0.5rem;
  font-weight: 500;
}

/* ═══════════════════════════════════════
   BUSINESS AREAS
   ═══════════════════════════════════════ */
.business {
  background: var(--navy-deep);
  position: relative;
  overflow: hidden;
}

.business::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background:
    radial-gradient(ellipse 50% 50% at 20% 20%, rgba(0,188,212,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(26,35,126,0.15) 0%, transparent 70%);
}

.business .section-label { color: var(--cyan-light); }
.business .section-title { color: var(--white-pure); }
.business .section-desc { color: rgba(255,255,255,0.5); }

.business-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.biz-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 2.5rem;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}

.biz-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--navy-mid));
  opacity: 0;
  transition: opacity 0.4s;
}

.biz-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(0,188,212,0.2);
  transform: translateY(-6px);
}

.biz-card:hover::before { opacity: 1; }

.biz-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0,188,212,0.15), rgba(26,35,126,0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.biz-card h3 {
  color: var(--white-pure);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.biz-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.biz-card li {
  color: rgba(255,255,255,0.5);
  font-size: 0.88rem;
  padding-left: 1rem;
  position: relative;
}

.biz-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan);
}

/* ═══════════════════════════════════════
   PRODUCTS (NSKit)
   ═══════════════════════════════════════ */
.products {
  background: linear-gradient(180deg, var(--white) 0%, var(--gray-100) 100%);
}

.products-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.product-showcase {
  margin-top: 4rem;
  background: var(--white-pure);
  border-radius: 24px;
  border: 1px solid var(--gray-100);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: 0 20px 60px rgba(13, 27, 94, 0.06);
}

.product-info {
  padding: 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(0,188,212,0.1), rgba(26,35,126,0.05));
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cyan);
  width: fit-content;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.product-info h3 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 1rem;
}

.product-info p {
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.product-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.product-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--gray-600);
}

.product-feature .check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), #0097a7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.65rem;
  flex-shrink: 0;
}

.product-visual {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 400px;
  overflow: hidden;
}

.product-visual::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,188,212,0.15), transparent 70%);
  animation: prodPulse 4s ease-in-out infinite;
}

@keyframes prodPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.3); opacity: 1; }
}

.product-visual-text {
  position: relative;
  text-align: center;
  z-index: 1;
}

.product-visual-text .kit-name {
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--white-pure);
}

.product-visual-text .kit-sub {
  font-size: 0.85rem;
  color: var(--cyan-light);
  letter-spacing: 0.15em;
  margin-top: 0.5rem;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--cyan);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: gap 0.3s;
}

.product-link:hover { gap: 0.8rem; }

/* ═══════════════════════════════════════
   OPEN SOURCE
   ═══════════════════════════════════════ */
.opensource {
  background: var(--navy-deep);
  position: relative;
  overflow: hidden;
}

.opensource::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background:
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(0,188,212,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 90% 20%, rgba(26,35,126,0.12) 0%, transparent 70%);
}

.opensource .section-label { color: var(--cyan-light); }
.opensource .section-title { color: var(--white-pure); }
.opensource .section-desc { color: rgba(255,255,255,0.5); }

.opensource-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.opensource-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
}

.os-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 2.5rem;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: block;
}

.os-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--navy-mid));
  opacity: 0;
  transition: opacity 0.4s;
}

.os-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(0,188,212,0.2);
  transform: translateY(-6px);
}

.os-card:hover::before { opacity: 1; }

.os-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.os-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0,188,212,0.15), rgba(26,35,126,0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.os-card-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--cyan-light);
}

.os-card h3 {
  color: var(--white-pure);
  font-size: 1.15rem;
  font-weight: 700;
}

.os-card-tag {
  display: inline-block;
  background: rgba(0,188,212,0.12);
  color: var(--cyan-light);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-left: auto;
}

.os-card p {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  line-height: 1.7;
}

.os-card-footer {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--cyan-light);
  font-size: 0.85rem;
  font-weight: 600;
}

.os-card:hover .os-card-footer { gap: 0.8rem; }

.opensource-cta {
  text-align: center;
  margin-top: 3rem;
}

.opensource-cta a {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}

.opensource-cta a:hover {
  border-color: var(--cyan-light);
  color: var(--cyan-light);
  background: rgba(0,188,212,0.05);
}

.opensource-cta a svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ═══════════════════════════════════════
   PORTFOLIO
   ═══════════════════════════════════════ */
.portfolio {
  background: var(--white);
}

.portfolio-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-top: 4rem;
}

.port-card {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  height: 260px;
  cursor: pointer;
  transition: transform 0.4s;
}

.port-card:hover { transform: translateY(-6px); }

.port-card-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.6s;
}

.port-card:hover .port-card-bg { transform: scale(1.05); }

.port-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,14,46,0.9) 0%, rgba(6,14,46,0.3) 50%, rgba(6,14,46,0.1) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
}

.port-card-tag {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan-light);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.port-card h3 {
  color: var(--white-pure);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.port-card p {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}

.port-card-status {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.status-live {
  background: rgba(76, 175, 80, 0.2);
  color: #81c784;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.status-done {
  background: rgba(0, 188, 212, 0.15);
  color: var(--cyan-light);
  border: 1px solid rgba(0, 188, 212, 0.2);
}

.status-cert {
  background: rgba(255, 213, 79, 0.15);
  color: var(--gold);
  border: 1px solid rgba(255, 213, 79, 0.25);
}

/* Card background colors (fallback) */
.port-bg-green { background: linear-gradient(135deg, #1b5e20, #2e7d32, #388e3c); }
.port-bg-blue { background: linear-gradient(135deg, #0d1b5e, #1a237e, #283593); }
.port-bg-dark { background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460); }
.port-bg-teal { background: linear-gradient(135deg, #004d40, #00695c, #00897b); }
.port-bg-purple { background: linear-gradient(135deg, #4a148c, #6a1b9a, #7b1fa2); }
.port-bg-red { background: linear-gradient(135deg, #b71c1c, #c62828, #d32f2f); }
.port-bg-navy { background: linear-gradient(135deg, #060e2e, #0d1b5e, #1a237e); }

/* Card background images (from portfolio PDF) */
.port-img { background-size: cover; background-position: center; }
.port-img-pland { background-image: url('/assets/portfolio/pland.jpg'); }
.port-img-kisti { background-image: url('/assets/portfolio/kisti.jpg'); }
.port-img-clickwork { background-image: url('/assets/portfolio/clickwork.jpg'); }
.port-img-hashscraper { background-image: url('/assets/portfolio/hashscraper.jpg'); }
.port-img-peeleng { background-image: url('/assets/portfolio/peeleng.jpg'); }
.port-img-woriga { background-image: url('/assets/portfolio/woriga.jpg'); }
.port-img-kf21 { background-image: url('/assets/portfolio/kf21.jpg'); }
.port-img-lululab { background-image: url('/assets/portfolio/lululab.jpg'); }
.port-img-gongbusunbae { background-image: url('/assets/portfolio/gongbusunbae.jpg'); }
.port-img-wave { background-image: url('/assets/portfolio/wave-bg.jpg'); }
.port-img-lululab-dtx { background-image: url('/assets/portfolio/lululab-dtx.jpg'); }
.port-img-tariworld { background-image: url('/assets/portfolio/tariworld.jpg'); }
.port-img-bigfoot { background-image: url('/assets/portfolio/bigfoot.jpg'); }
.port-img-exent { background-image: url('/assets/portfolio/exent.jpg'); }
.port-img-imtype { background-image: url('/assets/portfolio/imtype-sati.jpg'); }
.port-img-sma33 { background-image: url('/assets/portfolio/sma33.jpg'); }
.port-img-sma34 { background-image: url('/assets/portfolio/sma34.jpg'); }
.port-img-ekyss { background-image: url('/assets/portfolio/ekyss.jpg'); }
.port-img-kesson { background-image: url('/assets/portfolio/kesson.jpg'); }

/* Portfolio section divider */
.portfolio-divider {
  margin: 3rem 0 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--gray-100);
}
.portfolio-divider span {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-400);
  font-weight: 600;
}

/* ═══════════════════════════════════════
   TECH STACK
   ═══════════════════════════════════════ */
.techstack {
  background: var(--gray-100);
  position: relative;
}

.techstack-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.tech-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 4rem;
}

.tech-pill {
  background: var(--white-pure);
  border: 1px solid var(--gray-100);
  border-radius: 60px;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
}

.tech-pill:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(13, 27, 94, 0.08);
  border-color: var(--cyan-pale);
}

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

.dot-java { background: #e76f00; }
.dot-spring { background: #6db33f; }
.dot-kotlin { background: #7F52FF; }
.dot-aws { background: #ff9900; }
.dot-ncp { background: #03cf5d; }
.dot-blockchain { background: #627eea; }
.dot-mysql { background: #00758f; }
.dot-redis { background: #dc382d; }
.dot-claude { background: #d97757; }
.dot-gemini { background: #4285f4; }
.dot-notebooklm { background: #fbbc04; }
.dot-cursor { background: #00b4d8; }

/* ═══════════════════════════════════════
   CONTACT / FOOTER
   ═══════════════════════════════════════ */
.contact {
  background: var(--navy-deep);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 300px;
  background: linear-gradient(to top, rgba(0,188,212,0.03), transparent);
}

.contact-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.contact .section-label { color: var(--cyan-light); }
.contact .section-title { color: var(--white-pure); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  margin-top: 4rem;
}

.contact-item h4 {
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.contact-item p, .contact-item a {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  line-height: 1.8;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-item a:hover { color: var(--cyan-light); }

footer {
  background: var(--navy-mid);
  padding: 2rem 3rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--cyan-light); }

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 1024px) {
  section { padding: 5rem 2rem; }
  .about-inner { grid-template-columns: 1fr; gap: 3rem; }
  .business-grid { grid-template-columns: 1fr; }
  .product-showcase { grid-template-columns: 1fr; }
  .product-visual { min-height: 280px; }
  .opensource-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  nav.scrolled { padding: 0.75rem 1.5rem; }

  .nav-links { display: none; }
  .nav-mobile-toggle { display: block; }

  section { padding: 4rem 1.5rem; }

  .hero { min-height: 100svh; }

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

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

  .tech-grid { gap: 0.8rem; }
  .tech-pill { padding: 0.75rem 1.2rem; font-size: 0.8rem; }

  .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
  .footer-links { gap: 1.5rem; }

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

@media (max-width: 480px) {
  .stat-card { padding: 1.5rem; }
  .stat-number { font-size: 2rem; }
  .biz-card { padding: 2rem; }
  .product-info { padding: 2rem; }
}

/* ═══════════════════════════════════════
   NOW SECTION (Currently Building)
   ═══════════════════════════════════════ */
.now {
  padding: 8rem 0;
  background: linear-gradient(180deg, var(--white) 0%, var(--gray-100) 100%);
  position: relative;
}
.now-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.now-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.now-card {
  display: block;
  padding: 2rem;
  background: var(--white-pure);
  border: 1px solid var(--gray-100);
  border-radius: 20px;
  text-decoration: none;
  color: var(--text-dark);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s, border-color 0.4s;
  position: relative;
  overflow: hidden;
}
.now-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--cyan) 0%, var(--navy) 100%);
  opacity: 0;
  transition: opacity 0.4s;
}
.now-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(13, 27, 94, 0.12);
  border-color: var(--cyan-pale);
}
.now-card:hover::before { opacity: 1; }
.now-card-tag {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(0, 188, 212, 0.08);
  border-radius: 100px;
  margin-bottom: 1.25rem;
}
.now-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy-deep);
  margin-bottom: 0.85rem;
  line-height: 1.3;
}
.now-card-desc {
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}
.now-card-desc strong {
  color: var(--navy);
  font-weight: 700;
}
.now-card-meta {
  color: var(--cyan);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════
   NAV RIGHT + LANG TOGGLE
   ═══════════════════════════════════════ */
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav-lang-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white-pure);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.85rem;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s;
}
.nav-lang-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}
@media (max-width: 768px) {
  .now { padding: 5rem 0; }
  .now-card { padding: 1.5rem; }
  .now-card h3 { font-size: 1.25rem; }
}

/* ═══════════════════════════════════════
   GALLERY (해왔던 일들 - rolling marquee)
   ═══════════════════════════════════════ */
.gallery {
  padding: 8rem 0;
  background: var(--navy-deep);
  color: var(--white);
  overflow: hidden;
  position: relative;
}
.gallery .section-label { color: var(--cyan-light); }
.gallery .section-title { color: var(--white-pure); }
.gallery .section-desc { color: var(--gray-200); max-width: 700px; }
.gallery-inner { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }
.gallery-track-wrap {
  margin-top: 3rem;
  padding: 16px 0;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}
.gallery-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: gallery-scroll 180s linear infinite;
  will-change: transform;
}
.gallery-track-wrap:hover .gallery-track { animation-play-state: paused; }
@keyframes gallery-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.gallery-card {
  flex: 0 0 auto;
  width: 320px;
  padding: 1.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.gallery-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--cyan);
  transform: translateY(-4px);
}
.gallery-card-name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--white-pure);
  line-height: 1.3;
}
.gallery-card-desc {
  font-size: 0.85rem;
  color: var(--gray-200);
  line-height: 1.5;
  min-height: 2.6em;
}
.gallery-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
}
.gtag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  background: rgba(0, 188, 212, 0.12);
  color: var(--cyan-light);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .gallery { padding: 5rem 0; }
  .gallery-card { width: 280px; padding: 1.25rem; }
  .gallery-track { animation-duration: 120s; }
}

/* ═══════════════════════════════════════
   GALLERY — active card + dots
   ═══════════════════════════════════════ */
.gallery-card.gc-active {
  background: rgba(0, 188, 212, 0.12);
  border-color: var(--cyan);
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}
.gallery-card.gc-active .gallery-card-name {
  color: var(--cyan-light);
}
.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin: 2rem auto 0;
  max-width: 900px;
  flex-wrap: wrap;
}
.gdot {
  width: 8px;
  height: 8px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.gdot.active {
  width: 24px;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 188, 212, 0.5);
}
@media (max-width: 768px) {
  .gallery-dots { gap: 0.3rem; }
  .gdot { width: 6px; height: 6px; }
  .gdot.active { width: 18px; }
}

/* ═══════════════════════════════════════
   SECTION WAVE BOTTOMS (color-matched transitions)
   ═══════════════════════════════════════ */
.section-wave-bottom {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 3;
  pointer-events: none;
}
.section-wave-bottom svg {
  width: 100%;
  height: 80px;
  display: block;
}
/* Content above potential wave overlap */
.business > *:not(.section-wave-bottom),
.opensource > *:not(.section-wave-bottom),
.gallery > *:not(.section-wave-bottom),
.contact > *:not(.section-wave-bottom),
.now > *:not(.section-wave-bottom) {
  position: relative;
  z-index: 2;
}
/* Section background differentiation to make waves visible */
.opensource { background: var(--navy); }
.contact { background: var(--navy-mid); }
