/* ========================================
   DH정보기술 홈페이지 스타일시트
   ======================================== */

/* ========================================
   1. CSS Reset & Base Styles
   ======================================== */

/* Import Pretendard Font */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css");

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Pretendard", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

/* Sub-pages without hero section (company info pages) */
body:not(.home-page):not(.has-hero) {
  padding-top: 4rem;
}

/* Reset links */
a {
  text-decoration: none;
  color: inherit;
}

/* Reset lists */
ul,
ol {
  list-style: none;
}

/* Reset buttons */
button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* Material Symbols */
.material-symbols-outlined {
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
  font-size: inherit;
  user-select: none;
}

/* ========================================
   2. Colors & Variables
   ======================================== */

:root {
  /* Primary Colors */
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #eff6ff;

  /* Secondary Colors */
  --secondary: #06b6d4;
  --secondary-dark: #0891b2;

  /* Accent Colors */
  --accent-orange: #f97316;
  --accent-orange-light: #fff7ed;

  /* Navy Colors */
  --navy: #0f172a;
  --navy-light: #1e293b;
  --navy-lighter: #334155;

  /* Gray Scale */
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  --gradient-dark: linear-gradient(to bottom, #0f172a, #1e293b);

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 20px 40px rgba(37, 99, 235, 0.08);

  /* Transitions */
  --transition-fast: 150ms;
  --transition-base: 300ms;
  --transition-slow: 500ms;
  --transition-slower: 700ms;
}

/* ========================================
   3. Layout & Container
   ======================================== */

.container {
  max-width: 1280px !important;
  margin: 0 auto !important;
  padding: 0 1rem !important;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem !important;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem !important;
  }
}

/* ========================================
   4. Header Styles
   ======================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all var(--transition-base);
}

.home-page .header {
  position: absolute;
}

.header-bg {
  position: absolute;
  inset: 0;
  background: transparent;
  transition: all var(--transition-base);
}

/* Sub-pages: Always show white background */
body:not(.home-page) .header-bg {
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Mobile menu open: Show white background */
body.mobile-menu-open .header-bg {
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

body.mobile-menu-open .logo-img {
  opacity: 1 !important;
  position: relative !important;
  display: block !important;
}

body.mobile-menu-open .logo-img-white {
  opacity: 0 !important;
  position: absolute !important;
  display: none !important;
}

body.mobile-menu-open .logo-text {
  color: var(--gray-800) !important;
}

body.mobile-menu-open .mobile-menu-btn {
  color: var(--gray-600) !important;
}

body:not(.home-page) .logo-img {
  opacity: 1 !important;
  position: relative !important;
  display: block !important;
}

body:not(.home-page) .logo-img-white {
  opacity: 0 !important;
  position: absolute !important;
  display: none !important;
}

body:not(.home-page) .logo-text {
  color: var(--gray-800);
}

body:not(.home-page) .nav-link {
  color: var(--gray-600);
}

body:not(.home-page) .mobile-menu-btn {
  color: var(--gray-600);
}

body:not(.home-page) .header-cta {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  border-color: transparent;
  color: white;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

body:not(.home-page) .header-cta:hover {
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  background-size: 200% 200%;
  animation: gradient-shift 3s ease infinite;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
  transform: translateY(-2px);
}

@media (min-width: 1024px) {
  .header:hover .header-bg {
    background: #fff;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  }
}

.header-container {
  position: relative;
  z-index: 10;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  min-height: 2.5rem;
}

.logo-img {
  height: 2.5rem;
  opacity: 0;
  position: absolute;
  left: 0;
  transition: opacity var(--transition-base);
}

.logo-img-white {
  height: 2.5rem;
  opacity: 1;
  transition: opacity var(--transition-base);
}

@media (min-width: 1024px) {
  .header:hover .logo-img {
    opacity: 1;
  }

  .header:hover .logo-img-white {
    opacity: 0;
  }
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 900;
  color: white;
  transition: color var(--transition-base);
}

@media (min-width: 1024px) {
  .header:hover .logo-text {
    color: var(--gray-800);
  }
}

/* Navigation */
.nav {
  display: none;
  align-items: center;
  gap: 2.5rem;
  height: 100%;
}

@media (min-width: 1024px) {
  .nav {
    display: flex;
  }
}

.nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: white;
  font-size: 1.125rem;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color var(--transition-base);
}

.header:hover .nav-link {
  color: var(--gray-600);
}

.header:hover .nav-link:hover {
  color: var(--primary);
}

.nav-link-simple {
  padding: 0.5rem 0;
}

.nav-arrow {
  font-size: 0.875rem;
  transition: transform var(--transition-base);
}

.header:hover .nav-arrow {
  transform: rotate(180deg);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: white;
  transition: color var(--transition-base);
}

@media (min-width: 1024px) {
  .header:hover .mobile-menu-btn {
    color: var(--gray-600);
  }
}

.mobile-menu-btn .material-symbols-outlined {
  font-size: 1.875rem;
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* Header CTA */
.header-cta {
  display: none;
  min-width: 100px;
  height: 2.75rem;
  padding: 0 1.5rem;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 9999px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: white;
  font-size: 0.875rem;
  font-weight: 700;
  transition: all var(--transition-base);
  position: relative;
}

.header:hover .header-cta {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  border-color: transparent;
  color: white;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.header-cta:hover,
.header:hover .header-cta:hover {
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%) !important;
  background-size: 200% 200%;
  animation: gradient-shift 3s ease infinite;
  border-color: transparent !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@media (min-width: 1024px) {
  .header-cta {
    display: flex;
  }
}

/* ========================================
   5. Mega Menu Styles
   ======================================== */

.mega-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: 5;
  background: #fff;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

@media (min-width: 1024px) {
  .mega-menu {
    display: block;
  }
}

.header:hover .mega-menu {
  opacity: 1;
  visibility: visible;
}

.mega-menu-container {
  padding: 2.75rem 1rem !important;
}

@media (min-width: 640px) {
  .mega-menu-container {
    padding: 2.75rem 1.5rem !important;
  }
}

@media (min-width: 1024px) {
  .mega-menu-container {
    padding: 1.8rem 2rem !important;
  }
}

.mega-menu-content {
  display: flex;
  gap: 2.5rem;
  justify-content: flex-end;
  align-items: flex-start;
  padding-right: 19rem;
}

.mega-menu-col {
  width: 12rem;
}

.mega-menu-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  color: var(--primary);
}

.mega-menu-title .material-symbols-outlined {
  font-size: 1.25rem;
}

.mega-menu-title h3 {
  font-size: 1.125rem;
  font-weight: 700;
}

.mega-menu-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mega-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--gray-600);
  transition: all var(--transition-base);
  padding: 0.5rem;
  margin: -0.5rem;
  border-radius: 0.375rem;
}

.mega-menu-link:hover {
  color: var(--primary);
  background: var(--gray-50);
}

.mega-menu-link .material-symbols-outlined {
  font-size: 1.125rem;
  opacity: 0;
  transform: translateX(-0.5rem);
  transition: all 200ms;
}

.mega-menu-link:hover .material-symbols-outlined {
  opacity: 1;
  transform: translateX(0);
}

/* ========================================
   6. Mobile Menu Styles
   ======================================== */

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid var(--gray-200);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-height: calc(100vh - 100%);
  overflow-y: auto;
}

.mobile-menu.active {
  display: block;
}

@media (min-width: 1024px) {
  .mobile-menu {
    display: none !important;
  }
}

.mobile-menu-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  color: var(--gray-700);
  font-weight: 500;
  padding: 0.5rem 0;
}

.mobile-menu-toggle .material-symbols-outlined {
  font-size: 0.875rem;
  transition: transform var(--transition-base);
}

.mobile-menu-toggle.active .material-symbols-outlined {
  transform: rotate(180deg);
}

.mobile-submenu {
  display: none;
  padding-left: 1rem;
  margin-top: 0.5rem;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-submenu.active {
  display: flex;
}

.mobile-submenu-link {
  display: block;
  padding: 0.5rem 0;
  color: var(--gray-600);
  transition: color var(--transition-base);
}

.mobile-submenu-link:hover {
  color: var(--primary);
}

.mobile-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 1rem;
  padding: 0.75rem 0;
  background: var(--gradient-primary);
  color: white;
  font-weight: 700;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-md);
  transition: opacity var(--transition-base);
}

.mobile-cta:hover {
  opacity: 0.9;
}

/* ========================================
   7. Hero Section Styles
   ======================================== */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity var(--transition-slower);
}

.hero-slide.active {
  opacity: 1;
}

.hero-parallax {
  position: absolute;
  width: 100%;
  height: 120%;
  top: -10%;
  z-index: 0;
  will-change: transform;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  mix-blend-mode: multiply;
  z-index: 10;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--navy), transparent, transparent);
  z-index: 10;
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1rem;
}

.hero-title {
  color: white;
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.05em;
  white-space: pre-line;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

.hero-desc {
  color: var(--gray-200);
  font-size: 1.125rem;
  font-weight: 400;
  max-width: 42rem;
  white-space: pre-line;
}

@media (min-width: 768px) {
  .hero-desc {
    font-size: 1.25rem;
  }
}

/* Hero Navigation Arrows */
.hero-prev,
.hero-next {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 4rem;
  height: 4rem;
  align-items: center;
  justify-content: center;
  color: white;
  transition: color var(--transition-base);
}

@media (min-width: 768px) {
  .hero-prev,
  .hero-next {
    display: flex;
  }
}

.hero-prev {
  left: 2rem;
}

.hero-next {
  right: 2rem;
}

.hero-prev:hover,
.hero-next:hover {
  color: var(--primary);
}

.hero-prev .material-symbols-outlined,
.hero-next .material-symbols-outlined {
  font-size: 3.5rem;
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 48;
}

/* Hero Indicators */
.hero-indicators {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.375rem;
  z-index: 20;
}

.hero-indicator {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.5);
  transition: all var(--transition-base);
}

@media (min-width: 768px) {
  .hero-indicator {
    width: 0.5rem;
    height: 0.5rem;
  }
}

.hero-indicator.active {
  background: white;
}

/* ========================================
   8. Section Intro Styles
   ======================================== */

.section-intro {
  padding: 5rem 0;
  background: white;
}

@media (min-width: 640px) {
  .section-intro {
    padding: 7rem 0;
  }
}

.intro-header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 5rem;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--gray-800);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.section-desc {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  color: var(--gray-600);
  line-height: 1.75;
}

/* ========================================
   9. Core Values Styles
   ======================================== */

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 4rem;
}

@media (min-width: 768px) {
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.value-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 2.5rem;
  border-radius: 1.5rem;
  background: white;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--gray-100);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-slow);
}

.value-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transform: translateY(-0.75rem);
  border-color: transparent;
}

.value-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.08),
    rgba(6, 182, 212, 0.05)
  );
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.value-card:hover .value-bg {
  opacity: 1;
}

/* 각 카드별 색상 */
.value-card:nth-child(1) .value-bg {
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.08),
    rgba(59, 130, 246, 0.05)
  );
}

.value-card:nth-child(2) .value-bg {
  background: linear-gradient(
    135deg,
    rgba(6, 182, 212, 0.08),
    rgba(34, 211, 238, 0.05)
  );
}

.value-card:nth-child(3) .value-bg {
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.08),
    rgba(52, 211, 153, 0.05)
  );
}

.value-icon {
  position: relative;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.1),
    rgba(6, 182, 212, 0.05)
  );
  transition: all var(--transition-slow);
}

.value-card:hover .value-icon {
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.2);
}

/* 각 카드별 아이콘 배경 색상 */
.value-card:nth-child(1) .value-icon {
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.12),
    rgba(59, 130, 246, 0.08)
  );
}

.value-card:nth-child(2) .value-icon {
  background: linear-gradient(
    135deg,
    rgba(6, 182, 212, 0.12),
    rgba(34, 211, 238, 0.08)
  );
}

.value-card:nth-child(3) .value-icon {
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.12),
    rgba(52, 211, 153, 0.08)
  );
}

.value-icon .material-symbols-outlined {
  font-size: 4rem;
  color: var(--primary);
  font-variation-settings:
    "FILL" 0,
    "wght" 300,
    "GRAD" 0,
    "opsz" 48;
  transition: all var(--transition-base);
}

.value-card:hover .value-icon .material-symbols-outlined {
  font-variation-settings:
    "FILL" 1,
    "wght" 400,
    "GRAD" 0,
    "opsz" 48;
}

/* 각 카드별 아이콘 색상 */
.value-card:nth-child(1) .value-icon .material-symbols-outlined {
  color: #2563eb;
}

.value-card:nth-child(2) .value-icon .material-symbols-outlined {
  color: #06b6d4;
}

.value-card:nth-child(3) .value-icon .material-symbols-outlined {
  color: #10b981;
}

.value-title {
  position: relative;
  z-index: 10;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
  transition: color var(--transition-base);
}

.value-card:hover .value-title {
  color: var(--primary);
}

.value-text {
  position: relative;
  z-index: 10;
  color: var(--gray-600);
  line-height: 1.75;
}

/* ========================================
   10. Business Section Styles
   ======================================== */

.section-business {
  padding: 5rem 0;
  background: var(--gray-50);
}

@media (min-width: 640px) {
  .section-business {
    padding: 7rem 0;
  }
}

.business-header {
  text-align: center;
  margin-bottom: 4rem;
}

.business-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .business-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .business-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
  }
}

.business-card {
  background: white;
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--gray-100);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all var(--transition-slow);
}

@media (min-width: 1024px) {
  .business-card {
    padding: 1.75rem;
  }
}

.business-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-0.5rem);
}

.business-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: rgba(37, 99, 235, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 1.5rem;
  transition: all var(--transition-base);
}

.business-card:hover .business-icon {
  background: var(--primary);
  color: white;
}

.business-icon .material-symbols-outlined {
  font-size: 1.875rem;
  font-variation-settings:
    "FILL" 0,
    "wght" 300,
    "GRAD" 0,
    "opsz" 24;
}

.business-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
  letter-spacing: -0.025em;
}

.business-subtitle {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
}

.business-list {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.business-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.business-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background: var(--gray-300);
  transition: background var(--transition-base);
}

.business-card:hover .business-dot {
  background: rgba(37, 99, 235, 0.5);
}

.business-item span:last-child {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
}

/* ========================================
   11. Clients Section Styles
   ======================================== */

.section-clients {
  padding: 5rem 0;
  background: white;
}

@media (min-width: 640px) {
  .section-clients {
    padding: 7rem 0;
  }
}

.clients-header {
  text-align: center;
  margin-bottom: 4rem;
}

/* Clients Grid */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .clients-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
  }
}

@media (min-width: 1280px) {
  .clients-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.client-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  background: white;
  border-radius: 1rem;
  border: 1px solid var(--gray-100);
  transition: all var(--transition-base);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Stagger animation delay for each item */
.client-logo-item:nth-child(1) {
  animation-delay: 0.05s;
}
.client-logo-item:nth-child(2) {
  animation-delay: 0.1s;
}
.client-logo-item:nth-child(3) {
  animation-delay: 0.15s;
}
.client-logo-item:nth-child(4) {
  animation-delay: 0.2s;
}
.client-logo-item:nth-child(5) {
  animation-delay: 0.25s;
}
.client-logo-item:nth-child(6) {
  animation-delay: 0.3s;
}
.client-logo-item:nth-child(7) {
  animation-delay: 0.35s;
}
.client-logo-item:nth-child(8) {
  animation-delay: 0.4s;
}
.client-logo-item:nth-child(9) {
  animation-delay: 0.45s;
}
.client-logo-item:nth-child(10) {
  animation-delay: 0.5s;
}
.client-logo-item:nth-child(11) {
  animation-delay: 0.55s;
}
.client-logo-item:nth-child(12) {
  animation-delay: 0.6s;
}
.client-logo-item:nth-child(13) {
  animation-delay: 0.65s;
}
.client-logo-item:nth-child(14) {
  animation-delay: 0.7s;
}
.client-logo-item:nth-child(15) {
  animation-delay: 0.75s;
}
.client-logo-item:nth-child(16) {
  animation-delay: 0.8s;
}
.client-logo-item:nth-child(17) {
  animation-delay: 0.85s;
}
.client-logo-item:nth-child(18) {
  animation-delay: 0.9s;
}
.client-logo-item:nth-child(19) {
  animation-delay: 0.95s;
}
.client-logo-item:nth-child(20) {
  animation-delay: 1s;
}
.client-logo-item:nth-child(21) {
  animation-delay: 1.05s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.client-logo-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.client-logo-item img {
  max-width: 100%;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.6);
  transition: all var(--transition-base);
}

/* 1번째 로고 크기 조정 */
.client-logo-item:nth-child(1) img {
  max-height: 70px;
}

/* 2번째 로고 크기 조정 */
.client-logo-item:nth-child(2) img {
  max-height: 45px;
}

/* 3번째 로고 크기 조정 */
.client-logo-item:nth-child(3) img {
  max-height: 45px;
}

/* 5번째 로고 크기 조정 */
.client-logo-item:nth-child(5) img {
  max-height: 50px;
}

/* 10번째 로고 크기 조정 */
.client-logo-item:nth-child(10) img {
  max-height: 24px;
}

/* 13번째 로고 크기 조정 */
.client-logo-item:nth-child(13) img {
  max-height: 75px;
}

/* 15번째 로고 크기 조정 */
.client-logo-item:nth-child(15) img {
  max-height: 38px;
}

.client-logo-item:hover img {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.05);
}

/* ========================================
   12. Contact Section Styles
   ======================================== */

.section-contact {
  position: relative;
  padding: 5rem 0;
  background: var(--gray-50);
  overflow: hidden;
}

@media (min-width: 640px) {
  .section-contact {
    padding: 7rem 0;
  }
}

.contact-container {
  position: relative;
  z-index: 10;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
  }
}

/* Contact Info Section */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: transparent;
  border-radius: 0.5rem;
  transition: all var(--transition-base);
}

.contact-card:hover {
  background: rgba(255, 255, 255, 0.5);
}

.contact-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: rgba(37, 99, 235, 0.08);
  flex-shrink: 0;
}

.contact-card-icon .material-symbols-outlined {
  font-size: 1.5rem;
  color: var(--primary);
  font-variation-settings:
    "FILL" 0,
    "wght" 300,
    "GRAD" 0,
    "opsz" 48;
}

.contact-card-content {
  flex: 1;
}

.contact-card-title {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gray-500);
  margin-bottom: 0.125rem;
}

.contact-card-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
}

/* Contact Form */
.contact-form-wrap {
  padding: 2.5rem;
  border-radius: 1.5rem;
  background: white;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--gray-100);
}

@media (min-width: 640px) {
  .contact-form-wrap {
    padding: 3rem;
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.625rem;
}

.form-label-icon {
  font-size: 1.25rem;
  color: var(--primary);
  font-variation-settings:
    "FILL" 0,
    "wght" 300,
    "GRAD" 0,
    "opsz" 24;
}

.form-input {
  display: block;
  width: 100%;
  padding: 0.875rem 1.125rem;
  border-radius: 0.75rem;
  border: 2px solid var(--gray-200);
  background: var(--gray-50);
  color: var(--gray-900);
  font-size: 0.9375rem;
  outline: none;
  transition: all var(--transition-base);
}

.form-input::placeholder {
  color: var(--gray-400);
}

.form-input:hover {
  border-color: var(--gray-300);
  background: white;
}

.form-input:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0;
}

.checkbox-input {
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 0.375rem;
  accent-color: var(--primary);
  cursor: pointer;
}

.checkbox-label {
  font-size: 0.875rem;
  color: var(--gray-600);
  cursor: pointer;
  user-select: none;
}

.form-submit {
  padding-top: 0.5rem;
}

.btn-submit {
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: white;
  background: var(--gradient-primary);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  outline: none;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-submit .material-symbols-outlined {
  font-size: 1.25rem;
  font-variation-settings:
    "FILL" 1,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
  transition: transform var(--transition-base);
}

.btn-submit:hover {
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.4);
  transform: translateY(-0.25rem);
}

.btn-submit:hover .material-symbols-outlined {
  transform: translateX(0.25rem);
}

.btn-submit:active {
  transform: translateY(-0.125rem);
}

.btn-submit:focus {
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

/* ========================================
   13. Footer Styles
   ======================================== */

.footer {
  background: var(--navy);
  color: var(--gray-400);
  border-top: 1px solid var(--gray-800);
}

.footer-container {
  padding: 3rem 1rem !important;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .footer-top {
    flex-direction: row;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo img {
  height: 2rem;
}

.footer-logo span {
  font-size: 1.125rem;
  font-weight: 900;
  color: white;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
}

.footer-links a {
  transition: color var(--transition-base);
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  margin-top: 2rem;
  border-top: 1px solid var(--gray-700);
  padding-top: 2rem;
  font-size: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-bottom {
    text-align: left;
  }
}

.footer-name {
  font-weight: 700;
  color: white;
}

.footer-copy {
  padding-top: 1rem;
  color: var(--gray-500);
}

/* ========================================
   14. Business Area Tabs Navigation
   ======================================== */

.business-tabs {
  position: sticky;
  top: 4rem;
  z-index: 40;
  background: white;
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tabs-wrapper {
  display: flex;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tabs-wrapper::-webkit-scrollbar {
  display: none;
}

.tab-link {
  padding: 1rem 2rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray-600);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-base);
  position: relative;
}

.tab-link:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-link.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

@media (min-width: 768px) {
  .tabs-wrapper {
    justify-content: center;
  }

  .tab-link {
    padding: 1rem 2.5rem;
    font-size: 1rem;
  }
}

/* ========================================
   15. Sub-page Header Styles (Tailwind-based pages)
   ======================================== */

.header-logo {
  opacity: 0;
  position: absolute;
  transition: opacity var(--transition-base);
}

.header-logo-white {
  opacity: 1;
  transition: opacity var(--transition-base);
}

.group\/header:hover .header-logo {
  opacity: 1;
}

.group\/header:hover .header-logo-white {
  opacity: 0;
}

/* Sub-pages (company info): Always show colored logo */
body:not(.home-page) .header-logo {
  opacity: 1 !important;
  position: relative !important;
  display: block !important;
}

body:not(.home-page) .header-logo-white {
  opacity: 0 !important;
  position: absolute !important;
  display: none !important;
}

.header-text {
  color: white;
  transition: color var(--transition-base);
}

.group\/header:hover .header-text {
  color: var(--gray-800);
}

body:not(.home-page) .header-text {
  color: var(--gray-800) !important;
}

/* ========================================
   15. Utility Classes
   ======================================== */

.hidden {
  display: none;
}

.active {
  display: block;
}

/* ========================================
   16. Scroll to Top Button
   ======================================== */

.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: white;
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(100px);
  transition: all var(--transition-base);
}

.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
}

.scroll-top-btn:active {
  transform: translateY(-2px);
}

.scroll-top-btn .material-symbols-outlined {
  font-size: 1.75rem;
  font-variation-settings:
    "FILL" 1,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
}

@media (max-width: 768px) {
  .scroll-top-btn {
    width: 3rem;
    height: 3rem;
    bottom: 1.5rem;
    right: 1.5rem;
  }

  .scroll-top-btn .material-symbols-outlined {
    font-size: 1.5rem;
  }
}

/* ========================================
   17. General Page - Certification Section
   ======================================== */

.certification-wrapper {
  position: relative;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border-radius: 2rem;
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.certification-wrapper::before {
  display: none;
}

/* Header */
.certification-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.certification-badge-year {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.1),
    rgba(6, 182, 212, 0.05)
  );
  border-radius: 2rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.certification-badge-year .material-symbols-outlined {
  font-size: 1.5rem;
  font-variation-settings:
    "FILL" 1,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
}

.certification-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.certification-main-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.3;
}

@media (min-width: 768px) {
  .certification-main-title {
    font-size: 2.5rem;
  }
}

/* Grid */
.certification-images-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .certification-images-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

.certification-image-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 2rem;
  background: white;
  border-radius: 1.5rem;
  border: 2px solid var(--gray-100);
  transition: all var(--transition-base);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out forwards;
}

.certification-image-item:nth-child(1) {
  animation-delay: 0.2s;
}

.certification-image-item:nth-child(2) {
  animation-delay: 0.4s;
}

.certification-image-item:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.2);
  border-color: var(--primary);
}

.certification-icon {
  position: absolute;
  top: -12px;
  right: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.certification-icon .material-symbols-outlined {
  font-size: 1.5rem;
  color: white;
  font-variation-settings:
    "FILL" 1,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
}

.certification-img-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: linear-gradient(
    135deg,
    rgba(249, 250, 251, 0.5),
    rgba(255, 255, 255, 0.5)
  );
  border-radius: 1rem;
  margin-bottom: 0;
  min-height: 80px;
}

.certification-img-wrapper img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 55px;
  transition: transform var(--transition-base);
}

.certification-image-item:hover .certification-img-wrapper img {
  transform: scale(1.08);
}

.certification-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  text-align: center;
  line-height: 1.4;
}
