@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  /* Material 3 Inspired Color Palette */
  --primary: #552ebe;
  --on-primary: #FFFFFF;
  --primary-container: #EADDFF;
  --on-primary-container: #21005D;
  --secondary: #6721ff;
  --on-secondary: #FFFFFF;
  --secondary-container: #E8DEF8;
  --on-secondary-container: #1D192B;
  --tertiary: #ffb9d0;
  --on-tertiary: #864848;
  --tertiary-container: #FFD8E4;
  --on-tertiary-container: #31111D;
  --error: #B3261E;
  --on-error: #FFFFFF;
  --error-container: #F9DEDC;
  --on-error-container: #410E0B;
  --background: #efeef1;
  --on-background: #1C1B1F;
  --surface: #FFFBFE;
  --on-surface: #1C1B1F;
  --surface-variant: #E7E0EE;
  --on-surface-variant: #49454F;
  --outline: #79747E;
  --shadow: #000000;
  --inverse-surface: #313033;
  --inverse-on-surface: #F4EFF4;
  --inverse-primary: #D0BCFF;
  --surface-tint: #6750A4;
  --ripple: rgba(103, 80, 164, 0.1);
  --surface-hsl: 290, 100%, 99%; /* HSL representation of #FFFBFE */

  /* Custom variables mapped to Material 3 */
  --primary-light: var(--primary-container);
  --primary-dark: #6a00ff;
  --on-primary-dark: #ddcaff;
  --accent: var(--secondary);

  /* Existing variables adjusted for Material 3 */
  --dark: var(--on-background);
  --dark-light: var(--on-surface-variant);
  --light: var(--background);
  --text-dark: var(--on-background);
  --text-light: var(--on-primary);
  --success: #06d6a0;
  --warning: #ffbe0b;
  --danger: #ef476f;
  --gray: var(--surface-variant);
  --gray-dark: var(--outline);
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.07);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 30px rgba(27, 32, 50, 0.12);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: var(--light);
  color: var(--text-dark);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: var(--transition);
}

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

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: none;
  outline: none;
  text-align: center;
  font-size: 16px;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  gap: 8px;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: var(--transition);
  z-index: -1;
}

.btn:hover::before {
  left: 0;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-light);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--tertiary);
  color: var(--on-tertiary-container);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(72, 0, 255, 0.2);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 4px solid var(--primary);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--text-light);
  border: 4px solid transparent;
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(72, 0, 255, 0.2);
}

.btn i {
  transition: var(--transition);
}

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

header {
  background-color: rgba(255, 255, 255, 0);
  backdrop-filter: blur(32px);
  padding-top: 20px;
  padding-left: 20px;
  padding-right: 20px;
  -webkit-backdrop-filter: blur(32px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Elastic transition */
}

header.scrolled {
  position: sticky; /* Undock effect */
  top: 20px; /* Add some space from the top */
  margin: 0 24px; /* Add margin to create padding effect from sides */
  width: calc(100% - 48px); /* Adjust width for margin */
  padding: 10px 20px; /* Add padding */
  background-color: rgba(255, 255, 255, 0.695);
  /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); */
  border-radius: var(--radius-lg); /* Rounded corners */
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  transition: var(--transition);
}

.logo {
  display: flex;
  align-items: center;
  gap: 3px; /* Reduced gap between logo, name, and tag */
  cursor: pointer; /* Add cursor pointer to indicate clickability */
}

.header-logo,
.footer-logo-img {
  height: 40px; /* Adjust as needed */
  width: auto;
  margin-right: 5px;
  transition: transform 0.5s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

/* .logo:hover .header-logo {
  transform: rotate(360deg) scale(1.1);
} */

.logo h1 {
  color: var(--primary);
  font-size: 24px;
  font-weight: 700;
  transition: var(--transition);
}

.beta-tag {
  background-color: var(--secondary);
  color: var(--text-light);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-left: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

nav ul {
  display: flex;
  list-style: none;
  gap: 40px;
}

nav ul li a {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 16px;
  transition: var(--transition);
  position: relative;
}

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

nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  background-color: var(--primary);
  bottom: -8px;
  left: 0;
  transition: width 0.3s cubic-bezier(0.76, 0, 0.24, 1);
  border-radius: 2px;
}

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

  .auth-buttons {
    display: flex;
    gap: 15px;
  }

  /* Hamburger Menu Button */
  .hamburger-menu-button {
    display: none; /* Hidden by default, shown on mobile */
    background-color: var(--primary);
    color: var(--on-primary);
    border: none;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    z-index: 1100; /* Ensure it's above other content */
  }

  .hamburger-menu-button:hover {
    background-color: var(--tertiary);
    color: var(--on-tertiary-container);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
  }

  /* Mobile Navigation Menu */
  .mobile-nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 350px; /* Max width for the menu */
    height: 100%;
    background-color: var(--surface); /* Use surface color for menu background */
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transform: translateX(100%); /* Hidden by default */
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1); /* Spring animation */
    z-index: 1200; /* Above header and hamburger button */
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-top-left-radius: var(--radius-lg);
    border-bottom-left-radius: var(--radius-lg);
  }

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

  .mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay */
    backdrop-filter: blur(5px); /* Blur effect */
    -webkit-backdrop-filter: blur(5px);
    z-index: 1199; /* Below menu, above other content */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
  }

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

  .mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    /* border-bottom: 1px solid var(--outline); */
    margin-bottom: 20px;
  }

  .mobile-nav-header .logo h1 {
    font-size: 22px;
  }

  .close-menu-button {
    background-color: var(--error);
    color: var(--on-error);
    border: none;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
  }

  .close-menu-button:hover {
    background-color: var(--error-container);
    color: var(--on-error-container);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
  }

  .mobile-nav-links {
    display: none; /* Hide by default */
    flex-direction: column;
    flex-grow: 1;
  }

  .mobile-nav-menu.active .mobile-nav-links {
    display: flex; /* Show when menu is active */
  }

  .mobile-nav-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-grow: 1; /* Allow links to take up space */
  }

  .mobile-nav-links ul li a {
    display: block;
    padding: 10px 15px;
    color: var(--on-surface);
    font-weight: 500;
    font-size: 18px;
    border-radius: var(--radius-md);
    transition: var(--transition);
  }

  .mobile-nav-links ul li a:hover {
    background-color: var(--primary-container);
    color: var(--on-primary-container);
  }

  .mobile-auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-top: 20px;
    /* border-top: 1px solid var(--outline); */
  }

  .mobile-nav-menu.active .mobile-nav-links {
    display: flex; /* Ensure the nav links container is displayed when menu is active */
  }

  .mobile-nav-menu.active .mobile-auth-buttons {
    display: flex; /* Ensure the auth buttons container is displayed when menu is active */
  }

  .mobile-nav-links ul li a:hover {
    background-color: var(--primary-container);
    color: var(--on-primary-container);
  }

  .mobile-auth-buttons .btn {
    width: 100%;
  }

.hero {
  margin-top: 7%;
  border-radius: var(--radius-lg);
  padding-top: 60px;
  padding-right: 80px;
  padding-left: 80px;
  margin-left: 5%;
  margin-right: 5%;
  padding-bottom: 60px;
  background: var(--inverse-primary);
  /* background: linear-gradient(135deg, var(--primary-container) 0%, var(--primary) 100%); */
  color: var(--on-primary-container);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 80px rgba(51, 0, 255, 0.15);
}

.hero::before {
  content: none; /* Remove the old pattern */
}

.animated-circles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.circle {
  position: absolute;
  display: block;
  list-style: none;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.15);
  animation: moveCircles 25s linear infinite;
  bottom: -150px;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.circle.x1 {
  left: 25%;
  width: 80px;
  height: 80px;
  animation-delay: 0s;
  animation-duration: 20s;
}

.circle.x2 {
  left: 10%;
  width: 20px;
  height: 20px;
  animation-delay: 2s;
  animation-duration: 15s;
}

.circle.x3 {
  left: 70%;
  width: 20px;
  height: 20px;
  animation-delay: 4s;
  animation-duration: 25s;
}

.circle.x4 {
  left: 40%;
  width: 60px;
  height: 60px;
  animation-delay: 0s;
  animation-duration: 18s;
}

.circle.x5 {
  left: 65%;
  width: 20px;
  height: 20px;
  animation-delay: 0s;
  animation-duration: 10s;
}

.circle.x6 {
  left: 75%;
  width: 110px;
  height: 110px;
  animation-delay: 3s;
  animation-duration: 30s;
}

.circle.x7 {
  left: 35%;
  width: 340px;
  height: 340px;
  animation-delay: 7s;
  animation-duration: 22s;
}

.circle.x8 {
  left: 50%;
  width: 25px;
  height: 25px;
  animation-delay: 15s;
  animation-duration: 40s;
}

.circle.x9 {
  left: 20%;
  width: 15px;
  height: 15px;
  animation-delay: 2s;
  animation-duration: 35s;
}

.circle.x10 {
  left: 85%;
  width: 240px;
  height: 240px;
  animation-delay: 0s;
  animation-duration: 11s;
}

@keyframes moveCircles {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(calc(var(--x-end) * 1vw), calc(var(--y-end) * 1vh)) scale(var(--scale-end));
    opacity: 0;
  }
}

.circle {
  /* ... existing properties ... */
  animation: moveCircles var(--duration) linear infinite;
  /* Add custom properties for animation */
  --x-end: 0;
  --y-end: -100;
  --scale-end: 1;
  --duration: 25s;
}

.circle.x1 {
  left: 25%;
  bottom: -150px; /* Enters from bottom */
  width: 80px;
  height: 80px;
  animation-delay: 0s;
  --duration: 20s;
  --x-end: 15;
  --y-end: -120;
  --scale-end: 1.2;
}

.circle.x2 {
  left: 10%;
  bottom: -150px; /* Enters from bottom */
  width: 20px;
  height: 20px;
  animation-delay: 2s;
  --duration: 15s;
  --x-end: -10;
  --y-end: -110;
  --scale-end: 0.8;
}

.circle.x3 {
  left: 70%;
  bottom: -150px; /* Enters from bottom */
  width: 20px;
  height: 20px;
  animation-delay: 4s;
  --duration: 25s;
  --x-end: 20;
  --y-end: -130;
  --scale-end: 1.1;
}

.circle.x4 {
  left: 40%;
  top: -150px; /* Enters from top */
  width: 60px;
  height: 60px;
  animation-delay: 0s;
  --duration: 18s;
  --x-end: -15;
  --y-end: 120;
  --scale-end: 0.9;
}

.circle.x5 {
  right: -150px; /* Enters from right */
  top: 30%;
  width: 20px;
  height: 20px;
  animation-delay: 0s;
  --duration: 10s;
  --x-end: -120;
  --y-end: -5;
  --scale-end: 1.3;
}

.circle.x6 {
  left: -150px; /* Enters from left */
  top: 60%;
  width: 110px;
  height: 110px;
  animation-delay: 3s;
  --duration: 30s;
  --x-end: 120;
  --y-end: -20;
  --scale-end: 0.7;
}

.circle.x7 {
  left: -150px; /* Enters from bottom-left corner */
  bottom: -150px;
  width: 150px;
  height: 150px;
  animation-delay: 7s;
  --duration: 22s;
  --x-end: 150;
  --y-end: -150;
  --scale-end: 1.5;
}

.circle.x8 {
  right: -150px; /* Enters from top-right corner */
  top: -150px;
  width: 25px;
  height: 25px;
  animation-delay: 15s;
  --duration: 40s;
  --x-end: -150;
  --y-end: 150;
  --scale-end: 0.6;
}

.circle.x9 {
  left: 20%;
  bottom: -150px; /* Enters from bottom */
  width: 15px;
  height: 15px;
  animation-delay: 2s;
  --duration: 35s;
  --x-end: 12;
  --y-end: -115;
  --scale-end: 1.1;
}

.circle.x10 {
  left: 85%;
  top: -150px; /* Enters from top */
  width: 150px;
  height: 150px;
  animation-delay: 0s;
  --duration: 11s;
  --x-end: -18;
  --y-end: 105;
  --scale-end: 0.9;
}

.circle.x11 {
  left: 5%;
  top: -100px; /* Enters from top-left corner */
  width: 90px;
  height: 90px;
  animation-delay: 1s;
  --duration: 28s;
  --x-end: 100;
  --y-end: 130;
  --scale-end: 1.1;
}

.circle.x12 {
  right: -100px; /* Enters from right side */
  bottom: 10%;
  width: 70px;
  height: 70px;
  animation-delay: 5s;
  --duration: 17s;
  --x-end: -110;
  --y-end: -10;
  --scale-end: 0.95;
}

.circle.x13 {
  left: 50%;
  bottom: -100px; /* Enters from bottom-center */
  width: 120px;
  height: 120px;
  animation-delay: 8s;
  --duration: 23s;
  --x-end: 0;
  --y-end: -140;
  --scale-end: 1.3;
}

.hero-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text {
  flex: 0 0 50%;
  animation: slideInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-text h1 {
  font-size: 54px;
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background: var(--on-primary-container);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text p {
  font-size: 20px;
  margin-bottom: 20px; /* Reduced margin to make space for buttons */
  max-width: 540px;
  opacity: 0.9;
}

.hero-text .view-controls {
    justify-content: flex-start; /* Align buttons to the left within hero-text */
    margin-top: 20px; /* Add some space between paragraph and buttons */
}

.hero-text .view-controls {
    justify-content: flex-start; /* Align buttons to the left within hero-text */
    margin-bottom: 0; /* Remove bottom margin as it's now inside hero-text */
}

.hero-image {
  flex: 0 0 45%;
  display: flex;
  justify-content: flex-end;
  animation: floatIn 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  perspective: 1000px;
}

.hero-image img {
  width: 100%;
  max-width: 600px;
  border-radius: var(--radius-lg);
  /* box-shadow: var(--shadow-lg);
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); */
}

/* .hero-image img:hover {
  transform: perspective(1000px) rotateY(0deg) translateY(-15px);
} */

.features {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.features::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--primary-container) 0%, rgba(255, 255, 255, 0) 70%);
  opacity: 0.1;
  z-index: -1;
}

.section-header {
  text-align: center;
  margin-bottom: 70px;
  position: relative;
  animation: fadeInUp 0.8s ease-out;
}

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

.section-header h2 {
  font-size: 42px;
  font-weight: 800;
  color: var(--primary); /* Keep primary color for headings */
  margin-bottom: 18px;
  position: relative;
}

.section-header h2::before {
  content: "";
  position: absolute;
  width: 40px;
  height: 40px;
  background: var(--primary-container);
  opacity: 0.1;
  border-radius: 50%;
  left: 50%;
  transform: translateX(-50%);
  top: -20px;
  z-index: -1;
}

.section-header p {
  font-size: 20px;
  color: var(--text-dark);
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.8;
}

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

.feature-card {
  background-color: var(--secondary-container);
  padding: 40px 30px;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid transparent;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s forwards;
  animation-delay: calc(var(--delay) * 0.1s);
}

.feature-card:nth-child(1) {
  --delay: 1;
}

.feature-card:nth-child(2) {
  --delay: 2;
}

.feature-card:nth-child(3) {
  --delay: 3;
}

.feature-card:nth-child(4) {
  --delay: 4;
}

.feature-card:nth-child(5) {
  --delay: 5;
}

.feature-card:nth-child(6) {
  --delay: 6;
}

.feature-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-bottom: 4px solid var(--primary);
}

.feature-card::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(var(--primary), 0.05) 0%, rgba(var(--primary), 0.01) 100%);
  top: 0;
  left: 0;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.feature-card:hover::after {
  opacity: 1;
}

.feature-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary);
  border-radius: 20px;
  margin-bottom: 25px;
  transition: all 0.5s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.feature-card:hover .feature-icon {
  background-color: var(--primary);
  transform: scale(1.15);
}

.feature-icon i {
  font-size: 36px;
  color: var(--text-light);
}

.feature-card h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--on-surface);
  transition: var(--transition);
}

.feature-card:hover h3 {
  transform: translateX(5px);
}

.feature-card p {
  font-size: 16px;
  color: var(--text-dark);
  margin-bottom: 20px;
  opacity: 0.8;
}

.feature-card a {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.feature-card a i {
  margin-left: 8px;
  transition: var(--transition);
}

.feature-card a:hover i {
  transform: translateX(8px);
}

/* Carousel Styles */
.carousel-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0 auto;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 20px; /* Add gap between slides */
  padding: 0 10px; /* Add padding to show partial next/prev slides */
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--primary); /* Use primary color for buttons */
  color: var(--on-primary);
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 100;
  font-size: 24px;
  border-radius: 50%; /* Make buttons circular */
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.carousel-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-50%) scale(1.1);
}

.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}

/* Responsive adjustments for carousel */
@media (min-width: 992px) {
  .carousel-track {
    --slides-per-view: 3;
  }
  .carousel-btn {
    display: none; /* Hide buttons on large screens */
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .carousel-track {
    --slides-per-view: 2;
  }
  .carousel-btn {
    display: none; /* Hide buttons on medium screens */
  }
}

@media (max-width: 767px) {
  .carousel-track {
    --slides-per-view: 1;
  }
  .carousel-btn {
    display: flex; /* Show buttons on small screens */
  }
}

.cta {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--text-light);
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-left: 5%;
  margin-right: 5%;
  margin-bottom: 5%;
  box-shadow: 0 20px 80px rgba(98, 0, 255, 0.2);
}

.cta::before,
.cta::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  z-index: 0;
}

.cta::before {
  top: -150px;
  right: -50px;
  animation: floatAround 15s infinite alternate ease-in-out;
}

.cta::after {
  bottom: -150px;
  left: -50px;
  animation: floatAround 15s infinite alternate-reverse ease-in-out;
}

@keyframes floatAround {
  0% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(30px, -30px);
  }

  100% {
    transform: translate(-30px, 30px);
  }
}

.cta h2 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.8s ease-out;
}

.cta p {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 30px;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.cta .btn-outline {
  border-color: var(--text-light);
  color: var(--text-light);
}

.cta .btn-outline:hover {
  background-color: var(--text-light);
  color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

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

.cta .btn-primary:hover {
  background-color: var(--primary-light);
  color: var(--on-primary-container);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
  border-top-right-radius: var(--radius-lg);
  border-top-left-radius: var(--radius-lg);
  background-color: var(--on-secondary); /* Use a dark surface tone for the footer */
  color: var(--on-background); /* Ensure text is visible on dark background */
  padding-top: 80px;
  position: relative;
  overflow: hidden; /* Ensure animations don't overflow */
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Adjusted minmax for better responsiveness */
  gap: 40px; /* Reduced gap for smaller screens */
  margin-bottom: 60px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.footer-logo i {
  color: var(--primary);
  font-size: 28px;
  animation: pulse 3s infinite;
}

.footer-logo h2 {
  color: var(--on-background); /* Ensure text is visible on dark background */
  font-size: 24px;
  font-weight: 700;
}

.footer-section h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 25px;
  color: var(--primary); /* Use primary color for headings */
  position: relative;
  padding-bottom: 15px;
}

.footer-section h3::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 3px;
  background-color: var(--primary); /* Use primary color for underline */
  bottom: 0;
  left: 0;
  border-radius: 2px;
}

.footer-section p {
  margin-bottom: 20px;
  font-size: 16px;
  opacity: 0.8;
  line-height: 1.7;
}

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

.footer-links li {
  margin-bottom: 15px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Spring animation */
}

.footer-links li:hover {
  transform: translateX(10px) scale(1.02); /* Added slight scale for spring effect */
}

.footer-links a {
  color: var(--on-background); /* Ensure text is visible on dark background */
  opacity: 0.8;
  transition: var(--transition);
  display: flex;
  align-items: center;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--primary); /* Use primary color for hover */
}

.footer-links i {
  margin-right: 10px;
  color: var(--primary); /* Use primary color for icons */
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.social-links a {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--on-primary-container); /* Use a surface tone for social links */
  color: var(--on-primary); /* Ensure text is visible */
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Spring animation */
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.social-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary);
  /* background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); */
  opacity: 0;
  z-index: -1;
  transition: var(--transition);
}

.social-links a:hover::before {
  opacity: 1;
}

.social-links a:hover {
  transform: translateY(-8px) scale(1.1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}


.footer-bottom {
  border-top: 1px solid var(--outline); /* Use outline color for border */
  padding: 25px 0;
  text-align: center;
  font-size: 16px;
  opacity: 0.7;
  color: var(--on-background); /* Ensure text is visible */
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Download Options Section */
.download-options-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--surface-container-low);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.download-options-content {
    max-width: 800px;
    margin: 0 auto;
}

.download-options-content h2 {
    font-size: 38px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
}

.download-options-content p {
    font-size: 20px;
    color: var(--on-surface-variant);
    margin-bottom: 40px;
}

.download-buttons-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.download-option-btn {
    min-width: 280px;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    animation: popIn 0.5s ease-out forwards;
    opacity: 0;
    transform: scale(0.9);
}

.download-option-btn:nth-child(1) {
    animation-delay: 0.2s;
}

.download-option-btn:nth-child(2) {
    animation-delay: 0.4s;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Dark Mode Styles */
.dark-mode .download-options-section {
    background-color: var(--background);
}

.dark-mode .download-options-content h2 {
    color: var(--primary);
}

.dark-mode .download-options-content p {
    color: var(--on-background);
}

.dark-mode .download-option-btn.btn-primary {
    background-color: var(--primary);
    color: var(--on-primary);
}

.dark-mode .download-option-btn.btn-outline {
    border-color: var(--primary);
    color: var(--primary);
}

.dark-mode .download-option-btn.btn-outline:hover {
    background-color: var(--primary);
    color: var(--on-primary);
}

/* News List and Carousel Styles */
/* Updates List Section Styles */
.updates-list-section {
    padding: 100px 0;
    background-color: var(--surface-container-low);
}

.view-controls {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.view-controls .btn {
    min-width: 150px;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.view-controls .btn.active {
    background-color: var(--primary);
    color: var(--on-primary);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.view-controls .btn.active:hover {
    background-color: var(--primary);
    color: var(--on-primary);
}

.view-controls .btn:not(.active):hover {
    background-color: var(--primary-container);
    color: var(--on-primary-container);
    border-color: var(--primary-container);
}

.updates-list {
    display: grid;
    gap: 40px;
    transition: all 0.5s ease-in-out;
}

.updates-list.list-view {
    grid-template-columns: 1fr; /* Single column for list view */
}

.updates-list.grid-view {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Multiple columns for grid view */
}

.update-item {
    background-color: var(--on-secondary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex; /* Default to flex for list view */
    flex-direction: row;
    align-items: center;
}

.updates-list.grid-view .update-item {
    flex-direction: column; /* Stack elements for grid view */
    align-items: stretch;
}

.update-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.update-item img {
    width: 250px; /* Fixed width for list view image */
    height: 180px; /* Fixed height for list view image */
    object-fit: cover;
    display: block;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg); /* Rounded corners for list view */
}

.updates-list.grid-view .update-item img {
    width: 100%; /* Full width for grid view image */
    height: 200px; /* Consistent height for grid view image */
    border-radius: var(--radius-lg) var(--radius-lg) 0 0; /* Rounded corners for grid view */
}

.update-content {
    padding: 20px;
    flex-grow: 1; /* Allow content to take remaining space in list view */
}

.update-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--on-surface);
    margin-bottom: 10px;
}

.update-content .update-summary {
    font-size: 16px;
    color: var(--on-surface-variant);
    margin-bottom: 15px;
    line-height: 1.6;
}

.update-content .update-meta {
    display: block;
    font-size: 14px;
    color: var(--outline);
    margin-bottom: 20px;
}

.update-content .btn {
    width: fit-content;
}

/* Update Popup Styles */
.update-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.update-popup-overlay.active {
    opacity: 1;
    visibility: visible;
    backdrop-filter: blur(10px); /* Add blur effect */
    -webkit-backdrop-filter: blur(10px);
}

.update-popup-content {
    background-color: var(--surface);
    padding: 40px; /* Adjusted padding to prevent overlap */
    padding-top: 0px; /* Increased top padding to make space for close button */
    border-radius: var(--radius-lg);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2); /* More pronounced shadow */
    max-width: 1000px; /* Even wider */
    width: 90%; /* Maintain flexible width */
    border: 1px solid var(--surface-variant); /* Subtle border */
    position: relative;
    transform: scale(0.8); /* Start smaller for spring effect */
    opacity: 0; /* Start hidden for animation */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Spring animation */
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow: hidden;
}

.update-popup-overlay.active .update-popup-content {
    transform: scale(1); /* Scale to full size */
    opacity: 1; /* Fade in */
}

.close-popup-btn {
    position: absolute;
    top: 20px; /* Adjusted position */
    right: 20px; /* Adjusted position */
    background-color: var(--error);
    color: var(--on-error);
    border: none;
    padding: 10px 20px; /* Slightly larger padding */
    border-radius: var(--radius-md);
    font-size: 16px; /* Slightly larger font */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 8px; /* Increased gap */
    z-index: 2001;
    box-shadow: var(--shadow-sm);
}

.close-popup-btn:hover {
    background-color: var(--error-container);
    color: var(--on-error-container);
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-md);
}

.close-popup-btn i {
    font-size: 20px; /* Slightly larger icon */
}

.update-popup-header {
    display: flex;
    flex-direction: column; /* Stack image and text vertically */
    align-items: flex-start; /* Align items to the start */
    margin-bottom: 0; /* Removed margin as text is now inside body */
    flex-wrap: wrap;
    position: relative; /* For absolute positioning of text if needed */
}

.update-popup-header img {
    width: calc(100% + 80px); /* Make image span full width of popup content + padding */
    height: 200px; /* Fixed height for banner */
    object-fit: cover;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0; /* Rounded top corners */
    margin-bottom: 0; /* Removed margin as text is now inside body */
    margin-left: -40px; /* Counteract left padding of popup-content */
    margin-right: -40px; /* Counteract right padding of popup-content */
    box-shadow: var(--shadow-sm);
}

.update-popup-header-text {
    flex-grow: 1;
    padding-top: 25px; /* Removed padding as it's now inside scrollable body */
    width: 100%; /* Ensure text takes full width */
    box-sizing: border-box; /* Include padding in width calculation */
    margin-bottom: 25px; /* Add margin to separate from details */
}

.update-popup-content h2 {
    font-size: 36px; /* Larger headline */
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px; /* Adjusted margin */
    line-height: 1.2;
}

.update-popup-content .popup-meta {
    font-size: 16px; /* Slightly larger font */
    color: var(--outline);
    margin-bottom: 0; /* Removed margin as it's part of header-text margin */
}

.update-popup-body {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 20px; /* Increased padding for scrollbar */
    margin-right: -20px; /* Counteract padding for scrollbar */
}

.update-popup-body::-webkit-scrollbar {
    width: 8px;
}

.update-popup-body::-webkit-scrollbar-track {
    background: transparent; /* Make scrollbar track transparent */
    border-radius: 10px;
}

.update-popup-body::-webkit-scrollbar-thumb {
    background: var(--primary-container);
    border-radius: 10px;
}

.update-popup-body::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.update-popup-content #popup-details {
    font-size: 17px; /* Slightly smaller font */
    color: var(--on-surface-variant);
    line-height: 1.7; /* Adjusted line height */
}

.update-popup-content #popup-details p {
    margin-bottom: 15px;
}

.update-popup-content #popup-details ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 15px;
}

.update-popup-content #popup-details li {
    margin-bottom: 8px;
}

/* Responsive adjustments for popup */
@media (max-width: 768px) {
    .hero-text .view-controls {
        justify-content: center; /* Center buttons on smaller screens within hero-text */
    }

    .view-controls {
        gap: 10px;
    }

    .view-controls .btn {
        min-width: unset;
        width: 48%;
        font-size: 14px;
        padding: 10px 15px;
    }

    .updates-list.list-view .update-item {
        flex-direction: column;
        align-items: stretch;
    }

    .updates-list.list-view .update-item img {
        width: 100%;
        height: 180px;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }

    .update-popup-content {
        padding: 25px; /* Adjusted padding for medium screens */
        padding-top: 70px; /* Adjusted top padding for medium screens */
        width: 95%;
        max-width: 95%;
    }

    .close-popup-btn {
        top: 15px;
        right: 15px;
        padding: 8px 15px;
        font-size: 14px;
    }

    .close-popup-btn i {
        font-size: 16px;
    }

    .update-popup-content h2 {
        font-size: 28px; /* Adjusted font size */
        padding-top: 25px;
      }

    .update-popup-content .popup-meta {
        font-size: 15px;
    }

    .update-popup-content #popup-details {
        font-size: 16px;
    }

    .update-popup-header img {
        width: calc(100% + 50px); /* Adjust for smaller padding */
        margin-left: -25px; /* Counteract left padding of popup-content */
        margin-right: -25px; /* Counteract right padding of popup-content */
        height: 150px; /* Adjust height for smaller screens */
    }

    .update-popup-header-text {
        padding: 0 25px; /* Adjust horizontal padding for smaller screens */
    }
}

@media (max-width: 480px) {
    .view-controls .btn {
        width: 100%;
    }

    .update-popup-content {
        padding: 20px; /* Adjusted padding for small screens */
        padding-top: 60px; /* Adjusted top padding for small screens */
    }

    .close-popup-btn {
        top: 10px;
        right: 10px;
        padding: 6px 12px;
        font-size: 12px;
    }

    .close-popup-btn i {
        font-size: 14px;
    }

    .update-popup-content h2 {
        font-size: 22px; /* Adjusted font size */
    }

    .update-popup-content .popup-meta {
        font-size: 13px;
    }

    .update-popup-content #popup-details {
        font-size: 14px;
    }

    .update-popup-header img {
        width: calc(100% + 40px); /* Adjust for smaller padding */
        margin-left: -20px; /* Counteract left padding of popup-content */
        margin-right: -20px; /* Counteract right padding of popup-content */
        height: 120px; /* Adjust height for smaller screens */
    }

    .update-popup-header-text {
        padding: 0 20px; /* Adjust horizontal padding for smaller screens */
    }
}

/* Custom selection styles */
::selection {
  background-color: var(--accent);
  color: var(--on-secondary);
}

/* Image fallback for updates */
.update-item .fallback-logo {
    display: none;
    width: 100%;
    height: 200px;
    object-fit: contain;
    background-color: var(--surface-container-low);
    padding: 20px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.update-item.no-image img {
    display: none;
}

.update-item.no-image .fallback-logo {
    display: block;
}

.news-carousel-item .fallback-logo {
    display: none;
    width: 100%;
    height: 220px;
    object-fit: contain;
    background-color: var(--surface-container-low);
    padding: 20px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.news-carousel-item.no-image img {
    display: none;
}

.news-carousel-item.no-image .fallback-logo {
    display: block;
}

/* Dark Mode for Updates Page */
.dark-mode .updates-list-section {
    background-color: var(--background);
}

.dark-mode .update-item {
    background-color: var(--on-secondary);
}

.dark-mode .update-content h3 {
    color: var(--on-surface);
}

.dark-mode .update-content .update-summary {
    color: var(--on-surface-variant);
}

.dark-mode .update-content .update-meta {
    color: var(--outline);
}

.dark-mode .update-popup-content {
    background-color: var(--surface-container-low);
}

.dark-mode .update-popup-content h2 {
    color: var(--primary);
}

.dark-mode .update-popup-content .popup-meta {
    color: var(--outline);
}

.dark-mode .update-popup-content #popup-details {
    color: var(--on-surface-variant);
}

.news-carousel-section {
    padding: 100px 0;
    background-color: var(--surface-container-low);
    position: relative;
}

.news-carousel {
    margin-top: 50px;
}

.news-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.news-carousel-item {
    flex: 0 0 33.33%; /* Show 3 items at a time */
    padding: 0 15px; /* Spacing between items */
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    /* box-shadow: var(--shadow-md); */
    background-color: var(--on-secondary);
    transition: all 0.3s ease;
}

.news-carousel-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.news-carousel-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.news-overlay {
    padding: 20px;
    text-align: center;
}

.news-overlay h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--on-surface);
    margin-bottom: 10px;
}

.news-overlay p {
    font-size: 15px;
    color: var(--on-surface-variant);
    margin-bottom: 20px;
    line-height: 1.6;
}

.news-carousel .carousel-btn {
    display: block; /* Always show buttons for news carousel */
    background-color: var(--primary);
    color: var(--on-primary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-sm);
}

.news-carousel .carousel-btn:hover {
    background-color: var(--tertiary-container);
    color: var(--on-tertiary-container);
}

.news-carousel .prev-btn {
    left: 20px;
}

.news-carousel .next-btn {
    right: 20px;
}

@media (max-width: 992px) {
    .news-carousel-item {
        flex: 0 0 50%; /* Show 2 items on medium screens */
    }
}

@media (max-width: 768px) {
    .news-carousel-item {
        flex: 0 0 100%; /* Show 1 item on small screens */
    }
    .news-carousel .prev-btn {
        left: 10px;
    }
    .news-carousel .next-btn {
        right: 10px;
    }
}

@media (max-width: 576px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    .news-card h3 {
        font-size: 20px;
    }
    .news-card p {
        font-size: 15px;
    }
    .news-carousel-section {
        padding: 60px 0;
    }
}

/* Showcase Section Styles */
.showcase-section {
    padding: 100px 0;
    background-color: var(--background);
}

.showcase-carousel {
    margin-top: 50px;
}

.showcase-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 20px;
    padding: 0 10px;
}

.showcase-carousel-item {
    flex: 0 0 33.33%; /* Show 3 items at a time */
    box-sizing: border-box;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    background-color: var(--surface);
}

.showcase-carousel-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.showcase-carousel-item img {
    width: 100%;
    height: 400px; /* Fixed height for screenshots */
    object-fit: cover;
    display: block;
    border-radius: var(--radius-lg);
}

.showcase-carousel .carousel-btn {
    display: block; /* Always show buttons for showcase carousel */
    background-color: var(--primary);
    color: var(--on-primary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-sm);
}

.showcase-carousel .carousel-btn:hover {
    background-color: var(--tertiary-container);
    color: var(--on-tertiary-container);
}

.showcase-carousel .prev-btn {
    left: 20px;
}

.showcase-carousel .next-btn {
    right: 20px;
}

@media (max-width: 992px) {
    .showcase-carousel-item {
        flex: 0 0 50%; /* Show 2 items on medium screens */
    }
}

@media (max-width: 768px) {
    .showcase-carousel-item {
        flex: 0 0 100%; /* Show 1 item on small screens */
    }
    .showcase-carousel .prev-btn {
        left: 10px;
    }
    .showcase-carousel .next-btn {
        right: 10px;
    }
    .showcase-carousel-item img {
        height: 300px; /* Adjust height for smaller screens */
    }
}

@media (max-width: 576px) {
    .showcase-section {
        padding: 60px 0;
    }
    .showcase-carousel-item img {
        height: 250px; /* Further adjust height for very small screens */
    }
}

.dark-mode {
  /* Material 3 Dark Theme Inspired Color Palette */
  --primary: #D0BCFF;
  --on-primary: #381E72;
  --primary-container: #4F378B;
  --on-primary-container: #EADDFF;
  --secondary: #CCC2DC;
  --on-secondary: #332D41;
  --secondary-container: #4A4458;
  --on-secondary-container: #E8DEF8;
  --tertiary: #EFB8C8;
  --on-tertiary: #492532;
  --tertiary-container: #ffbed2;
  --on-tertiary-container: #6a3f4c;
  --error: #F2B8B5;
  --on-error: #601410;
  --error-container: #8C1D18;
  --on-error-container: #F9DEDC;
  --background: #1C1B1F;
  --on-background: #e3e1e6;
  --surface: #1C1B1F;
  --on-surface: #E6E1E5;
  --surface-variant: #49454F;
  --on-surface-variant: #CAC4D0;
  --outline: #938F99;
  --shadow: #000000;
  --inverse-surface: #E6E1E5;
  --inverse-on-surface: #313033;
  --inverse-primary: #6750A4;
  --surface-tint: #D0BCFF;
  --ripple: rgba(208, 188, 255, 0.1);
  --surface-hsl: 270, 10%, 10%; /* HSL representation of #1C1B1F */

  /* Material 3 Dark Theme Surface Tones */
  --surface-container-lowest: #0F0D13;
  --surface-container-low: #1C1B1F;
  --surface-container: #211F26;
  --surface-container-high: #2B2930;
  --surface-container-highest: #36343B;

  /* Custom variables mapped to Material 3 Dark Theme */
  --primary-light: var(--primary-container);
  --primary-dark: var(--on-primary);
  --accent: var(--secondary);

  /* Existing variables adjusted for Material 3 Dark Theme */
  --dark: var(--on-background);
  --dark-light: var(--on-surface-variant);
  --light: var(--background);
  --text-dark: var(--on-background);
  --text-light: var(--on-primary);
  --gray: var(--surface-variant);
  --gray-dark: var(--outline);
}

.dark-mode header {
  background-color: rgba(var(--background), 0.855); /* Background with transparency */
}

.dark-mode .feature-card,
.dark-mode .testimonial-card,
.dark-mode .dashboard-preview {
  background-color: var(--on-secondary); /* Using SurfaceContainerLow */
}

.dark-mode .tab-btn {
  background-color: var(--surface-container); /* Using SurfaceContainer */
  color: var(--on-surface);
}

.dark-mode .dashboard-previews {
  background-color: var(--background); /* Using Background */
}

/* Responsive Media Queries */
@media screen and (max-width: 1200px) {
  .hero-text h1 {
    font-size: 44px;
  }

  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
  }
}

@media screen and (max-width: 992px) {
  .hero-content {
    flex-direction: column;
    gap: 40px;
  }

  .hero-text,
  .hero-image {
    flex: 0 0 100%;
    text-align: center;
  }

  .hero-text p {
    margin: 0 auto 20px auto; /* Adjust margin for smaller screens */
  }

  .hero-text .view-controls {
    justify-content: center; /* Center buttons on smaller screens within hero-text */
  }

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

  .hero-image img {
    max-width: 500px;
  }

  .cta-buttons {
    flex-direction: row;
    justify-content: center;
    gap: 15px;
  }
}

@media screen and (max-width: 768px) {
  nav {
    display: none; /* Hide regular navigation on mobile */
  }

  .auth-buttons {
    display: none; /* Hide regular auth buttons on mobile */
  }

  .hamburger-menu-button {
    display: flex; /* Show hamburger button on mobile */
    position: fixed; /* Fixed position */
    right: 20px; /* 20px from right */
    z-index: 1100; /* Ensure it's above other content */
  }

  .header-content {
    padding: 15px 0;
  }

  .hero {
    padding: 50px 30px;
    margin-top: 80px;
  }

  .hero-text h1 {
    font-size: 36px;
  }

  .footer-content {
    grid-template-columns: 1fr; /* Stack footer sections on small screens */
    gap: 30px; /* Adjusted gap for stacked sections */
    text-align: center; /* Center align text in footer sections */
  }

  .footer-section {
    padding-bottom: 20px; /* Add padding between stacked sections */
  }

  .footer-section:last-child {
    border-bottom: none; /* No border for the last section */
  }

  .footer-section h3::after {
    left: 50%; /* Center the underline */
    transform: translateX(-50%);
  }

  .footer-logo {
    justify-content: center; /* Center logo in footer */
  }

  .social-links {
    justify-content: center; /* Center social links */
  }

  .footer-links {
    padding: 0; /* Remove padding from footer links */
  }

  .footer-links li {
    margin-bottom: 10px; /* Adjust margin for stacked links */
  }

  .footer-links a {
    justify-content: center; /* Center align footer links */
  }

  .section-header h2 {
    font-size: 36px;
  }

  .section-header p {
    font-size: 18px;
  }

}

@media screen and (max-width: 576px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    border-radius: var(--radius-md);
    margin: 92px 16px 0 16px;
    padding: 40px 20px;
  }

  .hero-text h1 {
    font-size: 32px;
    margin-bottom: 16px;
  }

  .hero-text p {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .hero-image img {
    max-width: 100%;
  }

  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .feature-card {
    padding: 25px 20px;
  }

  .feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
  }

  .feature-icon i {
    font-size: 28px;
  }

  .feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--primary); /* Keep primary for feature card headings in mobile */
  }

  .section-header h2 {
    font-size: 28px;
  }

  .section-header p {
    font-size: 16px;
  }

  .cta {
    border-radius: var(--radius-md);
    margin: 0 16px 30px 16px;
    padding: 60px 20px;
  }

  .cta h2 {
    font-size: 28px;
    margin-bottom: 16px;
  }

  .cta p {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
    max-width: 200px;
    margin: 0 auto;
  }

  .tabs {
    gap: 10px;
  }

  .tab-btn {
    padding: 10px 20px;
    font-size: 14px;
    width: 100%;
  }

  .footer-logo h2 {
    font-size: 20px;
  }

  .footer-section h3 {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .social-links a {
    width: 40px;
    height: 40px;
  }

  .footer-bottom {
    padding: 15px 0;
    font-size: 14px;
  }
}

@media screen and (max-width: 400px) {
  .logo h1 {
    font-size: 20px;
  }

  .beta-tag {
    font-size: 10px;
    padding: 3px 6px;
  }

  .hero-text h1 {
    font-size: 28px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .features,
  .dashboard-previews {
    padding: 60px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}
