/* Landing page styles for Yeti Flashcards */
:root {
  --primary: #3498db;
  --secondary: #2ecc71;
  --accent: #9b59b6;
  --background: #f9f9f9;
  --text: #333;
  --light-text: #666;
  --card: #fff;
  --shadow: rgba(0, 0, 0, 0.1);
  --yeti-blue: #a0d2eb;
  --snow-white: #f1f1f1;
}

/* Basic reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Typography */
h1, h2, h3, h4, h5, h6, .logo, .btn, .section-title, .feature-title, .step-title, .cta-title {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  /* System font fallbacks in case Google Fonts fails to load */
}

/* Font weight utility classes */
.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--background);
  overflow-x: hidden;
}

/* Prevent scrolling when mobile menu is open */
body.menu-open {
  overflow: hidden;
}

/* Header */
.landing-header {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  transition: all 0.3s ease;
}

.landing-header.scrolled {
  padding: 0.8rem 3rem;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.8rem;
  font-weight: 700; /* Using the bold weight we imported */
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.02em; /* Slight kerning adjustment for Outfit */
}

.logo img {
  height: 40px;
  margin-right: 10px;
  animation: bounce 2s infinite alternate;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.auth-buttons {
  display: flex;
  gap: 1rem;
}

.theme-toggle {
  margin-left: 1rem;
}

.theme-switch {
  padding: 0.5rem 1rem;
  border-radius: 50px;
  color: #333;
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  background-color: rgba(0, 0, 0, 0.05);
}

.theme-switch:hover {
  transform: translateY(-2px);
  background-color: rgba(0, 0, 0, 0.1);
}

/* Hamburger menu icon - hidden by default */
.menu-toggle {
  display: none !important; /* Hide by default with !important to handle the cascade */
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--primary);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Mobile menu container - hidden by default */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.98);
  z-index: 999;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  transform: translateY(-100%);
  transition: transform 0.4s ease;
}

@media (max-width: 768px) {
  .mobile-menu {
    display: flex;
    transform: translateY(-100%); /* Start off-screen */
  }

  .mobile-menu.active {
    transform: translateY(0); /* Slide in when active */
  }
}

/* When menu is open, transform hamburger to X */
.menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600; /* Using the semibold weight we imported */
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-primary:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.btn-secondary:hover {
  background-color: rgba(52, 152, 219, 0.1);
  transform: translateY(-2px);
}

/* Hero container */
.hero-container {
  min-height: 100vh;
  position: relative;
  background: linear-gradient(135deg, #a0d2eb 0%, #e5eaf5 100%);
  overflow: hidden;
  padding-top: 80px; /* Add padding to account for the fixed header */
  display: flex;
  flex-direction: column;
}

/* Hero section */
.hero {
  flex: 1; /* Take remaining space */
  min-height: calc(100vh - 80px - 150px); /* Adjust height to account for header and alpha notice */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2rem;
  position: relative;
  z-index: 10;
}

.hero-content {
  max-width: 1200px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

.hero-text {
  max-width: 550px;
  animation: fadeInUp 1s ease-out;
}

.hero-text-card {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 3.5rem;
  font-weight: 700; /* Outfit only goes up to 700 in our imported weights */
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: #2c3e50;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: #34495e;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.3s forwards;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.6s forwards;
}

.hero-image {
  position: relative;
  width: 40%;
  min-width: 400px;
}

.image-frame {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 15px;
  padding: 15px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  transform-origin: center center; /* Ensure transforms happen from center */
  /* Force the image-frame to create a new stacking context */
  z-index: 1;
  isolation: isolate;
  will-change: transform, opacity;
  /* Add backface visibility for smoother transitions */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  /* Force hardware acceleration */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.image-container {
  position: relative;
  width: 100%;
  padding-bottom: 100%; /* Create a square aspect ratio container */
  border-radius: 8px;
  overflow: hidden;
  /* Prevent any transforms on the container itself - this is critical */
  transform: none !important;
  /* Ensure images stay within bounds */
  isolation: isolate;
  /* Prevent child transform confusion */
  transform-style: flat;
  /* Ensure good performance */
  will-change: contents;
}

.image-container img {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto; /* Center the image properly */
  max-width: 95%; /* Slightly reduced to prevent edge touching */
  max-height: 95%; /* Slightly reduced to prevent edge touching */
  width: auto; /* Allow width to be calculated based on height */
  height: auto; /* Allow height to be calculated based on width */
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  filter: drop-shadow(0 0 15px rgba(52, 152, 219, 0.5));
  z-index: 1;
  pointer-events: none;
  /* Prevent any transforms from happening independently */
  transform: none !important;
  /* Better rendering */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.image-container img.active {
  opacity: 1;
  z-index: 10;
}

.floating-cards {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.7;
  z-index: 1;
  overflow: hidden;
}

.floating-card {
  position: absolute;
  width: 180px;
  height: 100px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  font-weight: 500;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.3;
  opacity: 0;
  animation: floatRise 15s ease-in-out infinite; /* Animation duration just right - 15 seconds */
  pointer-events: none; /* Ensure cards don't capture clicks */
}

/* Position the cards throughout the background with different delays and positions
   using a cascading pattern to avoid side-by-side cards appearing simultaneously */

/*
   SLOW START PATTERN:
   - First few cards have big gaps between them (3-4s)
   - Middle section speeds up (2-3s gaps)
   - Later cards come much faster (1-2s gaps)
   This creates a gradual buildup effect
*/

/* First wave - slow start but not too slow */
.floating-card:nth-child(1) { left: 15%; animation-delay: 1s; }      /* First card appears after 1s */
.floating-card:nth-child(2) { left: 40%; animation-delay: 4s; }      /* Second card after 3s */
.floating-card:nth-child(3) { left: 65%; animation-delay: 6s; }      /* 2s gap */
.floating-card:nth-child(4) { left: 32%; animation-delay: 9s; }      /* 3s gap */
.floating-card:nth-child(5) { left: 80%; animation-delay: 11s; }     /* 2s gap */

/* Second wave - slightly faster pace */
.floating-card:nth-child(6) { left: 25%; animation-delay: 12s; }     /* 1s gap */
.floating-card:nth-child(7) { left: 60%; animation-delay: 13s; }     /* 1s gap */
.floating-card:nth-child(8) { left: 12%; animation-delay: 14s; }     /* 1s gap */
.floating-card:nth-child(9) { left: 70%; animation-delay: 15s; }     /* 1s gap */
.floating-card:nth-child(10) { left: 45%; animation-delay: 15.5s; }  /* 0.5s gap */

/* Third wave - continuing to add more cards at a steady pace */
.floating-card:nth-child(11) { left: 5%; animation-delay: 16.5s; }   /* 1s gap */
.floating-card:nth-child(12) { left: 90%; animation-delay: 17.5s; }  /* 1s gap */
.floating-card:nth-child(13) { left: 15%; animation-delay: 18.5s; }  /* 1s gap */
.floating-card:nth-child(14) { left: 75%; animation-delay: 19.5s; }  /* 1s gap */
.floating-card:nth-child(15) { left: 25%; animation-delay: 20.5s; }  /* 1s gap */

/* Fourth wave - multiple columns building */
.floating-card:nth-child(16) { left: 10%; animation-delay: 22s; }    /* 1.5s gap */
.floating-card:nth-child(17) { left: 35%; animation-delay: 23s; }    /* 1s gap */
.floating-card:nth-child(18) { left: 55%; animation-delay: 24s; }    /* 1s gap */
.floating-card:nth-child(19) { left: 65%; animation-delay: 25s; }    /* 1s gap */
.floating-card:nth-child(20) { left: 85%; animation-delay: 26s; }    /* 1s gap */

/* Fifth wave - filling in more of the screen */
.floating-card:nth-child(21) { left: 20%; animation-delay: 28s; }    /* 2s gap */
.floating-card:nth-child(22) { left: 40%; animation-delay: 29s; }    /* 1s gap */
.floating-card:nth-child(23) { left: 60%; animation-delay: 30s; }    /* 1s gap */
.floating-card:nth-child(24) { left: 80%; animation-delay: 31s; }    /* 1s gap */
.floating-card:nth-child(25) { left: 50%; animation-delay: 32s; }    /* 1s gap */

/* Sixth wave - alternating positions */
.floating-card:nth-child(26) { left: 5%; animation-delay: 34s; }     /* 2s gap */
.floating-card:nth-child(27) { left: 25%; animation-delay: 35s; }    /* 1s gap */
.floating-card:nth-child(28) { left: 45%; animation-delay: 36s; }    /* 1s gap */
.floating-card:nth-child(29) { left: 65%; animation-delay: 37s; }    /* 1s gap */
.floating-card:nth-child(30) { left: 85%; animation-delay: 38s; }    /* 1s gap */

/* Seventh wave - faster frequency */
.floating-card:nth-child(31) { left: 15%; animation-delay: 39.5s; }
.floating-card:nth-child(32) { left: 35%; animation-delay: 40.5s; }
.floating-card:nth-child(33) { left: 55%; animation-delay: 41.5s; }
.floating-card:nth-child(34) { left: 75%; animation-delay: 42.5s; }
.floating-card:nth-child(35) { left: 95%; animation-delay: 43.5s; }

/* Eighth wave - full-screen coverage */
.floating-card:nth-child(36) { left: 10%; animation-delay: 45s; }
.floating-card:nth-child(37) { left: 30%; animation-delay: 46s; }
.floating-card:nth-child(38) { left: 50%; animation-delay: 47s; }
.floating-card:nth-child(39) { left: 70%; animation-delay: 48s; }
.floating-card:nth-child(40) { left: 90%; animation-delay: 49s; }

/* Final wave - complete the effect */
.floating-card:nth-child(41) { left: 20%; animation-delay: 51s; }
.floating-card:nth-child(42) { left: 40%; animation-delay: 52s; }
.floating-card:nth-child(43) { left: 60%; animation-delay: 53s; }
.floating-card:nth-child(44) { left: 80%; animation-delay: 54s; }
.floating-card:nth-child(45) { left: 30%; animation-delay: 55s; }

/* Any remaining cards */
.floating-card:nth-child(n+46) {
  left: 50%;
  animation-delay: 57s;
}

@keyframes floatRise {
  0% {
    opacity: 0;
    transform: translateY(100vh);
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-30vh);
  }
}

/* Features section */
.features {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 600; /* Using semibold from Outfit for section titles */
  text-align: center;
  margin-bottom: 4rem;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease;
  letter-spacing: -0.01em; /* Slight adjustment for Outfit */
}

.section-title.visible {
  opacity: 1;
  transform: translateY(0);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.feature-card {
  background-color: var(--card);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease;
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
}

.feature-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.feature-description {
  color: var(--light-text);
  line-height: 1.7;
}

/* How it works section */
.how-it-works {
  padding: 6rem 2rem;
  background-color: #f5f8fa;
}

.steps-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

.step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease;
}

.step.visible {
  opacity: 1;
  transform: translateY(0);
}

.step:nth-child(even) {
  direction: rtl;
}

.step:nth-child(even) .step-content {
  direction: ltr;
}

.step-image {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.step-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.step:hover .step-image img {
  transform: scale(1.03);
}

.step-number {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  font-weight: 700;
  margin-bottom: 1rem;
}

.step-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.step-description {
  color: var(--light-text);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* Testimonials */
.testimonials {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.testimonial-cards {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 3rem;
}

.testimonial-card {
  background-color: var(--card);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  flex: 1;
  min-width: 300px;
  max-width: 380px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease;
}

.testimonial-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
  font-style: italic;
  color: var(--light-text);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 1rem;
}

.author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info {
  text-align: left;
}

.author-name {
  font-weight: 600;
  color: var(--text);
}

.author-title {
  font-size: 0.9rem;
  color: var(--light-text);
}

/* CTA Section */
.cta {
  background: linear-gradient(135deg, #3498db 0%, #9b59b6 100%);
  padding: 6rem 2rem;
  text-align: center;
  color: white;
}

.cta-container {
  max-width: 800px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease;
}

.cta-container.visible {
  opacity: 1;
  transform: translateY(0);
}

.cta-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.cta-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn-cta {
  background-color: white;
  color: var(--primary);
}

.btn-cta:hover {
  background-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-outline {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Footer */
.footer {
  background-color: #2c3e50;
  color: white;
  padding: 4rem 2rem 2rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-logo img {
  height: 30px;
  margin-right: 10px;
}

.footer-about, .footer-links, .footer-contact {
  margin-bottom: 2rem;
}

.footer-title {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary);
}

.footer-description {
  margin-bottom: 1.5rem;
  opacity: 0.8;
  line-height: 1.7;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.7rem;
}

.footer-links a {
  color: white;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.footer-links a:hover {
  opacity: 1;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.contact-item i {
  margin-right: 10px;
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.6;
  font-size: 0.9rem;
}

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

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

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

@keyframes bounce {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-5px);
  }
}

/* Responsive styles */
@media (max-width: 992px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-text {
    max-width: 700px;
    margin-bottom: 3rem;
  }

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

  .hero-image {
    min-width: 300px;
    width: 70%;
  }

  .step {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .step:nth-child(even) {
    direction: ltr;
  }
}

@media (max-width: 768px) {
  .landing-header {
    padding: 1rem 1.2rem;
  }

  .landing-header.scrolled {
    padding: 0.7rem 1.2rem;
  }

  .nav-links {
    display: none;
  }

  .logo {
    font-size: 1.5rem;
  }

  .logo img {
    height: 32px;
  }

  .auth-buttons {
    display: none;
  }

  /* Header layout for mobile - this makes the theme toggle stay right next to the hamburger */
  .landing-header {
    display: flex;
    justify-content: space-between;
  }
  
  /* Create a container for the theme toggle and menu toggle */
  .theme-toggle {
    margin-left: 0;
    margin-right: 0.3rem;  /* Reduced by 70% from 1rem */
    order: 2;  /* Move before hamburger */
  }
  
  .menu-toggle {
    display: flex !important; /* Override with !important */
    order: 3;  /* Make hamburger the last element */
  }

  .mobile-menu {
    display: flex;
  }

  .mobile-menu .nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .mobile-menu .auth-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
  }

  .theme-switch {
    padding: 0.5rem;
    font-size: 0.8rem;
  }

  .theme-switch span {
    display: none;
  }

  .theme-switch::before {
    content: "🌙";
    font-size: 1.2rem;
  }

  .mobile-menu .theme-toggle {
    margin: 1rem 0 0 0;
  }

  .mobile-menu .theme-switch {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .mobile-menu .theme-switch span {
    display: inline;
  }

  .mobile-menu .theme-switch::before {
    content: "";
  }

  .hero-container {
    padding-top: 80px; /* Adjust padding for tablets */
  }

  .hero {
    min-height: calc(100vh - 80px - 120px); /* Account for smaller alpha notice */
  }

  .hero-text-card {
    padding-top: 2rem; /* Add extra top padding to the text card */
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .feature-card {
    max-width: 400px;
    margin: 0 auto;
  }

  .alpha-notification {
    padding: 15px 0;
  }

  .alpha-title {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .alpha-message {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .alpha-feedback {
    font-size: 14px;
  }

  .image-frame {
    transform: none !important; /* Prevent transform on mobile during scroll */
    margin-bottom: 2rem; /* Add space after the image frame */
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-image {
    width: 90%;
    min-width: auto;
    margin-top: 2rem;
  }

  /* Additional spacing before alpha notice on mobile */
  .alpha-notice-container {
    margin-top: 3rem; /* Increased margin on mobile */
    padding: 1.5rem 0; /* More padding on mobile */
  }
}

@media (max-width: 480px) {
  .landing-header {
    padding: 0.8rem 1rem;
  }

  .landing-header.scrolled {
    padding: 0.6rem 1rem;
  }

  .hero-container {
    padding-top: 70px; /* Increase padding for mobile */
  }

  .hero {
    min-height: calc(100vh - 70px - 80px); /* Account for even smaller alpha notice */
  }

  .hero-text-card {
    padding-top: 2.5rem; /* Extra padding for the text card on very small screens */
    padding-bottom: 2rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .section-title {
    font-size: 2rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .alpha-notification {
    padding: 10px 0;
  }

  .alpha-title {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .alpha-message {
    font-size: 14px;
    line-height: 1.4;
  }

  .alpha-feedback {
    display: none; /* Hide the feedback text on very small screens to save space */
  }
}

/* Alpha Notification Styles */
.alpha-notification {
  background-color: rgba(255, 248, 225, 0.95);
  border-top: 3px solid #ffcc80;
  border-bottom: 3px solid #ffcc80;
  padding: 20px 0;
  margin: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  position: relative; /* Ensure proper stacking context */
  z-index: 10; /* Lower than the feedback button but above content */
  width: 100%;
  align-self: flex-end; /* Position at the bottom of flex container */
}

.alpha-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.alpha-title {
  color: #ff9800;
  margin-bottom: 15px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 24px;
}

.alpha-message {
  color: #5d4037;
  margin-bottom: 15px;
  line-height: 1.6;
  font-size: 18px;
}

.alpha-feedback {
  color: #5d4037;
  font-size: 16px;
  line-height: 1.5;
}

/* Add mobile-specific adjustments for alpha notice */
@media (max-width: 768px) {
  .alpha-notification {
    padding: 15px 0;
  }

  .alpha-title {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .alpha-message {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .alpha-feedback {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .alpha-notification {
    padding: 10px 0;
    position: relative;
    bottom: auto; /* Remove any bottom positioning */
    left: auto;
    width: 100%;
  }

  .alpha-title {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .alpha-message {
    font-size: 14px;
    line-height: 1.4;
  }

  .alpha-feedback {
    display: none; /* Hide the feedback text on very small screens to save space */
  }
}

/* Alpha notice styling */
.alpha-notice-container {
  margin-top: 2rem;
  padding: 1rem 0;
  text-align: center;
  background-color: rgba(255, 200, 0, 0.1);
  border-top: 1px solid rgba(255, 200, 0, 0.3);
}