/* docs/css/style.css : SmartFlex 웹사이트 전체 스타일 시트입니다. 이 파일은 docs/ 루트에서 참조됩니다. */

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

:root {
  --bg: #09090f;
  --bg2: #0f0f1a;
  --bg3: #13131f;
  --surface: #1a1a2e;
  --surface2: #1f1f35;
  --border: #2a2a45;
  --text: #e8e8f0;
  --text2: #9090b0;
  --text3: #5a5a80;
  --accent: #6c63ff;
  --accent2: #a78bfa;
  --green: #22c55e;
  --yellow: #f59e0b;
  --red: #ef4444;
  --grad: linear-gradient(135deg, #6c63ff 0%, #a78bfa 50%, #38bdf8 100%);
}

html { scroll-behavior: smooth; }

/* ACCESSIBILITY : 키보드 사용자를 위한 본문 바로가기 링크입니다. */
.skip-nav { position: fixed; top: -999px; left: 12px; z-index: 1000; padding: 10px 16px; border-radius: 10px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 700; }
.skip-nav:focus { top: 12px; outline: 3px solid rgba(167,139,250,0.7); }

body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
.mono { font-family: 'JetBrains Mono', monospace; }

/* NAV : 네비게이션 바 스타일을 정의합니다. */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(9,9,15,0.85); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.logo { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.5px; }
.logo .accent { color: var(--accent); }
.nav-links { list-style: none; display: flex; gap: 32px; }
.nav-links a { color: var(--text2); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active { position: relative; }
.nav-links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; border-radius: 999px; background: var(--grad); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text2); border-radius: 2px; }

/* HERO : 메인 배너 및 핵심 슬로건 스타일입니다. */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 96px 24px 64px; position: relative; overflow: hidden;
  max-width: 1200px; margin: 0 auto; gap: 64px;
}
.hero-bg {
  position: fixed; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 60% 60% at 70% 40%, rgba(108,99,255,0.12) 0%, transparent 70%),
              radial-gradient(ellipse 40% 40% at 20% 80%, rgba(56,189,248,0.08) 0%, transparent 60%);
}
.hero-content { flex: 1; }
.badge {
  display: inline-block; padding: 6px 14px; border-radius: 100px;
  background: rgba(108,99,255,0.12); border: 1px solid rgba(108,99,255,0.3);
  color: var(--accent2); font-size: 0.75rem; font-weight: 600; letter-spacing: 1.5px;
  margin-bottom: 28px;
}
.hero-content h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; line-height: 1.1; margin-bottom: 20px; letter-spacing: -1px; }
.gradient-text { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-desc { color: var(--text2); font-size: 1.05rem; margin-bottom: 36px; line-height: 1.8; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  display: inline-block; padding: 14px 28px; border-radius: 10px;
  background: var(--accent); color: #fff; font-weight: 600; text-decoration: none;
  font-size: 0.95rem; transition: all 0.2s; border: none; cursor: pointer;
}
.btn-primary:hover { background: #5a52e8; transform: translateY(-1px); }
.btn-ghost {
  display: inline-block; padding: 14px 28px; border-radius: 10px;
  border: 1px solid var(--border); color: var(--text2); font-weight: 500;
  text-decoration: none; font-size: 0.95rem; transition: all 0.2s;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }
.btn-large { padding: 18px 40px; font-size: 1.05rem; }

/* HERO VISUAL */
.hero-visual {
  flex-shrink: 0; width: 320px; height: 320px;
  position: relative; display: flex; align-items: center; justify-content: center;
}
.orbit-ring {
  position: absolute; border-radius: 50%; border: 1px solid transparent;
  animation: spin linear infinite;
}
.ring-1 { width: 200px; height: 200px; border-color: rgba(108,99,255,0.3); animation-duration: 8s; }
.ring-2 { width: 270px; height: 270px; border-color: rgba(167,139,250,0.2); animation-duration: 14s; animation-direction: reverse; }
.ring-3 { width: 320px; height: 320px; border-color: rgba(56,189,248,0.1); animation-duration: 20s; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.core-circle {
  width: 100px; height: 100px; border-radius: 50%;
  background: var(--grad); display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace; font-weight: 600; font-size: 1.4rem; color: #fff;
  box-shadow: 0 0 40px rgba(108,99,255,0.4);
}


/* ERA DISPLAY : DNA 애니메이션의 현재 기술 시대를 보여주는 오버레이입니다. */
.era-display {
  position: fixed; right: clamp(20px, 5vw, 72px); bottom: clamp(110px, 14vh, 160px); z-index: 2;
  min-width: 180px; padding: 18px 20px; border: 1px solid rgba(167,139,250,0.25); border-radius: 18px;
  background: rgba(15,15,26,0.68); backdrop-filter: blur(16px); box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}
.era-year { font-family: 'JetBrains Mono', monospace; font-size: 1.8rem; font-weight: 800; line-height: 1; margin-bottom: 8px; }
.era-desc { color: var(--text2); font-size: 0.85rem; line-height: 1.5; }
.era-controls { position: absolute; left: 24px; bottom: 32px; z-index: 3; display: flex; flex-wrap: wrap; gap: 10px; }
.era-controls button { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: rgba(26,26,46,0.72); color: var(--text2); cursor: pointer; transition: all 0.2s; }
.era-controls button:hover, .era-controls button.active { border-color: var(--accent); color: var(--text); background: rgba(108,99,255,0.16); }

/* SECTIONS : 각 콘텐츠 섹션의 기본 레이아웃과 여백을 설정합니다. */
.section { padding: 96px 24px; }
.section-dark { background: var(--bg2); }
.container { max-width: 1200px; margin: 0 auto; }
.section-label {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 2px;
  color: var(--accent); text-transform: uppercase; margin-bottom: 12px;
}
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; line-height: 1.2; margin-bottom: 16px; letter-spacing: -0.5px; }
.section-sub { color: var(--text2); font-size: 1rem; margin-bottom: 56px; }

/* ABOUT GRID : 소개 카드 레이아웃 및 카드 스타일을 정의합니다. */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 48px; }
.about-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 28px; transition: all 0.2s;
}
.about-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.about-icon { font-size: 2rem; margin-bottom: 16px; }
.about-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 10px; }
.about-card p { color: var(--text2); font-size: 0.9rem; line-height: 1.7; }

/* TECH : 기술 스택 카드 레이아웃과 카테고리 별 스타일입니다. */
.tech-categories { display: flex; flex-direction: column; gap: 40px; }
.tech-category {}
.category-header {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text3); margin-bottom: 16px;
}
.category-dot { width: 8px; height: 8px; border-radius: 50%; }
.category-dot.ai { background: #a78bfa; }
.category-dot.backend { background: #4ade80; }
.category-dot.db { background: #fb923c; }
.category-dot.cloud { background: #38bdf8; }
.tech-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.tech-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 20px; cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; gap: 12px; min-width: 160px;
}
.tech-card:hover { border-color: var(--accent); background: var(--surface2); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(108,99,255,0.15); }
.tech-icon { font-size: 1.4rem; flex-shrink: 0; }
.tech-name { font-size: 0.9rem; font-weight: 600; }
.tech-tag { font-size: 0.7rem; color: var(--text3); margin-top: 2px; }
.tech-card:hover .tech-tag { color: var(--accent2); }

/* QUOTA TABLE : 클라우드 사용 현황 테이블의 스타일을 정의합니다. */
.quota-table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--border); }
.quota-table { width: 100%; border-collapse: collapse; }
.quota-table th {
  background: var(--surface); padding: 14px 20px;
  font-size: 0.75rem; font-weight: 600; color: var(--text3);
  text-transform: uppercase; letter-spacing: 1px; text-align: left;
  border-bottom: 1px solid var(--border);
}
.quota-table td { padding: 14px 20px; border-bottom: 1px solid rgba(42,42,69,0.5); font-size: 0.9rem; }
.quota-table tr:last-child td { border-bottom: none; }
.quota-table tr:hover td { background: rgba(108,99,255,0.04); }
.service-name { font-weight: 500; }
.progress-bar-wrap { width: 120px; height: 6px; background: var(--surface2); border-radius: 99px; margin-bottom: 4px; overflow: hidden; }
.progress-bar { height: 100%; border-radius: 99px; background: var(--green); }
.warn-bar { background: var(--yellow); }
.progress-label { font-size: 0.75rem; color: var(--text3); }
.status-badge { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 0.75rem; font-weight: 600; }
.status-badge.good { background: rgba(34,197,94,0.1); color: var(--green); border: 1px solid rgba(34,197,94,0.2); }
.status-badge.warn { background: rgba(245,158,11,0.1); color: var(--yellow); border: 1px solid rgba(245,158,11,0.2); }

/* CONTACT : 연락처 섹션 중앙 정렬 스타일입니다. */
.contact-container { text-align: center; }

/* FOOTER : 하단 정보 및 저작권 영역 스타일입니다. */
.footer { border-top: 1px solid var(--border); padding: 32px 24px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.footer-copy { color: var(--text3); font-size: 0.85rem; }

/* MODAL : 기술 상세 모달 레이어와 애니메이션 효과를 정의합니다. */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(9,9,15,0.8); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 40px; max-width: 520px; width: 100%; position: relative;
  transform: translateY(20px) scale(0.97); transition: transform 0.25s;
}
.modal-overlay.active .modal { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text2); width: 32px; height: 32px; border-radius: 8px;
  cursor: pointer; font-size: 0.85rem; transition: all 0.2s;
}
.modal-close:hover { border-color: var(--accent); color: var(--text); }
.modal-icon { font-size: 2.8rem; margin-bottom: 16px; }
.modal-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.modal-tag {
  display: inline-block; padding: 4px 12px; border-radius: 99px;
  background: rgba(108,99,255,0.12); color: var(--accent2);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 1px; margin-bottom: 20px;
}
.modal-body { color: var(--text2); font-size: 0.95rem; line-height: 1.8; margin-bottom: 24px; }
.modal-links { display: flex; gap: 10px; flex-wrap: wrap; }
.modal-link {
  display: inline-block; padding: 8px 16px; border-radius: 8px;
  border: 1px solid var(--border); color: var(--text2); text-decoration: none;
  font-size: 0.82rem; transition: all 0.2s;
}
.modal-link:hover { border-color: var(--accent); color: var(--accent2); }

@media (max-width: 768px) {
  .hero { flex-direction: column; text-align: center; gap: 40px; }
  .hero-cta { justify-content: center; }
  .hero-visual { width: 240px; height: 240px; }
  .ring-1 { width: 150px; height: 150px; }
  .ring-2 { width: 200px; height: 200px; }
  .ring-3 { width: 240px; height: 240px; }
  .nav-links { display: none; position: absolute; top: 64px; left: 16px; right: 16px; flex-direction: column; gap: 0; padding: 12px; border: 1px solid var(--border); border-radius: 14px; background: rgba(15,15,26,0.96); backdrop-filter: blur(16px); }
  .nav-links.active { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 14px; }
  .hamburger { display: flex; }
  .era-display { position: absolute; right: 20px; bottom: 96px; min-width: 160px; text-align: left; }
  .era-controls { left: 50%; transform: translateX(-50%); justify-content: center; width: calc(100% - 32px); bottom: 22px; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
  .tech-card { min-width: 130px; }
}
