/**
 * NeoClip Mobile - Apple Style Responsive CSS
 * Modern, Premium Design System
 */

/* ========================================
   CSS Variables
======================================== */
:root {
  /* Colors */
  --apple-bg: #ffffff;
  --apple-secondary-bg: #f5f5f7;
  --apple-text: #1d1d1f;
  --apple-secondary-text: #86868b;
  --apple-blue: #0066cc;
  --apple-green: #34c759;
  --apple-orange: #ff9500;
  --apple-red: #ff3b30;
  --apple-purple: #af52de;

  /* Service Colors */
  --color-search: #0066cc;
  --color-display: #34c759;
  --color-mobile: #af52de;
  --color-pr: #ff9500;
  --color-viral: #00bcd4;
  --color-solution: #ff6b35;
  --color-seo: #5856d6;
  --color-company: #1d1d1f;

  /* Layout */
  --content-max-width: 1440px;
  --card-radius: 20px;
  --nav-height: 64px;
  --section-padding: 80px;

  /* Typography */
  --font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s cubic-bezier(0.2, 0, 0.2, 1);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* ========================================
   Reset & Base Styles
======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Skip Link (Accessibility) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  padding: 12px 24px;
  background: #1a1a1a;
  color: #fff;
  border-radius: 8px;
  z-index: 9999;
  text-decoration: none;
  font-weight: 500;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 16px;
  outline: 2px solid #00d4ff;
  outline-offset: 2px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  color: var(--apple-text);
  background-color: var(--apple-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--apple-blue);
}

/* ========================================
   Layout Containers
======================================== */
.container-1440 {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .container-1440 {
    padding: 0 32px;
  }
}

@media (min-width: 1440px) {
  .container-1440 {
    padding: 0 20px;
    /* 1440px 화면에서 여백 최소화하여 꽉 차게 */
    width: 100%;
  }
}

/* ========================================
   Navigation
======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.navbar-brand img {
  height: 30px;
  /* 28px -> 48px (크게 확대) */
  width: auto;
  display: block;
  transition: all 0.3s ease;
}

/* 모바일에서 로고 20% 크게 */
@media (max-width: 768px) {
  .navbar-brand img {
    height: 36px;
  }
}

/* Hamburger Menu (Framer Component Style) */
.navbar-toggler {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  -webkit-tap-highlight-color: transparent;
  /* Remove blur highlight on mobile */
}

.navbar-toggler svg {
  width: 32px;
  height: 32px;
  transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-transition: -webkit-transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.navbar-toggler.active svg {
  transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
}

.navbar-toggler path {
  transform-origin: center;
}

/* Define initial states in CSS ensures Safari transitions correctly */
.navbar-toggler path.line-top-bottom {
  stroke-dasharray: 12 63;
  stroke-dashoffset: 0;
  transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1), stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1), stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: stroke-dasharray, stroke-dashoffset;
}

.navbar-toggler.active path.line-top-bottom {
  stroke-dasharray: 20 300 !important;
  stroke-dashoffset: -32.42 !important;
}

/* Desktop Nav */
.navbar-nav {
  display: none;
  list-style: none;
  gap: 8px;
}

.navbar-nav a {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  transition: background var(--transition-fast);
}

.navbar-nav a:hover {
  background: var(--apple-secondary-bg);
  color: var(--apple-text);
}

/* Dropdown Menu (Desktop) */
.nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 220px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 1000;
  margin-top: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Hover Effect */
.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Dropdown Arrow */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: white;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-left: 1px solid rgba(0, 0, 0, 0.05);
}

/* Dropdown Links */
.dropdown-menu li {
  list-style: none;
}

.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  padding-left: 32px;
  font-size: 14px;
  color: var(--apple-text);
  border-radius: 10px;
  transition: all 0.2s ease;
  white-space: nowrap;
  background: transparent;
  font-weight: 500;
  text-align: left;
  position: relative;
}

.dropdown-menu a::before {
  content: '→';
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%) translateX(-10px);
  opacity: 0;
  font-size: 12px;
  font-weight: 700;
  color: #000;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dropdown-menu a:hover {
  background: #f5f5f7 !important;
  color: var(--apple-text);
}

.dropdown-menu a:hover::before {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
  animation: arrowBounce 0.5s ease-in-out;
}

@keyframes arrowBounce {
  0% {
    transform: translateY(-50%) translateX(-10px);
    opacity: 0;
  }

  50% {
    transform: translateY(-50%) translateX(3px);
    opacity: 1;
  }

  100% {
    transform: translateY(-50%) translateX(0);
    opacity: 1;
  }
}

@media (min-width: 992px) {
  .navbar-toggler {
    display: none;
  }

  .navbar-nav {
    display: flex;
  }
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  padding: calc(var(--nav-height) + 20px) 20px 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
  overflow-y: auto;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 32px;
  height: 32px;
  background: var(--apple-secondary-bg);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--apple-text);
}

.mobile-menu-list {
  list-style: none;
  display: block;
  padding-bottom: 40px;
}

.menu-item {
  margin-bottom: 12px;
  border-radius: 16px;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: background 0.3s ease, border-color 0.3s ease;
  will-change: auto;
  transform: translateZ(0);
  -webkit-font-smoothing: subpixel-antialiased;
}

.menu-item.active {
  background: white;
  box-shadow: none;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.menu-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--apple-text);
  cursor: pointer;
}

.menu-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--apple-text);
  border: 1px solid rgba(0, 0, 0, 0.05);
  margin-right: 12px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

/* 메뉴 타이틀 내 텍스트 정렬 */
.menu-title>span:first-child {
  display: flex;
  align-items: center;
}

/* 아이콘 옆 메뉴 텍스트 - 약간 아래로 조정 */
.menu-title>span:first-child> :not(.menu-icon) {
  position: relative;
  top: 3px;
}

.toggle-icon {
  font-size: 14px;
  transition: transform 0.3s ease;
  color: var(--apple-secondary-text);
}

.menu-item.active .toggle-icon {
  transform: rotate(180deg);
  color: var(--apple-text);
}

/* 메뉴 열렸을 때 아이콘 배경 검정색으로 변경 */
.menu-item.active .menu-icon {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

/* 모바일 메뉴 아이콘 애니메이션 - 아이콘(i) 요소만 애니메이션 */
/* 1. WHY NEOCLIP - Pulse Rotate */
.menu-item:nth-child(1).active .menu-icon i {
  animation: menuIconPulseRotate 0.6s ease-in-out;
  display: inline-block;
}

@keyframes menuIconPulseRotate {
  0% {
    transform: scale(1) rotate(0deg);
  }

  25% {
    transform: scale(1.15) rotate(90deg);
  }

  50% {
    transform: scale(1.05) rotate(180deg);
  }

  75% {
    transform: scale(1.15) rotate(270deg);
  }

  100% {
    transform: scale(1) rotate(360deg);
  }
}

/* 2. MEDIA & PLATFORM - Bounce */
.menu-item:nth-child(2).active .menu-icon i {
  animation: menuIconBounce 0.5s ease-in-out;
  display: inline-block;
}

@keyframes menuIconBounce {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  20% {
    transform: translateY(-4px) scale(1.1);
  }

  40% {
    transform: translateY(-1px) scale(1.05);
  }

  60% {
    transform: translateY(-3px) scale(1.08);
  }

  80% {
    transform: translateY(-1px) scale(1.02);
  }
}

/* 3. BRAND & REPUTATION - Megaphone Shake */
.menu-item:nth-child(3).active .menu-icon i {
  animation: megaphoneShake 0.6s ease-in-out;
  display: inline-block;
}

@keyframes megaphoneShake {
  0% {
    transform: scale(1) rotate(0deg);
  }

  20% {
    transform: scale(1.1) rotate(-15deg);
  }

  40% {
    transform: scale(1.1) rotate(15deg);
  }

  60% {
    transform: scale(1.1) rotate(-10deg);
  }

  80% {
    transform: scale(1.1) rotate(5deg);
  }

  100% {
    transform: scale(1) rotate(0deg);
  }
}

/* 4. SOLUTIONS - Gear Spin */
.menu-item:nth-child(4).active .menu-icon i {
  animation: gearRotateStop 0.8s ease-in-out;
  display: inline-block;
}

@keyframes gearRotateStop {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* 5. INSIGHT - Lightbulb Pulse */
.menu-item:nth-child(5).active .menu-icon i {
  animation: menuIconPulse 0.6s ease-in-out;
  display: inline-block;
}

@keyframes menuIconPulse {
  0% {
    transform: scale(1);
  }

  25% {
    transform: scale(1.2);
  }

  50% {
    transform: scale(1.05);
  }

  75% {
    transform: scale(1.15);
  }

  100% {
    transform: scale(1);
  }
}

/* 6. START PROJECT - Rocket Launch */
.menu-item:nth-child(6).active .menu-icon i {
  animation: menuIconLaunch 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-block;
}

@keyframes menuIconLaunch {
  0% {
    transform: translateY(8px) rotate(-15deg) scale(0.8);
    opacity: 0.5;
  }

  50% {
    transform: translateY(-5px) rotate(5deg) scale(1.15);
    opacity: 1;
  }

  70% {
    transform: translateY(-2px) rotate(-2deg) scale(1.05);
  }

  100% {
    transform: translateY(0) rotate(0deg) scale(1);
    opacity: 1;
  }
}

.submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: white;
}

.submenu li {
  border-top: 1px solid rgba(0, 0, 0, 0.03);
}

.submenu a {
  display: block;
  padding: 12px 20px 12px 20px;
  padding-left: 80px;
  /* 상위 메뉴 텍스트 시작점에 맞춤 */
  font-size: 14px;
  color: #000000;
  transition: all 0.2s ease;
  background: transparent !important;
  /* 상위 스타일 오버라이드 방지 */
  border-radius: 0 !important;
  text-align: left !important;
}

.submenu a:hover {
  color: #000000;
  background: #f5f5f5 !important;
  transform: none !important;
}

/* ========================================
   Hero Section
======================================== */
/*<!-- Hero Section -->*/
.hero-section {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 120px 0 80px;
  text-align: center;
  background-color: #000000;
  position: relative;
  overflow: hidden;
}

/* Remove conflicting background images/gradients if any */
/* Canvas positioning */
#veil-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.8;
  /* Subtle blend */
}

.hero-section .container-1440 {
  position: relative;
  z-index: 1;
}

/*
@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}
*/

/* Naver Hero Background */
.hero-section.naver-hero {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.7) 100%),
    url('../images/naver_hero.png');
  background-color: #000;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-title {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.2;
  margin-bottom: 16px;
  color: #ffffff;
}

.hero-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto 32px;
  font-weight: 400;
}

@media (min-width: 768px) {
  .hero-section {
    padding: 160px 0 100px;
  }

  .hero-title {
    font-size: 56px;
  }

  .hero-subtitle {
    font-size: 20px;
  }
}

@media (min-width: 1200px) {
  .hero-title {
    font-size: 72px;
  }

  .hero-subtitle {
    font-size: 24px;
    max-width: 800px;
  }
}

/* ========================================
   Buttons
======================================== */
.btn-apple {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: var(--apple-text);
  color: white;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  transition: var(--transition-normal);
}

.btn-apple:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  color: white;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: transparent;
  color: var(--apple-text);
  font-size: 16px;
  font-weight: 600;
  border: 2px solid var(--apple-text);
  border-radius: 40px;
  cursor: pointer;
  transition: var(--transition-normal);
}

.btn-outline:hover {
  background: var(--apple-text);
  color: white;
}

/* 히어로 섹션 내 버튼 스타일 (블랙 배경용) */
.hero-section .btn-apple {
  background: #ffffff;
  color: #000000;
}

.hero-section .btn-apple:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #000000;
}

.hero-section .btn-outline {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.hero-section .btn-outline:hover {
  background: #ffffff;
  color: #000000;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ========================================
   Cards
======================================== */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 576px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (min-width: 1200px) {
  .card-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.neo-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--card-radius);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition-slow);
  cursor: pointer;
  text-decoration: none;
  display: block;
  -webkit-tap-highlight-color: transparent;
  /* 모바일 터치 하이라이트 제거 */
}

.neo-card:hover,
.neo-card:active {
  background: #ffffff !important;
  transform: translateY(-4px);
  box-shadow: none;
}

.neo-card:hover h3,
.neo-card:hover p,
.neo-card:active h3,
.neo-card:active p {
  color: var(--apple-text) !important;
}

.neo-card:hover .neo-card-icon,
.neo-card:active .neo-card-icon {
  background: var(--apple-text) !important;
  color: white !important;
  border-color: transparent !important;
  box-shadow: none;
}

.neo-card:hover h3,
.neo-card:hover p,
.neo-card:active h3,
.neo-card:active p {
  color: white;
}

.neo-card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--apple-text);
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  /* 부드러운 전환 추가 */
}

/* Card icon hover effect - Black Background */
.neo-card:hover .neo-card-icon {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

/* Mobile scroll activation - Icon turns black when centered */
@media (max-width: 991px) {
  .neo-card.icon-activated .neo-card-icon {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
  }
}

.neo-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--apple-text);
}

.neo-card p {
  font-size: 14px;
  color: var(--apple-secondary-text);
  line-height: 1.5;
}



/* ========================================
   Section Styles
======================================== */
.section {
  padding: 40px 0;
}

@media (min-width: 768px) {
  .section {
    padding: 60px 0;
  }
}

.section-header {
  margin-bottom: 40px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--apple-secondary-text);
}

@media (min-width: 768px) {
  .section-title {
    font-size: 40px;
  }

  .section-subtitle {
    font-size: 18px;
  }
}

/* ========================================
   Content Card (for sub pages)
======================================== */
.content-card {
  background: var(--apple-secondary-bg);
  border-radius: var(--card-radius);
  padding: 32px 24px;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .content-card {
    padding: 48px 40px;
  }
}

.content-card h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--apple-text);
}

.content-card p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--apple-secondary-text);
}

.content-card p+p {
  margin-top: 16px;
}

/* ========================================
   Breadcrumb / Sub Navigation
======================================== */
.sub-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: calc(var(--nav-height) + 20px) 0 20px;
  list-style: none;
}

.sub-nav a {
  padding: 10px 20px;
  background: var(--apple-secondary-bg);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition-fast);
}

.sub-nav a:hover,
.sub-nav a.active {
  background: var(--apple-text);
  color: white;
}

/* ========================================
   Footer
======================================== */
.footer {
  background: #ffffff;
  padding: 48px 0;
  margin-top: 20px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.footer-divider {
  width: 60px;
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
  margin: 4px 0;
}

.footer-info {
  font-size: 13px;
  color: var(--apple-secondary-text);
  line-height: 1.8;
}

.footer-copyright {
  font-size: 12px;
  color: var(--apple-secondary-text);
}

/* Service Intro (Sub pages) */
.service-intro {
  /* Fallback & Dark Gradient */
  background: linear-gradient(135deg, #1c1c1e 0%, #2c2c2e 100%) !important;
  padding: 60px 20px;
  border-radius: var(--card-radius);
  text-align: center;
  margin-bottom: 40px;
  color: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

/* Optional: Add a subtle pattern overlay if needed */
.service-intro::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.1), transparent 70%);
  pointer-events: none;
}

.service-intro h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  color: white !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.service-intro p {
  font-size: 16px;
  opacity: 0.9;
  line-height: 1.6;
  color: white !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* ========================================
   Page Header (Sub pages)
======================================== */
.page-header {
  padding: calc(var(--nav-height) + 40px) 0 40px;
  background: linear-gradient(-45deg, #f9f9fb, #ffffff, #f5f5f7);
  background-size: 400% 400%;
  animation: gradientBG 10s ease infinite;
  text-align: center;
}

.page-header h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.page-header p {
  font-size: 16px;
  color: var(--apple-secondary-text);
}

@media (min-width: 768px) {
  .page-header {
    padding: calc(var(--nav-height) + 60px) 0 60px;
  }

  .page-header h1 {
    font-size: 48px;
  }

  .page-header p {
    font-size: 20px;
  }
}

/* ========================================
   Form Styles
======================================== */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--apple-text);
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  font-family: inherit;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  background: white;
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--apple-blue);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* ========================================
   Utilities
======================================== */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mt-1 {
  margin-top: 8px;
}

.mt-2 {
  margin-top: 16px;
}

.mt-3 {
  margin-top: 24px;
}

.mt-4 {
  margin-top: 32px;
}

.mt-5 {
  margin-top: 48px;
}

.mb-1 {
  margin-bottom: 8px;
}

.mb-2 {
  margin-bottom: 16px;
}

.mb-3 {
  margin-bottom: 24px;
}

.mb-4 {
  margin-bottom: 32px;
}

.mb-5 {
  margin-bottom: 48px;
}

.py-4 {
  padding-top: 32px;
  padding-bottom: 32px;
}

.py-5 {
  padding-top: 48px;
  padding-bottom: 48px;
}

.d-flex {
  display: flex;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-2 {
  gap: 16px;
}

.gap-3 {
  gap: 24px;
}

.justify-center {
  justify-content: center;
}

.align-center {
  align-items: center;
}

/* Image Styles */
.img-rounded {
  border-radius: var(--card-radius);
}

.img-shadow {
  box-shadow: var(--shadow-lg);
}

/* ========================================
   Animations
======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease forwards;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}

.delay-4 {
  animation-delay: 0.4s;
}

/* ========================================
   Service Page Specific Styles
======================================== */
.service-intro {
  background: linear-gradient(135deg, var(--apple-blue) 0%, #0099ff 100%);
  color: white;
  padding: 40px 24px;
  border-radius: var(--card-radius);
  margin-bottom: 32px;
  text-align: center;
}

.service-intro.green {
  background: linear-gradient(135deg, var(--color-display) 0%, #2ecc71 100%);
}

.service-intro.purple {
  background: linear-gradient(135deg, var(--color-mobile) 0%, #9b59b6 100%);
}

.service-intro.orange {
  background: linear-gradient(135deg, var(--color-pr) 0%, #f39c12 100%);
}

.service-intro h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-intro p {
  font-size: 15px;
  opacity: 0.9;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .service-intro {
    padding: 60px 48px;
  }

  .service-intro h2 {
    font-size: 32px;
  }

  .service-intro p {
    font-size: 18px;
  }
}

/* Info Box */
.info-box {
  background: white;
  border-left: 4px solid var(--apple-blue);
  padding: 20px;
  border-radius: 0 12px 12px 0;
  margin: 24px 0;
}

.info-box p {
  font-size: 14px;
  line-height: 1.7;
}

.info-box .highlight {
  color: var(--apple-blue);
  font-weight: 600;
}

.info-box .note {
  font-size: 12px;
  color: var(--apple-secondary-text);
  margin-top: 8px;
}

/* ========================================
   Glow Border Button (Rotating)
======================================== */
.btn-glow-border {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 16px 48px;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  background: #000000;
  border-radius: 9999px;
  text-decoration: none;
  overflow: hidden;
  z-index: 1;
  border: none;
  transition: all 0.3s ease;
  margin-top: 32px;
}

/* 회전하는 그라데이션 라인 */
.btn-glow-border::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 300%;
  background: conic-gradient(from 0deg, transparent 0%, transparent 80%, #ffffff 90%, transparent 100%);
  transform: translate(-50%, -50%);
  animation: rotateBorder 3s linear infinite;
  z-index: -2;
}

/* 내부 검은색 배경 */
.btn-glow-border::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: #000000;
  border-radius: 9999px;
  z-index: -1;
}

@keyframes rotateBorder {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.btn-glow-border:hover {
  color: #ffffff;
  transform: scale(1.03);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* 모바일 대응 */
@media (max-width: 768px) {
  .btn-glow-border {
    padding: 14px 32px;
    font-size: 16px;
  }
}

/* ========================================
   Typewriter Animation (Global)
======================================== */
.typewriter-text {
  font-size: 42px;
  font-weight: 100;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.03em;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
}

.typewriter-text .cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: #ffffff;
  margin-left: 4px;
  animation: blink 0.8s infinite;
  vertical-align: middle;
}

@keyframes blink {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0;
  }
}

@media (max-width: 991px) {
  .typewriter-text {
    font-size: 26px;
    /* 모바일 폰트 크기 조정 */
  }
}

/* ========================================
   Rolling Logo Banner
======================================== */
.logo-ticker-section {
  padding: 40px 0;
  background: #ffffff;
  /* 흰색 배경으로 변경 */
  overflow: hidden;
  border-bottom: 1px solid #eee;
}

.logo-ticker-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logo-ticker {
  display: flex;
  align-items: center;
  animation: logoTicker 40s linear infinite;
  padding: 10px 0;
}

.logo-ticker img {
  height: 28px;
  width: auto;
  margin: 0 30px;
  filter: grayscale(100%) opacity(0.6);
  transition: all 0.3s ease;
  object-fit: contain;
}

.logo-ticker img:hover {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.1);
}

@keyframes logoTicker {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.logo-ticker-wrap:hover .logo-ticker {
  animation-play-state: paused;
}

/* Text Logo Styling */
.text-logo {
  color: #000;
  opacity: 1;
  transition: all 0.3s ease;
  white-space: nowrap;
  cursor: default;
}

/* Performance Optimization */
.animate-fadeInUp,
.hero-title,
.solution-card {
  will-change: transform, opacity;
}