/* =========================
   UNIFIED POPUP BASE
========================= */

.overlay-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);

  opacity: 0;
  pointer-events: none;
  padding: 30px;
  border-radius: 20px;

  transition: 0.3s ease;
  z-index: 999999;

  color: white;
}
.overlay-content a:hover {
  text-shadow: 0 0 8px rgba(255,255,255,0.6);
}

/* ACTIVE */
.overlay-content.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

/* glowing background layer */
.overlay-content::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  z-index: -1;

  filter: blur(12px);
  opacity: 0.8;
}


/* === PROJECTS (already good, keep it) === */


/* === RESEARCH === */
#researchContent {
  transform: translate(-10%, -70%);
}

#researchContent::before {
  background: linear-gradient(45deg, #d8b34e, #513c0d);
}

#researchContent {
  background: rgba(255, 215, 100, 0.15);
  border: 1px solid rgba(255, 215, 100, 0.5);
  
}


/* === PUBLICATIONS === */
#publicationsContent {
  transform: translate(-90%, -10%);
}

#publicationsContent::before {
  background: linear-gradient(45deg, #ff4d4d, #990000);
}

#publicationsContent {
  background: rgba(255, 80, 80, 0.15);
  border: 1px solid rgba(255, 80, 80, 0.5);
}


/* === CONTACT === */
#contactContent {
  transform: translate(-10%, -40%);
}

#contactContent::before {
  background: linear-gradient(45deg, #4effa1, #007a4d);
}

#contactContent {
  background: rgba(100, 255, 180, 0.12);
  border: 1px solid rgba(100, 255, 180, 0.5);
}



/* =========================
   PROJECTS (UNIFIED GLOW)
========================= */

#projectsContent {
  
  text-align: center;
  position: fixed;
 top: 50%;
 left: 50%;
  

  transform: translate(-60%, -50%);

  max-width: 380px;
  width: 90%;
  z-index: 100000;
  color: rgb(255, 255, 255);
  display: flex;              /* ADD */
  justify-content: center;    /* center horizontally */
  align-items: center;        /* center vertically (if needed) */
  gap: 20px;                  /* replaces margin */
  flex-wrap: wrap;    
  pointer-events: auto;       /* responsive */
}


#projectsContent::before {
  content: "";
  position: absolute;

  /* size slightly bigger than content */
  inset: 1px;

  background: rgb(12, 9, 178);
  border-radius: 20px;

  z-index: -1; /* stays behind projects but inside container */

  /* optional: soft shadow for nicer look */
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  opacity: 0.9;
}

/* =========================
   ALL PROJECTS (BASE STYLE)
========================= */
#projectsContent .project {
  display: inline-block;
  width: 260px;
  margin: 1px;
  padding: 20px;
  border-radius: 16px;
  text-align: left;
  position: relative;
  overflow: hidden;

  /* neon base */
  background: rgba(18, 100, 195, 0.85);
  border: 1px solid rgba(0, 140, 255, 0.5);

  transition: 0.3s ease;
}

/* glowing border for ALL */
#projectsContent .project::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  background: linear-gradient(45deg, #00c3ff, #005eff);
  z-index: -1;
  filter: blur(10px);
  opacity: 0.6;
}

/* hover for ALL */
#projectsContent .project:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 0 25px rgba(0, 180, 255, 0.8);
}

/* =========================
   OPTIONAL: small variation (if you still want difference)
========================= */
#projectsContent .project:first-of-type {
  background: rgba(40, 90, 180, 0.75); /* slightly different tone */
}

/* =========================
   TEXT
========================= */
#projectsContent .project h3 { margin-bottom: 10px; }

#projectsContent .project p {
  font-size: 13px;
  opacity: 0.85;
  margin-bottom: 15px;
}

#projectsContent .project a {
  color: #8fd3ff;
  font-size: 13px;
  text-decoration: none;
}

#projectsContent .project a:hover {
  text-decoration: underline;
}


