/* ===========================================
   FLOWLAB SI — spinai.net 스타일
   =========================================== */

/* ---- Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Play:wght@400;700&family=Noto+Sans+KR:wght@300;400;500;700;900&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/pretendard/1.3.9/static/pretendard.css');

/* ---- 변수 ---- */
:root {
  --blue:       #1556a6;
  --blue-light: #1d95cd;
  --dark-bg:    #0A0B0D;
  --dark2:      #111318;
  --overlay:    rgba(0, 0, 0, 0.22);
  --radius-card: 30px;
  --transition: all 0.3s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
  color: #222;
  background: #fff;
  margin: 0;
}

a { text-decoration: none; transition: color 0.3s; }

/* ---- 섹션 공통 ---- */
section { padding: 100px 0; }
section:nth-child(odd) { background-color: #fff; }
section:nth-child(even) { background-color: #f7f8fa; }

section .section-subtitle {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--blue);
  opacity: 1;
  margin-bottom: 8px;
}

section .section-title {
  font-family: 'Play', 'Pretendard', sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: #0a0b0d;
  line-height: 1.25;
  letter-spacing: -0.5px;
}

@media (min-width: 992px) {
  section .section-title { font-size: 46px; }
}

/* ============================================
   네비게이션 — spinai 스타일
   ============================================ */
.custom-navbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 90px;
  background: var(--overlay) !important;
  border: none !important;
  border-bottom: 1px solid rgba(255,255,255,0) !important;
  border-radius: 0 !important;
  padding: 0 50px !important;
  z-index: 9999 !important;
  transition: var(--transition) !important;
  backdrop-filter: none;
}

.custom-navbar.affix {
  background: #fff !important;
  border-bottom: 1px solid #ddd !important;
  height: 65px;
  box-shadow: none;
  animation: none;
  top: 0 !important;
  border-radius: 0 !important;
}

/* 브랜드 로고 */
.custom-navbar .navbar-brand img {
  width: 130px;
  transition: var(--transition);
  filter: brightness(0) invert(1); /* 흰색 로고 */
}

.custom-navbar.affix .navbar-brand img {
  filter: none; /* 기본 로고 */
}

/* 토글 버튼 */
.custom-navbar .navbar-toggler {
  border: 1px solid rgba(255,255,255,0.4);
  height: 50px;
}

.custom-navbar.affix .navbar-toggler {
  border-color: rgba(0,0,0,0.2);
}

.custom-navbar .navbar-toggler span,
.custom-navbar .navbar-toggler span::before,
.custom-navbar .navbar-toggler span::after {
  background-color: rgba(255,255,255,0.9);
}

.custom-navbar.affix .navbar-toggler span,
.custom-navbar.affix .navbar-toggler span::before,
.custom-navbar.affix .navbar-toggler span::after {
  background-color: rgba(0,0,0,0.5) !important;
}

/* 네비 링크 */
.custom-navbar .nav-link {
  font-family: 'Play', sans-serif;
  font-size: 18px !important;
  font-weight: 400;
  color: #fff !important;
  margin: 0 20px;
  padding: 0 !important;
  position: relative;
  letter-spacing: 0;
  transition: color 0.3s;
}

.custom-navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: width 0.3s;
}

.custom-navbar .nav-link:hover::after,
.custom-navbar .nav-link.active::after { width: 100%; }

.custom-navbar .nav-link:hover { color: rgba(255,255,255,0.7) !important; }

.custom-navbar.affix .nav-link { color: #000 !important; }
.custom-navbar.affix .nav-link:hover { color: var(--blue) !important; }
.custom-navbar.affix .nav-link.active { color: var(--blue) !important; }

/* 헤더 위로 올라온 box가 nav 아래 오도록 */
.navbar-nav { height: 90px; align-items: center; }
.custom-navbar.affix .navbar-nav { height: 65px; }

/* ============================================
   히어로 헤더 — spinai 스타일
   ============================================ */
.header {
  width: 100%;
  height: 100vh !important;
  min-height: 780px !important;
  background: url('../imgs/header.jpg') center center / cover no-repeat !important;
  background-attachment: scroll !important;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.header .overlay {
  position: relative !important;
  background: transparent !important;
  width: 100%;
  max-width: 1590px;
  margin: 0 auto;
  padding: 0 50px;
  padding-top: 90px;
  align-items: flex-start !important;
  justify-content: center !important;
  flex-direction: column !important;
  display: flex !important;
  color: #fff;
}

/* 어두운 배경 오버레이 */
.header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.52);
  z-index: 0;
}

.header .overlay > * { position: relative; z-index: 1; }

.header .overlay .subtitle {
  font-size: 16px;
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.2px;
  line-height: 1.9;
  font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
  margin: 0;
}

.header .overlay .title {
  font-family: 'Play', sans-serif;
  font-size: 72px;
  font-weight: 700;
  font-style: italic;
  color: #fff;
  line-height: 1.18;
  letter-spacing: -1px;
  margin: 18px 0 40px;
}

/* CTA 버튼 */
.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #000;
  color: #fff !important;
  font-size: 14px;
  font-weight: 400;
  font-family: 'Pretendard', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  width: 220px;
  height: 52px;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,0.6);
  transition: var(--transition);
  text-decoration: none !important;
}

.btn-hero:hover {
  background: var(--blue-light);
  border-color: var(--blue-light);
  color: #fff !important;
  transform: none;
  box-shadow: none;
}

/* 스크롤 다운 화살표 */
.header .scroll-down {
  position: absolute;
  bottom: 42px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 1.4s infinite ease;
  color: rgba(255,255,255,0.6);
  font-size: 22px;
}

@keyframes bounce {
  0%, 100% { bottom: 42px; }
  50% { bottom: 58px; }
}

@media (max-width: 1024px) {
  .header .overlay { padding: 0 30px; padding-top: 70px; align-items: center !important; text-align: center; }
  .header .overlay .title { font-size: 48px; }
}

@media (max-width: 640px) {
  .header { min-height: 600px !important; }
  .header .overlay { padding: 0 20px; padding-top: 60px; }
  .header .overlay .title { font-size: 34px; }
  .header .overlay .subtitle { font-size: 14px; }
  .btn-hero { width: 180px; height: 46px; font-size: 12px; }
}

/* ============================================
   서비스 박스 — spinai c1 스타일
   ============================================ */
.box {
  background: #fff;
  border-radius: 0;
  box-shadow: none;
  margin-top: 0;
  max-width: 100%;
  width: 100%;
  display: flex !important;
  max-height: none;
  padding: 0;
  border: none;
}

.box .box-item {
  flex: 1;
  border-right: 1px solid #eee;
  padding: 60px 40px 50px;
  text-align: center;
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

/* 배경 이미지 오버레이 */
.box .box-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.18);
  transition: opacity 0.3s;
  z-index: 0;
}

.box .box-item:hover::before { opacity: 0.05; }

.box .box-item:hover { background-color: #f0f4ff; }

.box .box-item > * { position: relative; z-index: 1; }

/* 서비스 번호 */
.box .box-item .svc-num {
  font-family: 'Play', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}

.box .box-item i {
  font-size: 44px;
  color: var(--blue);
  margin-bottom: 22px;
  display: block;
  font-weight: 100;
}

.box .box-item i img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.box .box-item .box-title {
  font-family: 'Play', 'Pretendard', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #0a0b0d;
  margin-bottom: 14px;
  letter-spacing: -0.2px;
}

.box .box-item p {
  font-size: 14px;
  font-weight: 300;
  color: #555;
  line-height: 1.75;
}

.box .box-item:last-child { border-right: 0; }

@media (max-width: 767px) {
  .box {
    flex-direction: column !important;
    margin-top: 0;
    box-shadow: none;
    padding: 0;
  }

  .box .box-item {
    border-right: 0 !important;
    border-bottom: 1px solid #eee;
    min-height: 260px;
    padding: 40px 30px;
    border-radius: 0;
    margin-bottom: 0;
  }

  .box .box-item:last-child { border-bottom: 0; }
}

/* ============================================
   About 섹션
   ============================================ */
#about {
  padding: 120px 0;
}

#about .section-subtitle { color: var(--blue); opacity: 1; }

#about .section-title {
  font-family: 'Play', sans-serif;
  color: #0a0b0d;
}

#about p {
  font-size: 15px;
  font-weight: 300;
  color: #444;
  line-height: 1.85;
}

#about .img-thumbnail {
  border-radius: var(--radius-card);
  border: none;
  box-shadow: 0 10px 50px rgba(0,0,0,0.12);
}

/* 강점 배지 */
.strength-badge {
  display: inline-block;
  border: 1px solid var(--blue);
  color: var(--blue);
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 16px;
  border-radius: 30px;
  margin: 4px 3px;
  letter-spacing: 0.2px;
  transition: var(--transition);
}

.strength-badge:hover {
  background: var(--blue);
  color: #fff;
}

/* ============================================
   Process 섹션 — 다크 배경
   ============================================ */
#process.has-bg-img {
  background: var(--dark2) !important;
  color: #fff;
}

#process.has-bg-img::after { display: none !important; }

#process .section-title {
  color: #fff;
  font-family: 'Play', sans-serif;
  font-style: italic;
}

.widget {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.widget .widget-item {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.04);
  padding-top: 38px;
  text-align: center;
  position: relative;
  transition: var(--transition);
}

.widget .widget-item:hover {
  border-color: var(--blue-light);
  background: rgba(29,149,205,0.12);
  transform: translateY(-6px);
}

/* 화살표 */
.widget .widget-item::after {
  content: '\e649';
  font-family: 'themify';
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  position: absolute;
  top: 50%;
  right: -32px;
  transform: translateY(-50%);
}

.widget .widget-item:last-child::after { display: none; }

.widget .widget-item i {
  font-size: 36px;
  color: var(--blue-light);
  display: block;
  margin-bottom: 14px;
}

.widget .widget-item i img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: invert(1) brightness(1.8);
}

.widget .widget-item h4 {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  font-family: 'Pretendard', sans-serif;
}

/* 단계 번호 */
.widget .widget-item .step-num {
  font-family: 'Play', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--blue-light);
  letter-spacing: 2px;
  display: block;
  margin-bottom: 4px;
}

@media (max-width: 767px) {
  .widget { gap: 18px; }
  .widget .widget-item { width: 130px; height: 130px; padding-top: 28px; }
  .widget .widget-item::after { display: none; }
  .widget .widget-item h4 { font-size: 12px; }
}

/* ============================================
   Portfolio 섹션
   ============================================ */
#portfolio .section-subtitle { opacity: 1; color: var(--blue); }

#portfolio .section-title {
  font-family: 'Play', sans-serif;
  color: #0a0b0d;
}

.img-wrapper {
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-bottom: 24px;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}

.img-wrapper:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 44px rgba(0,0,0,0.18);
}

.img-wrapper .overlay {
  background: rgba(21, 86, 166, 0.85);
}

.img-wrapper .overlay .overlay-infos a { border-color: rgba(255,255,255,0.7); }

.img-wrapper .overlay .overlay-infos a:hover {
  background: #fff;
  color: var(--blue);
}

/* ============================================
   Contact 섹션
   ============================================ */
#contact { background: #f7f8fa; }

.contact-card {
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 50px rgba(0,0,0,0.09);
  border: none;
}

.contact-card .form {
  padding: 56px 60px;
}

.contact-card .form h6.section-title {
  font-family: 'Play', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #0a0b0d;
  margin-bottom: 30px;
}

.contact-card .form .form-control {
  background: #f7f8fa;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px !important;
  font-size: 14px;
  color: #222;
  font-family: 'Pretendard', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-card .form .form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(21,86,166,0.1);
  background: #fff;
}

.contact-card .form .form-control::placeholder {
  color: #9ca3af;
  font-size: 13.5px;
}

/* ============================================
   버튼 — spinai pill 스타일
   ============================================ */
.btn-primary {
  background: #000 !important;
  border-color: #000 !important;
  border-radius: 30px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  font-family: 'Pretendard', sans-serif !important;
  letter-spacing: 0.5px;
  padding: 14px 40px !important;
  color: #fff !important;
  text-transform: uppercase;
  transition: var(--transition) !important;
  box-shadow: none !important;
}

.btn-primary:hover,
.btn-primary:not(:disabled):not(.disabled):active {
  background: var(--blue-light) !important;
  border-color: var(--blue-light) !important;
  color: #fff !important;
  transform: none;
  box-shadow: none !important;
}

.btn-primary:focus, .btn-primary.focus {
  box-shadow: 0 0 0 3px rgba(21,86,166,0.2) !important;
}

/* ============================================
   푸터 — spinai #0A0B0D 스타일
   ============================================ */
section.has-bg-img.footer-section {
  background: var(--dark-bg) !important;
  padding: 0;
}

section.has-bg-img.footer-section::after { display: none !important; }

.footer {
  padding: 60px 0 50px;
  max-width: 1400px;
  margin: 0 auto;
}

.footer .list-head { border-bottom-color: rgba(255,255,255,0.12); }

.footer .list-head h6 {
  font-family: 'Play', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0;
}

.footer .list-body p {
  font-size: 13.5px;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  line-height: 1.85;
}

.footer .list-body p i { color: var(--blue-light); opacity: 0.8; }

.footer a { color: rgba(255,255,255,0.55); }
.footer a:hover { color: #fff; opacity: 1; text-decoration: none; }

/* ============================================
   AOS (스크롤 페이드인) 대체 — 커스텀
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   반응형
   ============================================ */
@media (max-width: 1024px) {
  .custom-navbar { padding: 0 20px !important; }
  section { padding: 70px 0; }
  .contact-card .form { padding: 40px 30px; }
}

@media (max-width: 640px) {
  section { padding: 55px 0; }
  section .section-title { font-size: 28px; }
  .contact-card .form { padding: 30px 20px; }
}
