/* assets/css/landing-style.css - Landing Page Styles */

:root {
  --primary-color: #bf1e2b;
  --primary-hover: #a01823;
  --background-color: #f7f7f7;
  --white: #ffffff;
  --font-family: "Tahoma", sans-serif;
  --shadow-base: 0 4px 15px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.2);
  --transition-base: 0.3s ease;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, var(--background-color) 0%, #e8e8e8 100%);
  min-height: 100vh;
  min-height: 100dvh;
  /* Dynamic viewport height for mobile browsers */
  display: flex;
  flex-direction: column;
  align-items: center;
  /* justify-content: space-between; */
  direction: rtl;
  position: relative;
  overflow-x: hidden;
}

/* Animated background elements */
.background-decoration {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.bg-circle {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(45deg,
      rgba(191, 30, 43, 0.1),
      rgba(191, 30, 43, 0.05));
  animation: float 6s ease-in-out infinite;
}

.bg-circle:nth-child(1) {
  width: 200px;
  height: 200px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.bg-circle:nth-child(2) {
  width: 150px;
  height: 150px;
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.bg-circle:nth-child(3) {
  width: 100px;
  height: 100px;
  bottom: 20%;
  left: 20%;
  animation-delay: 4s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  33% {
    transform: translateY(-20px) rotate(120deg);
  }

  66% {
    transform: translateY(-10px) rotate(240deg);
  }
}

/* ========================================
   SIMPLE CENTERED LAYOUT
   Logo in middle, button at bottom
======================================== */

/* Main container - centers everything */
.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: clamp(320px, 90vw, 500px);
  padding: clamp(20px, 4vw, 40px);

  /* Flexbox centering */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  /* Full viewport height */
  min-height: 100vh;
  min-height: 100dvh;

  /* Spacing between items */
  gap: clamp(30px, 6vw, 50px);
}

/* Welcome card (white frame) */
.welcome-card {
  position: relative;
  /* background: var(--white);
  border-radius: clamp(20px, 4vw, 25px);
  padding: clamp(30px, 5vw, 50px);
  box-shadow: var(--shadow-lg); */
  text-align: center;
  width: 100%;

  /* Card animation */
  animation: cardSlideUp 0.8s ease-out 0.3s both;
}


/* Logo container */
.logo-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: logoEntrance 0.8s ease-out both;
}

/* Logo image sizing */
.logo-container img,
.logo-container svg {
  width: clamp(250px, 50vw, 350px);
  max-width: 100%;
  height: auto;
  display: block;
}

/* Button container */
.start-button-container {
  width: 100%;
  margin-top: clamp(200px, 50vw, 350px);
  ;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Start button */
.start-button {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  color: var(--white);
  border: none;

  /* Fluid padding and font size */
  padding: clamp(14px, 3vw, 18px) clamp(30px, 6vw, 50px);
  font-size: clamp(18px, 4vw, 24px);
  font-weight: bold;

  border-radius: 50px;
  cursor: pointer;
  box-shadow: var(--shadow-base);
  transition: all var(--transition-base);

  /* Button sizing */
  width: 100%;
  max-width: clamp(250px, 70vw, 350px);

  /* Button animation */
  animation: buttonBounce 0.8s ease-out 0.6s both;

  /* For shine effect */
  position: relative;
  overflow: hidden;
}

/* Button shine effect */
.start-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;
}

.start-button:hover::before {
  left: 100%;
}

/* Button hover effect */
.start-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(191, 30, 43, 0.4);
}

/* Button active effect */
.start-button:active {
  transform: translateY(-1px) scale(1.02);
}

/* ========================================
   ANIMATIONS
======================================== */

@keyframes logoEntrance {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.9);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cardSlideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes buttonBounce {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }

  60% {
    transform: translateY(-5px) scale(1.05);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ========================================
   LAYOUT ADJUSTMENTS
   (Only for very short screens)
======================================== */

/* Compact spacing for short screens */
@media (max-height: 600px) {
  .container {
    gap: clamp(20px, 4vw, 30px);
    padding: clamp(15px, 3vw, 25px);
  }

  .welcome-card {
    padding: clamp(20px, 4vw, 30px);
  }
}

/* Touch-friendly adjustments */
@media (hover: none) {
  .start-button:hover {
    transform: none;
  }

  .start-button:active {
    transform: scale(0.98);
  }
}

.start-button::before {
  content: "";
  position: absolute;
  top: 0;
  /* left: -100%; */
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.3),
      transparent);
  transition: left 0.5s;
}

.start-button:hover::before {
  left: 100%;
}

.start-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(191, 30, 43, 0.4);
}

.start-button:active {
  transform: translateY(-1px) scale(1.02);
}

@keyframes buttonBounce {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }

  60% {
    transform: translateY(-5px) scale(1.05);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Loading animation for smooth transition */
.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-color);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  font-weight: bold;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
}

.page-transition.active {
  opacity: 1;
  visibility: visible;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 25px auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Interactive button effects */
.start-button {
  position: relative;
  overflow: hidden;
}

.start-button:active {
  transform: translateY(-1px) scale(1.02);
}

/* Ripple effect for button interactions */
@keyframes ripple {
  to {
    transform: scale(2);
    opacity: 0;
  }
}