/* @import url("https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap"); */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
}

body {
  font-family: "Outfit", sans-serif;
  overflow: hidden;
  background: #0a0a0a;
}

/* Subtle Background */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    ellipse at center,
    #1a1a2e 0%,
    #16213e 50%,
    #0a0a0a 100%
  );
  z-index: -2;
}

.animated-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: -1;
}

/* Interactive Particles */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.particle {
  position: absolute;
  background: rgba(79, 172, 254, 0.6);
  border-radius: 50%;
  pointer-events: none;
  transition: all 0.3s ease;
}

.particle.interactive {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 20px rgba(79, 172, 254, 0.5);
}

/* Main Landing Section */
.landing-section {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  position: relative;
  z-index: 1;
  padding: 1rem;
  overflow: hidden;
}

.main-title {
  font-size: clamp(2rem, 6vw, 6rem);
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff, #4facfe, #00f2fe);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(79, 172, 254, 0.3);
  line-height: 1.2;
}

.subtitle {
  font-size: clamp(1rem, 2.5vw, 2rem);
  font-weight: 300;
  margin-bottom: 3rem;
  opacity: 0.9;
  max-width: 800px;
  color: #e0e0e0;
  padding: 0 1rem;
  line-height: 1.4;
}

.achievements {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  justify-content: center;
}

.achievement-box {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(79, 172, 254, 0.2);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  min-width: 200px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.achievement-box:hover {
  transform: translateY(-10px);
  background: rgba(79, 172, 254, 0.1);
  box-shadow: 0 20px 40px rgba(79, 172, 254, 0.2);
  border-color: rgba(79, 172, 254, 0.4);
}

.achievement-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #4facfe;
  margin-bottom: 0.5rem;
}

.achievement-text {
  font-size: 1rem;
  opacity: 0.9;
  color: #e0e0e0;
}

.continue-btn {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  border: none;
  color: white;
  font-size: 1.3rem;
  font-weight: 600;
  padding: 1rem 3rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(79, 172, 254, 0.4);
}

.continue-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.continue-btn:hover::before {
  left: 100%;
}

.continue-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(79, 172, 254, 0.6);
}

/* Video Section */
.video-section {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.video-section.active {
  opacity: 1;
  transform: translateY(0);
}

.back-btn {
  position: absolute;
  top: 2rem;
  left: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(79, 172, 254, 0.3);
  color: white;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.back-btn:hover {
  background: rgba(79, 172, 254, 0.2);
  transform: translateX(-5px);
}

.back-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: transform 0.3s ease;
}

.back-btn:hover svg {
  transform: translateX(-3px);
}

/* Fade animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(20px);
  }
}

.landing-section {
  animation: fadeIn 1s ease-out;
}

.landing-section.fade-out {
  animation: fadeOut 0.8s ease-out forwards;
}

.video-section.active {
  animation: fadeIn 1s ease-out;
}

.video-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #fff, #4facfe);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.video-container {
  width: 80%;
  max-width: 800px;
  aspect-ratio: 16/9;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(79, 172, 254, 0.2);
  border-radius: 20px;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.video-container:hover {
  border-color: rgba(79, 172, 254, 0.4);
  background: rgba(79, 172, 254, 0.1);
}

.video-thumbnail {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.thumbnail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(79, 172, 254, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(79, 172, 254, 0.5);
  z-index: 10;
}

.play-icon::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 20px solid white;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 5px;
}

.video-controls {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.video-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(79, 172, 254, 0.3);
  color: white;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .achievements {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 0 1rem;
  }

  .achievement-box {
    width: 100%;
    max-width: 300px;
    padding: 1.5rem 1rem;
  }

  .achievement-number {
    font-size: 2rem;
  }

  .achievement-text {
    font-size: 0.9rem;
  }

  .video-controls {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 0 1rem;
  }

  .video-container {
    width: 95%;
    margin: 0 auto 1.5rem;
  }

  .back-btn {
    top: 1rem;
    left: 1rem;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  .back-btn svg {
    width: 14px;
    height: 14px;
  }

  .video-title {
    font-size: clamp(1.5rem, 4vw, 4rem);
    padding: 0 1rem;
    margin-top: 4rem;
  }

  .continue-btn {
    font-size: 1.1rem;
    padding: 0.8rem 2rem;
    width: 90%;
    max-width: 300px;
  }

  .video-btn {
    width: 90%;
    max-width: 300px;
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
  }

  .play-icon {
    width: 60px;
    height: 60px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .play-icon::after {
    border-left: 15px solid white;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
  }

  .thumbnail-image {
    object-fit: cover;
  }
}

/* Touch device optimizations */
@media (hover: none) {
  .achievement-box:hover {
    transform: none;
  }

  .continue-btn:hover {
    transform: none;
  }

  .video-btn:hover {
    transform: none;
  }

  .play-icon:hover {
    transform: none;
  }

  .back-btn:hover {
    transform: none;
  }
}

/* Reduce particles for better mobile performance */
@media (max-width: 768px) {
  .particle {
    opacity: 0.3;
  }
}

/* Safe area insets for modern mobile browsers */
@supports (padding: max(0px)) {
  .landing-section,
  .video-section {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
    padding-bottom: max(5rem, env(safe-area-inset-bottom));
  }
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

.section {
  min-height: 100vh;
  max-height: 100vh;
}
