/* CSS Variables */
:root {
  /* 무채색 그라데이션 */
  --primary-gradient: linear-gradient(135deg, #0f0f0f 0%, #383838 100%);
  --secondary-gradient: linear-gradient(135deg, #252525 0%, #424242 100%);
  --accent-gradient: linear-gradient(135deg, #2b2b2b 0%, #525252 100%);
  --light-gradient: linear-gradient(135deg, #e5e5e5 0%, #f8f8f8 100%);
  
  /* 텍스트 컬러 */
  --text-dark: #0f0f0f;
  --text-medium: #2b2b2b;
  --text-light: #4a4a4a;
  --text-muted: #707070;
  --white: #ffffff;
  --light-bg: #f8f9fa;
  --medium-bg: #f0f0f0;
  --section-padding: 70px 0;
  --section-padding-sm: 40px 0;

  --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.12);
  --shadow-medium: 0 10px 40px rgba(0, 0, 0, 0.18);
  --shadow-heavy: 0 20px 60px rgba(0, 0, 0, 0.25);
  
  --border-radius: 12px;
  --transition: all 0.3s ease;
  /* Font Size Variables - Hierarchical System */
  
  /* === Master Font Sizes === */
  --font-display-xl: clamp(4rem, 12vw, 8rem);    /* 메인 브랜드/제품명 - 매우 큰 디스플레이 */
  --font-display-lg: clamp(4rem, 8vw, 7rem);     /* 회사명, 히어로 타이틀 - 큰 디스플레이 */
  --font-display-md: 4.2rem;                     /* 섹션 메인 타이틀 */
  --font-display-sm: 3.2rem;                     /* CTA 타이틀 */
  --font-title-xl: 3rem;                         /* 페이지 섹션 제목 */
  --font-title-lg: clamp(2rem, 4vw, 2.2rem);  /* 부제목, 설명 타이틀 */
  --font-title-md: 1.6rem;                       /* 카드/아이템 제목 */
  --font-title-sm: 1.2rem;                       /* 소제목 */
  --font-body-xl: clamp(1.8rem, 3vw, 2rem); /* 큰 설명문 */
  --font-body-lg: 1.5rem;                        /* 히어로 부제목 */
  --font-body-md: 1.8rem;                       /* CTA 설명 */
  --font-body-base: clamp(1.5rem, 2.5vw, 1.7rem);  /* 기본 설명문 */
  --font-body-sm: 1.7rem;                       /* 섹션 부제목 */
  --font-text-lg: 1.3rem;                        /* 버튼, 링크 */
  --font-text-md: 1.5rem;                       /* 본문 텍스트 */
  --font-text-base: 18px;                        /* 기본 body 폰트 */
  --font-text-sm: 1.1rem;                       /* 작은 텍스트 */
  --font-text-xs: 0.9rem;                        /* 매우 작은 텍스트 */
  --font-icon-lg: 2.2rem;                        /* 큰 아이콘 */
  
  /* === Semantic Font Assignments === */
  --hero-company-name: var(--font-display-lg);
  --hero-company-description: var(--font-body-xl);
  --hero-title: var(--font-display-md);
  --hero-subtitle: var(--font-body-lg);
  
  --overview-main-title: var(--font-display-xl);
  --overview-subtitle: var(--font-title-lg);
  --overview-description: var(--font-body-base);
  
  --section-title: var(--font-title-xl);
  --section-subtitle: var(--font-body-sm);
  
  --feature-icon: var(--font-icon-lg);
  --feature-title: var(--font-title-md);
  --feature-description: var(--font-text-md);
  
  --cert-category: var(--font-text-xs);
  --cert-title: var(--font-title-sm);
  --cert-date: var(--font-text-sm);
  
  --cta-title: var(--font-display-sm);
  --cta-description: var(--font-body-md);
  
  --btn-font: var(--font-text-lg);
  --body-font: var(--font-text-base);
}

/* Global Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: var(--body-font);
  line-height: 1.7;
  color: var(--text-dark);
  overflow-x: hidden;
}

/* Typography */
.section-title {
  font-size: var(--section-title);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
  line-height: 1.2;
}

.section-subtitle {
  font-size: var(--section-subtitle);
  color: var(--text-light);
  margin-bottom: 3rem;
  line-height: 1.6;
}

.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* Section Common Styles */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

/* Button Styles */
.btn-hero-primary,
.btn-hero-secondary,
.btn-section-cta,
.btn-cta-primary,
.btn-cta-secondary {
  display: inline-block;
  padding: 16px 36px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: var(--btn-font);
  transition: var(--transition);
  border: none;
  cursor: pointer;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn-hero-primary,
.btn-cta-primary {
  background: var(--primary-gradient);
  color: var(--white);
  box-shadow: var(--shadow-medium);
}

.btn-hero-primary:hover,
.btn-cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-heavy);
  color: var(--white);
  text-decoration: none;
}

.btn-hero-secondary,
.btn-cta-secondary {
  background: var(--primary-gradient);
  color: var(--white);
  box-shadow: var(--shadow-medium);
}

.btn-hero-secondary:hover,
.btn-cta-secondary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-heavy);
  color: var(--white);
  text-decoration: none;
}

.btn-section-cta {
  background: var(--primary-gradient);
  color: var(--white);
  margin-top: 2rem;
  box-shadow: var(--shadow-light);
}

.btn-section-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  color: var(--white);
  text-decoration: none;
}

/* Navigation */
.home-navbar {
  position: relative;
  z-index: 1000;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--white);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translateX(-50%) translateY(-50%);
}

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

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(135deg, rgba(15, 15, 15, 0.9) 0%, rgba(56, 56, 56, 0.95) 100%),
    radial-gradient(ellipse at center, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
  z-index: -1;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  text-align: center;
  padding: 0 20px;
  width: 100%;
  max-width: 1200px;
}

.hero-text-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero-company-name {
  font-size: var(--hero-company-name);
  font-weight: 800;
  color: var(--white);
  margin: 0;
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.8),
    0 4px 20px rgba(0, 0, 0, 0.6),
    0 8px 40px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hero-company-description {
  font-size: var(--hero-company-description);
  font-weight: 500;
  color: var(--white);
  margin: 0;
  opacity: 1;
  text-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.9),
    0 2px 10px rgba(0, 0, 0, 0.7),
    0 4px 20px rgba(0, 0, 0, 0.4);
  line-height: 1.5;
  max-width: 800px;
}

.hero-title {
  font-size: var(--hero-title);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-highlight {
  background: linear-gradient(135deg, #f8f9fa 0%, #4a4a4a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--hero-subtitle);
  margin-bottom: 2.5rem;
  opacity: 0.9;
  font-weight: 300;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.scroll-arrow {
  width: 30px;
  height: 50px;
  border: 2px solid var(--white);
  border-radius: 25px;
  position: relative;
}

.scroll-arrow::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  width: 6px;
  height: 6px;
  background: var(--white);
  border-radius: 50%;
  transform: translateX(-50%);
  animation: scroll-bounce 2s infinite;
}

@keyframes scroll-bounce {
  0%, 20% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(15px); }
  80%, 100% { transform: translateX(-50%) translateY(0); }
}

/* Company Intro Section - Overview Style */
.company-intro-section {
  padding: 20px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f5f7fa 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* Overview Container */
.overview-container {
  padding: 70px 0;
}

/* Overview Main Title */
.overview-main-title {
  font-size: var(--overview-main-title);
  font-weight: 800;
  margin: 5% 0 3% 0;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  color: #2b2b2b;
  letter-spacing: -0.02em;
  line-height: 1;
}

/* Overview Subtitle */
.overview-subtitle {
  font-weight: 800;
  font-size: var(--overview-subtitle);
  margin: 5% 0 7% 0;
  text-shadow: 1px 1px 20px rgba(83, 83, 83, 0.5);
  color: #000000;
  line-height: 1.4;
}

/* Overview Description */
.overview-description {
  font-weight: 600;
  font-size: var(--overview-description);
  text-shadow: 1px 1px 20px rgba(219, 219, 219, 0.8);
  color: #959595;
  line-height: 1.6;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Legacy intro styles removed - using overview style instead */

/* Solutions Section */
.solutions-section {
  padding: var(--section-padding);
  background: var(--light-bg);
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.solution-card-wrapper {
  transform: translateY(0);
  transition: var(--transition);
}

.solution-card-wrapper:hover {
  transform: translateY(-10px);
}

/* Features Section */
.features-section {
  padding: var(--section-padding);
  background: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  text-align: center;
  padding: 2.8rem 1.8rem;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  border: 1px solid #e8e8e8;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-medium);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-gradient);
  border-radius: 50%;
  color: var(--white);
}

.feature-icon i {
  font-size: var(--feature-icon);
}

.feature-title {
  font-size: var(--feature-title);
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.feature-description {
  font-size: var(--feature-description);
  color: var(--text-light);
  line-height: 1.6;
}

/* Certifications Section */
.certifications-section {
  padding: var(--section-padding);
  background: var(--light-bg);
}

.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.cert-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 1.8rem;
  text-align: center;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  border: 1px solid #e8e8e8;
}

.cert-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-medium);
}

.cert-image {
  margin-bottom: 1rem;
}

.cert-image img {
  max-width: 110px;
  max-height: 110px;
  object-fit: contain;
}

.cert-category {
  font-size: var(--cert-category);
  color: var(--text-light);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.cert-title {
  font-size: var(--cert-title);
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.cert-date {
  font-size: var(--cert-date);
  color: var(--text-medium);
  font-weight: 500;
}

/* News Section */
.news-section {
  padding: var(--section-padding);
  background: var(--white);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.news-card-wrapper {
  transform: translateY(0);
  transition: var(--transition);
}

.news-card-wrapper:hover {
  transform: translateY(-8px);
}

/* Final CTA Section */
.final-cta-section {
  position: relative;
  padding: var(--section-padding-sm);
  color: var(--white);
  background-color: white;
  text-align: center;
}

.cta-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--secondary-gradient);
  z-index: -2;
}

.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-gradient);
  opacity: 0.8;
  z-index: -1;
}

.cta-title {
  font-size: var(--cta-title);
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-description {
  font-size: var(--cta-description);
  margin-bottom: 2.5rem;
  opacity: 0.9;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .solutions-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.8rem;
  }
  
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .certifications-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
  
  .news-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
}

@media (max-width: 1024px) {
  :root {
    --section-padding: 80px 0;
    /* Master font size adjustments */
    --font-title-xl: 2.8rem;
    --font-body-sm: 1.15rem;
    --font-title-md: 1.4rem;
    --font-text-md: 1rem;
  }
  
  .hero-content {
    padding: 0 30px;
  }
  
  .feature-card {
    padding: 2.2rem 1.5rem;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
    /* Master font size adjustments */
    --font-display-xl: clamp(3rem, 10vw, 6rem);
    --font-display-sm: 2.6rem;
    --font-title-xl: 2.4rem;
    --font-title-lg: clamp(1.2rem, 3.5vw, 1.8rem);
    --font-title-md: 1.3rem;
    --font-title-sm: 1.1rem;
    --font-body-base: clamp(0.9rem, 1.8vw, 1.1rem);
    --font-body-md: 1.25rem;
    --font-body-sm: 1.1rem;
    --font-text-md: 0.95rem;
    --font-text-sm: 0.9rem;
    --font-icon-lg: 2rem;
  }
  
  .hero-content {
    padding: 0 20px;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  
  .section-subtitle {
    margin-bottom: 2.5rem;
  }
  
  .section-header {
    margin-bottom: 3rem;
  }
  
  /* Company Intro Mobile Layout */
  .company-intro-section {
    padding: 60px 0;
  }
  
  .overview-main-title {
    margin: 3% 0 2% 0;
  }
  
  .overview-subtitle {
    margin: 3% 0 5% 0;
  }
  
  .overview-description {
    margin: 8% 0 12% 0;
  }
  
  .solutions-grid,
  .features-grid,
  .certifications-grid,
  .news-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .feature-card {
    padding: 2rem 1.2rem;
  }
  
  .feature-icon {
    width: 70px;
    height: 70px;
  }
  
  .cert-card {
    padding: 1.5rem;
  }
  
  .cert-image img {
    max-width: 90px;
    max-height: 90px;
  }
  
  .cta-actions {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
}

@media (max-width: 576px) {
  :root {
    --section-padding: 50px 0;
    /* Master font size adjustments */
    --font-display-xl: clamp(2.5rem, 8vw, 4.5rem);
    --font-display-sm: 2.2rem;
    --font-title-xl: 2rem;
    --font-title-lg: clamp(1rem, 3vw, 1.5rem);
    --font-title-md: 1.2rem;
    --font-title-sm: 1rem;
    --font-body-base: clamp(0.85rem, 1.5vw, 1rem);
    --font-body-md: 1.1rem;
    --font-body-sm: 1rem;
    --font-text-lg: 1rem;
    --font-text-md: 0.9rem;
    --font-text-sm: 0.85rem;
    --font-text-xs: 0.8rem;
    --font-icon-lg: 1.8rem;
  }
  
  .hero-content {
    padding: 0 15px;
  }
  
  .section-subtitle {
    margin-bottom: 2rem;
  }
  
  .btn-hero-primary,
  .btn-hero-secondary,
  .btn-section-cta,
  .btn-cta-primary,
  .btn-cta-secondary {
    padding: 14px 28px;
    width: 100%;
    max-width: 280px;
  }
  
  /* Company Intro Small Mobile */
  .company-intro-section {
    padding: 50px 0;
  }
  
  .overview-main-title {
    margin: 2% 0 1% 0;
  }
  
  .overview-subtitle {
    margin: 2% 0 4% 0;
  }
  
  .overview-description {
    margin: 6% 0 10% 0;
  }
  
  .feature-card {
    padding: 1.8rem 1rem;
  }
  
  .feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.2rem;
  }
  
  .feature-title {
    margin-bottom: 0.8rem;
  }
  
  .cert-card {
    padding: 1.2rem;
  }
  
  .cert-image img {
    max-width: 80px;
    max-height: 80px;
  }
  
  .cta-title {
    line-height: 1.3;
  }
  
  .cta-description {
    line-height: 1.5;
  }
}

@media (max-width: 480px) {
  :root {
    /* Master font size adjustments for very small screens */
    --font-display-xl: clamp(2rem, 7vw, 3.5rem);
    --font-display-sm: 1.9rem;
    --font-title-xl: 1.8rem;
    --font-title-lg: clamp(0.9rem, 2.8vw, 1.3rem);
    --font-body-base: clamp(0.8rem, 1.4vw, 0.95rem);
    --font-body-md: 1rem;
  }
  
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .section-title {
    line-height: 1.3;
  }
  
  .overview-subtitle {
    line-height: 1.5;
  }
  
  .overview-description {
    line-height: 1.6;
  }
}

/* Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Loading Animation */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}