/* ===================== GLOBAL RESET ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===================== HTML & BODY ===================== */
html {
  scroll-snap-type: y mandatory;   /* Enable vertical scroll snapping */
  scroll-behavior: smooth;         /* Smooth scrolling */
  overflow-y: scroll;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: radial-gradient(circle at center, #000000 0%, #050811 60%, #0a0e1f 100%);
  background-attachment: fixed;
  color: #ffffff;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
}

/* Background overlay image */
body::before {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
  width: 160vw;
  height: 160vh;
  background-image: url(Images/Background.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.4;
  border-radius: 20px;
}

/* Ensure content sits above background */
.navbar,
.hero,
.pricing,
.features,
.contact {
  position: relative;
  z-index: 1;
}

/* ===================== NAVIGATION ===================== */
.navbar {
  padding: 1rem 2rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background: linear-gradient(to bottom, rgba(10,14,39,0.95) 0%, rgba(10,14,39,0.8) 50%, transparent 100%);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(77,86,128,0.25);
}

.nav-container {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  display: block;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: 200ms ease-in-out;
}

.nav-links a:hover {
  color: #fff;
  background: rgba(74,84,128,0.15);
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-block;
  padding: 0.9rem 1.4rem;
  text-decoration: none;
  font-weight: 600;
  font-size: medium;
  transition: 200ms ease-in-out;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-1);
}
.btn-primary:hover {
  background: var(--primary-700);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: var(--border-strong);
  border-radius: 5px;
}
.btn-secondary:hover {
  background: rgba(74,84,128,0.2);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-outline:hover {
  background: rgba(74,84,128,0.2);
}

/* ===================== HERO SECTION ===================== */
.hero {
  padding: 200px 2rem;
  text-align: center;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
}

.hero-content {
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}

.hero h1 {
  font-size: 7rem;
  font-weight: 700;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.hero .highlight {
  background: linear-gradient(to bottom, #ffffff 0%, #4a5568 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .subtitle {
  font-size: 2.5rem;
  color: #a8b2d1;
  margin-bottom: 1.5rem;
}

.hero .description {
  font-size: 1.3rem;
  color: #8892b8;
}

/* ===================== PRICING SECTION ===================== */
.pricing {
  padding: 120px 2rem;
  text-align: center;
  scroll-snap-align: start;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pricing h2 {
  font-size: 3rem;
}

.pricing-container {
  max-width: 1500px;
  width: 100%;
  margin: 100px auto;
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
}

.pricing-card {
  background: rgba(26, 31, 58, 0.4);
  border: 1px solid #2d3561;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s;
  backdrop-filter: blur(2px);
}

.pricing-card:hover {
  border-color: #4a5480;
}

.pricing-card.featured {
  border-color: #4a5480;
  background: rgba(45, 53, 97, 0.4);
  transform: perspective(1000px) rotateY(0deg) scale(1.05);
}
.pricing-card.featured:hover {
  transform: scale(1.1);
}

.pricing-card h3 {
  font-size: 2.2rem;
  height: 100px;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.pricing-card ul {
  list-style: none;
  margin-bottom: 2rem;
  text-align: left;
  flex-grow: 1;
}

.pricing-card ul li {
  padding: 0.5rem 0;
  color: #a8b2d1;
  position: relative;
  padding-left: 1.5rem;
}
.pricing-card ul li:before {
  content: "•";
  position: absolute;
  left: 0;
}

.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 700;
  margin-top: auto;
}
.pricing-card .price span {
  font-size: 1rem;
  color: #8892b8;
}

/* ===================== FEATURES SECTION ===================== */
.features {
  padding: 80px 2rem;
  scroll-snap-align: start;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.features h2 {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 5rem;
}

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

.btn-link {
  color: white;
}

.feature-box {
  background: rgba(26, 31, 58, 0.4);
  border: 1px solid #2d3561;
  border-radius: 15px;
  padding: 2rem;
  transition: transform 0.3s, border-color 0.3s;
  backdrop-filter: blur(2px);
}

.feature-box:hover {
  transform: translateY(-5px);
  border-color: #4a5480;
}

.feature-box h4 {
  font-size: 1.3rem;
  color: #ffffff;
}

.feature-box p {
  color: #a8b2d1;
  font-size: 0.95rem;
}

.example-btn {
  text-align: center;
  margin-top: 3rem;

}

.example-btn a {
  background: transparent;
  border: 2px solid #4a5480;
  color: #ffffff;
  padding: 1rem 3rem;
  font-size: 1.1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: 250ms ease-in-out;
}
.example-btn a:hover {
  background: #2d3561;
  transform: scale(1.05);
}

/* Feature header with icon */
.feature-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.feature-icon { 
  width: 40px; /* small size */ 
  height: 40px; 
  object-fit: contain;}
/* ===================== CONTACT SECTION ===================== */
.contact {
  padding: 10px 2rem 20px;
  background: rgba(10, 14, 39, 0.8);
  scroll-snap-align: start;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr; /* Two-column layout */
  gap: 4rem;
  align-items: start;
}

/* Contact Info */
.contact-info h2 {
  font-size: 3rem;
  margin-bottom: 2rem;
  letter-spacing: 0.2rem;
}

.contact-info p {
  color: #a8b2d1;
  line-height: 1.8;
}

/* Contact Form */
.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Two inputs side by side */
  gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(74, 84, 128, 0.2);
  border: 1.2px solid #343c60;
  border-radius: 8px;
  color: #ffffff;
  font-size: 1rem;
  font-family: inherit;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #8892b8;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #6b7aaa;
}

/* Submit Button */
.contact-form button {
  background: #3d4a86;
  border: none;
  color: #ffffff;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: 250ms ease-in-out;
  filter: drop-shadow(0 0 1px rgb(166, 147, 255));
}

.contact-form button:hover {
  background: #272858;
  transform: scale(1.05);
}

/* ===================== FEATURES GRID ===================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Default: 3 columns */
  gap: 2rem;
}

/* ===================== FOOTER ===================== */
.footer {
  padding: 40px 2rem 80px;
  background: rgba(0, 0, 0);
}

.footer-container {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr; /* Two-column layout */
  gap: 2rem;
  align-items: start;
}

.footer-title {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

.footer-links a:hover {
  color: #fff;
  border-color: var(--border-strong);
}

/* ===================== MEDIA QUERIES ===================== */

/* Medium screens (769px–1200px) */
@media (max-width: 1200px) and (min-width: 769px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr); /* Switch to 2 columns */
  }

  /* Center the last box under the 2×4 grid */
  .features-grid > :last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: 60%; /* Optional: makes it look cleaner */
  }
}

/* Small screens (≤768px) */
@media (max-width: 768px) {
  html {
    scroll-snap-type: none; /* Disable scroll snapping */
  }

  /* Hero text scaling */
  .hero h1 {
    font-size: 2.5rem;
  }

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

  /* Background image scaling */
  body::before {
    width: 300px;
    height: auto;
  }

  /* Pricing cards stack vertically */
  .pricing-container {
    flex-direction: column;
    align-items: center;
  }

  .pricing-card {
    transform: none !important;
    max-width: 100%;
  }

  /* Contact form single-column layout */
  .contact-container {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* Navigation spacing */
  .nav-links {
    gap: 1rem;
  }

  /* Features grid single-column */
  .features-grid {
    grid-template-columns: 1fr !important;
  }

  .features-grid > * {
    width: 100%;
    justify-self: stretch;
  }
}
