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

:root {
  --primary: #ff6b6b;
  --secondary: #4ecdc4;
  --accent: #ffd93d;
  --dark: #1a1a2e;
  --darker: #0f0f1e;
  --light: #f5f5f5;
  --gray: #95a5a6;
  --success: #2ecc71;
  --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-2: linear-gradient(135deg, #ff6b6b 0%, #4ecdc4 100%);
  --gradient-3: linear-gradient(135deg, #ffd93d 0%, #ff6b6b 100%);
}

body {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  overflow-x: hidden;
  background: var(--darker);
  color: var(--light);
  line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--darker);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-2);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Progress Bar */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gradient-2);
  z-index: 10000;
  transform-origin: 0 50%;
  width: 0%;
  transition: width 0.3s ease;
}

/* To Top Button */
.to-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: rgba(255, 107, 107, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: white;
  box-shadow: 0 4px 20px rgba(255, 107, 107, 0.3);
}

.to-top-btn:hover {
  background: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 30px rgba(255, 107, 107, 0.5);
}

.to-top-btn:active {
  transform: translateY(-1px);
}

.to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top-btn svg {
  width: 24px;
  height: 24px;
  animation: bounce-up 2s ease-in-out infinite;
}

@keyframes bounce-up {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

/* Mobile responsive for To Top button */
@media (max-width: 768px) {
  .to-top-btn {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }

  .to-top-btn svg {
    width: 20px;
    height: 20px;
  }
}

/* Navigation Dots */
.nav-dots {
  position: fixed;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 107, 107, 0.5);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dot.active {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.5);
  box-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
}

.dot:hover {
  border-color: var(--primary);
  transform: scale(1.2);
}

/* Hero Section */
.hero-section {
  margin-top: 0;
  height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
}

/* Background video */
.hero-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

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

/* Logo at top center */
.hero-logo {
  position: absolute;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 122px;
  height: 30px;
}

/* Top tagline below logo */
.hero-tagline {
  position: absolute;
  top: 160px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 900px;
}

.hero-tagline p {
  font-family: "Pretendard Variable", -apple-system, BlinkMacSystemFont,
    sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: #fff;
  line-height: normal;
  letter-spacing: -0.84px;
  margin: 0;
  font-style: normal;
}

.hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Subtitle description text */
.hero-description {
  position: absolute;
  top: 200px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 900px;
}

.hero-description p {
  font-family: "Pretendard Variable", -apple-system, BlinkMacSystemFont,
    sans-serif;
  font-size: 20px;
  font-weight: 300;
  color: #fff;
  line-height: normal;
  letter-spacing: -0.6px;
  margin: 0;
  font-style: normal;
}

/* Main slogan wrapper - left side */
.hero-slogan-wrapper {
  position: absolute;
  left: 100px;
  top: 80%;
  transform: translateY(-50%);
  z-index: 2;
  text-align: left;
}

.hero-slogan {
  font-family: "Pretendard Variable", -apple-system, BlinkMacSystemFont,
    sans-serif;
  font-size: 120px;
  font-weight: 600;
  color: #ffffff;
  line-height: 110px;
  letter-spacing: -3.6px;
  margin: 0;
}

.hero-slogan span {
  display: block;
}

.hero-slogan span:first-child {
  margin-bottom: 20px;
}

/* Responsive adjustments for hero */
@media (max-width: 1440px) {
  .hero-slogan {
    font-size: 100px;
    line-height: 90px;
  }

  .hero-slogan span:first-child {
    margin-bottom: 15px;
  }

  .hero-slogan-wrapper {
    left: 80px;
  }
}

@media (max-width: 1024px) {
  .hero-slogan {
    font-size: 70px;
    line-height: 65px;
  }

  .hero-slogan span:first-child {
    margin-bottom: 12px;
  }

  .hero-slogan-wrapper {
    left: 60px;
  }

  .hero-tagline p {
    font-size: 22px;
    letter-spacing: -0.66px;
  }

  .hero-description p {
    font-size: 18px;
    line-height: 24px;
  }
}

@media (max-width: 768px) {
  .hero-logo {
    top: 60px;
    width: 140px;
    height: 34px;
  }

  .hero-tagline {
    top: 110px;
  }

  .hero-tagline p {
    font-size: 18px;
    letter-spacing: -0.54px;
  }

  .hero-description {
    top: 140px;
    padding: 0 20px;
  }

  .hero-description p {
    font-size: 16px;
    line-height: 20px;
  }

  .hero-slogan-wrapper {
    left: 40px;
    top: 85%;
  }

  .hero-slogan {
    font-size: 50px;
    line-height: 48px;
    letter-spacing: -1.5px;
  }

  .hero-slogan span:first-child {
    margin-bottom: 10px;
  }
}

@media (max-width: 480px) {
  .hero-slogan-wrapper {
    left: 20px;
  }

  .hero-slogan {
    font-size: 40px;
    line-height: 38px;
  }

  .hero-slogan span:first-child {
    margin-bottom: 8px;
  }

  .hero-tagline p {
    font-size: 16px;
    letter-spacing: -0.48px;
  }

  .hero-description p {
    font-size: 14px;
    line-height: 18px;
  }
}

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

.mouse {
  width: 30px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 0;
  position: relative;
}

.wheel {
  width: 4px;
  height: 10px;
  background: white;
  border-radius: 2px;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  animation: wheel 2s infinite;
}

@keyframes wheel {
  0% {
    opacity: 1;
    top: 10px;
  }
  100% {
    opacity: 0;
    top: 30px;
  }
}

/* Info Section */
.info-section {
  min-height: 100vh;
  padding: 5rem 2rem;
  background: linear-gradient(180deg, var(--darker) 0%, var(--dark) 100%);
  position: relative;
  overflow: hidden;
}

.info-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 107, 107, 0.05) 0%,
    transparent 70%
  );
  animation: rotate 30s linear infinite;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.info-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.info-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  backdrop-filter: blur(10px);
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3rem;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.expand-box {
  transform: scale(0.95);
  opacity: 0;
}

.info-card::before {
  content: "";
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 107, 107, 0.1),
    transparent
  );
  transform: rotate(45deg);
  transition: all 0.6s;
}

.info-card:hover::before {
  animation: shimmer 0.6s;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

.info-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 30px 60px rgba(255, 107, 107, 0.2);
  border-color: rgba(255, 107, 107, 0.3);
}

.info-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  animation: bounce 2s ease-in-out infinite;
}

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

.info-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.info-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
}

.info-features {
  list-style: none;
}

.info-features li {
  padding: 0.5rem 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.info-features li:hover {
  color: var(--primary);
  transform: translateX(10px);
}

.slogan-animation {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.slogan-word {
  padding: 0.5rem 1.5rem;
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.3);
  border-radius: 25px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(20px);
}

/* Media Section */
.media-section {
  padding: 5rem 0 0;
  position: relative;
  overflow-x: hidden; /* Prevent horizontal overflow from videos */
}

.section-header {
  text-align: center;
  padding: 0 2rem;
  margin-bottom: 4rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-title .highlight {
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--gray);
}

/* Expanding Video Container */
.expanding-video-container {
  position: relative;
  min-height: 600vh; /* Increased for 4 videos with proper spacing */
  padding: 5rem 0 10rem 0; /* Added bottom padding */
}

.video-expand-wrapper {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  margin-bottom: 100vh; /* Increased spacing for better scrolling */
}

/* All videos expand from center */
.video-expand-wrapper[data-position="center"] {
  justify-content: center;
}

/* Last video wrapper extra spacing */
.video-expand-wrapper:last-child {
  margin-bottom: 150vh; /* Extra space for the last video */
}

.video-expand-box {
  width: 200px;
  height: 150px;
  background: var(--gradient-2);
  border-radius: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 60px rgba(255, 107, 107, 0.3);
  position: relative;
}

.expand-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  background: #1a1a2e; /* Fallback background while loading */
  transition: opacity 0.3s ease; /* Smooth transition when video loads */
}

/* Optimize video rendering */
.expand-video[poster] {
  background-size: cover;
  background-position: center;
}

/* Hide video controls on mobile */
.expand-video::-webkit-media-controls {
  display: none !important;
}

.video-expand-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  background: linear-gradient(
    180deg,
    rgba(26, 26, 46, 0.6) 0%,
    rgba(26, 26, 46, 0.7) 100%
  );
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.5s ease;
}

/* Video Sound Toggle Button */
.video-sound-toggle {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  color: white;
}

.video-expand-box:hover .video-sound-toggle {
  opacity: 1;
  visibility: visible;
}

/* When video is fullscreen, keep sound button within viewport */
.video-expand-box.video-fullscreen {
  max-width: 100vw !important;
  transform: scale(1) !important; /* Prevent any scale transforms at fullscreen */
}

.video-expand-box.video-fullscreen .video-sound-toggle {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

.video-sound-toggle:hover {
  background: rgba(255, 107, 107, 0.8);
  transform: scale(1.1);
}

.video-sound-toggle svg {
  width: 20px;
  height: 20px;
}

.video-sound-toggle .sound-on {
  display: none;
}

.video-sound-toggle.unmuted .sound-on {
  display: block;
}

.video-sound-toggle.unmuted .sound-off {
  display: none;
}

.video-expand-box.expanded .video-expand-content {
  opacity: 0;
}

.video-title {
  color: #fff;
  text-align: center;
  font-family: "Pretendard Variable", -apple-system, BlinkMacSystemFont,
    sans-serif;
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: 42px; /* 175% */
  letter-spacing: -0.72px;
  margin-top: 24px;
  padding: 0 1rem;
  position: relative;
  z-index: 10;
  transition: all 0.3s ease;
}

.video-description {
  font-size: 0.9rem;
  opacity: 0;
  color: var(--light);
  margin-bottom: 0.5rem;
}

.video-date {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  display: block;
  margin-top: 0.5rem;
  opacity: 0;
}

.video-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
}

.video-particles span {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
}

/* Parallax Stats Section */
.stats-section {
  height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--dark) 0%, var(--darker) 100%);
}

.parallax-bg {
  position: absolute;
  width: 120%;
  height: 120%;
  top: -10%;
  left: -10%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23FF6B6B" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,112C1248,107,1344,117,1392,122.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>')
    no-repeat center;
  background-size: cover;
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  max-width: 1000px;
  width: 100%;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.stat-item {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(255, 107, 107, 0.2);
  border-color: rgba(255, 107, 107, 0.3);
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.stat-label {
  font-size: 1rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 0.5rem;
  display: block;
}

/* Bottom tagline */
.bottom-tagline {
  text-align: center;
  padding: 374px 20px 314px;
}

.bottom-tagline p {
  font-family: "Pretendard Variable", -apple-system, BlinkMacSystemFont,
    sans-serif;
  font-size: 32px;
  font-weight: 500;
  color: #ffffff;
  line-height: 40px;
  letter-spacing: -0.96px;
  margin: 0;
}

@media (max-width: 768px) {
  .bottom-tagline p {
    font-size: 24px;
    line-height: 32px;
  }
}

@media (max-width: 480px) {
  .bottom-tagline p {
    font-size: 20px;
    line-height: 28px;
  }
}

/* Footer */
.footer {
  padding: 4rem 2rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.footer-logo {
  width: 174px;
  height: auto;
}

.footer-logo img {
  width: 100%;
  height: auto;
  opacity: 0.8;
}

.footer-info {
  text-align: center;
}

.footer-address {
  font-family: "Pretendard Variable", -apple-system, BlinkMacSystemFont,
    sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  line-height: 22px;
  margin: 1rem 0;
}

.footer-phone {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  max-width: 600px;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--primary);
}

.footer-nav .divider {
  color: rgba(255, 255, 255, 0.3);
  font-size: 12px;
}

/* Removed old footer content styles */

/* Responsive Design */
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-title {
    font-size: clamp(2rem, 10vw, 5rem);
    flex-wrap: wrap;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .info-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .media-card {
    width: 90%;
    height: 60%;
  }

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

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  .nav-dots {
    right: 15px;
  }

  /* Mobile Video Fixes */
  .video-expand-wrapper {
    margin-bottom: 50vh; /* Less spacing on mobile */
  }

  .video-expand-box {
    width: 100vw !important;
    height: auto !important;
    aspect-ratio: 16/9;
    position: relative;
  }

  .expand-video {
    aspect-ratio: 16/9;
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .video-expand-content {
    /* Remove dark overlay on mobile - videos should be visible */
    background: transparent;
    opacity: 0;
    pointer-events: none;
  }

  /* Keep sound button visible on mobile tap */
  .video-sound-toggle {
    opacity: 1;
    visibility: visible;
  }

  /* Keep sound button in viewport on mobile fullscreen */
  .video-expand-box.video-fullscreen {
    max-width: 100vw !important;
    width: 100vw !important; /* Force exact viewport width on mobile */
    transform: scale(1) !important;
  }
  
  .video-expand-box.video-fullscreen .video-sound-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
  }

  /* Video title styling for mobile */
  .video-title {
    font-size: 20px;
    line-height: 32px;
    margin-top: 16px;
    padding: 0 20px;
  }
}
