@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@1,600&family=Nunito:wght@300;400;600&display=swap');

/* -------------------------------------
   Root Variables
-------------------------------------- */
:root {
  --navy: #1a2340;
  --lavender: #c7c4f5;
  --light-bg: #f9f9fb;
  --soft-gray: #e6e7ee;
  --text-dark: #22223b;    /* slightly softer than pure navy */
  --accent-blue: #5a60ff;
  --accent-lavender: #b2a4ff;
  --light-blue: #dfe8ff;
  --light-purple: #ede0ff;
  --light-gold: #fff7d9;
  --light-maroon: #f8dcdc;
}

/* -------------------------------------
   Base
-------------------------------------- */
body {
  margin: 0;
  font-family: "Nunito", sans-serif;
  background: linear-gradient(135deg, #f5f5ff, #c7c4f5, #aeb9ff, #e3e4ff);
  background-size: 400% 400%;
  animation: lavenderFlow 25s ease-in-out infinite;
  color: var(--text-dark);
  overflow-x: hidden;
  min-height: 100vh;
}

@keyframes lavenderFlow {
  0% { background-position: 0 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

/* -------------------------------------
   Intro Screen
-------------------------------------- */
.intro-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #b2a4ff, #8b8df0, #6574cd);
  z-index: 9999;
  animation: introGlow 4s ease-in-out infinite alternate;
}
.intro-screen h1 {
  font-family: "Playfair Display", serif;
  font-size: 2.8rem;
  color: white;
  text-shadow: 0 0 20px rgba(255,255,255,0.8);
}
@keyframes introGlow {
  0% { filter: brightness(1); }
  50% { filter: brightness(1.3); }
  100% { filter: brightness(1); }
}
.intro-screen.zoom-out {
  animation: zoomOut 2s ease forwards;
}
@keyframes zoomOut {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(3); opacity: 0; }
}

/* -------------------------------------
   Navbar (FIXED + CLEANED)
-------------------------------------- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(10px);
  padding: 15px 25px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(90,96,255,0.15);
}

.logo {
  font-family: "Playfair Display", serif;
  color: var(--navy);
  font-weight: bold;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0 15px;   /* no more right-edgy */
}

/* Both nav link + research button share same style */
.nav-links a,
.drop-btn {
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: var(--text-dark);   /* lighter match for Home and Research */
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  transition: 0.3s;
}

.nav-links a:hover,
.drop-btn:hover {
  color: var(--accent-blue);
  text-shadow: 0 0 8px rgba(90,96,255,0.3);
}

/* optional spacing for arrow */
.drop-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  /* explicitly use same color as Home */
  color: var(--text-dark);
}

/* -------------------------------------
   Dropdown (PERFECT FULL GLOW)
-------------------------------------- */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  /* align submenu to the right edge */
  left: auto;
  right: 0;
  min-width: 100%;     /* Align exactly under "Research" */
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  display: none;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(90,96,255,0.35);
  overflow: hidden;    /* ensures full hover glow */
}

/* --- NEW: ensure straight, aligned items --- */
.dropdown-menu li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dropdown-menu li a {
  display: flex;          /* icon + text in one line */
  align-items: center;    /* vertical center of icon and text */
  gap: 8px;               /* consistent space between icon and text */
  width: 100%;
  padding: 14px 22px;
  color: var(--navy);     /* desktop submenu color */
  transition: .25s;
  white-space: nowrap;    /* keep text on one line */
}
/* ---------------------------------- */

.dropdown-menu li a:hover {
  background: var(--accent-blue);
  color: white;
}

/* Desktop hover */
@media (hover:hover) and (pointer:fine) {
  .dropdown:hover .dropdown-menu {
    display: flex;
  }
}

/* -------------------------------------
   Vision Section
-------------------------------------- */
.vision-section {
  margin: 90px auto;
  max-width: 1000px;
  background: var(--light-blue);
  border-radius: 25px;
  padding: 60px;
  text-align: center;
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s ease;
  box-shadow: 0 0 25px 8px rgba(0,60,255,0.25);
  animation: softPulse 5s ease-in-out infinite alternate;
}
.vision-section.visible {
  opacity: 1;
  transform: translateY(0);
}
.vision-section h2 {
  font-family: "Playfair Display", serif;
  color: #2b3ecf;
}

/* -------------------------------------
   Cards
-------------------------------------- */
.ds-section {
  max-width: 1200px;
  margin: auto;
  padding: 50px 20px;
}

.ds-title {
  text-align: center;
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 40px;
}

@keyframes softPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(255,255,255,0.2); }
  50%      { box-shadow: 0 0 45px rgba(255,255,255,0.6); }
}

.ds-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  border-radius: 25px;
  padding: 35px;
  margin: 50px 0;
  border: 1px solid var(--soft-gray);
  opacity: 0;
  transform: translateY(60px);
  transition: all .9s cubic-bezier(.22,1.28,.43,1.03);
}
.ds-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.ds-card:hover {
  transform: scale(1.02);
  box-shadow: 0 0 40px rgba(0,0,0,0.1);
}

/* Card backgrounds */
#overview-card { background: linear-gradient(145deg,#e2f1ff,#c8e1ff); }
#obj-1         { background: linear-gradient(145deg,#f0e4ff,#e0c9ff); }
#obj-2         { background: linear-gradient(145deg,#fff5da,#ffebb0); }
#obj-3         { background: linear-gradient(145deg,#ffe3e3,#ffcccc); }

/* -------------------------------------
   Card content
-------------------------------------- */
.ds-image { flex: 1 1 45%; display: flex; justify-content: center; }
.ds-image img {
  width: 100%;
  max-height: 320px;
  border-radius: 20px;
  object-fit: cover;
  transition: 0.4s;
}
.ds-image img:hover { transform: scale(1.03); }

.ds-text {
  flex: 1 1 50%;
  padding: 1.5rem;
  border-radius: 20px;
  background: rgba(255,255,255,0.4);
}

/* -------------------------------------
   Research Links
-------------------------------------- */
.research-links {
  text-align: center;
  padding: 80px 20px;
}
.research-title {
  font-family: "Playfair Display", serif;
  color: var(--navy);
}
.links-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}
.link-gold {
  padding: 18px 48px;
  background: var(--lavender);
  color: var(--navy);
  text-decoration: none;
  border-radius: 50px;
  transition: 0.3s;
}
.link-gold:hover {
  background: var(--accent-blue);
  color: #fff;
  box-shadow: 0 0 25px rgba(90,96,255,0.4);
}

/* -------------------------------------
   Footer
-------------------------------------- */
footer {
  background: var(--navy);
  color: #eaeaff;
  text-align: center;
  padding: 50px 15px;
  font-family: "Playfair Display", serif;
}

/* -------------------------------------
   Floating Orbs
-------------------------------------- */
.floating-orbs { position: fixed; inset: 0; z-index: -1; }
.orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle,rgba(255,255,255,0.9),transparent);
  box-shadow: 0 0 40px rgba(255,255,255,0.15);
  animation: floatOrb 18s ease-in-out infinite;
  opacity: 0.7;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(30px,-50px) scale(1.2); }
}

/* -------------------------------------
   Responsive
-------------------------------------- */
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .ds-card {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {

  .nav-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--text-dark);
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.95);
    flex-direction: column;
    width: 220px;
    display: none;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  }

  .nav-links.show { display: flex; }

  .dropdown-menu {
    position: static;
    background: rgba(255,255,255,0.95);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }

  .dropdown-menu li a {
    padding: 12px 18px;
  }
}
