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

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

body {
  font-family: 'Poppins', sans-serif;
  background-color: #000;
  color: #c0c0c0;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* ============================
   NAVBAR
============================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(12px);
  z-index: 1000;
  transition: top 0.4s ease, background 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 30px rgba(176, 67, 255, 0.08);
}

.nav-container {
  width: 90%;
  max-width: 1250px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-weight: 600;
  color: #b043ff;
  font-size: 1.6rem;
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(176, 67, 255, 0.5);
}

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

.nav-links a {
  color: #c0c0c0;
  text-decoration: none;
  font-size: 1.05rem;
  transition: color 0.3s, text-shadow 0.3s;
}

.nav-links a:hover {
  color: #b043ff;
  text-shadow: 0 0 10px #b043ff;
}

/* ============================
   HERO SECTION
============================ */
.hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  text-align: center;
  padding: 0 1rem;
  overflow: hidden;
}

.hero-content {
  z-index: 1;
  max-width: 700px;
  animation: fadeSlide 1.4s ease-out;
}

#particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero h1 {
  font-size: 3rem;
  color: #fff;
  text-shadow: 0 0 25px #b043ff;
  line-height: 1.3;
}

.hero p {
  font-size: 1.2rem;
  margin: 1rem 0 2rem;
  color: #d8d8d8;
}

.btn {
  background: linear-gradient(90deg, #b043ff, #7d3cff);
  color: #fff;
  padding: 0.8rem 1.8rem;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  text-decoration: none;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.btn:hover {
  box-shadow: 0 0 25px #b043ff;
  transform: translateY(-3px);
}

/* ============================
   SECTIONS
============================ */
section {
  padding: 6rem 10%;
  text-align: center;
}

h2 {
  color: #fff;
  font-weight: 600;
  text-shadow: 0 0 10px #b043ff;
  margin-bottom: 1.5rem;
}

p {
  line-height: 1.6;
  color: #cfcfcf;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.8rem;
  margin-top: 2.5rem;
}

.service-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 2rem;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(176, 67, 255, 0.08);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px #b043ff;
}

ul {
  list-style: none;
  padding: 0;
}

ul li {
  margin: 1rem 0;
  font-weight: 300;
}

/* ============================
   CONTACT FORM
============================ */
form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 500px;
  margin: auto;
}

input,
textarea {
  width: 100%;
  padding: 0.8rem;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  resize: none;
}

textarea {
  height: 120px;
}

input::placeholder,
textarea::placeholder {
  color: #aaa;
}

/* ============================
   FOOTER
============================ */
footer {
  background: #111;
  text-align: center;
  padding: 1.2rem;
  font-size: 0.9rem;
  color: #888;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ============================
   FADE-IN ANIMATIONS
============================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================
   RESPONSIVE
============================ */
@media (max-width: 900px) {
  .hero h1 {
    font-size: 2.3rem;
  }
  .nav-links {
    gap: 1.4rem;
  }
}

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

  .nav-links {
    display: none;
  }

  section {
    padding: 4rem 6%;
  }
}
/* ====== Mobile Navigation (Fancy Animated) ====== */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1001;
}

.menu-toggle span {
  width: 26px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Initial hidden state for nav-links */
.nav-links {
  display: flex;
  gap: 20px;
  transition: all 0.4s ease-in-out;
}

/* ====== Mobile view ====== */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.9);
    padding: 20px 0;
    gap: 15px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
  }

  .nav-links a {
    color: white;
    font-size: 1.2rem;
    transition: color 0.3s ease;
  }

  /* Visible state when active */
  .nav-links.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  /* Animate the hamburger to an X */
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}
