:root {
  --primary: #5b7fff;
  --primary-light: #eef2ff;
  --primary-dark: #3b5bdb;
  --secondary: #22cc88;
  --dark: #1e293b;
  --light: #f8fafc;
  --gray: #64748b;
  --gray-light: #e2e8f0;
  --transition: all 0.3s ease;

  /* Dark Mode Variables */
  --dark-bg: #0f172a;
  --dark-surface: #1e293b;
  --dark-surface-lighter: #334155;
  --dark-text: #f8fafc;
  --dark-text-muted: #94a3b8;
  --dark-border: #334155;

  /* Root Variables for Responsive Font Sizing */
  --base-font-size: 16px;
  --header-height: 80px;
  --container-padding: 2rem;
}

@media (max-width: 1200px) {
  :root {
    --base-font-size: 15px;
    --header-height: 70px;
    --container-padding: 1.5rem;
  }
}

@media (max-width: 992px) {
  :root {
    --base-font-size: 15px;
    --header-height: 70px;
    --container-padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  :root {
    --base-font-size: 14px;
    --header-height: 60px;
    --container-padding: 1rem;
  }
}

@media (max-width: 576px) {
  :root {
    --base-font-size: 14px;
    --header-height: 60px;
    --container-padding: 1rem;
  }
}

/* Apply the base font size */
html {
  font-size: var(--base-font-size);
}

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

body {
  font-family: "Inter", sans-serif;
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--light);
  font-size: 16px;
}

.container {
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
}

.logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--dark);
  text-decoration: none;
}

.logo span {
  color: var(--primary);
}

.logo-icon {
  width: 40px;
  margin-right: 10px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

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

nav a:after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary);
  transition: var(--transition);
}

nav a:hover:after {
  width: 100%;
}

.cta-button {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
}

.cta-button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(91, 127, 255, 0.3);
}

.cta-button.outline {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.cta-button.outline:hover {
  background-color: var(--primary);
  color: white;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark);
}

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 4rem 0;
}

/* Optional: Add subtle background pattern */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      circle at 25% 25%,
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px
    ),
    radial-gradient(
      circle at 75% 75%,
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px
    );
  background-size: 20px 20px;
  opacity: 0.5;
  z-index: 1;
}

@keyframes twinkle {
  0% {
    opacity: 0.2;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1.2);
  }
}

.comet {
  position: absolute;
  top: 15%;
  left: -100px;
  width: 100px;
  height: 2px;
  background: linear-gradient(to right, transparent, white);
  border-radius: 50%;
  animation: comet 8s linear infinite;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

.comet::before {
  content: "";
  position: absolute;
  top: -2px;
  right: 0;
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 20px 2px rgba(255, 255, 255, 0.8);
}

@keyframes comet {
  0% {
    transform: translateX(0) rotate(-45deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  40% {
    transform: translateX(calc(100vw + 200px)) rotate(-45deg);
    opacity: 0;
  }
  100% {
    transform: translateX(calc(100vw + 200px)) rotate(-45deg);
    opacity: 0;
  }
}

/* Fix Code Snippet Positioning and Background */
.code-snippet {
  position: absolute;
  background-color: rgba(13, 17, 23, 0.85);
  border-radius: 8px;
  padding: 1rem;
  font-family: "Menlo", "Monaco", "Courier New", monospace;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #e5e5e5;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  width: 240px;
  z-index: 10;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.3s ease;
  transform-origin: center center;
  animation: float 5s ease-in-out infinite;
  /* Add overflow handling */
  overflow: hidden;
  max-height: 300px;
}

/* Position snippets away from the main content */
.code-snippet-1 {
  top: 15%;
  left: 5%;
  transform: rotate(-3deg);
  z-index: 2;
  animation-delay: 0s;
}

.code-snippet-2 {
  bottom: 15%;
  right: 5%;
  transform: rotate(3deg);
  z-index: 2;
  animation-delay: 2.5s;
}

/* Create content area with proper spacing for snippets */
.hero-container {
  position: relative;
  z-index: 20;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 0;
  margin: 0 auto;
  max-width: 1040px;
}

.hero-content {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  z-index: 30;
}

/* Dark mode adjustments */
body.dark-mode .hero-content {
  background-color: rgba(15, 23, 42, 0.85);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

body.dark-mode .code-snippet {
  background-color: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .hero-container {
    padding: 2rem 1rem;
  }

  .hero-content {
    padding: 2rem;
  }

  .code-snippet {
    width: 200px;
    font-size: 0.7rem;
    padding: 0.75rem;
    max-height: 250px; /* Reduce max height for smaller screens */
  }

  .code-snippet-1 {
    top: 10%;
    left: 0;
  }

  .code-snippet-2 {
    bottom: 10%;
    right: 0;
  }
}

@media (max-width: 768px) {
  .code-snippet {
    width: 180px;
    font-size: 0.65rem;
    padding: 0.75rem;
    line-height: 1.4;
    max-height: 220px; /* Further reduce max height */
  }

  .code-snippet-1 {
    top: 5%;
    left: 5%;
  }

  .code-snippet-2 {
    bottom: 5%;
    right: 5%;
  }

  .hero-content {
    padding: 1.5rem;
  }
}

@media (max-width: 576px) {
  .code-snippet {
    width: 150px;
    font-size: 0.6rem;
    padding: 0.6rem;
    line-height: 1.3;
    max-height: 200px; /* Even smaller for mobile */
  }
}

@media (max-width: 480px) {
  .code-snippet {
    display: none; /* Hide code snippets on very small screens */
  }

  .hero-content {
    position: relative;
    z-index: 30;
    width: 100%; /* Ensure content takes full width */
    max-width: 100%;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.95); /* More opaque background */
  }

  body.dark-mode .hero-content {
    background-color: rgba(
      15,
      23,
      42,
      0.95
    ); /* More opaque background for dark mode */
  }
}

.text-gradient {
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  display: inline-block;
}

.text-gradient::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 2px;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 3rem;
  color: #1e293b; /* Darker color for light mode */
  line-height: 1.7;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

body.dark-mode .hero-content p {
  color: rgba(
    255,
    255,
    255,
    0.9
  ); /* Maintain light color for dark mode with high opacity */
}

.mascot-wrapper {
  position: relative;
  width: 100%;
  height: 160px; /* Reduced height since bubble will be beside mascot */
  margin: 1.5rem 0 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chill-guy-mascot-img {
  position: absolute;
  right: calc(50% - 120px); /* Position to the right of center */
  bottom: 0;
  width: 120px;
  height: auto;
  z-index: 2;
  animation: float 3s ease-in-out infinite alternate;
  filter: drop-shadow(0 10px 15px rgba(91, 127, 255, 0.3));
}

.mascot-bubble {
  position: absolute;
  left: calc(50% - 240px); /* Position to the left of center */
  bottom: 30px;
  background: white;
  color: var(--dark);
  padding: 12px 20px;
  border-radius: 20px;
  font-size: 0.95rem;
  max-width: 240px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  animation: float 3s ease-in-out infinite alternate;
  animation-delay: 0.5s;
  z-index: 3;
  text-align: left;
  line-height: 1.4;
  margin-right: 20px; /* Space between bubble and mascot */
}

.mascot-bubble::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -10px; /* Arrow pointing right toward mascot */
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid white; /* Arrow points right */
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

/* Dark mode adjustments for the mascot bubble */
body.dark-mode .mascot-bubble {
  background: var(--dark-surface);
  color: var(--dark-text);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .mascot-bubble::after {
  border-left-color: var(--dark-surface); /* Update arrow color for dark mode */
}

.jump {
  animation: jump 1s ease-in-out;
}

@keyframes jump {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-30px);
  }
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-bottom: 4rem;
}

.primary-btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(91, 127, 255, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.primary-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 100%);
  z-index: -1;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.primary-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(91, 127, 255, 0.4);
}

.primary-btn:hover::before {
  opacity: 1;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 1rem;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat .dev-count,
.stat .efficiency-count {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat .stat-label {
  font-size: 0.9rem;
  color: var(--light-muted);
  margin-top: 0.5rem;
}

.scroll-guide {
  position: relative;
  margin: 2rem auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  font-size: 0.9rem;
  animation: float 2s ease-in-out infinite alternate;
  width: 100%;
  text-align: center;
}

.scroll-guide span {
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.scroll-guide i {
  font-size: 1.2rem;
  animation: bounce 2s infinite;
  color: var(--primary);
}

/* Dark mode adjustments */
body.dark-mode .scroll-guide {
  color: var(--dark-text-muted);
}

body.dark-mode .scroll-guide i {
  color: var(--primary-light);
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Problem Section */
.problem {
  padding: 8rem 0;
  background-color: white;
}

.section-heading {
  text-align: center;
  margin-bottom: 4rem;
}

.section-heading h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-heading h2:after {
  content: "";
  position: absolute;
  width: 60px;
  height: 4px;
  background-color: var(--primary);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

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

.problem-card {
  background-color: var(--light);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  border: 1px solid var(--gray-light);
}

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

.problem-icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.problem-card h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

/* Solution Section */
.solution {
  padding: 8rem 0;
  background-color: var(--primary-light);
  position: relative;
  overflow: hidden;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.solution-card {
  background-color: white;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  border: 1px solid var(--gray-light);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.solution-icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.solution-card h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

/* How it Works */
.how-it-works {
  padding: 8rem 0;
  background-color: white;
}

.steps {
  display: flex;
  justify-content: space-between;
  margin-top: 4rem;
  position: relative;
}

.step {
  text-align: center;
  max-width: 300px;
  position: relative;
  z-index: 2;
}

.step-number {
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
}

.step h3 {
  margin-bottom: 1rem;
}

.steps-line {
  position: absolute;
  top: 25px;
  left: 15%;
  width: 70%;
  height: 2px;
  background-color: var(--gray-light);
  z-index: 1;
}

/* Meet Chill Guy */
.meet-mascot {
  padding: 8rem 0;
  background-color: var(--light);
}

.mascot-container {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.mascot-content {
  flex: 1;
}

.mascot-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.mascot-content p {
  color: var(--gray);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.mascot-image {
  flex: 1;
  text-align: center;
}

.mascot-image img {
  max-width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.mascot-image img:hover {
  transform: scale(1.05);
}

/* Waitlist Section */
.waitlist {
  padding: 8rem 0;
  background-color: var(--primary);
  color: white;
  text-align: center;
}

.waitlist h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.waitlist p {
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  color: #757575;
  border-radius: 4px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 500;
  border: 1px solid #ddd;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  max-width: 300px;
  margin: 20px auto;
}

.google-btn:hover {
  background-color: #f5f5f5;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.google-btn .google-icon {
  margin-right: 10px;
  color: #4285f4;
  font-size: 18px;
}

.google-btn.signed-in {
  background-color: #ebf3ff;
  color: #2c5fdb;
  border-color: #d1e0fc;
}

.google-btn.signed-in:hover {
  background-color: #d6e6ff;
}

.waitlist-note {
  margin-top: 20px;
  display: inline-block;
  padding: 15px 20px;
  background-color: rgba(91, 127, 255, 0.05);
  border-radius: 12px;
  font-size: 0.9rem;
  color: var(--gray);
  text-align: center;
  max-width: 400px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(91, 127, 255, 0.1);
}

.waitlist-note i {
  color: var(--secondary);
  margin-right: 5px;
  font-size: 1.1rem;
}

.success-message {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--dark);
}

.success-message i {
  color: #22cc88;
  font-size: 1.3rem;
  margin-right: 8px;
}

.notification-message {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--gray);
}

.notification-message strong {
  color: var(--primary);
  font-weight: 600;
}

/* Waitlist note styling */
.waitlist-note {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 15px;
  font-size: 0.9rem;
  opacity: 0.75;
  gap: 8px;
}

.waitlist-note i {
  color: var(--secondary);
}

.waitlist-social {
  margin-top: 20px;
  text-align: center;
  font-size: 0.95rem;
}

.waitlist-social a {
  color: #5b7fff;
  font-weight: 500;
  transition: color 0.2s ease;
  text-decoration: none;
}

.waitlist-social a:hover {
  color: #3562ff;
  text-decoration: underline;
}

body.dark-mode .waitlist-social a {
  color: #85a4ff;
}

body.dark-mode .waitlist-social a:hover {
  color: #a8befd;
}

/* Footer */
footer {
  background-color: var(--dark);
  color: white;
  padding: 5rem 0 2rem;
  position: relative;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  padding-top: 1rem;
}

.footer-brand {
  margin-bottom: 1.5rem;
}

.footer-brand h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  opacity: 0.7;
  max-width: 300px;
}

.footer-links h4 {
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-links h4:after {
  content: "";
  position: absolute;
  width: 30px;
  height: 2px;
  background-color: var(--primary);
  bottom: 0;
  left: 0;
}

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

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
}

.footer-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: var(--primary);
  transition: var(--transition);
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 4rem;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright {
  opacity: 0.7;
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  color: white;
  font-size: 1.25rem;
  transition: var(--transition);
  opacity: 0.7;
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, background 0.3s ease;
}

.social-link:hover {
  background: var(--primary);
  transform: translateY(-5px) scale(1.1);
}

/* Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Header Scroll Effect */
header.scrolled {
  padding: 0.75rem 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}
/* Staggered Animation Delays */
.problem-card:nth-child(2),
.solution-card:nth-child(2),
.step:nth-child(3) {
  transition-delay: 0.2s;
}

.problem-card:nth-child(3),
.solution-card:nth-child(3),
.step:nth-child(4) {
  transition-delay: 0.4s;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.75rem;
  }

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

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

  .hero-image {
    margin-top: 2rem;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
  }

  .steps {
    flex-direction: column;
    align-items: center;
    gap: 3rem;
  }

  .steps-line {
    display: none;
  }

  .mascot-container {
    flex-direction: column;
    gap: 3rem;
    text-align: center;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  /* Existing styles */

  .code-snippet {
    width: 180px;
    font-size: 11px;
  }

  .code-snippet-1 {
    top: 10%;
    left: 3%;
  }

  .code-snippet-2 {
    bottom: 15%;
    right: 3%;
  }
}

@media (max-width: 768px) {
  header nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    padding: 1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
  }

  header nav.active {
    display: block;
  }

  header nav ul {
    flex-direction: column;
    gap: 1rem;
  }

  header nav ul li {
    width: 100%;
    text-align: center;
  }

  header nav ul li a {
    display: block;
    padding: 0.75rem;
  }

  header .cta-button {
    width: 100%;
    text-align: center;
  }

  .mobile-menu-btn {
    display: block;
  }

  .mobile-menu-btn.active i {
    transform: rotate(90deg);
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .section-heading h2 {
    font-size: 2rem;
  }

  .problems-grid,
  .solution-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  .dark-mode-toggle {
    margin-right: 0.5rem;
  }

  .mobile-menu-btn {
    margin-left: 0;
  }

  .hero-badge {
    margin-bottom: 1.2rem;
  }

  body.dark-mode header nav {
    background-color: var(--dark-surface);
    border: 1px solid var(--dark-border);
  }

  body.dark-mode .hero-cta {
    flex-direction: column;
    gap: 1rem;
  }

  body.dark-mode .hero-cta .cta-button {
    width: 100%;
  }

  /* Existing styles */

  .code-snippet {
    width: 160px;
    font-size: 10px;
    padding: 12px;
  }

  .mascot-bubble {
    max-width: 280px;
    font-size: 0.95rem;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2rem;
  }

  .section-heading h2 {
    font-size: 1.75rem;
  }

  .cta-button,
  .google-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .hero-cta {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .mascot-image img {
    max-width: 80%;
  }

  /* Existing styles */

  .code-snippet-1 {
    top: 5%;
    left: 5%;
    transform: scale(0.8) rotate(-3deg);
  }

  .code-snippet-2 {
    display: none; /* Hide the second snippet on very small screens */
  }
}

/* Dark Mode Styles */
body.dark-mode {
  background-color: var(--dark-bg);
  color: var(--dark-text);
}

body.dark-mode header {
  background-color: rgba(30, 41, 59, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

body.dark-mode .logo,
body.dark-mode nav a {
  color: var(--dark-text);
}

body.dark-mode .mobile-menu-btn {
  color: var(--dark-text);
}

body.dark-mode .hero {
  background: linear-gradient(135deg, #020617 0%, #0f172a 100%);
}

body.dark-mode .hero p {
  color: var(--dark-text-muted);
}

body.dark-mode .problem {
  background-color: var(--dark-surface);
}

body.dark-mode .problem-card {
  background-color: var(--dark-surface-lighter);
  border-color: var(--dark-border);
}

body.dark-mode .solution {
  background-color: var(--dark-bg);
}

body.dark-mode .solution-card {
  background-color: var(--dark-surface);
  border-color: var(--dark-border);
}

body.dark-mode .how-it-works {
  background-color: var(--dark-surface);
}

body.dark-mode .steps-line {
  background-color: var(--dark-border);
}

body.dark-mode .meet-mascot {
  background-color: var(--dark-bg);
}

body.dark-mode .mascot-content p {
  color: var(--dark-text-muted);
}

body.dark-mode footer {
  background-color: var(--dark-surface);
}

/* Dark Mode Toggle */
.dark-mode-toggle {
  display: flex;
  align-items: center;
  margin-right: 1rem;
  cursor: pointer;
  color: var(--dark);
  font-size: 1.25rem;
  background: none;
  border: none;
  padding: 0.5rem;
  border-radius: 50%;
  transition: var(--transition);
}

.dark-mode-toggle:hover {
  background-color: var(--gray-light);
}

body.dark-mode .dark-mode-toggle {
  color: var(--light);
}

body.dark-mode .dark-mode-toggle:hover {
  background-color: var(--dark-surface-lighter);
}

/* Additional UI improvements */

/* Glassmorphism cards for dark mode */
body.dark-mode .problem-card,
body.dark-mode .solution-card {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

body.dark-mode .problem-card:hover,
body.dark-mode .solution-card:hover {
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Enhanced glow for primary elements in dark mode */
body.dark-mode .cta-button {
  box-shadow: 0 0 15px rgba(91, 127, 255, 0.5);
}

body.dark-mode .cta-button:hover {
  box-shadow: 0 0 25px rgba(91, 127, 255, 0.7);
}

body.dark-mode .step-number {
  box-shadow: 0 0 15px rgba(91, 127, 255, 0.3);
}

/* Improved transitions */
.problem-card,
.solution-card,
.step,
.cta-button,
.mascot-image img {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.4s ease, background 0.3s ease, border 0.3s ease;
}

/* Subtle floating animation for hero image */
@keyframes float {
  0% {
    transform: translateY(0px) perspective(1000px) rotateY(-5deg);
  }
  50% {
    transform: translateY(-15px) perspective(1000px) rotateY(-2deg);
  }
  100% {
    transform: translateY(0px) perspective(1000px) rotateY(-5deg);
  }
}

.hero-image img {
  animation: float 6s ease-in-out infinite;
  transform-origin: center center;
}

.hero-image:hover img {
  animation-play-state: paused;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 14px;
}

::-webkit-scrollbar-track {
  background: var(--light);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-light);
  border-radius: 7px;
  border: 3px solid var(--light);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray);
}

body.dark-mode::-webkit-scrollbar-track {
  background: var(--dark-bg);
}

body.dark-mode::-webkit-scrollbar-thumb {
  background: var(--dark-surface-lighter);
  border: 3px solid var(--dark-bg);
}

body.dark-mode::-webkit-scrollbar-thumb:hover {
  background: var(--dark-text-muted);
}

/* Pulse effect for waitlist button */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

.google-btn {
  animation: pulse 2s infinite;
}

.google-btn:hover {
  animation: none;
}

/* Footer styles */
.footer-contact {
  margin-top: 12px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.footer-contact a {
  color: #5b7fff;
  font-weight: 500;
  transition: color 0.2s ease;
  text-decoration: none;
}

.footer-contact a:hover {
  color: white;
  text-decoration: underline;
}

body.dark-mode .footer-contact a {
  color: #85a4ff;
}

/* Dark mode adjustments for auth elements */
.dark-mode .google-btn {
  background-color: #2a2a2a;
  color: #e0e0e0;
  border-color: #444;
}

.dark-mode .google-btn:hover {
  background-color: #333;
}

.dark-mode .google-btn.signed-in {
  background-color: #253654;
  color: #a3c2ff;
  border-color: #3a4c6d;
}

.dark-mode .google-btn.signed-in:hover {
  background-color: #2e4166;
}

.dark-mode .waitlist-note {
  color: var(--dark-text-secondary);
}

/* Additional floating shapes for hero section */
.shape-3 {
  width: 120px;
  height: 120px;
  background: linear-gradient(
    135deg,
    rgba(91, 127, 255, 0.4) 0%,
    rgba(91, 127, 255, 0.1) 100%
  );
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  left: 15%;
  bottom: 15%;
  animation: float 6s ease-in-out infinite;
}

.shape-4 {
  width: 80px;
  height: 80px;
  background: linear-gradient(
    135deg,
    rgba(34, 204, 136, 0.4) 0%,
    rgba(34, 204, 136, 0.1) 100%
  );
  border-radius: 50% 50% 30% 70% / 50% 50% 70% 30%;
  right: 10%;
  top: 15%;
  animation: float 8s ease-in-out infinite;
  animation-delay: 1s;
}

/* Enhanced Waitlist Section */
.waitlist {
  position: relative;
  padding: 100px 0;
  background: linear-gradient(
    180deg,
    var(--light) 0%,
    var(--primary-light) 100%
  );
  overflow: hidden;
}

.waitlist-bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.waitlist-shape {
  position: absolute;
  border-radius: 50%;
}

.waitlist-shape-1 {
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(91, 127, 255, 0.2) 0%,
    rgba(91, 127, 255, 0) 70%
  );
  top: -100px;
  left: -100px;
}

.waitlist-shape-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(34, 204, 136, 0.15) 0%,
    rgba(34, 204, 136, 0) 70%
  );
  bottom: -150px;
  right: -150px;
}

.waitlist-container {
  position: relative;
  z-index: 1;
}

.waitlist-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03),
    0 20px 40px rgba(91, 127, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.waitlist-card h2 {
  margin-bottom: 20px;
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.waitlist-card p {
  font-size: 1.1rem;
  color: #1e293b; /* Darker text color for better readability */
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.highlight {
  font-weight: 600;
  color: var(--primary);
}

.waitlist-benefits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.waitlist-benefit {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  background-color: rgba(91, 127, 255, 0.05);
  border-radius: 50px;
  font-size: 0.95rem;
  color: #1e293b; /* Darker text color for better readability */
}

.waitlist-benefit i {
  color: var(--secondary);
  margin-right: 10px;
  font-size: 1.1rem;
}

/* Redesigned Google Button */
.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  color: #333;
  border-radius: 50px;
  padding: 16px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 320px;
  margin: 20px auto;
  position: relative;
  overflow: hidden;
}

.google-btn:before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transition: all 0.7s ease;
}

.google-btn:hover:before {
  left: 100%;
}

.google-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(91, 127, 255, 0.2);
}

.google-btn .google-icon {
  margin-right: 12px;
  color: #4285f4;
  font-size: 1.25rem;
}

.google-btn.signed-in {
  background-color: var(--primary-light);
  color: var(--primary);
}

.google-btn.signed-in:hover {
  background-color: var(--primary-light);
  box-shadow: 0 8px 25px rgba(91, 127, 255, 0.3);
}

/* Waitlist Users */
.waitlist-users {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.waitlist-avatars {
  display: flex;
  margin-bottom: 15px;
}

.waitlist-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  margin-right: -15px;
  border: 2px solid white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.waitlist-avatar:hover {
  transform: translateY(-5px);
}

.waitlist-avatar-more {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary);
  color: white;
  font-weight: bold;
}

.waitlist-users p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

.counter {
  font-weight: 700;
  color: var(--primary);
}

.waitlist-note {
  margin-top: 20px;
  display: inline-block;
  padding: 10px 15px;
  background-color: rgba(91, 127, 255, 0.05);
  border-radius: 8px;
  font-size: 0.85rem;
  color: #475569; /* Darker text color for better readability */
}

.waitlist-note i {
  color: var(--secondary);
  margin-right: 5px;
}

.waitlist-social {
  margin-top: 25px;
  font-size: 0.9rem;
}

.waitlist-social a {
  color: var(--primary);
  font-weight: 600;
  transition: var(--transition);
}

.waitlist-social a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Dark mode adjustments */
body.dark-mode .waitlist {
  background: linear-gradient(
    180deg,
    var(--dark-bg) 0%,
    rgba(59, 91, 219, 0.1) 100%
  );
}

body.dark-mode .waitlist-card {
  background: rgba(30, 41, 59, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 1px 3px rgba(0, 0, 0, 0.1),
    0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark-mode .waitlist-card p {
  color: var(--dark-text);
}

body.dark-mode .highlight {
  color: #7b9aff;
}

body.dark-mode .waitlist-benefit {
  background-color: rgba(91, 127, 255, 0.1);
  color: var(--dark-text);
}

body.dark-mode .google-btn {
  background-color: #2a2a2a;
  color: #e0e0e0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

body.dark-mode .google-btn:hover {
  background-color: #333;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

body.dark-mode .google-btn.signed-in {
  background-color: #253654;
  color: #a3c2ff;
}

body.dark-mode .google-btn.signed-in:hover {
  background-color: #2e4166;
}

body.dark-mode .waitlist-avatar {
  border-color: var(--dark-surface);
}

body.dark-mode .waitlist-note {
  background-color: rgba(91, 127, 255, 0.08);
  border-color: rgba(91, 127, 255, 0.15);
  color: var(--dark-text-muted);
}

body.dark-mode .counter {
  color: #7b9aff;
}

/* Enhanced Animation Effects */
@keyframes float {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(5px, -5px) rotate(1deg);
  }
  50% {
    transform: translate(0, 0) rotate(0deg);
  }
  75% {
    transform: translate(-5px, -5px) rotate(-1deg);
  }
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

/* Responsive fixes */
@media (max-width: 768px) {
  .waitlist-benefits {
    flex-direction: column;
    align-items: center;
  }

  .waitlist-card {
    padding: 30px 20px;
  }

  .waitlist-card h2 {
    font-size: 2rem;
  }
}

/* End of added styles */

/* Premium Header & Footer Styles */

/* Premium Header */
.premium-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: var(--transition);
  padding: 0;
  height: var(--header-height);
}

.header-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  z-index: -1;
}

.premium-header .header-container {
  position: relative;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--container-padding);
}

.premium-header .logo {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 5;
}

.logo-effect {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-effect::before {
  content: "";
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: radial-gradient(
    circle,
    rgba(91, 127, 255, 0.3) 0%,
    rgba(91, 127, 255, 0) 70%
  );
  animation: pulse-logo 2s infinite;
}

@keyframes pulse-logo {
  0% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.1;
  }
  100% {
    transform: scale(1);
    opacity: 0.3;
  }
}

.logo-text {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--dark);
  margin-left: 12px;
  letter-spacing: -0.02em;
}

.logo-text span {
  background: linear-gradient(
    90deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.main-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.main-nav ul {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.main-nav a {
  position: relative;
  font-weight: 500;
  color: var(--dark);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
  padding: 8px 0;
}

.main-nav a span {
  position: relative;
  z-index: 1;
}

.main-nav a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  transition: width 0.3s ease;
  border-radius: 2px;
}

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

.main-nav a:hover::before {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.toggle-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(91, 127, 255, 0.1);
  transition: all 0.3s ease;
}

.dark-mode-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--primary);
  padding: 0;
  transition: all 0.3s ease;
}

.dark-mode-toggle:hover .toggle-icon-wrapper {
  background: rgba(91, 127, 255, 0.2);
  transform: rotate(15deg);
}

.header-cta {
  padding: 12px 24px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(91, 127, 255, 0.2);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transform-origin: center;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.header-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(91, 127, 255, 0.3);
}

.menu-icon {
  width: 30px;
  height: 22px;
  position: relative;
  cursor: pointer;
  display: none;
}

.menu-icon span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: var(--dark);
  border-radius: 2px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: all 0.25s ease-in-out;
}

.menu-icon span:nth-child(1) {
  top: 0px;
}

.menu-icon span:nth-child(2) {
  top: 10px;
}

.menu-icon span:nth-child(3) {
  top: 20px;
}

.mobile-menu-btn.active .menu-icon span:nth-child(1) {
  top: 10px;
  transform: rotate(135deg);
}

.mobile-menu-btn.active .menu-icon span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

.mobile-menu-btn.active .menu-icon span:nth-child(3) {
  top: 10px;
  transform: rotate(-135deg);
}

.mobile-nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  background: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 1.5rem 0;
  z-index: 99;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mobile-nav.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-nav ul {
  list-style: none;
  padding: 0;
}

.mobile-nav li {
  margin-bottom: 0.75rem;
}

.mobile-nav a {
  display: block;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--dark);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.mobile-nav a:hover {
  background: rgba(91, 127, 255, 0.1);
  color: var(--primary);
}

/* Premium Footer */
.premium-footer {
  position: relative;
  background: var(--dark);
  color: var(--light);
  padding: 6rem 0 2rem;
  overflow: hidden;
}

.footer-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      circle at 20% 20%,
      rgba(91, 127, 255, 0.1) 0,
      transparent 50px
    ),
    radial-gradient(
      circle at 80% 60%,
      rgba(34, 204, 136, 0.08) 0,
      transparent 100px
    );
  opacity: 0.5;
  z-index: 0;
}

.footer-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.footer-logo svg {
  width: 36px;
  height: 36px;
  margin-right: 12px;
}

.footer-logo h3 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  background: linear-gradient(
    90deg,
    var(--light) 0%,
    rgba(255, 255, 255, 0.7) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-brand p {
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 350px;
}

.footer-newsletter h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.footer-subscribe-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  color: white;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-subscribe-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.footer-subscribe-btn i {
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.footer-subscribe-btn:hover i {
  transform: translateX(4px);
}

.footer-links-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-links h4 {
  font-size: 1.1rem;
  color: white;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
  font-weight: 600;
}

.footer-links h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 1px;
}

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

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  display: inline-block;
  position: relative;
}

.footer-links a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.7);
  transition: width 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-social p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.footer-social .social-links {
  display: flex;
  gap: 1rem;
}

.footer-social .social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.footer-social .social-link:hover {
  background: rgba(91, 127, 255, 0.2);
  border-color: rgba(91, 127, 255, 0.4);
  color: white;
  transform: translateY(-3px);
}

.footer-copyright {
  text-align: right;
}

.footer-copyright p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

.footer-copyright p:first-child {
  color: rgba(255, 255, 255, 0.8);
}

.footer-copyright .fa-heart {
  color: #ff6b6b;
  margin: 0 3px;
}

.footer-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  z-index: 1;
}

/* Dark Mode Styles */
body.dark-mode .header-backdrop {
  background: rgba(15, 23, 42, 0.85);
}

body.dark-mode .logo-text {
  color: var(--light);
}

body.dark-mode .main-nav a {
  color: var(--light);
}

body.dark-mode .main-nav a:hover {
  color: var(--primary-light);
}

body.dark-mode .toggle-icon-wrapper {
  background: rgba(91, 127, 255, 0.2);
}

body.dark-mode .menu-icon span {
  background: var(--light);
}

body.dark-mode .mobile-nav {
  background: var(--dark-surface);
}

body.dark-mode .mobile-nav a:hover {
  background: rgba(91, 127, 255, 0.2);
}

body.dark-mode .premium-footer {
  background: var(--dark-bg);
}

body.dark-mode .footer-pattern {
  opacity: 0.2;
}

body.dark-mode .footer-social .social-link {
  background: rgba(255, 255, 255, 0.03);
}

body.dark-mode .footer-social .social-link:hover {
  background: rgba(91, 127, 255, 0.15);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-brand p {
    max-width: 100%;
  }

  .main-nav {
    display: none;
  }

  .menu-icon {
    display: block;
  }
}

@media (max-width: 768px) {
  .footer-links-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    flex-direction: column-reverse;
    gap: 1.5rem;
  }

  .footer-copyright,
  .footer-social {
    text-align: center;
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .premium-header .header-container {
    padding: 0 1rem;
  }

  .footer-links-container {
    grid-template-columns: 1fr;
  }

  .header-cta {
    display: none;
  }
}

/* Additional Styles */

/* Body style when nav is open */
body.nav-open {
  overflow: hidden;
}

/* Fix AOS animations not showing until scroll */
[data-aos] {
  opacity: 0;
  transition-property: opacity, transform;
}

[data-aos].aos-animate {
  opacity: 1;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--dark);
  opacity: 0.7;
  font-size: 1.5rem;
  animation: bounce 2s infinite;
  transition: var(--transition);
  cursor: pointer;
  z-index: 5;
}

.scroll-indicator:hover {
  opacity: 1;
  color: var(--primary);
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-10px) translateX(-50%);
  }
  60% {
    transform: translateY(-5px) translateX(-50%);
  }
}

body.dark-mode .scroll-indicator {
  color: var(--light);
}

/* Polish for header scroll effect */
.premium-header.scrolled {
  height: 70px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.premium-header.scrolled .logo-effect::before {
  animation: none;
}

/* About Us Section Styles */
.about-us {
  position: relative;
  padding: 120px 0;
  background: linear-gradient(180deg, var(--light-bg) 0%, #f0f4ff 100%);
  overflow: hidden;
}

.about-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.code-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%235B7FFF' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.4;
}

.shape-1 {
  top: 10%;
  right: 5%;
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #5b7fff 0%, #b57fff 100%);
  animation: float 12s ease-in-out infinite;
}

.shape-2 {
  bottom: 15%;
  left: 5%;
  width: 250px;
  height: 250px;
  background: linear-gradient(135deg, #5b7fff 0%, #7fffb5 100%);
  animation: float 15s ease-in-out infinite reverse;
}

.shape-3 {
  top: 40%;
  left: 20%;
  width: 180px;
  height: 180px;
  background: linear-gradient(135deg, #ff5b7f 0%, #ffb57f 100%);
  animation: float 18s ease-in-out infinite;
}

.about-us .container {
  position: relative;
  z-index: 1;
}

.about-us h2 {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 2rem;
  color: var(--dark);
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(to right, var(--primary), var(--primary-light));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.mascot-guide {
  display: flex;
  align-items: center;
  margin-bottom: 3rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(91, 127, 255, 0.1);
  max-width: 80%;
  position: relative;
}

.mascot-guide p {
  font-size: 1.2rem;
  margin: 0;
  color: var(--dark);
  line-height: 1.4;
  font-weight: 500;
}

.mascot-guide.right {
  margin-left: auto;
  flex-direction: row-reverse;
  margin-top: 4rem;
}

.mini-chill-guy {
  width: 80px;
  height: 80px;
  background-image: url("images/mascot.png");
  background-size: contain;
  background-repeat: no-repeat;
  margin: 0 20px;
  transform-origin: bottom center;
  transition: transform 0.3s ease;
}

.mini-chill-guy.excited {
  animation: bounce 0.5s ease infinite alternate;
}

.story-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto 4rem;
  padding: 0 20px;
}

.timeline-track {
  position: absolute;
  width: 4px;
  background: linear-gradient(
    to bottom,
    var(--primary) 0%,
    var(--primary-light) 100%
  );
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.timeline-event {
  position: relative;
  padding: 1.5rem;
  margin-bottom: 3rem;
  width: calc(50% - 30px);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(91, 127, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-event:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(91, 127, 255, 0.15);
}

.timeline-event::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-light) 100%
  );
  border-radius: 50%;
  top: 30px;
  right: -40px;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.7);
}

.timeline-event.right {
  margin-left: auto;
}

.timeline-event.right::after {
  right: auto;
  left: -40px;
}

.event-year {
  display: inline-block;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-light) 100%
  );
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  box-shadow: 0 5px 15px rgba(91, 127, 255, 0.2);
}

.event-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

.event-content p {
  color: var(--dark-gray);
  line-height: 1.6;
}

.team-manifesto {
  margin-top: 4rem;
}

.team-manifesto h3 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--dark);
}

.manifesto-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.manifesto-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(91, 127, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.manifesto-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(91, 127, 255, 0.15);
}

.card-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-light) 80%
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 1.8rem;
  box-shadow: 0 10px 20px rgba(91, 127, 255, 0.2);
}

.manifesto-card h4 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

.manifesto-card p {
  color: var(--dark-gray);
  line-height: 1.6;
}

.join-mission-container {
  display: flex;
  justify-content: center;
}

.mission-card {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-light) 100%
  );
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 15px 40px rgba(91, 127, 255, 0.2);
  display: flex;
  align-items: center;
  max-width: 800px;
  width: 100%;
}

.mission-content {
  flex: 1;
}

.mission-content h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: white;
}

.mission-content p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-size: 1.1rem;
}

.mission-cta {
  display: inline-block;
  background: white;
  color: var(--primary);
  padding: 0.8rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.mission-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.mission-mascot {
  margin-left: 2rem;
  position: relative;
}

.mission-mascot .mini-chill-guy {
  width: 100px;
  height: 100px;
}

/* Dark mode styles for About Us section */
body.dark-mode .about-us {
  background: linear-gradient(180deg, var(--dark-bg) 0%, #101219 100%);
}

body.dark-mode .mascot-guide,
body.dark-mode .timeline-event,
body.dark-mode .manifesto-card {
  background: rgba(30, 32, 40, 0.7);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

body.dark-mode .mascot-guide p,
body.dark-mode .event-content h3,
body.dark-mode .manifesto-card h4 {
  color: white;
}

body.dark-mode .event-content p,
body.dark-mode .manifesto-card p {
  color: rgba(255, 255, 255, 0.8);
}

body.dark-mode .mission-card {
  background: linear-gradient(
    135deg,
    var(--primary-dark) 0%,
    var(--primary) 100%
  );
}

/* Media Queries */
@media (max-width: 992px) {
  .timeline-track {
    left: 20px;
  }

  .timeline-event {
    width: calc(100% - 50px);
    margin-left: 50px;
  }

  .timeline-event::after {
    left: -30px;
    right: auto;
  }

  .timeline-event.right {
    margin-left: 50px;
  }
}

@media (max-width: 768px) {
  .about-us {
    padding: 80px 0;
  }

  .mission-card {
    flex-direction: column;
    text-align: center;
  }

  .mission-mascot {
    margin-left: 0;
    margin-top: 2rem;
  }

  .mascot-guide,
  .mascot-guide.right {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

/* Add to the dark mode section */
body.dark-mode .code-snippet {
  background: rgba(20, 22, 30, 0.85);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
}

body.dark-mode .code-snippet:before {
  color: #666;
}

body.dark-mode .code-snippet .comment {
  color: #666;
}

body.dark-mode {
  background: radial-gradient(
    ellipse at center,
    rgba(15, 20, 40, 0) 0%,
    rgba(15, 20, 40, 0.9) 100%
  );
}

/* How It Works Demo Styles */
.how-it-works-demo {
  margin-top: 3rem;
  width: 100%;
}

.demo-container {
  display: flex;
  gap: 2rem;
  max-width: 100%;
  margin: 0 auto;
}

.demo-card {
  flex: 1;
  background-color: var(--surface-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.demo-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.demo-header {
  background-color: var(--primary);
  color: white;
  padding: 1rem 1.5rem;
}

.demo-header h3 {
  margin: 0;
  font-size: 1.2rem;
  text-transform: lowercase;
  font-weight: 600;
}

.demo-content {
  padding: 1.5rem;
  max-height: 400px;
  overflow-y: auto;
}

/* Chat Messages */
.chat-message {
  display: flex;
  margin-bottom: 1.5rem;
  position: relative;
}

.chat-message.user {
  justify-content: flex-end;
}

.message-content {
  max-width: 80%;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  font-size: 0.95rem;
  line-height: 1.5;
}

.chat-message.user .message-content {
  background-color: var(--primary-light);
  color: var(--text-color);
  border-top-right-radius: 0;
}

.chat-message.ai {
  justify-content: flex-start;
}

.chat-message.ai .message-content {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  border-top-left-radius: 0;
  margin-left: 10px;
}

.mini-chill-guy.chat-avatar {
  min-width: 36px;
  height: 36px;
  background-color: var(--primary);
  border-radius: 50%;
  margin-right: 0.5rem;
  position: relative;
}

.mini-chill-guy.chat-avatar::before,
.mini-chill-guy.chat-avatar::after {
  content: "";
  position: absolute;
  background-color: white;
  border-radius: 50%;
}

.mini-chill-guy.chat-avatar::before {
  width: 16px;
  height: 8px;
  top: 12px;
  left: 10px;
}

.mini-chill-guy.chat-avatar::after {
  width: 12px;
  height: 5px;
  top: 23px;
  left: 12px;
}

/* Prompt Example */
.prompt-example p {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.prompt-code {
  background-color: rgba(0, 0, 0, 0.04);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  font-family: var(--font-code);
  font-size: 0.9rem;
  line-height: 1.6;
  white-space: pre-line;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.prompt-copy-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.2s ease;
}

.prompt-copy-button:hover {
  background-color: var(--primary-light);
  color: var(--primary);
}

.prompt-copy-button.copied {
  background-color: var(--secondary);
  color: white;
  border-color: var(--secondary);
}

/* Dark Mode Styles */
body.dark-mode .demo-card {
  background-color: var(--dark-surface);
  border-color: var(--dark-border);
}

body.dark-mode .chat-message.user .message-content {
  background-color: rgba(91, 127, 255, 0.2);
  color: var(--light);
}

body.dark-mode .chat-message.ai .message-content {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--dark-border);
  color: var(--light);
}

body.dark-mode .prompt-code {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--light);
}

body.dark-mode .prompt-copy-button {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--dark-border);
  color: var(--light);
}

body.dark-mode .prompt-copy-button:hover {
  background-color: rgba(91, 127, 255, 0.2);
}

/* Responsive Design */
@media (max-width: 992px) {
  .demo-container {
    flex-direction: column;
    gap: 1.5rem;
  }

  .demo-card {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .demo-content {
    padding: 1rem;
  }

  .message-content {
    max-width: 85%;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .prompt-code {
    padding: 1rem;
    font-size: 0.8rem;
  }

  .prompt-copy-button {
    width: 100%;
    justify-content: center;
  }
}

/* Responsive Dark Mode Improvements */
@media (max-width: 768px) {
  body.dark-mode .mobile-nav {
    background-color: var(--dark-surface);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
  }

  body.dark-mode .mobile-backdrop {
    background-color: rgba(0, 0, 0, 0.7);
  }

  body.dark-mode .menu-icon span {
    background-color: var(--light);
  }

  body.dark-mode .mobile-menu-btn.active .menu-icon span {
    background-color: var(--primary-light);
  }

  body.dark-mode .mobile-nav a {
    color: var(--light);
  }

  body.dark-mode .mobile-nav a:hover {
    background-color: rgba(91, 127, 255, 0.15);
    color: var(--primary-light);
  }

  /* Dark mode card improvements on mobile */
  body.dark-mode .problem-card,
  body.dark-mode .solution-card,
  body.dark-mode .manifesto-card {
    background-color: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}

/* Focus state improvements for keyboard navigation */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

body.dark-mode a:focus,
body.dark-mode button:focus,
body.dark-mode input:focus,
body.dark-mode select:focus,
body.dark-mode textarea:focus {
  outline-color: var(--primary-light);
}

/* Responsive Mobile Backdrop */
.mobile-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-backdrop.active {
  display: block;
  opacity: 1;
}

/* Fix for the overflow issues in responsive layouts */
@media (max-width: 768px) {
  .section {
    overflow-x: hidden;
  }

  .hero-container,
  .problem,
  .solution,
  .how-it-works,
  .meet-mascot,
  .about-us,
  .waitlist {
    overflow-x: hidden;
  }

  /* Improved button sizing on mobile */
  .primary-btn,
  .google-btn,
  .cta-button {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1.5rem;
  }

  /* Fix for demo section bubbles on mobile */
  .chat-message.user .message-content {
    max-width: 75%;
  }

  .chat-message.ai .message-content {
    max-width: 80%;
  }
}

/* Image sizing fixes for small screens */
@media (max-width: 576px) {
  img {
    max-width: 100%;
    height: auto;
  }

  .mascot-image img {
    max-width: 180px;
  }

  /* Fixed positioning for the header on small screens */
  .premium-header {
    position: sticky;
    top: 0;
    z-index: 1000;
  }
}

/* Tablet specific optimizations */
@media (min-width: 577px) and (max-width: 992px) {
  .mascot-image img {
    max-width: 220px;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .problem-card,
  .solution-card {
    padding: 1.75rem;
  }
}

/* Print styles for better accessibility */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }

  .premium-header,
  .footer,
  .code-snippet,
  .dark-mode-toggle,
  .mobile-menu-btn {
    display: none !important;
  }

  body,
  p,
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    color: #000 !important;
  }

  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
}

/* Fix for "Our Philosophy" Section in Dark Mode */
body.dark-mode .team-manifesto {
  background-color: rgba(15, 23, 42, 0.8);
  border-radius: 12px;
  padding: 2rem;
  margin-top: 3rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .team-manifesto h3 {
  color: var(--primary-light);
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

body.dark-mode .manifesto-card {
  background-color: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(91, 127, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

body.dark-mode .manifesto-card h4 {
  color: var(--primary-light);
}

body.dark-mode .manifesto-card p {
  color: rgba(255, 255, 255, 0.9);
}

body.dark-mode .card-icon {
  background-color: rgba(91, 127, 255, 0.2);
  color: var(--primary-light);
}

/* Enhance Contrast for Dark Mode in About Us Section */
body.dark-mode .about-us {
  color: rgba(255, 255, 255, 0.9);
}

body.dark-mode .event-content h3 {
  color: var(--primary-light);
}

body.dark-mode .event-year {
  background-color: var(--primary);
  color: white;
  font-weight: 700;
}

@media (max-width: 768px) {
  body.dark-mode .team-manifesto {
    padding: 1.5rem;
  }

  body.dark-mode .manifesto-card {
    padding: 1.25rem;
  }
}

/* X (formerly Twitter) Icon Fix */
.fab.fa-twitter:before {
  font-family: "sans-serif";
  content: "𝕏";
  font-weight: 500;
}

/* Adjust vertical alignment */
.social-link .fab.fa-twitter:before {
  position: relative;
  top: 1px;
}

/* Dark mode adjustment */
body.dark-mode .social-link .fab.fa-twitter:before {
  color: #ffffff;
}

/* X Logo Styling */
.x-icon {
  font-size: 1.25rem;
  font-weight: 600;
  font-family: Arial, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

/* Remove old Twitter fix now that we're using direct X icon */
.fab.fa-twitter:before {
  /* Removed in favor of direct X icon */
}

.social-link .fab.fa-twitter:before {
  /* Removed in favor of direct X icon */
}

body.dark-mode .social-link .fab.fa-twitter:before {
  /* Removed in favor of direct X icon */
}

/* New Hero Benefits Styles */
.hero-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.benefit-item:hover {
  transform: translateY(-2px);
  background-color: rgba(255, 255, 255, 0.15);
  border-color: var(--primary);
}

.benefit-item i {
  color: var(--primary);
  font-size: 1.25rem;
}

.benefit-item span {
  font-weight: 500;
  color: var(--text-color);
}

body.dark-mode .benefit-item {
  background-color: rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .benefit-item span {
  color: var(--light);
}

body.dark-mode .benefit-item:hover {
  background-color: rgba(0, 0, 0, 0.3);
  border-color: var(--primary-light);
}

/* Waitlist Features Styles */
.waitlist-features {
  margin: 2rem 0;
}

.waitlist-features h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #1e293b; /* Darker text color for better readability */
  font-weight: 600;
}

.waitlist-features ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.waitlist-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.waitlist-features i {
  color: var(--secondary);
  font-size: 1rem;
}

.waitlist-features span {
  font-size: 0.95rem;
  color: #334155; /* Darker text color for better readability */
}

body.dark-mode .waitlist-features h4 {
  color: var(--light);
}

body.dark-mode .waitlist-features i {
  color: var(--secondary-light);
}

body.dark-mode .waitlist-features span {
  color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
  .hero-benefits {
    flex-direction: column;
    width: 100%;
  }

  .benefit-item {
    width: 100%;
    justify-content: center;
  }
}

/* Code snippet syntax highlighting */
.code-snippet:before {
  content: "• • •";
  display: block;
  margin-bottom: 8px;
  color: #aaa;
  font-size: 0.7rem;
}

.code-snippet .line {
  margin-bottom: 6px;
  display: block;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
}

.code-snippet .function {
  color: #5b7fff;
}

.code-snippet .string {
  color: #22cc88;
}

.code-snippet .keyword {
  color: #ff5b7f;
}

.code-snippet .comment {
  color: #888;
}

@media (max-width: 768px) {
  .mascot-wrapper {
    height: 220px; /* More space on mobile */
  }

  .mascot-bubble {
    max-width: 260px;
    top: 5px;
    font-size: 0.9rem;
    padding: 10px 15px;
  }
}

@media (max-width: 576px) {
  .mascot-wrapper {
    height: 200px;
  }

  .mascot-bubble {
    max-width: 220px;
    font-size: 0.85rem;
    line-height: 1.3;
  }

  .chill-guy-mascot {
    width: 100px;
    height: 100px;
  }

  .chill-guy-mascot::before {
    width: 50px;
    top: 20px;
  }

  .chill-guy-mascot::after {
    width: 35px;
    top: 50px;
  }
}

@media (max-width: 768px) {
  .mascot-wrapper {
    height: 180px;
    margin: 1rem 0 1.5rem;
  }

  .mascot-bubble {
    max-width: 200px;
    left: calc(50% - 200px);
    font-size: 0.9rem;
    padding: 10px 15px;
  }

  .chill-guy-mascot-img {
    width: 100px;
    right: calc(50% - 100px);
  }
}

@media (max-width: 576px) {
  .mascot-wrapper {
    height: 170px;
    flex-direction: column;
    margin: 0.75rem 0 1.5rem;
  }

  .mascot-bubble {
    position: relative;
    left: 0;
    bottom: 0;
    max-width: 200px;
    font-size: 0.85rem;
    line-height: 1.3;
    margin: 0 auto 10px;
    text-align: center;
  }

  .chill-guy-mascot-img {
    position: relative;
    right: 0;
    width: 90px;
  }

  .mascot-bubble::after {
    display: none; /* Hide arrow on very small screens */
  }
}

.hero-content h1 {
  margin-bottom: 1.25rem;
  font-size: 2.6rem;
  line-height: 1.3;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 3rem;
  color: #1e293b; /* Darker color for light mode */
  line-height: 1.7;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

body.dark-mode .hero-content p {
  color: rgba(
    255,
    255,
    255,
    0.9
  ); /* Maintain light color for dark mode with high opacity */
}

.code-snippet {
  position: absolute;
  background-color: rgba(13, 17, 23, 0.85);
  border-radius: 8px;
  padding: 1rem;
  font-family: "Menlo", "Monaco", "Courier New", monospace;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #e5e5e5;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  width: 240px;
  z-index: 10;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.3s ease;
  transform-origin: center center;
  animation: float 5s ease-in-out infinite;
  /* Add overflow handling */
  overflow: hidden;
  max-height: 300px;
}

/* Position snippets closer to main content */
.code-snippet-1 {
  top: 20%;
  left: 7%;
  transform: rotate(-6deg);
  z-index: 2;
  animation-delay: 0s;
}

.code-snippet-2 {
  bottom: 20%;
  right: 7%;
  transform: rotate(6deg);
  z-index: 2;
  animation-delay: 2.5s;
}

/* Dark mode adjustments */
body.dark-mode .hero-content p {
  color: rgba(
    255,
    255,
    255,
    0.9
  ); /* Maintain light color for dark mode with high opacity */
}

@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 2.3rem;
  }

  .code-snippet-1 {
    top: 15%;
    left: 5%;
  }

  .code-snippet-2 {
    bottom: 15%;
    right: 5%;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .code-snippet-1 {
    top: 10%;
    left: 2%;
    transform: rotate(-4deg) scale(0.9);
  }

  .code-snippet-2 {
    bottom: 10%;
    right: 2%;
    transform: rotate(4deg) scale(0.9);
  }
}

/* Enhanced Demo Styles */
.prompt-badge {
  background-color: var(--primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  margin-left: 0.75rem;
  display: inline-block;
}

.prompt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.prompt-type {
  font-size: 0.85rem;
  color: var(--gray);
  background-color: var(--gray-light);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  margin-top: 0.5rem;
}

.prompt-section {
  margin-bottom: 1.5rem;
  border-left: 3px solid var(--primary);
  padding-left: 1rem;
}

.prompt-title {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.prompt-text {
  font-family: "Consolas", "Monaco", monospace;
  white-space: pre-wrap;
  margin: 0;
  line-height: 1.5;
  font-size: 0.85rem;
  background-color: #f8f9fa;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
}

.prompt-continuation {
  background-color: rgba(91, 127, 255, 0.1);
  padding: 1rem;
  border-radius: 0.5rem;
  margin-top: 1rem;
}

.prompt-continuation span {
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}

.prompt-continuation ul {
  padding-left: 1.5rem;
  margin: 0.5rem 0;
}

.prompt-continuation li {
  margin: 0.25rem 0;
  font-size: 0.9rem;
}

.prompt-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.prompt-navigation {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.prompt-nav-btn {
  font-size: 0.85rem;
  color: var(--gray);
  cursor: pointer;
  padding: 0.35rem 0.75rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  -webkit-user-select: none;
  user-select: none;
}

.prompt-nav-btn.active {
  color: var(--primary);
  background-color: rgba(91, 127, 255, 0.1);
}

.prompt-nav-btn:hover {
  background-color: var(--gray-light);
}

.prompt-counter {
  font-size: 0.85rem;
  color: var(--gray);
}

/* Dark mode styles for the enhanced demo */
body.dark-mode .prompt-section {
  border-left-color: var(--primary-light);
}

body.dark-mode .prompt-title {
  color: var(--primary-light);
}

body.dark-mode .prompt-text {
  background-color: var(--dark-surface-lighter);
  color: var(--dark-text);
}

body.dark-mode .prompt-type {
  background-color: var(--dark-surface-lighter);
  color: var(--dark-text-muted);
}

body.dark-mode .prompt-continuation {
  background-color: rgba(91, 127, 255, 0.2);
}

body.dark-mode .prompt-nav-btn {
  color: var(--dark-text-muted);
}

body.dark-mode .prompt-nav-btn.active {
  color: var(--primary-light);
  background-color: rgba(91, 127, 255, 0.3);
}

body.dark-mode .prompt-nav-btn:hover {
  background-color: var(--dark-surface-lighter);
}

body.dark-mode .prompt-counter {
  color: var(--dark-text-muted);
}

@media (max-width: 768px) {
  .prompt-navigation {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
  }

  .prompt-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .prompt-type {
    margin-top: 0.5rem;
  }
}

@media (max-width: 576px) {
  .prompt-section {
    padding-left: 0.75rem;
  }

  .prompt-title {
    font-size: 1rem;
  }

  .prompt-text {
    font-size: 0.8rem;
    padding: 0.75rem;
  }
}
