/* ===== Base Styles ===== */
* {
  box-sizing: border-box;
  word-break: keep-all;
}

html {
  scroll-behavior: smooth;
}

img {
  display: block;
}

body {
  min-width: 320px;
  overflow-x: hidden;
}

/* ===== Swiper Navigation Custom Style ===== */
.swiper-button-next:after,
.swiper-button-prev:after {
  display: none;
}

/* Swiper Pagination Custom Style */
.swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background-color: #222;
  opacity: 0.3;
}

.swiper-pagination-bullet-active {
  opacity: 1;
}

/* Animation */
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.scroll-indicator {
  animation: bounce 2s infinite;
}

/* 뉴스 Swiper 네비게이션 커스텀 */
.newsSwiper .swiper-button-next:after,
.newsSwiper .swiper-button-prev:after {
  display: none;
}

/* ===== Responsive Utilities ===== */

/* 반응형 컨테이너 패딩 */
@media (max-width: 768px) {
  .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    padding-left: 40px !important;
    padding-right: 40px !important;
  }
}

/* ===== Hero Section Responsive ===== */
.mainSwiper {
  height: calc(100vh - 60px) !important;
  min-height: 500px;
  max-height: 1020px;
}

@media (max-width: 768px) {
  .mainSwiper {
    height: calc(100vh - 60px) !important;
    min-height: 400px;
    max-height: 700px;
  }
}

/* ===== Typography Responsive ===== */
.hero-title {
  font-size: clamp(28px, 5vw, 60px);
  line-height: 1.2;
}

.section-title {
  font-size: clamp(24px, 4vw, 48px);
  line-height: 1.3;
}

.card-title {
  font-size: clamp(18px, 2.5vw, 30px);
  line-height: 1.4;
}

.card-desc {
  font-size: clamp(14px, 1.8vw, 23px);
  line-height: 1.6;
}

/* ===== Button Responsive ===== */
.btn-primary,
.btn-secondary {
  padding: 12px 24px;
  font-size: 14px;
}

@media (max-width: 768px) {
  .btn-primary,
  .btn-secondary {
    padding: 10px 16px;
    font-size: 13px;
  }
}

/* ===== Grid Responsive ===== */
.solution-grid {
  display: grid;
  gap: 20px;
}

@media (max-width: 768px) {
  .solution-grid {
    grid-template-columns: 1fr !important;
  }
  
  .solution-grid > * {
    grid-column: span 1 !important;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .solution-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .solution-grid .col-span-3 {
    grid-column: span 2 !important;
  }
}

/* ===== Card Responsive ===== */
.card-responsive {
  height: auto !important;
  min-height: 300px;
  padding: 24px;
}

@media (min-width: 769px) {
  .card-responsive {
    min-height: 370px;
    padding: 30px;
  }
}

@media (min-width: 1025px) {
  .card-responsive {
    min-height: 525px;
    padding: 40px;
  }
}

/* ===== Footer Responsive ===== */
.footer-links {
  flex-direction: column;
}

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

.footer-info {
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

@media (min-width: 769px) {
  .footer-info {
    flex-direction: row;
    gap: 20px;
    text-align: left;
  }
}

/* ===== Mobile Menu ===== */
/* 모바일 메뉴는 header.js에서 Tailwind hidden 클래스로 제어 */

/* ===== Section Spacing Responsive ===== */
.section-padding {
  padding-top: 60px;
  padding-bottom: 60px;
}

@media (min-width: 769px) {
  .section-padding {
    padding-top: 100px;
    padding-bottom: 100px;
  }
}

@media (min-width: 1025px) {
  .section-padding {
    padding-top: 120px;
    padding-bottom: 120px;
  }
}

.page-top-padding {
  padding-top: 100px;
}

@media (min-width: 769px) {
  .page-top-padding {
    padding-top: 160px;
  }
}

@media (min-width: 1025px) {
  .page-top-padding {
    padding-top: 240px;
  }
}

/* ===== Image Responsive ===== */
.img-responsive {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ===== Flex Direction Responsive ===== */
@media (max-width: 768px) {
  .flex-col-mobile {
    flex-direction: column !important;
  }
  
  .w-full-mobile {
    width: 100% !important;
  }
  
  .text-center-mobile {
    text-align: center !important;
  }
}

/* ===== Hide/Show Elements ===== */
.hide-mobile {
  display: none;
}

@media (min-width: 769px) {
  .hide-mobile {
    display: block;
  }
  
  .hide-desktop {
    display: none !important;
  }
}

/* ===== Contact Cards Responsive ===== */
.contact-cards {
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 769px) {
  .contact-cards {
    flex-direction: row;
    gap: 24px;
  }
}

.contact-card {
  width: 100%;
}

@media (min-width: 769px) {
  .contact-card {
    width: calc(50% - 12px);
  }
}

/* ===== News Grid Responsive ===== */
.news-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

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

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

/* ===== Business Section Responsive ===== */
.business-section {
  height: auto;
  min-height: 500px;
  padding: 60px 0;
}

@media (min-width: 769px) {
  .business-section {
    min-height: 600px;
    padding: 100px 0;
  }
}

@media (min-width: 1025px) {
  .business-section {
    height: 100vh;
    padding: 150px 0;
  }
}

/* ===== Solution Section Two Column Layout ===== */
.solution-two-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 1025px) {
  .solution-two-col {
    flex-direction: row;
  }
  
  .solution-two-col > .solution-left {
    flex: 1;
    width: 50%;
  }
  
  .solution-two-col > .solution-right {
    width: 50%;
  }
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .scroll-indicator {
    animation: none;
  }
}
