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

/* BODY */
body {
  font-family: 'Poppins', sans-serif;
  background: #0f172a;
  color: #fff;
  overflow-x: hidden;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;

  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

/* LOGO */
.logo {
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;

  background: linear-gradient(90deg, #38bdf8, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* MENU */
.menu a {
  margin-left: 25px;
  text-decoration: none;
  color: white;
  font-size: 14px;
  position: relative;
}

/* HOVER EFFECT */
.menu a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: #38bdf8;
  transition: 0.3s;
}

.menu a:hover::after {
  width: 100%;
}


/* BACKGROUND CANVAS */
#network {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* HERO SECTION */
.hero {
  text-align: center;
  padding: 100px 20px 60px;
}

.main-title {
  font-size: 50px;
  font-weight: 700;
  background: linear-gradient(90deg, #38bdf8, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  margin-top: 10px;
  opacity: 0.8;
  font-size: 16px;
}

/* SERVICES SECTION */
.services {
  padding: 40px 20px 80px;
  text-align: center;
}

.section-title {
  font-size: 30px;
  margin-bottom: 30px;
}

/* GRID LAYOUT */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 25px;
  max-width: 1000px;
  margin: auto;
}

/* CARD DESIGN */
.card {
  position: relative;
  padding: 30px;
  border-radius: 15px;
  cursor: pointer;
  overflow: hidden;

  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);

  transition: all 0.3s ease;
}

/* HOVER EFFECT */
.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.6);
}

/* CURSOR GLOW EFFECT */
.card::before {
  content: "";
  position: absolute;
  top: var(--y);
  left: var(--x);
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(56,189,248,0.3), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover::before {
  opacity: 1;
}

/* BOX (for other pages reuse) */
.box {
  position: relative;
  padding: 30px;
  border-radius: 15px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
}

/* SOCIAL CONTAINER - HORIZONTAL */
.socials {
  position: fixed;
  bottom: 20px;
  right: 20px;

  display: flex;
  flex-direction: row; /* horizontal */
  gap: 12px;

  z-index: 999;
}

/* ICON BUTTON */
.socials a {
  width: 48px;
  height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  font-size: 18px;
  color: white;

  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);

  backdrop-filter: blur(10px);

  transition: all 0.3s ease;
}

/* HOVER EFFECT */
.socials a:hover {
  transform: translateY(-6px) scale(1.1);
  background: rgba(56,189,248,0.6);
  box-shadow: 0 0 20px rgba(56,189,248,0.8);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .main-title {
    font-size: 36px;
  }

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

.home-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.home-card {
  padding: 30px;
  text-align: center;
  border-radius: 20px;
  cursor: pointer;
  transition: 0.3s;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 18px;
  font-weight: 600;
}

.home-card:hover {
 transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(56,189,248,0.3);
}

/* SAME EFFECT AS M365 */
.home-card.active {
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  color: white;
  box-shadow: 
    0 0 20px rgba(56,189,248,0.6),
    0 0 40px rgba(99,102,241,0.5);
  transform: scale(1.02);
}


/* MOBILE RESPONSIVE */
@media (max-width: 768px) {

  .navbar {
    flex-direction: column;
    padding: 10px;
  }

  .menu {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .m365-container {
    padding: 15px;
  }

  .m365-card {
    width: 100%;
    margin-bottom: 15px;
  }

  .m365-details {
    padding: 15px;
  }

  .page-title {
    font-size: 22px;
    text-align: center;
  }

  .socials {
    right: 10px;
    bottom: 10px;
  }

}

/* POPUP BACKGROUND */
.popup {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
}

/* POPUP BOX */
.popup-content {
  background: #0b0f1a;
  color: #fff;
  margin: 10% auto;
  padding: 25px;
  width: 90%;
  max-width: 400px;
  border-radius: 10px;
  text-align: left;
  position: relative;
}

/* CLOSE BUTTON */
.close-btn {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 22px;
  cursor: pointer;
}

