/* ================= GLOBAL RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: "Poppins", sans-serif;
  background: #0b1220;
  color: #fff;
  overflow-x: hidden;
  text-align: center;
  line-height: 1.6;
}

/* ================= GLASS EFFECT ================= */
.glass {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.15);
}

/* ================= TOPBAR ================= */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  position: sticky;
  top: 0;
  z-index: 200;
  animation: slideDown 0.4s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}

.logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  animation: popIn 0.5s ease;
}

@keyframes popIn {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ================= CENTER ================= */
.container.center {
  margin-top: 40px;
  padding: 0 14px;
}

.container h2 {
  font-size: 28px;
  margin-bottom: 8px;
}

.container p {
  color: #cfcfcf;
  margin-bottom: 25px;
}

/* ================= BUTTONS (MASTER GLASS) ================= */
.nav-btn,
.btn,
.card,
.service-card {
  position: relative;
  overflow: visible;

  background: rgba(255,255,255,0.12) !important;
  backdrop-filter: blur(10px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.18) !important;
  color: #fff !important;

  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.nav-btn:hover,
.btn:hover,
.card:hover,
.service-card:hover {
  transform: translateY(-4px) scale(1.03);
  background: rgba(255,255,255,0.22) !important;
  box-shadow: 0 12px 25px rgba(0,0,0,0.45);
}

/* ================= EDGE GLOW (CLICK) ================= */
.nav-btn::before,
.btn::before,
.card::before,
.service-card::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  filter: blur(16px);
  opacity: 0;
  z-index: -1;
}

/* Default blue glow */
.nav-btn::before,
.btn::before,
.card::before {
  background: linear-gradient(
    135deg,
    rgba(0,120,255,0.9),
    rgba(0,180,255,0.6),
    rgba(0,120,255,0.9)
  );
}

/* Success glow */
.btn.success::before {
  background: linear-gradient(
    135deg,
    rgba(0,200,120,0.9),
    rgba(0,255,160,0.6),
    rgba(0,200,120,0.9)
  );
}

/* Danger / Close glow */
.btn.danger::before,
.close-btn::before {
  background: linear-gradient(
    135deg,
    rgba(255,60,60,0.9),
    rgba(255,120,120,0.6),
    rgba(255,60,60,0.9)
  );
}

/* Glow trigger */
.nav-btn:active::before,
.btn:active::before,
.card:active::before,
.service-card:active::before {
  opacity: 1;
  animation: edgeGlow 0.45s ease-out;
}

@keyframes edgeGlow {
  0% { opacity: 0.9; filter: blur(10px); }
  100% { opacity: 0; filter: blur(26px); }
}

.nav-btn:active,
.btn:active {
  transform: scale(0.94);
}

/* ================= BIG BUTTONS ================= */
.center-btns {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.big {
  font-size: 20px;
  padding: 16px 28px;
  border-radius: 14px;
}

/* ================= GRIDS ================= */
.product-grid,
.service-grid,
.contact-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  padding: 0 12px;
}

.card,
.service-card {
  padding: 18px;
}

/* ================= POPUP ================= */
.overlay {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.65);
  z-index: 500;
}

.overlay-open {
  display: flex;
}

.popup {
  width: 90%;
  max-width: 600px;
  padding: 25px;
  border-radius: 18px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255,255,255,0.2);
}

/* ================= CLOSE BUTTON FIX ================= */
.close-btn {
  margin-top: 28px !important;
  padding: 12px 26px;
  display: inline-block;
}

/* ================= BACKGROUND VIDEO ================= */
#bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.video-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: -1;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {

  body { font-size: 14px; }

  .topbar {
    flex-direction: column;
    gap: 10px;
    padding: 10px;
  }

  .logo {
    width: 48px;
    height: 48px;
  }

  .nav-btn,
  .btn,
  .service-card {
    font-size: 14px;
    padding: 10px 14px;
  }

  .center-btns {
    flex-direction: column;
    gap: 14px;
  }

  .big {
    width: 90%;
    font-size: 18px;
  }

  .product-grid,
  .service-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .popup {
    width: 95%;
    padding: 18px;
  }

  .close-btn {
    margin-top: 22px !important;
  }
}
