/* ==========================================================================
   FixMyRide - Splash screen, hero & problem section
   Owner: Member 2
   Load order: base -> hero -> features -> gallery-team -> form-footer
   ========================================================================== */

/* --------------------------------------------------------------------------
   5. HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  padding-top: 4rem;
  padding-bottom: 5rem;
  background: linear-gradient(180deg, #FFFFFF 0%, #F4F7FB 100%);
  position: relative;
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background-color: #FFFFFF;
  border: 1px solid var(--color-border);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: #38A169;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(56, 161, 105, 0.2);
}

.badge-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
}

.hero-headline {
  font-size: 3.1rem;
  font-weight: 800;
  line-height: 1.18;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
  letter-spacing: -0.025em;
}

.hero-subheadline {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 2.25rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2.75rem;
}

/* Hero Trust Badges */
.hero-trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

/* Hero Visual & Phone Mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup-wrapper {
  width: 100%;
  max-width: 420px;
  transition: transform var(--transition-slow);
}

.phone-mockup-wrapper:hover {
  transform: translateY(-6px);
}

.hero-mockup-img {
  width: 100%;
  height: auto;
}

/* --------------------------------------------------------------------------
   6. THE PROBLEM SECTION
   -------------------------------------------------------------------------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.card {
  background-color: var(--color-bg-white);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(31, 58, 95, 0.15);
}

.card-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.problem-icon-box {
  background-color: var(--color-danger-bg);
}

.card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.card-text {
  font-size: 0.98rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}


/* --------------------------------------------------------------------------
   SPLASH SCREEN / PRELOADER
   -------------------------------------------------------------------------- */
.splash-screen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, #1F3A5F 0%, #12243C 60%, #0A1422 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s ease;
  user-select: none;
}

.splash-screen.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
  max-width: 380px;
}

.splash-logo-wrapper {
  position: relative;
  width: 108px;
  height: 108px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash-logo {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 2;
  animation: splashPop 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.splash-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 28px;
  background: radial-gradient(circle, rgba(255, 122, 0, 0.5) 0%, rgba(255, 122, 0, 0) 70%);
  animation: splashPulse 2s ease-in-out infinite;
  z-index: 1;
}

.splash-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
  animation: splashFadeUp 0.8s ease 0.2s both;
}

.splash-tagline {
  font-size: 0.95rem;
  color: #CBD5E0;
  font-weight: 500;
  margin-bottom: 2rem;
  animation: splashFadeUp 0.8s ease 0.35s both;
}

.splash-loader {
  width: 180px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
  animation: splashFadeUp 0.8s ease 0.45s both;
}

.splash-loader-bar {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #FF7A00, #FFA857);
  border-radius: var(--radius-full);
  transform-origin: left center;
  animation: splashProgress 1.25s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes splashPop {
  0% {
    transform: scale(0.65);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes splashPulse {
  0%, 100% {
    transform: scale(0.98);
    opacity: 0.35;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.85;
  }
}

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

@keyframes splashProgress {
  0% {
    transform: scaleX(0);
  }
  45% {
    transform: scaleX(0.55);
  }
  100% {
    transform: scaleX(1);
  }
}

/* Responsive (hero & problem) */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-subheadline {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-trust-list {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero-headline {
    font-size: 2.2rem;
  }

  .hero-subheadline {
    font-size: 1.05rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-headline {
    font-size: 1.85rem;
  }

  .hero-trust-list {
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
  }
}
