/* Improved Styles - Beautiful Color Scheme & Typography */

:root {
  /* Modern Color Palette */
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --dark-bg: #1a1a2e;
  --medium-bg: #16213e;
  --accent-color: #f39c12;
  --text-light: #eee;
  --text-muted: #bbb;
  --success: #00b894;
  --shadow: rgba(0, 0, 0, 0.3);
}

/* Typography Improvements */
body {
  font-family: 'Poppins', 'Montserrat', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Main Section Styling */
.section-9 {
  background: var(--dark-bg);
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(243, 156, 18, 0.05) 0%, transparent 50%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Container Styling */
.container-6 {
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 2rem;
}

/* Heading Styles */
.heading-4 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  background: linear-gradient(to right, #fff, #f0f0f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.text-span-13 {
  display: block;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  margin-top: 0.5rem;
  background: var(--secondary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    filter: brightness(1) drop-shadow(0 0 20px rgba(243, 156, 18, 0.3));
  }
  to {
    filter: brightness(1.2) drop-shadow(0 0 30px rgba(243, 156, 18, 0.5));
  }
}

/* Video Container */
.video-wrapper {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  margin: 2rem 0;
  background: #000;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 25px 70px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.2),
    0 0 40px rgba(102, 126, 234, 0.3);
}

/* Text Block */
.text-block-7 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-muted);
  margin: 2rem 0;
  letter-spacing: 0.02em;
}

/* CTA Button */
.button-5 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 2rem 4.5rem;
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: 60px;
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 
    0 15px 40px rgba(102, 126, 234, 0.5),
    inset 0 -4px 0 rgba(0, 0, 0, 0.2);
  margin-top: 2rem;
  animation: pulse-button 2s ease-in-out infinite;
}

.button-5::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.button-5:hover {
  transform: scale(1.05) translateY(-3px);
  box-shadow: 
    0 20px 50px rgba(102, 126, 234, 0.6),
    inset 0 -4px 0 rgba(0, 0, 0, 0.3);
}

.button-5:hover::before {
  left: 100%;
}

.button-5:active {
  transform: scale(0.98) translateY(-1px);
  box-shadow: 
    0 5px 20px rgba(102, 126, 234, 0.4),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}

/* Arrow Container */
.arrow-container {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
}

.arrow {
  width: 50px;
  height: 50px;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.3));
  animation: bounce 2s ease-in-out infinite;
  opacity: 0.8;
}

@keyframes bounce {
  0%, 100% {
    transform: rotate(-255deg) translateY(0);
  }
  50% {
    transform: rotate(-255deg) translateY(-15px);
  }
}

/* Remove old inline styles */
.additional {
  display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .heading-4 {
    font-size: 2.5rem;
  }
  
  .text-span-13 {
    font-size: 2rem;
  }
  
  .button-5 {
    font-size: 1.5rem;
    padding: 1.5rem 3rem;
    width: 100%;
    max-width: 400px;
  }
  
  .text-block-7 {
    font-size: 1.1rem;
  }
  
  .video-wrapper {
    border-radius: 15px;
  }
}

/* Additional Visual Enhancements */
.section-9::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-image: 
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 35px,
      rgba(255, 255, 255, 0.01) 35px,
      rgba(255, 255, 255, 0.01) 70px
    );
  pointer-events: none;
}

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

/* Loading Animation for Video */
.video-wrapper::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-wrapper.loading::after {
  opacity: 1;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Focus States */
.button-5:focus {
  outline: none;
  box-shadow: 
    0 20px 50px rgba(102, 126, 234, 0.6),
    inset 0 -4px 0 rgba(0, 0, 0, 0.3),
    0 0 0 3px rgba(102, 126, 234, 0.3);
}

/* Pulse Animation for Button */
@keyframes pulse-button {
  0%, 100% {
    box-shadow: 
      0 15px 40px rgba(102, 126, 234, 0.5),
      inset 0 -4px 0 rgba(0, 0, 0, 0.2),
      0 0 0 rgba(102, 126, 234, 0);
  }
  50% {
    box-shadow: 
      0 25px 60px rgba(102, 126, 234, 0.8),
      inset 0 -4px 0 rgba(0, 0, 0, 0.2),
      0 0 40px rgba(102, 126, 234, 0.6);
  }
}

/* Selection Color */
::selection {
  background-color: rgba(102, 126, 234, 0.5);
  color: white;
}

::-moz-selection {
  background-color: rgba(102, 126, 234, 0.5);
  color: white;
}