/* ================================
   GLOBAL RESET
================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

html, body {
  width: 100%;
  height: 100%;
}

/* ================================
   BODY / BACKGROUND
================================ */
body {
  background: url("../img/web-background.png") no-repeat center center fixed;
  background-size: cover;
  color: #eaeaea;
  overflow: hidden;
}

/* ================================
   OVERLAY (FULL VIEWPORT ANCHOR)
================================ */
.overlay {
  position: relative;
  width: 100vw;
  height: 100vh;

  background: rgba(0, 0, 0, 0.55);

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

/* ================================
   PORTAL CONTAINER
   (Controls vertical placement)
================================ */
.portal-container {
  position: relative;
  z-index: 2;

  display: flex;
  justify-content: center;

  /* 🔥 THIS IS THE FIX 🔥
     Scales perfectly on all screens */
  transform: translateY(12vh);
}

/* ================================
   LINKS ROW
================================ */
.links {
  display: flex;
  gap: 40px;
}

/* ================================
   LINK STYLING
================================ */
.links a {
  text-decoration: none;
  color: #ad16db;
  font-weight: bold;
  font-size: 18px;
  padding: 12px 28px;

  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 8px;

  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}

/* Hover glow */
.links a:hover {
  color: #ffffff;
  border-color: #7fd8ff;
  box-shadow: 0 0 15px rgba(127,216,255,0.6);
  transform: translateY(-2px);
}

/* ================================
   ADVANCED CYBER UNDERLINE
================================ */
.portal-link {
  color: #7df9ff;
  position: relative;
  transition: all 0.25s ease;
}

.portal-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 0;
  height: 2px;

  background: linear-gradient(90deg, #00f6ff, #b14cff);
  box-shadow: 0 0 12px #00f6ff;

  transition: width 0.3s ease, left 0.3s ease;
}

.portal-link:hover {
  color: #ffffff;
  text-shadow:
    0 0 6px #00f6ff,
    0 0 12px #b14cff;
}

.portal-link:hover::after {
  width: 100%;
  left: 0;
}

/* ================================
   WEB GLOW ANIMATION LAYER
================================ */
.web-overlay {
  position: absolute;
  inset: 0;

  background:
    radial-gradient(circle at 30% 30%, rgba(0,255,255,0.08), transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(177,76,255,0.06), transparent 45%);

  animation: webPulse 6s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 1;
}

@keyframes webPulse {
  0% {
    opacity: 0.4;
    filter: blur(0px);
  }
  100% {
    opacity: 0.75;
    filter: blur(1.5px);
  }
}

