/* Basic Reset & Global Styles */
:root {
  --background-dark: #1a1a2e;
  --background-light: #16213e;
  --text-light: #e0e0e0;
  --text-accent: #0f3460;
  --primary-color: #e94560;
  --secondary-color: #533483;
  --border-color: #0f3460;
  --card-background: #0f3460;
  --button-hover: #c73a52;
  --link-hover: #e94560;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--background-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

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

a:hover {
  color: var(--link-hover);
}

ul {
  list-style: none;
}

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

/* Header */
header {
  background-color: var(--background-light);
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--primary-color);
}

.nav-links li {
  display: inline-block;
  margin-left: 30px;
}

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

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

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--background-dark), var(--background-light));
  padding: 100px 0;
  text-align: center;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.hero-section h1 {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-section p {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  color: var(--text-light);
}

.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: #fff;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--button-hover);
  transform: translateY(-2px);
}

/* Section Styling */
section {
  padding: 80px 0;
  text-align: center;
}

section:nth-of-type(even) {
  background-color: var(--background-light);
}

section h2 {
  font-size: 2.8em;
  margin-bottom: 40px;
  color: var(--primary-color);
}

section p {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 30px auto;
}

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.feature-card {
  background-color: var(--card-background);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

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

.feature-card h3 {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: var(--primary-color);
  display: flex;
  align-items: center;
}

.feature-card h3 span {
  margin-right: 10px;
  font-size: 1.2em; /* Adjust icon size */
}

.feature-card p {
  font-size: 1em;
  color: var(--text-light);
  margin-bottom: 0; /* Override section p margin */
}

/* Plans Section */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.plan-card {
  background-color: var(--card-background);
  padding: 40px 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.plan-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.plan-card.featured {
  border: 3px solid var(--primary-color);
  box-shadow: 0 0 20px rgba(233, 69, 96, 0.7);
  transform: scale(1.05);
}

.plan-card.featured:hover {
  transform: translateY(-10px) scale(1.05);
}

.plan-card h3 {
  font-size: 2.2em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.plan-card .price {
  font-size: 3em;
  font-weight: bold;
  color: var(--text-light);
  margin-bottom: 20px;
}

.plan-card .price span {
  font-size: 0.5em;
  font-weight: normal;
  color: var(--text-light);
}

.plan-card ul {
  text-align: left;
  margin-bottom: 30px;
  flex-grow: 1; /* Allows list to take available space */
}

.plan-card ul li {
  margin-bottom: 10px;
  font-size: 1.05em;
  color: var(--text-light);
  display: flex;
  align-items: center;
}

.plan-card ul li::before {
  content: "✅"; /* Checkmark icon */
  margin-right: 10px;
  color: var(--primary-color);
}

.plan-card .btn {
  width: 100%;
  margin-top: auto; /* Pushes button to the bottom */
}

/* Call to Action Section */
.cta-section {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  padding: 80px 0;
  color: #fff;
}

.cta-section h2 {
  color: #fff;
  font-size: 2.5em;
}

.cta-section p {
  color: #eee;
  margin-bottom: 40px;
}

/* Footer */
footer {
  background-color: var(--background-light);
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
  font-size: 0.9em;
  color: var(--text-light);
}

.footer-links {
  margin-top: 20px;
}

.footer-links li {
  display: inline-block;
  margin: 0 15px;
}

.footer-links a {
  color: var(--text-light);
  transition: color 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 992px) {
  .hero-section h1 {
    font-size: 3em;
  }

  .hero-section p {
    font-size: 1.1em;
  }

  section h2 {
    font-size: 2.2em;
  }

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

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    text-align: center;
  }

  .nav-links {
    margin-top: 20px;
  }

  .nav-links li {
    margin: 0 15px;
    display: block;
    margin-bottom: 10px;
  }

  .hero-section {
    padding: 80px 20px;
  }

  .hero-section h1 {
    font-size: 2.5em;
  }

  .hero-section p {
    font-size: 1em;
  }

  .btn {
    padding: 12px 25px;
    font-size: 1em;
  }

  section {
    padding: 60px 0;
  }

  section h2 {
    font-size: 2em;
  }

  .feature-card,
  .plan-card {
    padding: 25px;
  }

  .plan-card.featured {
    transform: scale(1.02); /* Less aggressive scaling on smaller screens */
  }

  .plan-card.featured:hover {
    transform: translateY(-5px) scale(1.02);
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.5em;
  }

  .nav-links li {
    margin: 0 10px;
  }

  .hero-section h1 {
    font-size: 2em;
  }

  .hero-section p {
    font-size: 0.9em;
  }

  .btn {
    width: 90%;
    display: block;
    margin: 0 auto;
  }

  section h2 {
    font-size: 1.8em;
  }

  .features-grid,
  .plans-grid {
    grid-template-columns: 1fr; /* Single column layout */
  }

  .plan-card .price {
    font-size: 2.5em;
  }
}
