/* 기본 스타일링 */
:root {
   --footer-height: 280px;
   --header-height: 80px; /* 헤더 높이 */
   /* Font Families */
   --font-main: 'Noto Sans KR', sans-serif;
   --font-heading: 'Jua', sans-serif;
   /* Colors */
   --primary-color: #4f8cff;
   --primary-darker: #2563eb;
   --accent-color: #ffe066;
   --accent2-color: #5eead4;
   --text-dark: #222;
   --text-light: #6b7280;
   --bg-light: #f6faff;
   --bg-card: #fff;
   --border-color: #e0e7ef;
   --shadow: 0 4px 24px rgba(79,140,255,0.08), 0 1.5px 6px rgba(0,0,0,0.04);
}
html {
   scroll-behavior: smooth;
}
body {
   font-family: var(--font-main);
   font-weight: 400;
   margin: 0;
   padding: 0;
   box-sizing: border-box;
   color: var(--text-dark);
   position: relative;
   min-height: 100vh;
   padding-bottom: var(--footer-height);
   letter-spacing: -0.01em;
   word-break: keep-all;
   overflow-x: hidden;
   background: var(--bg-light);
}
*, *:before, *:after {
    box-sizing: inherit;
}
.container {
   max-width: 1200px;
   margin: 0 auto;
   padding: 0 24px;
   position: relative;
   z-index: 2;
}

/* --- 헤더 --- */
header {
   height: var(--header-height);
   background: #fff;
   border-bottom: 1.5px solid var(--border-color);
   box-shadow: 0 2px 8px rgba(79,140,255,0.04);
   padding: 0;
   position: sticky;
   top: 0;
   background-color: rgba(240, 240, 240, 0.95);
   backdrop-filter: blur(5px);
   z-index: 100;
   display: flex;
   align-items: center;
}
.header-content {
   width: 100%;
   display: flex;
   justify-content: space-between;
   align-items: center;
}
.logo img {
   height: 38px;
   border-radius: 10px;
   background: #e0e7ef;
   box-shadow: 0 2px 8px rgba(79,140,255,0.08);
}
nav ul {
   display: flex;
   gap: 2.2rem;
   list-style: none;
   margin: 0;
   padding: 0;
}
nav ul li a {
   text-decoration: none;
   color: var(--text-dark);
   font-weight: 600;
   font-size: 1.08em;
   padding: 10px 0;
   border-bottom: 2.5px solid transparent;
   border-radius: 0;
   transition: color 0.2s, border-color 0.2s;
}
nav ul li a:hover, nav ul li a.active {
   color: var(--primary-color);
   border-bottom-color: var(--primary-color);
}
.contact-info a {
   font-weight: 700;
   color: #fff;
   background: var(--primary-color);
   border-radius: 2rem;
   padding: 8px 22px;
   font-size: 1.15em;
   box-shadow: 0 2px 8px rgba(79,140,255,0.10);
   text-decoration: none;
   transition: background 0.2s, color 0.2s;
}
.contact-info a:hover {
   background: var(--primary-darker);
   color: #fff;
}
.contact-info a i { margin-right: 7px; }

/* --- 오른쪽 고정 버튼들 --- */
.side-buttons {
   position: fixed;
   right: 24px;
   top: 120px;
   display: flex;
   flex-direction: column;
   gap: 12px;
   z-index: 999;
}
.side-buttons button {
   padding: 12px 20px;
   background: var(--accent2-color);
   color: #222;
   border: none;
   border-radius: 2rem;
   font-weight: 600;
   font-size: 1.05em;
   box-shadow: 0 2px 8px rgba(94,234,212,0.10);
   cursor: pointer;
   transition: background 0.2s, color 0.2s, transform 0.2s;
   font-family: var(--font-main);
}
.side-buttons button:hover {
   background: var(--primary-color);
   color: #fff;
   transform: translateY(-2px) scale(1.04);
}
.side-buttons button:nth-child(1) { background: var(--accent-color); color: #222; }
.side-buttons button:nth-child(1):hover { background: #ffe066cc; color: #222; }

/* --- CTA 배너 섹션 --- */
.cta-banner {
   position: relative;
   padding: 140px 0 120px 0;
   background: linear-gradient(120deg, rgba(224, 242, 254, 0.9) 60%, rgba(246, 250, 255, 0.9) 100%);
   text-align: center;
   color: #222;
   overflow: hidden;
   scroll-margin-top: var(--header-height);
}
.cta-banner::before {
   content: '';
   position: absolute;
   top: 0; left: 0; width: 100%; height: 100%;
   background: url('../images/main.jpg') no-repeat center/cover;
   opacity: 0.25;
   z-index: 1;
}
.cta-banner::after {
   content: '';
   position: absolute;
   top: 0; left: 0; width: 100%; height: 100%;
   background: url('../images/logistics-pattern.svg') no-repeat center/cover;
   opacity: 0.05;
   z-index: 1;
}
.cta-banner h2, .cta-banner p, .cta-buttons {
   position: relative;
   z-index: 2;
}
.cta-banner h2 {
   font-family: var(--font-heading);
   font-size: 3.2em;
   margin: 0 0 28px 0;
   line-height: 1.3;
   font-weight: 700;
   letter-spacing: -0.04em;
}
.cta-banner p {
   font-size: 1.25em;
   line-height: 1.7;
   max-width: 800px;
   margin: 0 auto 36px auto;
   font-weight: 400;
}
.cta-buttons a {
   display: inline-block;
   padding: 15px 36px;
   background: var(--primary-color);
   color: #fff;
   border: none;
   border-radius: 2rem;
   font-weight: 700;
   font-size: 1.1em;
   box-shadow: 0 2px 8px rgba(79,140,255,0.10);
   text-decoration: none;
   margin: 5px 10px;
   transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.cta-buttons a i { margin-left: 7px; }
.cta-buttons a:hover {
   background: var(--primary-darker);
   color: #fff;
   transform: translateY(-2px) scale(1.04);
   box-shadow: 0 6px 16px rgba(79,140,255,0.13);
}

/* --- 메인 섹션 (Hero) --- */
.hero {
   padding: 90px 0 80px 0;
   background: var(--bg-light);
   scroll-margin-top: var(--header-height);
}
.hero-content {
   display: flex;
   align-items: center;
   gap: 60px;
}
.hero-image {
   flex: 1;
   display: flex;
   align-items: center;
   justify-content: center;
}
.hero-image img {
   max-width: 95%;
   height: auto;
   border-radius: 18px;
   box-shadow: var(--shadow);
   background: #e0f2fe;
   padding: 18px;
}
.hero-text {
   flex: 1;
   text-align: left;
}
.hero-text .sub-heading {
   font-size: 1.1em;
   color: var(--primary-color);
   margin-bottom: 10px;
   font-weight: 600;
   letter-spacing: 0.5px;
}
.hero-text h1 {
   font-family: var(--font-heading);
   font-size: 3em;
   margin: 0 0 22px 0;
   line-height: 1.3;
   font-weight: 700;
   letter-spacing: -0.04em;
}
.hero-text p {
   line-height: 1.7;
   color: var(--text-light);
   font-size: 1.13em;
   font-weight: 400;
}

/* --- 특징 섹션 --- */
.features {
   padding: 80px 0;
   background: #fff;
   position: relative;
   z-index: 10;
   scroll-margin-top: var(--header-height);
}
.features-content {
   display: flex;
   justify-content: space-between;
   gap: 32px;
}
.feature-box {
   flex: 1;
   background: var(--bg-card);
   padding: 44px 32px 40px 32px;
   border-radius: 18px;
   box-shadow: var(--shadow);
   text-align: center;
   transition: transform 0.25s, box-shadow 0.25s;
   border: none;
}
.feature-box:hover {
   transform: translateY(-7px) scale(1.03);
   box-shadow: 0 12px 32px rgba(79,140,255,0.13);
}
.feature-box .icon {
   font-size: 3.2em;
   color: var(--primary-color);
   margin-bottom: 28px;
   display: block;
   transition: color 0.2s;
}
.feature-box:hover .icon {
   color: var(--accent2-color);
}
.feature-box h3 {
   font-size: 2em;
   margin: 0 0 18px 0;
   font-weight: 700;
   color: var(--text-dark);
}
.feature-box p {
   color: var(--text-light);
   font-size: 1.08em;
   font-weight: 400;
}

/* --- 솔루션 섹션 --- */
.solutions {
   padding: 100px 0 90px 0;
   background: linear-gradient(120deg, #e0f2fe 60%, #f6faff 100%);
   scroll-margin-top: var(--header-height);
   position: relative;
   overflow: hidden;
}
.solutions::before {
   content: '';
   position: absolute;
   top: 0; left: 0; width: 100%; height: 100%;
   background: url('../images/logistics-pattern-2.svg') no-repeat center/cover;
   opacity: 0.1;
   z-index: 1;
}
.solutions .section-subtitle,
.solutions h2,
.solutions-grid {
   position: relative;
   z-index: 2;
}
.solutions .section-subtitle {
   font-size: 1.1em;
   color: var(--primary-color);
   margin-bottom: 12px;
   font-weight: 700;
   text-transform: uppercase;
   letter-spacing: 0.5px;
   text-align: center;
}
.solutions h2 {
   font-family: var(--font-heading);
   font-size: 3em;
   margin: 0 0 54px 0;
   text-align: center;
   font-weight: 700;
   letter-spacing: -0.04em;
}
.solutions-grid {
   display: grid;
   grid-template-columns: repeat(4, 1fr);
   gap: 38px;
   text-align: left;
   margin-top: 40px;
}
.solution-card {
   background: var(--bg-card);
   border-radius: 18px;
   box-shadow: var(--shadow);
   overflow: hidden;
   transition: transform 0.25s, box-shadow 0.25s;
   display: flex;
   flex-direction: column;
   border: none;
}
.solution-card:hover {
   transform: translateY(-7px) scale(1.03);
   box-shadow: 0 12px 32px rgba(79,140,255,0.13);
}
.solution-card img {
   width: 100%;
   height: 200px;
   object-fit: cover;
   display: block;
   background: #e0f2fe;
}
.solution-card-content {
   padding: 32px 28px 28px 28px;
   flex-grow: 1;
   display: flex;
   flex-direction: column;
}
.solution-card h3 {
   font-size: 1.5em;
   margin: 0 0 13px 0;
   font-weight: 700;
   color: var(--text-dark);
}
.solution-card p {
   color: var(--text-light);
   font-size: 1.05em;
   flex-grow: 1;
   margin-bottom: 18px;
   font-weight: 400;
}
.solution-card a {
   display: inline-block;
   margin-top: auto;
   color: #fff;
   background: var(--primary-color);
   border-radius: 1.5rem;
   padding: 8px 22px;
   text-decoration: none;
   font-weight: 600;
   font-size: 1.05em;
   transition: background 0.2s, color 0.2s;
}
.solution-card a i { margin-left: 5px; }
.solution-card a:hover {
   background: var(--primary-darker);
   color: #fff;
}

/* --- 푸터 --- */
footer {
   background: linear-gradient(120deg, #4f8cff 60%, #2563eb 100%);
   color: #fff;
   font-size: 0.98em;
   position: absolute;
   bottom: 0;
   left: 0;
   width: 100%;
}
.footer-top {
   padding: 36px 0 24px 0;
   border-bottom: 1.5px solid #fff2;
}
.footer-top .container {
   display: flex;
   justify-content: space-between;
   align-items: center;
   gap: 24px;
   flex-wrap: wrap;
}
.footer-contact h3 {
   font-family: var(--font-heading);
   font-size: 2.1em;
   color: #fff;
   margin: 0 0 7px 0;
   font-weight: 700;
}
.footer-contact p {
   margin: 0;
   max-width: 450px;
   line-height: 1.6;
   font-weight: 400;
}
.footer-buttons a {
   display: inline-block;
   padding: 12px 26px;
   background: #fff;
   color: var(--primary-color);
   border-radius: 2rem;
   text-decoration: none;
   margin-left: 10px;
   font-weight: 700;
   font-size: 1.05em;
   transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
   box-shadow: 0 2px 8px rgba(255,255,255,0.10);
}
.footer-buttons a i { margin-left: 5px; }
.footer-buttons a:hover {
    background: var(--accent-color);
    color: #222;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 6px 16px rgba(255,255,255,0.13);
}
.footer-bottom {
   background: #fff;
   color: var(--text-light);
   padding: 36px 0 30px 0;
   border-top: 1.5px solid #e0e7ef;
}
.footer-bottom .container {
   display: flex;
   justify-content: space-between;
   align-items: flex-start;
   gap: 30px;
   flex-wrap: wrap;
}
.footer-info {
   flex: 1;
   min-width: 300px;
   display: flex;
   align-items: flex-start;
   gap: 18px;
   text-align: left;
}
.footer-info .footer-logo img {
   height: 28px;
   margin-bottom: 15px;
   border-radius: 7px;
   background: #e0e7ef;
   box-shadow: 0 2px 8px rgba(79,140,255,0.08);
}
.footer-details {
   display: flex;
   flex-direction: column;
   gap: 2px;
   text-align: left;
}
.footer-details div {
   margin-bottom: 10px;
   font-size: 0.98em;
   line-height: 1.6;
   font-weight: 400;
   text-align: left;
}
.footer-details span {
   display: inline-block;
   min-width: 0;
   color: var(--primary-color);
   font-weight: 600;
   padding-right: 0;
}
.footer-details .pipe {
   color: #bbb;
   font-weight: 400;
   padding: 0;
   font-size: 1em;
   vertical-align: middle;
}
.footer-legal {
   text-align: right;
   flex-shrink: 0;
   min-width: 220px;
   display: flex;
   flex-direction: column;
   align-items: flex-end;
   gap: 7px;
}
.footer-legal p {
   margin: 0 0 7px 0;
   font-size: 0.98em;
   font-weight: 400;
}
.footer-legal a {
   color: var(--primary-color);
   text-decoration: none;
   font-weight: 600;
   font-size: 1em;
   transition: color 0.2s;
}
.footer-legal a:hover {
    color: var(--primary-darker);
    text-decoration: underline;
}

/* --- 맨 위로 가기 버튼 --- */
.back-to-top {
   position: fixed;
   right: 24px;
   bottom: 24px;
   width: 48px;
   height: 48px;
   background: var(--primary-color);
   color: #fff;
   border: none;
   border-radius: 50%;
   font-size: 1.7em;
   cursor: pointer;
   box-shadow: 0 2px 8px rgba(79,140,255,0.10);
   z-index: 998;
   display: flex;
   justify-content: center;
   align-items: center;
   text-decoration: none;
   opacity: 0;
   visibility: hidden;
   transition: opacity 0.3s, visibility 0.3s, background 0.2s, transform 0.2s;
}
.back-to-top:hover {
    background: var(--primary-darker);
    transform: scale(1.08);
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* --- Scroll Animation Styles --- */
.fade-in-element {
   opacity: 0;
   transform: translateY(30px);
   transition: opacity 0.6s, transform 0.6s;
}
.fade-in-element.is-visible {
   opacity: 1;
   transform: translateY(0);
}
/* Staggered delay for card elements */
.solutions-grid .solution-card:nth-child(1) { transition-delay: 0.1s; }
.solutions-grid .solution-card:nth-child(2) { transition-delay: 0.2s; }
.solutions-grid .solution-card:nth-child(3) { transition-delay: 0.3s; }
.solutions-grid .solution-card:nth-child(4) { transition-delay: 0.4s; }
.features-content .feature-box:nth-child(1) { transition-delay: 0.1s; }
.features-content .feature-box:nth-child(2) { transition-delay: 0.2s; }
.features-content .feature-box:nth-child(3) { transition-delay: 0.3s; }

/* --- 반응형 --- */
@media (max-width: 1200px) {
    .features-content { gap: 18px; }
}

@media (max-width: 1100px) {
   .solutions-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 28px;
   }
}
@media (max-width: 700px) {
   .solutions-grid {
      grid-template-columns: 1fr;
      gap: 18px;
   }
}
@media (max-width: 992px) {
    :root { --footer-height: 380px; --header-height: 70px; }
    .hero-content { flex-direction: column; gap: 30px; }
    .features-content { flex-direction: column; gap: 18px; }
    .header-content nav { display: none; }
    .cta-banner h2 { font-size: 2.2em; }
    .hero-text h1 { font-size: 2.2em; }
    .solutions h2 { font-size: 2.2em; margin-bottom: 30px;}
    .footer-top .container { flex-direction: column; align-items: flex-start; }
    .footer-buttons { margin-top: 15px; margin-left: 0; }
}
@media (max-width: 768px) {
    :root { --footer-height: 520px; }
    .side-buttons { display: none; }
    .cta-banner { padding: 70px 0; }
    .cta-banner h2 { font-size: 1.5em; }
    .hero-text h1 { font-size: 1.5em; }
    .solutions h2 { font-size: 1.5em; }
    .solutions-grid { grid-template-columns: 1fr; }
    .footer-bottom .container { flex-direction: column; }
    .footer-legal { text-align: left; margin-top: 20px; }
    .back-to-top { width: 40px; height: 40px; font-size: 1.3em; }
}
@media (max-width: 576px) {
     :root { --footer-height: 580px; }
     .cta-banner h2 { font-size: 1.1em; }
     .hero-text h1 { font-size: 1.1em; }
     .feature-box h3 { font-size: 1.1em; }
     .solution-card h3 { font-size: 1.1em; }
     .solutions h2 { font-size: 1.1em; }
     .footer-contact h3 { font-size: 1.1em; }
}
@media (max-width: 900px) {
   .footer-bottom .container {
      flex-direction: column;
      gap: 18px;
   }
   .footer-info {
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
   }
   .footer-legal {
      align-items: flex-start;
      text-align: left;
      margin-top: 18px;
   }
}
