/* Landing Page Styles */

/* ========== Animations ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

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

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

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* ========== Global Styles ========== */
#landing-view {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 25%, #4c1d95 50%, #1e293b 75%, #0f172a 100%);
  background-size: 400% 400%;
  animation: gradientShift 20s ease infinite;
  min-height: 100vh;
  overflow-x: hidden;
}

#landing-view * {
  box-sizing: border-box;
}

#landing-page {
  position: relative;
  overflow-x: hidden;
}

.landing-nav {
  backdrop-filter: blur(20px);
  background: rgba(15, 23, 42, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
  animation: fadeInDown 0.8s ease-out;
}

.landing-nav button {
  position: relative;
  overflow: hidden;
}

.landing-nav button::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.5s;
}

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

/* ========== Hero Section ========== */
.landing-hero {
  animation: fadeInUp 1s ease-out;
}

.landing-hero h2 {
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #f472b6 100%);
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.landing-hero p {
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1.2s ease-out 0.3s both;
}

.landing-buttons {
  animation: fadeInUp 1.5s ease-out 0.6s both;
}

.hero-button-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  transition: all 0.3s ease;
}

.hero-button-primary::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.hero-button-primary:hover::after {
  width: 300px;
  height: 300px;
}

.hero-button-secondary {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.hero-button-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 32px rgba(255, 255, 255, 0.1);
}

/* ========== Background Elements ========== */
.landing-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.landing-bg-gradient {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 25%, #4c1d95 50%, #1e293b 75%, #0f172a 100%);
  background-size: 400% 400%;
  animation: gradientShift 20s ease infinite;
}

.landing-bg-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1), transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1), transparent 50%);
}

.floating-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: float 6s ease-in-out infinite;
  opacity: 0.3;
}

.floating-shape-1 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.floating-shape-2 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #8b5cf6, #a78bfa);
  bottom: 15%;
  right: 15%;
  animation-delay: 2s;
}

.floating-shape-3 {
  width: 250px;
  height: 250px;
  background: linear-gradient(135deg, #ec4899, #f472b6);
  top: 50%;
  right: 30%;
  animation-delay: 4s;
}

/* ========== Carousel Styles ========== */
.carousel-container {
  perspective: 1000px;
}

.carousel-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
}

.carousel-slide {
  will-change: transform;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.carousel-btn {
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.carousel-btn:active {
  transform: scale(0.95);
}

.carousel-dot {
  transition: all 0.3s ease;
  cursor: pointer;
}

.carousel-dot:hover {
  transform: scale(1.3);
}

.carousel-dot.active {
  width: 32px !important;
  height: 8px !important;
  border-radius: 4px;
}

/* ========== Feature Cards ========== */
.feature-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transition: left 0.5s;
}

.feature-card:hover::before {
  left: 100%;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.feature-icon {
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: rotate(360deg) scale(1.2);
}

/* ========== CTA Section ========== */
.cta-section {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 70%);
  animation: pulse 3s ease-in-out infinite;
}

.cta-button {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  transition: all 0.3s ease;
  box-shadow: 0 10px 40px rgba(59, 130, 246, 0.3);
}

.cta-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.cta-button:hover::after {
  width: 400px;
  height: 400px;
}

.cta-button:hover {
  box-shadow: 0 15px 50px rgba(59, 130, 246, 0.5);
  transform: translateY(-3px);
}

.cta-button:active {
  transform: translateY(0);
}

/* ========== Footer ========== */
.landing-footer a {
  position: relative;
  transition: all 0.3s ease;
}

.landing-footer a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  transition: width 0.3s ease;
}

.landing-footer a:hover::after {
  width: 100%;
}

.landing-footer a:hover {
  transform: translateY(-2px);
}

/* ========== Responsive Design ========== */
@media (max-width: 768px) {
  .landing-hero h2 {
    font-size: 2.5rem !important;
  }
  
  .service-card {
    padding: 1rem !important;
  }
  
  .carousel-btn {
    width: 40px;
    height: 40px;
  }
  
  .feature-card {
    margin-bottom: 1rem;
  }
  
  .cta-section {
    padding: 2rem !important;
  }
  
  .hero-button-primary,
  .hero-button-secondary {
    width: 100%;
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 640px) {
  .landing-hero h2 {
    font-size: 2rem !important;
    line-height: 1.2;
  }
  
  .landing-hero p {
    font-size: 1rem !important;
  }
  
  .floating-shape {
    width: 200px;
    height: 200px;
  }
}

/* ========== Loading Animation ========== */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.loading-shimmer {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0.1) 100%
  );
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

/* ========== Scroll Animations ========== */
.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.fade-in-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== Button Animations ========== */
@keyframes buttonPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
  }
}

.pulse-animate {
  animation: buttonPulse 2s infinite;
}

/* ========== Custom Scrollbar ========== */
#landing-view::-webkit-scrollbar {
  width: 10px;
}

#landing-view::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

#landing-view::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3b82f6, #8b5cf6);
  border-radius: 5px;
}

#landing-view::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #2563eb, #7c3aed);
}

/* ========== Utility Classes ========== */
.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.glow-effect {
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3),
              0 0 40px rgba(139, 92, 246, 0.2);
}

.hover-lift {
  transition: transform 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-10px);
}

.shine-effect {
  position: relative;
  overflow: hidden;
}

.shine-effect::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* ========== Section Spacing ========== */
.landing-section {
  padding: 4rem 0;
  position: relative;
}

.landing-section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff, #cbd5e1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

