/* style.css - UPFLOW Common Design System */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Noto+Sans+KR:wght@300;400;500;700;900&display=swap');

:root {
  /* 색상 */
  --navy:        #0a0f2e;
  --deep-blue:   #0d1b4b;
  --orange:      #e8621a;
  --copper:      #c96a1a;
  --white:       #ffffff;
  --gray-light:  rgba(255,255,255,0.70);
  --gray-muted:  rgba(255,255,255,0.45);
  /* 글래스 카드 */
  --glass:       rgba(255,255,255,0.07);
  --glass-border:rgba(255,255,255,0.15);
  --glass-dark:  rgba(10,20,60,0.55);
  /* 폰트 */
  --font-title:  'Bebas Neue', sans-serif;
  --font-body:   'Noto Sans KR', sans-serif;
}

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

html, body {
  overflow-x: hidden;
}

body {
  /* 배경.png 위에 딥네이비 오버레이 그라디언트를 적용합니다 */
  background: linear-gradient(160deg, rgba(7, 13, 37, 0.85) 0%, rgba(13, 27, 75, 0.75) 50%, rgba(6, 9, 30, 0.90) 100%),
              url('assets/배경.png') center/cover fixed;
  color: #fff;
  font-family: var(--font-body);
}

/* ======================================================== */
/* 1. Common Components                                     */
/* ======================================================== */

/* 글래스 모피즘 카드 */
.glass-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  padding: 2rem 2.2rem;
}

.glass-card--orange {
  border-color: rgba(232,98,26,0.45);
  background: var(--glass-dark);
}

/* 공통 문의하기 버튼 (CTA) */
.btn-cta {
  background: linear-gradient(135deg, #e8621a, #c96a1a);
  padding: 1.2rem 3.5rem;
  border-radius: 8px;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-family: var(--font-body);
  display: inline-block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(232,98,26,0.4);
}

/* ======================================================== */
/* 2. Animations                                            */
/* ======================================================== */

/* 스크롤 진입시 나타나는 fade-up 효과 */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ======================================================== */
/* 3. Navigation Bar System                                 */
/* ======================================================== */

#main-nav {
  height: 68px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(7,13,37,0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4rem;
  transition: background 0.3s ease;
}

#main-nav .logo {
  font-family: var(--font-title);
  font-size: 1.9rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 400;
  letter-spacing: 1px;
}

#main-nav .logo span {
  color: var(--orange);
}

#main-nav .nav-links {
  display: flex;
  gap: 2rem;
}

#main-nav .nav-links a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s, font-weight 0.1s;
}

/* 현재 페이지 메뉴 오렌지(#E8621A) 컬러 활성화 */
#main-nav .nav-links a:hover,
#main-nav .nav-links a.active {
  color: var(--orange);
  font-weight: 700;
}

/* Nav 우측 아이템 컨테이너 */
.right-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Nav 내부 작은 CTA 버튼 */
.btn-cta-nav {
  background: linear-gradient(135deg, #e8621a, #c96a1a);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-cta-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(232,98,26,0.4);
}

/* 모바일용 햄버거 메뉴 버튼 */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--white);
  transition: 0.3s;
}

/* ======================================================== */
/* 4. Responsive Media Queries                              */
/* ======================================================== */

@media (max-width: 900px) {
  #main-nav {
    padding: 0 2rem;
  }
  #main-nav .nav-links {
    display: none; /* 모바일에서는 숨김 처리 */
  }
  .hamburger {
    display: flex; /* 모바일에서 햄버거 메뉴 표시 */
  }
  
  /* 모바일 메뉴 열렸을 때 */
  .nav-links.mobile-active {
    display: flex;
    position: absolute;
    top: 68px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(7,13,37,0.95);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 2rem 0;
    align-items: center;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  }
}

@media (max-width: 480px) {
  #main-nav {
    padding: 0 1.2rem;
  }
  .btn-cta-nav {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
  #main-nav .logo {
    font-size: 1.6rem;
  }
}

/* ======================================================== */
/* 6. Reference Section                                     */
/* ======================================================== */
#reference {
  padding: 120px 4rem 5rem;
  max-width: 1100px;
  margin: 0 auto;
}

#reference h2 {
  font-family: var(--font-title);
  font-size: 3.5rem;
  text-align: center;
  margin-bottom: 3.5rem;
  font-weight: 500;
  letter-spacing: 2px;
}

.ref-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.ref-card {
  display: flex;
  flex-direction: column;
}

.ref-header {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: var(--gray-light);
}

.ref-client {
  color: var(--orange);
  font-weight: 700;
  border: 1px solid rgba(232,98,26,0.3);
  padding: 0.2rem 0.8rem;
  border-radius: 20px;
  background: rgba(232,98,26,0.1);
}

.ref-card h4 {
  font-size: 1.4rem;
  margin-bottom: 2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
}

.ref-section {
  margin-bottom: 1.3rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--gray-light);
}

.ref-section label {
  display: block;
  font-size: 0.75rem;
  color: var(--gray-muted);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  letter-spacing: 1px;
}

.ref-section.result p {
  color: var(--white);
}

.ref-section.result p strong {
  color: var(--orange);
  font-weight: 700;
}

.tech-tags {
  margin-top: auto;
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tags span {
  font-size: 0.75rem;
  color: var(--gray-light);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
}

@media (max-width: 768px) {
  #reference {
    padding: 100px 1.5rem 3rem;
  }
  .ref-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  #reference h2 {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
  }
}

/* ======================================================== */
/* 7. Contact Section & Footer                              */
/* ======================================================== */
/* Contact 페이지 전용 배경 오버레이를 옅게 하여 배경 이미지를 강조 */
body.contact-page {
  background: linear-gradient(160deg, rgba(7, 13, 37, 0.65) 0%, rgba(13, 27, 75, 0.55) 50%, rgba(6, 9, 30, 0.70) 100%),
              url('assets/배경.png') center/cover fixed;
}

#contact {
  padding-top: 140px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.cta-layout {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 0 2rem 5rem;
  flex: 1;
}

.cta-left h2 {
  font-family: var(--font-title);
  font-size: 4rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
  letter-spacing: 1px;
}

.cta-left p {
  font-size: 1.3rem;
  color: var(--gray-light);
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.cta-left p strong {
  color: var(--orange);
  font-weight: 700;
  font-family: var(--font-title);
  font-size: 1.5rem;
  letter-spacing: 1px;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.tl-item {
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--white);
  gap: 1rem;
}

.tl-item .check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(232,98,26,0.2);
  color: var(--orange);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
}

.tl-item .tl-days {
  margin-left: auto; /* 우측 정렬 */
  background: var(--white);
  color: var(--orange);
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  font-size: 0.9rem;
}

.cta-right {
  display: flex;
  justify-content: flex-end;
}

.cta-right .btn-cta-large {
  background: linear-gradient(135deg, #e8621a, #c96a1a);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-family: var(--font-body);
  font-size: 1.4rem;
  padding: 1.2rem 3.5rem;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: inline-block;
}

.cta-right .btn-cta-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(232,98,26,0.4);
}

footer {
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 3rem 4rem;
  background: rgba(7, 13, 37, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.footer-logo {
  font-family: var(--font-title);
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}

.footer-logo span {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--gray-light);
  margin-left: 0.5rem;
  letter-spacing: 0;
}

.footer-info {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  font-size: 0.9rem;
  color: var(--gray-muted);
}

.footer-info span {
  display: inline-block;
}

@media (max-width: 900px) {
  .cta-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .cta-right {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  #contact {
    padding-top: 100px;
  }
  .cta-left h2 {
    font-size: 3rem;
  }
  .cta-left p {
    font-size: 1.1rem;
  }
  footer {
    padding: 2.5rem 2rem;
  }
  .footer-info {
    flex-direction: column;
    gap: 0.8rem;
  }
}

/* ======================================================== */
/* 8. Problem & Solution Section                            */
/* ======================================================== */
#problem {
  padding: 140px 4rem 5rem;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;
}

#problem h2 {
  font-family: var(--font-body);
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 4rem;
  font-weight: 400;
  letter-spacing: -0.5px;
}

#problem h2 strong {
  font-weight: 700;
  color: var(--orange);
}

.vs-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
}

.problem-col, .solution-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* 문제 카드: 어두운 톤 */
.problem-item {
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  color: var(--gray-light);
  font-size: 1.1rem;
  text-align: center;
  font-weight: 300;
  padding: 1.8rem 2rem;
}

/* 솔루션 카드: 오렌지 테두리 (.glass-card--orange 사용) */
.solution-item {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 400;
  padding: 1.8rem 2rem;
  color: var(--white);
}

.solution-item strong {
  color: var(--orange);
  font-weight: 700;
}

.vs-badge {
  font-family: var(--font-title);
  font-size: 3rem;
  color: var(--orange);
  text-align: center;
  margin: 0 1rem;
  text-shadow: 0 0 20px rgba(232,98,26,0.3);
}

@media (max-width: 900px) {
  .vs-grid {
    grid-template-columns: 1fr;
  }
  .vs-badge {
    margin: 1rem 0;
  }
}

@media (max-width: 768px) {
  #problem {
    padding: 100px 1.5rem 3rem;
  }
  #problem h2 {
    font-size: 2rem;
    margin-bottom: 2.5rem;
  }
}

/* ======================================================== */
/* 9. Service Architecture Section                          */
/* ======================================================== */
#service {
  padding: 140px 4rem 5rem;
  max-width: 900px;
  margin: 0 auto;
  min-height: 100vh;
}

#service h2 {
  font-family: var(--font-body);
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 4rem;
  font-weight: 300;
  letter-spacing: -0.5px;
}

#service h2 strong {
  font-weight: 700;
  color: var(--orange);
}

.arch-layers {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.arch-layer {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  cursor: default;
}

.arch-layer:hover {
  transform: translateY(-2px);
  border-color: rgba(232,98,26,0.45);
  background: rgba(10,20,60,0.65);
}

.arch-layer .layer-num {
  font-family: var(--font-title);
  font-size: 4rem;
  color: rgba(232,98,26,0.25);
  line-height: 1;
  text-align: center;
  user-select: none;
  transition: color 0.3s ease;
}

.arch-layer:hover .layer-num {
  color: rgba(232,98,26,0.5);
}

.arch-content h4 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.8rem;
  letter-spacing: 0.5px;
}

.arch-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.arch-tags span {
  font-size: 0.8rem;
  color: rgba(255,200,160,0.9);
  border: 1px solid rgba(232,98,26,0.3);
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  background: rgba(232,98,26,0.05);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.arch-layer:hover .arch-tags span {
  background: rgba(232,98,26,0.15);
  border-color: rgba(232,98,26,0.6);
}

.arch-arrow {
  text-align: center;
  font-size: 1.5rem;
  color: rgba(255,255,255,0.3);
  margin: 0.5rem 0;
}

@media (max-width: 768px) {
  #service {
    padding: 100px 1.5rem 3rem;
  }
  #service h2 {
    font-size: 1.8rem;
    margin-bottom: 3rem;
  }
  .arch-layer {
    grid-template-columns: 80px 1fr;
    padding: 1.5rem 1rem;
  }
  .arch-layer .layer-num {
    font-size: 3rem;
  }
}

/* ======================================================== */
/* 10. Process Section                                      */
/* ======================================================== */
#process {
  padding: 140px 4rem 5rem;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;
}

#process h2 {
  font-family: var(--font-body);
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 4rem;
  font-weight: 400;
  letter-spacing: -0.5px;
}

#process h2 strong {
  font-weight: 700;
  color: var(--orange);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.process-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 12px;
  padding: 2.2rem 1.8rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.process-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232,98,26,0.3);
}

.process-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #e8621a, transparent);
  opacity: 0.8;
}

.process-card .step-num {
  font-family: var(--font-title);
  font-size: 3.5rem;
  color: rgba(255,255,255,0.1);
  position: absolute;
  top: 10px;
  right: 15px;
  line-height: 1;
}

.process-card h4 {
  font-size: 1.3rem;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.process-card .duration {
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 1rem;
  margin-bottom: 1.2rem;
}

.process-card p:last-child {
  color: var(--gray-light);
  line-height: 1.5;
  font-weight: 300;
  font-size: 0.95rem;
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.team-card h4 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.8rem;
  color: var(--white);
}

.team-members {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  width: 100%;
}

.team-members div {
  font-size: 1.05rem;
  color: var(--gray-light);
  font-weight: 300;
  background: rgba(255,255,255,0.05);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
}

.team-members div strong {
  color: var(--orange);
  font-weight: 700;
  margin-left: 0.3rem;
  font-size: 1.15rem;
}

@media (max-width: 900px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  #process {
    padding: 100px 1.5rem 3rem;
  }
  #process h2 {
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
  }
  .process-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .team-members {
    flex-direction: column;
    gap: 1rem;
  }
}

/* ======================================================== */
/* 11. Why UPFLOW Section                                   */
/* ======================================================== */
#why {
  padding: 140px 4rem 5rem;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;
}

#why h2 {
  font-family: var(--font-body);
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 4rem;
  font-weight: 400;
  letter-spacing: -0.5px;
}

#why h2 strong {
  font-weight: 700;
  color: var(--orange);
}

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

.why-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.why-num {
  font-family: var(--font-title);
  font-size: 6rem;
  color: var(--orange);
  opacity: 0.15;
  position: absolute;
  top: -10px;
  right: 15px;
  line-height: 1;
  user-select: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.why-card:hover .why-num {
  opacity: 0.3;
  transform: scale(1.05);
}

.why-card h4 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--white);
  line-height: 1.4;
  position: relative;
  z-index: 10;
}

.why-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  position: relative;
  z-index: 10;
}

.why-card li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 1.05rem;
  color: var(--gray-light);
  font-weight: 300;
  line-height: 1.5;
}

.why-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--orange);
  font-weight: 700;
}

@media (max-width: 900px) {
  .why-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  #why {
    padding: 100px 1.5rem 3rem;
  }
  #why h2 {
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
    line-height: 1.4;
  }
}
