/* -------------------------------------------------
   Elegant modern fonts
   ------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=Nunito:wght@300;400;600&family=Cormorant+Garamond:wght@500&display=swap');

/* -------------------------------------------------
   Global styles
   ------------------------------------------------- */
body {
  margin: 0;
  font-family: "Nunito", sans-serif;
  background: linear-gradient(135deg, #ffeaf1, #f9d3e3, #fce4ec);
  color: #333;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Floating glow background */
#glowBackground {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -2;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

/* Soft ambient glow spots */
body::before,
body::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.3;
  z-index: -1;
}

body::before {
  width: 400px;
  height: 400px;
  background: #ffb6c1;
  top: -100px;
  left: -100px;
}

body::after {
  width: 500px;
  height: 500px;
  background: #eec4e0;
  bottom: -150px;
  right: -150px;
}

/* -------------------------------------------------
   Intro screen
   ------------------------------------------------- */
.intro-screen {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #fce4ec, #f3d1e1);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeOut 3s ease 2s forwards;
}

.intro-screen h1 {
  font-family: "Playfair Display", serif;
  font-size: 3.8rem;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #caa1d3, #7b588b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(155, 120, 170, 0.4);
  opacity: 0;
  animation: fadeInOutText 3s ease forwards;
}

@keyframes fadeInOutText {
  0%   { opacity: 0; transform: translateY(20px); }
  25%, 75% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-20px); }
}

@keyframes fadeOut {
  to { opacity: 0; visibility: hidden; }
}

/* -------------------------------------------------
   Navbar
   ------------------------------------------------- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px; /* more room from edges */
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.logo {
  font-weight: 700;
  font-size: 1.6rem;
  font-family: "Playfair Display", serif;
  color: #8a3b69;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-links li {
  padding: 0 8px; /* breathing room around items */
}

.nav-links a {
  text-decoration: none;
  color: #3c3f58;
  font-weight: 500;
  transition: 0.3s;
  font-size: 1.05rem; /* slightly larger for easier tap */
  line-height: 1.4;
}

.nav-links a:hover {
  color: #e75480;
}

/* -------------------------------------------------
   Hero section
   ------------------------------------------------- */
header.hero {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, #ffe4ec, #ffd7eb);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

header.hero h1 {
  font-size: 2.8rem;
  font-family: "Playfair Display", serif;
  color: #6d365b;
}

header.hero p {
  font-size: 1.2rem;
  color: #4b3869;
}

/* -------------------------------------------------
   Glowing cards
   ------------------------------------------------- */
section.card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  margin: 35px auto;
  padding: 35px;
  border-radius: 22px;
  max-width: 900px;
  box-shadow: 0 0 15px rgba(231, 84, 128, 0.25),
              inset 0 0 25px rgba(231, 84, 128, 0.15);
  border: 1px solid rgba(231, 84, 128, 0.25);
  transition: all 0.4s ease;
  animation: breatheGlow 5s ease-in-out infinite alternate;
}

section.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 40px rgba(231, 84, 128, 0.35),
              inset 0 0 35px rgba(231, 84, 128, 0.25);
}

section.card h2 {
  font-family: "Playfair Display", serif;
  color: #9a4976;
  font-size: 1.8rem;
}

@keyframes breatheGlow {
  0%   { box-shadow: 0 0 15px rgba(231, 84, 128, 0.25); }
  100% { box-shadow: 0 0 40px rgba(231, 84, 128, 0.4); }
}

/* -------------------------------------------------
   Research objectives & bubbles
   ------------------------------------------------- */
.research-objectives {
  text-align: center;
  max-width: 950px;
  margin: 60px auto;
}

.objective-bubble {
  background: radial-gradient(circle at top left, #ffe6ef, #f8cadd);
  border-radius: 50px;
  padding: 25px 30px;
  margin: 20px auto;
  max-width: 800px;
  position: relative;
  box-shadow: 0 0 20px rgba(231, 84, 128, 0.25),
              inset 0 0 30px rgba(231, 84, 128, 0.15);
  border: 1px solid rgba(231, 84, 128, 0.3);
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease-out;
  animation: floatUp 4s ease-in-out infinite alternate;
}

.objective-bubble.visible {
  opacity: 1;
  transform: translateY(0);
}

.objective-bubble:hover {
  transform: scale(1.02);
  box-shadow: 0 0 40px rgba(231, 84, 128, 0.4),
              inset 0 0 25px rgba(231, 84, 128, 0.2);
}

.objective-bubble .number {
  position: absolute;
  top: -15px;
  left: -15px;
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #f48fb1, #f06292);
  color: white;
  border-radius: 50%;
  font-weight: bold;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(240, 98, 146, 0.4);
}

@keyframes floatUp {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

/* -------------------------------------------------
   Image showcase
   ------------------------------------------------- */
.image-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  margin: 50px auto;
  padding: 10px 20px;
  max-width: 1100px;
}

.image-container img {
  width: 260px;
  height: 180px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(231, 84, 128, 0.25);
  transition: transform 0.4s ease, box-shadow 0.3s ease;
}

.image-container img:hover {
  transform: scale(1.08);
  box-shadow: 0 0 35px rgba(231, 84, 128, 0.45),
              inset 0 0 20px rgba(231, 84, 128, 0.25);
}

/* -------------------------------------------------
   Objective section rows
   ------------------------------------------------- */
.objectives-section {
  max-width: 1100px;
  margin: 60px auto;
  padding: 20px;
}

.objective-row {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
  opacity: 0;
  transform: translateX(80px);
  transition: all 1s ease-out;
}

.objective-row.reverse {
  flex-direction: row-reverse;
  transform: translateX(-80px);
}

.objective-row.visible {
  opacity: 1;
  transform: translateX(0);
}

.objective-row img {
  width: 45%;
  border-radius: 20px;
  transition: transform 0.4s ease, box-shadow 0.3s ease;
  box-shadow: 0 8px 25px rgba(231, 84, 128, 0.25);
}

.objective-row img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 35px rgba(231, 84, 128, 0.45),
              inset 0 0 25px rgba(231, 84, 128, 0.25);
}

.text-content {
  width: 50%;
}

.text-content h3 {
  font-family: "Cormorant Garamond", serif;
  color: #7c4568;
  font-size: 1.7rem;
  letter-spacing: 0.5px;
}

.text-content p {
  font-family: "Nunito", sans-serif;
  color: #4b3e58;
  font-size: 1rem;
  line-height: 1.6;
}

/* -------------------------------------------------
   Contact section
   ------------------------------------------------- */
.contact-section {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 20px;
  max-width: 900px;
  margin: 60px auto;
  padding: 40px;
  text-align: center;
  box-shadow: inset 0 0 25px rgba(240, 98, 146, 0.2),
              0 6px 25px rgba(240, 98, 146, 0.2);
  border: 1px solid rgba(240, 98, 146, 0.25);
}

.contact-section h2 {
  color: #a23d75;
  font-family: "Playfair Display", serif;
  margin-bottom: 20px;
}

.contact-info p {
  font-size: 1rem;
  color: #4b3e58;
  margin: 10px 0;
}

.contact-info i {
  color: #e75480;
  margin-right: 10px;
}

/* -------------------------------------------------
   Footer
   ------------------------------------------------- */
footer.footer {
  background: linear-gradient(135deg, #f48fb1, #f06292);
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 0.95rem;
}

footer.footer strong {
  color: #ffeef5;
}

/* -------------------------------------------------
   Responsive tweaks
   ------------------------------------------------- */
@media (max-width: 768px) {
  .objective-row,
  .objective-row.reverse {
    flex-direction: column;
  }
  .objective-row img,
  .text-content {
    width: 100%;
  }
  .objective-bubble {
    padding: 20px;
  }
}

/* -------------------------------------------------
   Dropdown menu + mobile nav behavior
   ------------------------------------------------- */

/* hamburger toggle button (hidden on desktop) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: #3c3f58;
}

/* dropdown parent */
.dropdown {
  position: relative;
}

/* dropdown toggle button */
.drop-btn {
  background: none;
  border: none;
  color: #3c3f58;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: 0.3s;
  font-size: 1.05rem; /* same sizing as other nav links */
  line-height: 1.4;
}

.drop-btn:hover {
  color: #e75480;
}

/* dropdown menu container */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  min-width: 200px;          /* fuller width */
  display: none;
  flex-direction: column;
  box-shadow: 0 8px 30px rgba(231, 84, 128, 0.35); /* stronger glow */
  z-index: 200;
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu li a {
  display: block;
  padding: 12px 18px; /* larger tap area */
  color: #3c3f58;
  white-space: nowrap;
}

.dropdown-menu li a:hover {
  background: rgba(231, 84, 128, 0.1);
  color: #e75480;
}

/* desktop: show dropdown on hover */
@media (hover: hover) and (pointer: fine) {
  .dropdown:hover .dropdown-menu {
    display: flex;
  }
}

/* mobile layout adjustments */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 10px; /* not flush to edge */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    width: 220px;
    display: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  /* class added by JS to show mobile nav */
  .nav-links.show {
    display: flex;
  }

  /* dropdown inside mobile nav: static positioning */
  .dropdown-menu {
    position: static;
    border: none;
    box-shadow: none;
    background: transparent;
  }

  /* indent submenu items a bit */
  .dropdown-menu li a {
    padding-left: 28px;
  }
}
/* -------------------------------------------------
   make dropdown glow evenly edge-to-edge
   ------------------------------------------------- */
.dropdown-menu {
  /* keep your existing glow but allow it to spread farther */
  box-shadow: 0 0 45px rgba(231, 84, 128, 0.35);
  /* ensure the menu extends enough so the glow isn't cut off */
  padding: 4px 0; /* small vertical padding so shadow has room */
}

/* if the parent nav or page has overflow hidden, ensure dropdown shows */
.navbar,
.nav-links {
  overflow: visible; /* let dropdown’s glow show beyond edges */
}
