@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  font-family: "Poppins", sans-serif;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
}

body {
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
  color: white;
  min-height: 100vh;
}

header {
  position: fixed; /* Stays at top */
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 9%;
  background: #0f0f23; /* Same color as your home background */
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.6rem 3rem;
  z-index: 100;
  /* Optional: adds a tiny purple glow line at the bottom of the nav */
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.logo {
  font-size: 3rem;
  color: #8b5cf6;
  font-weight: 800;
  cursor: pointer;
  transition: 0.5s ease;
}

.logo:hover {
  transform: scale(1.1);
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1.2rem 0;
}
nav a {
  font-size: 1.8rem;
  color: white;
  margin-left: 4rem;
  font-weight: 500;
  transition: 0.3s ease;
  border-bottom: 3px solid transparent;
}

nav a:hover,
nav a.active {
  color: #8b5cf6;
  border-bottom: 3px solid #8b5cf6;
}

/* --- Services Section --- */
.services {
  padding: 15rem 9% 5rem; /* Added extra top padding so header doesn't cover title */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.heading {
  font-size: clamp(3.6rem, 6vw, 6rem);
  text-align: center;
  margin-bottom: 5rem;
  font-weight: 700;
}

.heading span {
  color: #8b5cf6;
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 3rem;
  width: 100%;
}

.services-box {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(15px);
  padding: 5rem 3rem;
  border-radius: 3rem;
  border: 1px solid rgba(139, 92, 246, 0.1);
  text-align: center;
  transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.services-box:hover {
  border-color: #8b5cf6;
  transform: translateY(-1.5rem) scale(1.03);
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.3);
  background: rgba(139, 92, 246, 0.05);
}

.services-box i {
  font-size: 8rem;
  color: #8b5cf6;
  margin-bottom: 2rem;
  filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.5));
}

.services-box h3 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.services-box p {
  font-size: 1.6rem;
  line-height: 1.8;
  color: #d1d1d1;
  margin-bottom: 2.5rem;
}

/* Button to match home page */
.btn {
  display: inline-block;
  padding: 1.2rem 3rem;
  background-color: transparent;
  border-radius: 4rem;
  font-size: 1.6rem;
  color: #8b5cf6;
  font-weight: 600;
  border: 2px solid #8b5cf6;
  transition: 0.3s ease;
}

.btn:hover {
  background-color: #8b5cf6;
  color: black;
  box-shadow: 0 0 20px #8b5cf6;
}

/* --- Responsive for Mobile --- */
@media (max-width: 995px) {
  header {
    padding: 1.2rem 4%;
    justify-content: center;
  }

  nav {
    width: 100%;
    justify-content: center;
  }

  nav a {
    margin: 0 1rem;
    font-size: 1.4rem;
  }

  .services {
    padding: 12.5rem 5% 4rem;
  }
}

@media (max-width: 768px) {
  .heading {
    font-size: 4.5rem;
  }

  .services-container {
    grid-template-columns: 1fr;
  }

  .services-box {
    padding: 4rem 2.4rem;
  }

  .services-box i {
    font-size: 6.5rem;
  }

  .services-box h3 {
    font-size: 2.4rem;
  }
}
