/* =========================
   Global Reset & Base
========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: #020617;
  color: #e5e7eb;
  line-height: 1.6;
}

/* 링크/버튼 기본 스타일 */

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

a:hover {
  text-decoration: none;
}

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

/* 컨테이너 공통 */

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 섹션 공통 */

.section {
  padding: 96px 0;
}

.section-label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 12px;
}

.section h2 {
  font-size: 28px;
  margin: 0 0 16px;
}

.section-desc {
  font-size: 14px;
  color: #9ca3af;
  margin-bottom: 32px;
}

/* 두 컬럼 공통 레이아웃 */

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 40px;
  align-items: flex-start;
}

/* =========================
   Header / Navigation
========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

/* 오른쪽 그룹: 국기 + 햄버거 */

.header-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 로고 */

/* 로고 */

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-img {
  height: 52px;    /* 기존 42 → 52 */
  width: auto;
  flex-shrink: 0;
  filter: brightness(1.75) contrast(1.5) saturate(1.25)
          drop-shadow(0 0 12px rgba(255, 170, 60, 0.9));
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-main {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.08em;
}

.logo-sub {
  font-size: 14px;
  font-weight: 600;
  color: #f3f4f6;
}

/* nav */

.nav {
  display: flex;
  align-items: center;
}

/* 기본: 햄버거 전용 네비게이션 (PC/모바일 모두 동일 패턴) */
.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;

  position: absolute;
  right: 16px;
  top: 56px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #020617;
  padding: 10px 16px 12px;
  border-radius: 14px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
  z-index: 40;
}

.nav-links.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-links li {
  width: 100%;
}

.nav-links a {
  display: block;
  padding: 6px 0;
  color: #e5e7eb;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: #38bdf8;
}

/* 햄버거 버튼 (PC/모바일 공통 사용) */

.nav-toggle {
  display: block;
  background: transparent;
  border: none;
  padding: 6px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 10px;
  background: #e5e7eb;
  margin: 3px 0;
}

/* =========================
   Hero
========================= */

.hero {
  padding: 96px 0 80px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.hero-copy {
  position: relative;
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #38bdf8;
  margin: 0 0 8px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: 32px;
  line-height: 1.3;
}

.highlight {
  color: #fbbf24;
}

.hero-text {
  font-size: 14px;
  color: #9ca3af;
  margin-bottom: 24px;
}

/* 버튼 */

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.btn {
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.btn.primary {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #0b1120;
  font-weight: 600;
  border: none;
}

.btn.primary:hover {
  filter: brightness(1.04);
}

.btn.ghost {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.8);
  color: #e5e7eb;
}

.btn.ghost:hover {
  border-color: #38bdf8;
  color: #38bdf8;
}

.btn.full {
  width: 100%;
}

/* Hero 태그 */

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  color: #9ca3af;
}

.hero-tags span {
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.9);
}

/* Hero Visual */

.hero-visual {
  position: relative;
  min-height: 240px;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.7;
}

.orb-main {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle at 30% 30%, #22c55e, transparent 70%);
  top: -30px;
  right: 0;
}

.orb-sub {
  width: 140px;
  height: 140px;
  background: radial-gradient(circle at 30% 30%, #38bdf8, transparent 70%);
  bottom: -20px;
  left: 10px;
}

.hero-card {
  position: relative;
  background: radial-gradient(circle at top left, #1f2937, #020617);
  border-radius: 18px;
  padding: 20px 18px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
  margin-top: 24px;
}

.hero-card h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.hero-card p {
  margin: 0 0 12px;
  font-size: 13px;
  color: #cbd5f5;
}

.hero-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12px;
  color: #9ca3af;
}

.hero-card li::before {
  content: "• ";
  color: #22c55e;
}

/* =========================
   About
========================= */

.about-main .lead {
  font-size: 15px;
  color: #e5e7eb;
  margin-bottom: 16px;
}

.bullet-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  font-size: 14px;
}

.bullet-list li {
  margin-bottom: 6px;
}

.bullet-list code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  background: rgba(15, 23, 42, 0.9);
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 12px;
}

.about-philosophy {
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(55, 65, 81, 0.9);
  font-size: 13px;
  color: #cbd5f5;
}

.about-philosophy h3 {
  margin: 0 0 6px;
  font-size: 14px;
}

/* About Side 카드 */

.about-side {
  align-self: stretch;
}

.pill-card {
  background: radial-gradient(circle at top left, #0f172a, #020617);
  border-radius: 18px;
  padding: 20px 18px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
  font-size: 13px;
}

.pill-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.pill-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pill-card li {
  margin-bottom: 6px;
}

/* =========================
   Services
========================= */

.services {
  background: radial-gradient(circle at top, #020617 0%, #020617 40%, #020617 100%);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 18px;
  border: 1px solid rgba(31, 41, 55, 0.95);
  padding: 18px 16px 16px;
  font-size: 13px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.card p {
  margin: 0 0 10px;
  color: #d1d5db;
}

.card ul {
  margin: 0 0 12px;
  padding-left: 18px;
  color: #9ca3af;
}

.card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.8);
}

/* =========================
   Portfolio
========================= */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.pf-card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 18px;
  padding: 18px 16px 16px;
  border: 1px solid rgba(31, 41, 55, 0.95);
  font-size: 13px;
}

.pf-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.pf-card p {
  margin: 0 0 10px;
  color: #d1d5db;
}

.pf-card ul {
  margin: 0;
  padding-left: 18px;
  color: #9ca3af;
}

/* =========================
   Contact
========================= */

.contact-inner {
  align-items: stretch;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
}

.contact-list li {
  margin-bottom: 6px;
}

.contact-card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 18px;
  padding: 18px 16px;
  border: 1px solid rgba(31, 41, 55, 0.95);
  font-size: 13px;
}

.contact-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.contact-card p {
  margin: 0 0 10px;
  color: #d1d5db;
}

.contact-card ol {
  margin: 0 0 14px;
  padding-left: 18px;
}

/* =========================
   Footer
========================= */

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.26);
  padding: 22px 0 30px;
  margin-top: 40px;
}

.footer-inner {
  text-align: center;
  font-size: 12px;
  color: #9ca3af;
}

.footer-sub {
  margin-top: 4px;
  color: #6b7280;
}

/* =========================
   Responsive: Tablet
========================= */

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
    gap: 24px;
  }

  .two-column {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 28px;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* =========================
   Responsive: Mobile
========================= */

@media (max-width: 720px) {
  .header-inner {
    height: 60px;
  }

  .header-right {
    gap: 4px;
  }

  .lang-switch {
    gap: 4px;
  }

  .lang-flag {
    width: 24px;
    height: 24px;
    font-size: 14px;
  }

  .logo-img {
    height: 44px;  /* 기존 28~34 → 44로 증가 */
    width: auto;
    filter: brightness(1.8) contrast(1.55)
            drop-shadow(0 0 14px rgba(255, 180, 70, 1));
  }

  .logo-sub {
    font-size: 12px; /* 모바일은 12px로 유지 */
  }

  /* 텍스트 대비 및 크기 개선 */

  body {
    color: #f9fafb;
  }

  h1,
  h2,
  h3 {
    color: #ffffff;
  }

  .hero-text,
  .section-desc,
  p {
    font-size: 15px;
    line-height: 1.7;
    color: #e5e7eb;
  }

  .hero {
    padding-top: 80px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-copy {
    text-align: left;
  }

  .hero h1 {
    font-size: 28px;
    line-height: 1.35;
  }

  .hero-text {
    font-size: 15px;
  }

  .hero-visual {
    order: -1;
    margin-bottom: 16px;
  }

  .hero-card {
    margin-top: 0;
  }

  .hero-tags {
    margin-bottom: 8px;
  }

  .section {
    padding: 80px 0;
  }

  .two-column {
    grid-template-columns: minmax(0, 1fr);
  }

  .card-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .portfolio-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --- Section label color accents --- */

.section-label {
  color: #60a5fa;
}

/* ABOUT UMAYIT → 주황 포인트 */
#about .section-label {
  color: #fb923c;
}

/* SERVICES & PRODUCTS → 그린 포인트 */
#services .section-label {
  color: #22c55e;
}

/* PROJECT HIGHLIGHTS → 스카이 블루 */
#portfolio .section-label {
  color: #38bdf8;
}

/* CONTACT → 보라 포인트 */
#contact .section-label {
  color: #a855f7;
}

.nav-links a.active {
  font-weight: 700;
  color: #38bdf8 !important;
}

/* 언어 스위치: 국기 이모지 가로 배치 */

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 0;
  white-space: nowrap;
}

.lang-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.7);
  font-size: 16px;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.lang-flag:hover {
  border-color: #38bdf8;
  transform: translateY(-1px);
  background: rgba(15, 23, 42, 0.9);
}

.lang-flag.active {
  border-color: #38bdf8;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.4);
}

