/* ===============================================
   COMPANY INFO PAGE - PREMIUM DESIGN
   Inspired by Apple and Toss design principles
   Typography-led, minimal, and intentional
   =============================================== */

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

body {
  font-family: 'Noto Sans KR', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.page-wrapper {
  min-height: 100vh;
  background-color: #ffffff;
}

.company-info-main {
  width: 100%;
  background-color: #ffffff;
}

/* ===============================================
   HERO SECTION - Premium Typography
   =============================================== */
.company-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem;
  background: linear-gradient(
    180deg,
    #fafafa 0%,
    #ffffff 100%
  );
  overflow: hidden;
}

/* Subtle background pattern */
.company-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.02) 1px, transparent 0);
  background-size: 40px 40px;
  pointer-events: none;
}

.company-hero-content {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
  z-index: 1;
}

/* Label - Subtle and refined */
.company-hero-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

/* Title Container */
.company-hero-title {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

/* Accent text - lighter weight for hierarchy */
.hero-title-accent {
  display: block;
  font-size: 2rem;
  font-weight: 500;
  color: #4b5563;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

/* Main title - bold and prominent */
.hero-title-main {
  display: block;
  font-size: 3.5rem;
  font-weight: 700;
  color: #0f172a;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

/* ===============================================
   IMAGES CONTAINER - Intentional Spacing
   =============================================== */
.company-images-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.company-image-section {
  margin-bottom: 6rem;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.company-image-section:last-child {
  margin-bottom: 0;
}

.company-image-section.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Image Wrapper - Clean and refined */
.image-wrapper {
  position: relative;
  width: 100%;
  border-radius: 1rem;
  overflow: hidden;
  background-color: #fafafa;
  padding-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06),
              0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Remove background for Image 2 only */
.company-image-section:nth-child(2) .image-wrapper {
  background-color: transparent;
  box-shadow: none;
}

.image-wrapper:hover {
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.12),
              0 4px 12px -4px rgba(0, 0, 0, 0.08);
  transform: scale(1.015);
}

/* Company Image - Preserve existing behavior */
.company-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
  background-color: #ffffff;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-wrapper:hover .company-image {
  transform: scale(1.02);
}

/* Loading state - subtle */
.image-wrapper.loading {
  background: linear-gradient(
    90deg,
    #fafafa 0%,
    #f5f5f5 50%,
    #fafafa 100%
  );
  background-size: 200% 100%;
  animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* ===============================================
   SCROLL ANIMATIONS - Refined
   =============================================== */
.section-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-animate.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Slide from left animation - preserved for image 4 */
.section-animate.slide-from-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-animate.slide-from-left.animate-in {
  opacity: 1;
  transform: translateX(0);
}

/* Hero fade in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===============================================
   RESPONSIVE - DESKTOP FIRST
   =============================================== */

/* Large Desktop (1200px+) - Base styles above */

/* Desktop (max-width: 1199px) */
@media (max-width: 1199px) {
  .company-hero {
    min-height: 100vh;
    padding: 7rem 2rem;
  }

  .hero-title-accent {
    font-size: 1.875rem;
  }

  .hero-title-main {
    font-size: 3.25rem;
  }

  .company-images-container {
    padding: 6rem 2rem;
  }

  .company-image-section {
    margin-bottom: 100px;
  }
}

/* Tablet (max-width: 959px) */
@media (max-width: 959px) {
  .company-hero {
    min-height: 100vh;
    padding: 6rem 1.5rem;
  }

  .company-hero-label {
    font-size: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .hero-title-accent {
    font-size: 1.625rem;
  }

  .hero-title-main {
    font-size: 2.75rem;
  }

  .company-images-container {
    padding: 5rem 1.5rem;
  }

  .company-image-section {
    margin-bottom: 4rem;
  }

  .image-wrapper {
    border-radius: 1.25rem;
  }
}

/* Mobile (max-width: 599px) */
@media (max-width: 599px) {
  .company-hero {
    min-height: 100vh;
    padding: 4rem 1rem;
  }

  .company-hero-content {
    max-width: 100%;
  }

  .company-hero-label {
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    margin-bottom: 1.25rem;
  }

  .company-hero-title {
    gap: 0.375rem;
  }

  .hero-title-accent {
    font-size: 1.25rem;
    font-weight: 500;
  }

  .hero-title-main {
    font-size: 2rem;
    letter-spacing: -0.02em;
  }

  .company-images-container {
    padding: 3rem 1rem;
  }

  .company-image-section {
    margin-bottom: 3rem;
  }

  .image-wrapper {
    border-radius: 1rem;
  }

  .image-wrapper:hover {
    transform: scale(1.01);
  }

  .image-wrapper:hover .company-image {
    transform: scale(1.015);
  }
}

/* Extra Small Mobile (max-width: 399px) */
@media (max-width: 399px) {
  .company-hero {
    padding: 3rem 1rem;
  }

  .hero-title-accent {
    font-size: 1.125rem;
  }

  .hero-title-main {
    font-size: 1.75rem;
  }

  .company-images-container {
    padding: 2.5rem 1rem;
  }

  .company-image-section {
    margin-bottom: 2.5rem;
  }
}

/* ===============================================
   TOUCH DEVICE OPTIMIZATIONS
   =============================================== */
@media (hover: none) and (pointer: coarse) {
  .image-wrapper:hover {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06),
                0 1px 2px rgba(0, 0, 0, 0.04);
    transform: none;
  }

  .image-wrapper:hover .company-image {
    transform: none;
  }
}

/* ===============================================
   PRINT STYLES
   =============================================== */
@media print {
  .company-hero {
    margin-top: 0;
    min-height: auto;
    padding: 2rem;
    background: #ffffff;
  }

  .company-hero::before {
    display: none;
  }

  .company-images-container {
    padding: 2rem;
  }

  .company-image-section {
    margin-bottom: 2rem;
    page-break-inside: avoid;
  }

  .image-wrapper {
    box-shadow: none;
    border: 1px solid #e5e7eb;
  }
}