/* Landing page specific styles */
.landing-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.hero-section {
  text-align: center;
  z-index: 2;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease-out 0.5s forwards;
}

.logo {
  font-size: 3.5rem;
  font-weight: 300;
  margin-bottom: 1rem;
  background: linear-gradient(
    135deg,
    var(--accent-color),
    var(--primary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  font-size: 1.2rem;
  color: var(--text-color);
  opacity: 0.8;
  margin-bottom: 3rem;
  max-width: 500px;
  line-height: 1.6;
}

/* Button container */
.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.cta-button {
  background: var(--accent-color);
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  min-width: 180px;
  text-align: center;
}

.cta-button.primary {
  background: var(--accent-color);
}

.cta-button.secondary {
  background: transparent;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-button.primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.cta-button.secondary:hover {
  background: var(--accent-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

/* Transition overlay */
.transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--container-bg);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.6s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.transition-overlay.active {
  opacity: 1;
  visibility: visible;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid var(--accent-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Theme toggle for landing page */
.landing-theme-toggle {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 10;
}

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

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

html,
body {
  height: 100%;
  margin: 0;
  background-color: var(--bg-color);
  overscroll-behavior: none;
  overflow: hidden;
}

/* Responsive design */
@media (max-width: 768px) {
  .landing-container {
    padding: 1rem;
  }

  .logo {
    font-size: 2.5rem;
  }

  .tagline {
    font-size: 1rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
  }

  .cta-buttons {
    gap: 0.8rem;
  }

  .cta-button {
    padding: 0.8rem 2rem;
    font-size: 1rem;
    min-height: 48px; /* Touch-friendly size */
    min-width: 160px;
  }

  .landing-theme-toggle {
    top: 1rem;
    right: 1rem;
  }
}

@media (max-width: 480px) {
  .landing-container {
    padding: 0.5rem;
  }

  .logo {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }

  .tagline {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
    line-height: 1.5;
  }

  .cta-buttons {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  .cta-button {
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
    min-height: 48px;
    border-radius: 25px;
    width: 100%;
  }

  .landing-theme-toggle {
    top: 0.5rem;
    right: 0.5rem;
  }
}

@media (max-width: 320px) {
  .logo {
    font-size: 1.8rem;
  }

  .tagline {
    font-size: 0.8rem;
  }

  .cta-button {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 0.8rem;
  }
}
