/* Import Montserrat Font */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

/*******************************
 * Hero Section Enhanced Styles - Redesigned
 *******************************/

/* Video Overlay - Left to Right Gradient */
.cs-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

/* Enhanced Hero Text Animations - Clean Design */
.cs-hero_title {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 700;
  font-size: 3.2rem;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: #ffffff;
  text-transform: none;
  animation: titleSlideIn 1.8s ease-out 0.5s both;
  position: relative;
  z-index: 2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Line-by-line animation for title */
.cs-hero_title .title-line {
  display: block;
  opacity: 0;
  animation: lineReveal 0.8s ease-out both;
}

.cs-hero_title .title-line:nth-child(1) {
  animation-delay: 0.8s;
}

.cs-hero_title .title-line:nth-child(2) {
  animation-delay: 1.2s;
}

.cs-hero_title .title-line:nth-child(3) {
  animation-delay: 1.6s;
}

@keyframes lineReveal {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

.cs-hero_subtitle {
  animation: subtitleFade 2s ease-out 2.2s both;
  position: relative;
  z-index: 2;
}

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

/* Simplified Store Buttons - Clean Design */
.store-buttons-simple {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  animation: buttonsSlideIn 2.5s ease-out 6.5s both;
  position: relative;
  z-index: 2;
}

.store-button-simple {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 30px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  text-decoration: none;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.store-button-simple:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

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

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

.store-button-simple .icon {
  font-size: 1.5rem;
}

.store-button-simple .text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.store-button-simple .small {
  font-size: 0.8rem;
  opacity: 0.8;
}

.store-button-simple .large {
  font-size: 1.1rem;
  font-weight: 600;
}

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

/* Clean text shadows */
.text-shadow-elegant {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.premium-title {
  position: relative;
  display: inline-block;
}

.premium-title::before {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #e7b65c, transparent);
  animation: underlineExpand 2s ease-out 1.5s both;
}

@keyframes underlineExpand {
  to {
    width: 100%;
  }
}

/* Enhanced Hero Section Animations */

/* Hero section entrance */
.cs-hero {
  animation: heroSectionReveal 1.2s ease-out 0.1s both;
}

@keyframes heroSectionReveal {
  from {
    opacity: 0;
    transform: scale(1.1);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Enhanced particle effects with golden glow */
.particle {
  position: absolute;
  background: radial-gradient(circle, rgba(231, 182, 92, 0.9) 0%, rgba(231, 182, 92, 0.3) 40%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(231, 182, 92, 0.5);
  animation: particleFloatEnhanced 8s ease-in-out infinite;
}

@keyframes particleFloatEnhanced {
  0%, 100% {
    transform: translateY(0px) scale(0) rotate(0deg);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  50% {
    transform: translateY(-120px) scale(1.2) rotate(180deg);
    opacity: 0.8;
  }
  80% {
    opacity: 0.6;
  }
}

/* Enhanced phone glass effect with floating and glow */
.phone {
  animation: phoneEntrance 1.8s ease-out 1.8s both;
  transition: all 0.4s ease;
  position: relative;
}

.phone::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #e7b65c, transparent, #e7b65c);
  border-radius: 30px;
  z-index: -1;
  animation: phoneGlow 3s ease-in-out infinite;
}

@keyframes phoneGlow {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.02);
  }
}

/* Enhanced hover effects */
.phone:hover {
  transform: translateY(-15px) rotateY(-10deg) scale(1.05);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(231, 182, 92, 0.3);
}

.phone:active {
  transform: translateY(-5px) rotateY(-5deg) scale(1.02);
}

/* Enhanced Text Animations - Complete Redesign */

/* Fade in with slide effect for title */
.cs-hero_title {
  animation: fadeInSlide 1.5s ease-out 0.3s both;
  transform-origin: center;
}

@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Line-by-line typewriter effect for subtitle */
.cs-hero_subtitle .subtitle-line {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid #ffffff;
  width: 0;
  animation: lineTypewriter 2s steps(40, end) forwards, blink-caret 0.75s step-end infinite;
  margin-bottom: 0.5rem;
  opacity: 0;
}

.cs-hero_subtitle .subtitle-line:nth-child(1) {
  animation-delay: 2.5s, 2.5s;
}

.cs-hero_subtitle .subtitle-line:nth-child(2) {
  animation-delay: 4s, 4s;
}

.cs-hero_subtitle .subtitle-line:nth-child(3) {
  animation-delay: 5.5s, 5.5s;
}

@keyframes lineTypewriter {
  to {
    width: 100%;
    opacity: 1;
  }
}

@keyframes blink-caret {
  from, to {
    border-color: transparent;
  }
  50% {
    border-color: #ffffff;
  }
}

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

@keyframes wordReveal {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  50% {
    opacity: 0.5;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Phone entrance animation */
.phone {
  animation: phoneEntrance 1.8s ease-out 1.8s both;
}

@keyframes phoneEntrance {
  from {
    opacity: 0;
    transform: translateX(100px) rotateY(90deg) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateX(0) rotateY(0) scale(1);
  }
}

/* Store buttons staggered animation */
.store-link:nth-child(1) {
  animation: buttonSlideIn 1s ease-out 2.2s both;
}

.store-link:nth-child(2) {
  animation: buttonSlideIn 1s ease-out 2.4s both;
}

@keyframes buttonSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .cs-hero_title {
    font-size: 2.5rem;
  }
  
  .cs-hero_subtitle p {
    white-space: normal;
    border-right: none;
    animation: subtitleFadeInMobile 2s ease-out 1s both;
  }
  
  @keyframes subtitleFadeInMobile {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .phone {
    width: 240px;
    height: 480px;
    margin: 0 auto;
  }
}

@media (max-width: 576px) {
  .cs-hero_title {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .cs-hero_title {
    font-size: 1.8rem;
    letter-spacing: 0.03em;
  }
  .cs-hero_subtitle .subtitle-line {
    animation: subtitleFadeMobile 1s ease-out forwards;
    border: none;
    opacity: 1;
    width: 100%;
    margin-bottom: 0.3rem;
  }
  .cs-hero_subtitle .subtitle-line:nth-child(1) { animation-delay: 2.5s; }
  .cs-hero_subtitle .subtitle-line:nth-child(2) { animation-delay: 3.5s; }
  .cs-hero_subtitle .subtitle-line:nth-child(3) { animation-delay: 4.5s; }
  .cs-hero_subtitle .subtitle-line:nth-child(4) { animation-delay: 5.5s; }
  .cs-hero_subtitle .subtitle-line:nth-child(5) { animation-delay: 6.5s; }
  
  @keyframes subtitleFadeMobile {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  .store-buttons-simple {
    flex-direction: column;
    gap: 15px;
  }
  
  .store-button-simple {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
}

/* Enhanced video background styles */
.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 1;
  display: block;
  visibility: visible;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.6) 100%
  );
  z-index: 2;
}

/* Ensure content stays above video */
.cs-hero .container {
  position: relative;
  z-index: 10;
}

/* Responsive video background */
@media (max-width: 768px) {
  .hero-video {
    object-position: center;
    min-width: 100vw;
    min-height: 100vh;
  }
}

/* Ensure video covers entire hero section */
.hero-video {
  width: 100vw !important;
  height: 100vh !important;
  min-width: 100vw !important;
  min-height: 100vh !important;
}

/* Responsive adjustments for premium title */
@media (max-width: 1200px) {
  .premium-title {
    font-size: 3.2rem !important;
  }
}

@media (max-width: 992px) {
  .premium-title {
    font-size: 2.8rem !important;
  }
}

@media (max-width: 768px) {
  .premium-title {
    font-size: 2.2rem !important;
    letter-spacing: 0.03em !important;
  }
}

@media (max-width: 576px) {
  .premium-title {
    font-size: 1.8rem !important;
    letter-spacing: 0.02em !important;
  }
}