/* ==========================================================================
   Home Page - 홈 페이지 전용 스타일
   ========================================================================== */

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

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-blob-1 {
  position: absolute;
  top: -10%;
  left: -5%;
  width: 500px;
  height: 500px;
  background-color: rgba(37, 99, 235, 0.2);
  border-radius: 50%;
  filter: blur(120px);
  animation: pulse 4s ease-in-out infinite;
}

.hero-blob-2 {
  position: absolute;
  bottom: -10%;
  right: -5%;
  width: 400px;
  height: 400px;
  background-color: rgba(6, 182, 212, 0.15);
  border-radius: 50%;
  filter: blur(100px);
  animation: pulse 4s ease-in-out infinite;
  animation-delay: 2s;
}

@media (min-width: 768px) {
  .hero-blob-1 {
    width: 800px;
    height: 800px;
    filter: blur(150px);
  }

  .hero-blob-2 {
    width: 700px;
    height: 700px;
    filter: blur(130px);
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 64rem;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #06b6d4;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

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

.hero-badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: #06b6d4;
  animation: pulse 2s ease-in-out infinite;
}

.hero-title {
  font-size: 3rem;
  font-weight: 900;
  color: white;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 2rem;
}

.hero-title span {
  display: inline-block;
  padding-bottom: 0.08em;
}

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

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

.hero-description {
  font-size: 1.125rem;
  color: #9ca3af;
  line-height: 1.75;
  max-width: 48rem;
  margin: 0 auto 3rem;
}

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

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
  }
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-scroll-mouse {
  width: 1.5rem;
  height: 2.5rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  display: flex;
  justify-content: center;
  padding-top: 0.5rem;
  animation: bounce-slow 2s infinite;
}

.hero-scroll-dot {
  width: 0.25rem;
  height: 0.5rem;
  background-color: #06b6d4;
  border-radius: 9999px;
}

/* Partner / Marquee Section */
.partners-section {
  padding: 5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background-color: rgba(3, 7, 18, 0.5);
  overflow: hidden;
}

.partners-title {
  text-align: center;
  color: #6b7280;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin-bottom: 3rem;
}

.partner-item {
  margin: 0 3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  filter: grayscale(100%);
  opacity: 0.4;
  transition: all 0.3s ease;
  cursor: pointer;
}

.partner-item:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.partner-icon {
  font-size: 2.25rem;
  color: white;
}

.partner-name {
  font-size: 1.5rem;
  font-weight: 900;
  color: white;
  letter-spacing: -0.05em;
}

/* Stats Section */
.stats-section {
  padding: 8rem 0;
  background-color: #030712;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

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

.stat-item {
  text-align: center;
}

.stat-item:hover .stat-number {
  color: #3b82f6;
}

.stat-item:nth-child(2):hover .stat-number,
.stat-item:nth-child(4):hover .stat-number {
  color: #06b6d4;
}

/* Services / Bento Grid */
.services-section {
  padding: 8rem 0;
  position: relative;
  background-color: #010309;
}

.services-header {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 6rem;
}

@media (min-width: 768px) {
  .services-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

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

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

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

.service-card {
  position: relative;
  padding: 2.5rem 3rem;
  border-radius: 2.5rem;
  transition: all 0.5s ease;
}

.service-card:hover {
  transform: translateY(-0.75rem);
}

.service-card.large {
  background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.05), transparent);
}

@media (min-width: 1024px) {
  .service-card.large {
    grid-column: span 2;
  }
}

.service-icon {
  width: 5rem;
  height: 5rem;
  margin-bottom: 2.5rem;
}

.service-title {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  transition: color 0.3s ease;
}

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

.service-card:hover .service-title {
  color: #06b6d4;
}

.service-description {
  color: #9ca3af;
  font-size: 1.125rem;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.service-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.service-tech {
  padding: 0.375rem 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #d1d5db;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Projects Section */
.projects-section {
  padding: 8rem 0;
  background-color: #030712;
}

.projects-header {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-bottom: 6rem;
}

@media (min-width: 1024px) {
  .projects-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

.projects-view-all {
  display: flex;
  align-items: center;
  color: white;
  font-weight: 900;
}

.projects-view-all-icon {
  margin-left: 1rem;
  width: 3rem;
  height: 3rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.projects-view-all:hover .projects-view-all-icon {
  background-color: #2563eb;
}

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

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

/* 3D / Innovation Section */
.innovation-section {
  padding: 8rem 0;
  background-color: #010309;
  position: relative;
  overflow: hidden;
}

.innovation-viewer {
  height: 500px;
  border-radius: 4rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  position: relative;
  background-color: #010309;
}

@media (min-width: 768px) {
  .innovation-viewer {
    height: 600px;
  }
}

#three-container {
  position: absolute;
  inset: 0;
  cursor: grab;
}

#three-container:active {
  cursor: grabbing;
}

.innovation-badge {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.5rem 1.5rem;
  background-color: #06b6d4;
  color: #030712;
  border-radius: 9999px;
  font-size: 0.625rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  pointer-events: none;
}

.innovation-info-card {
  padding: 2rem;
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: border-color 0.3s ease;
}

.innovation-info-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
}

/* Process Section */
.process-section {
  padding: 8rem 0;
  background-color: #030712;
  overflow: hidden;
}

.process-card {
  border-radius: 4rem;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .process-card {
    padding: 6rem;
  }
}

.process-decoration {
  position: absolute;
  top: 0;
  right: 0;
  width: 500px;
  height: 500px;
  background-color: rgba(37, 99, 235, 0.1);
  border-radius: 50%;
  filter: blur(120px);
}

.process-visual {
  aspect-ratio: 1;
  border-radius: 3rem;
  background: linear-gradient(to bottom right, rgba(37, 99, 235, 0.2), rgba(6, 182, 212, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.process-visual-icon {
  font-size: 15rem;
  color: rgba(255, 255, 255, 0.05);
  animation: pulse 4s ease-in-out infinite;
}

.process-chip {
  position: absolute;
  padding: 1rem 1.5rem;
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.process-chip-1 {
  top: 2.5rem;
  right: 2.5rem;
  animation: float1 10s ease-in-out infinite;
}

.process-chip-2 {
  bottom: 5rem;
  left: 2.5rem;
  animation: float2 15s ease-in-out infinite;
}

/* CTA Section */
.cta-section {
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
  background-color: #030712;
}

.cta-title {
  font-size: 3rem;
  font-weight: 900;
  color: white;
  line-height: 1.1;
  margin-bottom: 3rem;
}

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

.cta-description {
  color: #9ca3af;
  font-size: 1.25rem;
  max-width: 42rem;
  margin: 0 auto 4rem;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .cta-actions {
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
  }
}

/* Pulse Animation */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
