/* ============================================
   MODERN HERO SECTION & ANIMATIONS
   Bulut Oto Servis - v2.0
   ============================================ */

/* ============================================
   CSS VARIABLES - Extended
   ============================================ */
:root {
  /* Gradients */
  --hero-gradient: linear-gradient(135deg, #0f4c81 0%, #1565c0 40%, #0d9488 100%);
  --hero-gradient-dark: linear-gradient(135deg, #0a2540 0%, #0f4c81 50%, #065f5b 100%);
  --accent-gradient: linear-gradient(135deg, #ff6b35 0%, #ff8a5b 100%);
  --success-gradient: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);

  /* Shadows */
  --shadow-glow-primary: 0 0 60px rgba(21, 101, 192, 0.4);
  --shadow-glow-success: 0 0 40px rgba(16, 185, 129, 0.4);
  --shadow-card: 0 25px 50px -12px rgba(0, 0, 0, 0.15);

  /* Animation Timings */
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in-out-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   HERO SECTION - Complete Redesign
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--hero-gradient) !important;
  height: var(--hero-height-standard);
  color: var(--hero-text-color);
  padding: 120px 0 80px;
  overflow: hidden;
}

/* Animated Gradient Overlay */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--hero-overlay-1), var(--hero-overlay-2), var(--hero-overlay-3);
  animation: gradientPulse 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes gradientPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1) rotate(1deg);
  }
}

/* Particle Background */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: particleFloat 15s infinite ease-in-out;
}

.particle:nth-child(1) {
  left: 10%;
  top: 20%;
  animation-delay: 0s;
  animation-duration: 20s;
}
.particle:nth-child(2) {
  left: 20%;
  top: 80%;
  animation-delay: -2s;
  animation-duration: 18s;
}
.particle:nth-child(3) {
  left: 30%;
  top: 40%;
  animation-delay: -4s;
  animation-duration: 22s;
}
.particle:nth-child(4) {
  left: 40%;
  top: 60%;
  animation-delay: -6s;
  animation-duration: 16s;
}
.particle:nth-child(5) {
  left: 50%;
  top: 30%;
  animation-delay: -8s;
  animation-duration: 24s;
}
.particle:nth-child(6) {
  left: 60%;
  top: 70%;
  animation-delay: -10s;
  animation-duration: 19s;
}
.particle:nth-child(7) {
  left: 70%;
  top: 50%;
  animation-delay: -12s;
  animation-duration: 21s;
}
.particle:nth-child(8) {
  left: 80%;
  top: 25%;
  animation-delay: -14s;
  animation-duration: 17s;
}
.particle:nth-child(9) {
  left: 90%;
  top: 85%;
  animation-delay: -16s;
  animation-duration: 23s;
}
.particle:nth-child(10) {
  left: 15%;
  top: 55%;
  animation-delay: -18s;
  animation-duration: 20s;
}
.particle:nth-child(11) {
  left: 85%;
  top: 45%;
  animation-delay: -5s;
  animation-duration: 18s;
}
.particle:nth-child(12) {
  left: 45%;
  top: 15%;
  animation-delay: -11s;
  animation-duration: 25s;
}

@keyframes particleFloat {
  0%,
  100% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0.3;
  }
  25% {
    transform: translateY(-100px) translateX(30px) scale(1.2);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-50px) translateX(-20px) scale(0.8);
    opacity: 0.4;
  }
  75% {
    transform: translateY(-150px) translateX(10px) scale(1.1);
    opacity: 0.5;
  }
}

/* Floating Shapes */
.hero-floating-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.floating-shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  backdrop-filter: blur(5px);
  animation: shapeFloat 20s ease-in-out infinite;
}

.floating-shape:nth-child(1) {
  width: 400px;
  height: 400px;
  top: -10%;
  left: -5%;
  animation-delay: 0s;
}

.floating-shape:nth-child(2) {
  width: 300px;
  height: 300px;
  top: 60%;
  right: -8%;
  animation-delay: -5s;
}

.floating-shape:nth-child(3) {
  width: 200px;
  height: 200px;
  bottom: 5%;
  left: 15%;
  animation-delay: -10s;
}

.floating-shape:nth-child(4) {
  width: 150px;
  height: 150px;
  top: 25%;
  right: 20%;
  animation-delay: -7s;
}

.floating-shape:nth-child(5) {
  width: 100px;
  height: 100px;
  top: 50%;
  left: 30%;
  animation-delay: -12s;
}

@keyframes shapeFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  25% {
    transform: translateY(-40px) rotate(5deg) scale(1.05);
  }
  50% {
    transform: translateY(20px) rotate(-3deg) scale(0.95);
  }
  75% {
    transform: translateY(-20px) rotate(2deg) scale(1.02);
  }
}

/* Hero Content Layout */
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Hero Text Area */
.hero-text-wrapper {
  max-width: 600px;
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  color: white;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s var(--ease-out-expo) forwards;
  opacity: 0;
}

.hero-badge-icon {
  width: 8px;
  height: 8px;
  background: #34d399;
  border-radius: 50%;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.7;
  }
}

/* Hero Title */
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem) !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  color: white !important;
  margin-bottom: 24px !important;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.1s forwards;
  opacity: 0;
}

/* Typing Effect Container */
.typing-wrapper {
  display: inline-block;
  min-height: 1.2em;
}

.typing-text {
  background: linear-gradient(135deg, #ffd700 0%, #fff 50%, #ffd700 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
  border-right: 3px solid #ffd700;
  padding-right: 5px;
}

.typing-text.typing-done {
  border-right: none;
}

@keyframes shimmer {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}

/* Hero Paragraphs */
.hero p {
  font-size: 1.125rem !important;
  line-height: 1.8 !important;
  color: rgba(255, 255, 255, 0.9) !important;
  margin-bottom: 20px !important;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.2s forwards;
  opacity: 0;
}

.hero p strong {
  color: white !important;
  font-weight: 600;
}

/* Hero CTA Buttons */
.hero-cta-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
  margin-bottom: 32px;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.3s forwards;
  opacity: 0;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-size: 1.125rem;
  font-weight: 600;
  color: #0f4c81;
  background: white;
  border: none;
  border-radius: 50px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-back);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.btn-hero-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
}

.btn-hero-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.3),
    var(--shadow-glow-primary);
  color: #0f4c81;
}

.btn-hero-primary:hover::before {
  left: 100%;
}

.btn-hero-primary svg,
.btn-hero-primary .btn-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.btn-hero-primary:hover svg,
.btn-hero-primary:hover .btn-icon {
  transform: translateX(4px);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-in-out-smooth);
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-4px);
  color: white;
}

/* Hero Feature Pills */
.hero-features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.4s forwards;
  opacity: 0;
}

.hero-feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-feature-pill .check-icon {
  width: 18px;
  height: 18px;
  color: #34d399;
}

/* ============================================
   HERO VISUAL / MOCKUP AREA
   ============================================ */
.hero-visual-wrapper {
  position: relative;
  animation: fadeInRight 1s var(--ease-out-expo) 0.3s forwards;
  opacity: 0;
}

/* Mockup Container */
.hero-mockup {
  position: relative;
  perspective: 1500px;
}

/* Laptop/Screen Mockup */
.mockup-screen {
  position: relative;
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 16px;
  padding: 12px;
  box-shadow:
    0 50px 100px -20px rgba(0, 0, 0, 0.5),
    0 30px 60px -30px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: rotateY(-8deg) rotateX(5deg);
  transition: transform 0.6s var(--ease-out-expo);
  transform-style: preserve-3d;
}

.hero-mockup:hover .mockup-screen {
  transform: rotateY(-2deg) rotateX(2deg);
}

/* Screen Top Bar */
.mockup-screen::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

/* Screenshot Image */
.mockup-screen img {
  width: 100%;
  border-radius: 8px;
  display: block;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Floating Info Cards */
.floating-info-card {
  position: absolute;
  background: white;
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: floatCard 6s ease-in-out infinite;
  z-index: 20;
}

.floating-info-card:nth-child(2) {
  top: 15%;
  left: -20%;
  animation-delay: 0s;
}

.floating-info-card:nth-child(3) {
  bottom: 20%;
  right: -15%;
  animation-delay: -3s;
}

@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.card-icon.green {
  background: rgba(16, 185, 129, 0.15);
}
.card-icon.blue {
  background: rgba(21, 101, 192, 0.15);
}
.card-icon.orange {
  background: rgba(255, 107, 53, 0.15);
}

.card-content {
  display: flex;
  flex-direction: column;
}

.card-content .label {
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 2px;
}

.card-content .value {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

/* Glow Effect Behind Mockup */
.mockup-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(16, 185, 129, 0.3) 0%, transparent 70%);
  filter: blur(60px);
  z-index: -1;
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

/* ============================================
   ANIMATION UTILITIES
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s var(--ease-out-expo);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animations */
.animate-on-scroll.delay-100 {
  transition-delay: 0.1s;
}
.animate-on-scroll.delay-200 {
  transition-delay: 0.2s;
}
.animate-on-scroll.delay-300 {
  transition-delay: 0.3s;
}
.animate-on-scroll.delay-400 {
  transition-delay: 0.4s;
}
.animate-on-scroll.delay-500 {
  transition-delay: 0.5s;
}

/* Animate from left */
.animate-from-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: all 0.8s var(--ease-out-expo);
}

.animate-from-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Animate from right */
.animate-from-right {
  opacity: 0;
  transform: translateX(60px);
  transition: all 0.8s var(--ease-out-expo);
}

.animate-from-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Scale animation */
.animate-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.8s var(--ease-out-expo);
}

.animate-scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* ============================================
   COUNTER ANIMATION
   ============================================ */
.stat-counter {
  font-variant-numeric: tabular-nums;
}

/* ============================================
   PARALLAX EFFECTS
   ============================================ */
.parallax-slow {
  will-change: transform;
  transition: transform 0.1s linear;
}

.parallax-medium {
  will-change: transform;
  transition: transform 0.1s linear;
}

.parallax-fast {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* ============================================
   HOVER EFFECTS - Enhanced
   ============================================ */

/* Card Hover Effect */
.hover-lift {
  transition: all 0.4s var(--ease-out-back);
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Glow Hover Effect */
.hover-glow {
  transition: all 0.3s ease;
}

.hover-glow:hover {
  box-shadow: 0 0 30px rgba(21, 101, 192, 0.3);
}

/* Scale Hover Effect */
.hover-scale {
  transition: transform 0.3s var(--ease-out-back);
}

.hover-scale:hover {
  transform: scale(1.05);
}

/* ============================================
   SMOOTH SCROLL
   ============================================ */
html {
  scroll-behavior: smooth;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  animation: fadeInUp 1s var(--ease-out-expo) 1s forwards;
  opacity: 0;
}

.scroll-indicator-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.scroll-indicator-arrow {
  width: 24px;
  height: 24px;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-text-wrapper {
    max-width: 100%;
  }

  .hero-cta-wrapper {
    justify-content: center;
  }

  .hero-features-list {
    justify-content: center;
  }

  .hero-visual-wrapper {
    max-width: 600px;
    margin: 0 auto;
  }

  .mockup-screen {
    transform: rotateY(0deg) rotateX(0deg);
  }

  .floating-info-card:nth-child(2) {
    left: -10%;
    top: 10%;
  }

  .floating-info-card:nth-child(3) {
    right: -10%;
    bottom: 15%;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 100px 0 60px;
    min-height: auto;
  }

  .hero h1 {
    font-size: 2rem !important;
  }

  .hero p {
    font-size: 1rem !important;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    padding: 14px 24px;
    font-size: 1rem;
    width: 100%;
    justify-content: center;
  }

  .hero-cta-wrapper {
    flex-direction: column;
  }

  .hero-features-list {
    flex-direction: column;
    align-items: center;
  }

  .floating-info-card {
    display: none;
  }

  .floating-shape {
    opacity: 0.5;
  }

  .scroll-indicator {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.75rem !important;
  }

  .hero-badge {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
}
