@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes glowText {
  0% {
    text-shadow: 0 0 5px rgba(142,240,200,0.3);
  }

  50% {
    text-shadow: 0 0 20px rgba(142,240,200,0.8);
  }

  100% {
    text-shadow: 0 0 5px rgba(142,240,200,0.3);
  }
}


@keyframes blink {
  50% {
    border-color: transparent;
  }
}


body {
  margin: 0;
  font-family: Arial, sans-serif;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  background: #f5f7fb;
  padding-top: 60px; 
}

header {
  background: linear-gradient(135deg,#0b1f3a,#0c6c8f,#1f9c72);
  color: white;
  padding: 22px 60px;
  position: fixed;
  display: flex;
  justify-content: space-between;
  align-items: center;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}

.card,
.member-card,
.publication-card,
.sidebar button {

  transition: all 0.4s ease;
}

.card:hover,
.member-card:hover,
.publication-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.sidebar button:hover {
  transform: translateX(8px);
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

nav a {
  position: relative;
  transition: 0.3s;
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #8ef0c8;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

.button {
  transition: all 0.4s ease;
}

nav a {
  color: white;
  margin-left: 20px;
  text-decoration: none;
}

.button:hover {
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(142,240,200,0.6);
}

.auto-iframe{
    width:100%;
    border:none;
    overflow:hidden;
    border-radius:16px;
    margin:40px 0;
}

.research-content,
.plot-content {
  animation: fadeInUp 0.7s ease;
}

iframe {
  animation: fadeInUp 1s ease;
}

.hero {
      min-height: 90vh;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 40px 8%;
      background: linear-gradient(to right, rgba(11,31,58,0.95), rgba(12,108,143,0.85)), url('../images/Background.png') center/cover;
      color: white;
      gap: 50px;
      flex-wrap: wrap;
    }
.hero-text {
      flex: 1;
      min-width: 320px;
    }
.hero-text p {
    font-size: 1.5rem;
    max-width: 1100px;
    margin-bottom: 30px;
    opacity: 0.95;
  }

.button {
  display: inline-block;
  padding: 14px 28px;
  background: #8ef0c8;
  color: #0b1f3a;
  border-radius: 30px;
  text-decoration: none;
  margin-top: 20px;
}

.overview {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
  gap: 25px;
  padding: 80px;
}

.card {
  background: white;
  padding: 30px;
  border-radius: 24px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.dashboard-layout {
  display: flex;
  min-height: calc(100vh - 80px);
}


.sidebar {

  width: clamp(200px, 25vw, 350px); 
  flex-shrink: 0; /* Prevents the main content from crushing the sidebar */
  background: #0b1f3a;
  padding: 30px;
  top: 80px;
  color: white;
  position: sticky;
  height: calc(100vh - 100px);
  overflow-y: auto;
}

.dashboard-layout {
  display: flex;
  align-items: flex-start; /* CRITICAL: Allows the sticky sidebar to work in flexbox */
  /* Your other layout styles */
}

.sidebar button {
  width: 100%;
  margin-bottom: 16px;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: #123456;
  color: white;
  cursor: pointer;
  font-size: 16px;
  position: relative;
}

.sidebar button:hover {
  background: #1f9c72;
}

/* Target the heading inside the sidebar */
.sidebar h2 {
  /* clamp(minimum, preferred viewport width, maximum) */
  font-size: clamp(1.2rem, 2vw, 1.5rem); 
  margin-bottom: 20px;
}

/* Target the buttons inside the sidebar */
.sidebar button {
  /* Scales the text smoothly between roughly 14px and 16px */
  font-size: clamp(0.875rem, 1.5vw, 1rem); 
  
  /* Critical: Allows long button text like "Computational Neuroscience" 
     to wrap to the next line instead of spilling out of the sidebar */
  white-space: normal; 
  line-height: 1.4; 
  
  /* Your existing button styles (padding, background, border, etc.) should stay here */
}

iframe {
  width: 100%;
  /* Removed the fixed 3600px height */
  min-height: 500px; /* Optional: provides a sensible default before JS loads */
  border: none;
  border-radius: 20px;
  background: white;
}

.content-panel {
  flex: 1;
  padding: 40px;
  background: #ffffff;
}




.research-content,
.plot-content {
  display: none;
}

.active-content {
  display: block;
}



.page-section {
  padding: 80px;
}

.page-container {
  max-width: 1200px;
  margin: auto;
}

.page-container h1,
.content-panel h1 {
  animation: fadeInUp 1s ease;
  border-right: none;
  overflow: visible;
  white-space: normal;
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
  gap: 25px;
  margin-top: 40px;
}


.team-grid {
  display: flex;
  flex-wrap: wrap; /* Changed from nowrap to wrap */
  justify-content: center;
  gap: 30px;
  padding: 10px;
}

.member-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  text-align: center;
  padding-bottom: 20px;
}

.member-card img {
  width: 100%; /* Allows the image to fill the card */
  max-width: 320px; /* Keeps the original maximum size */
  height: 520px;
  object-fit: cover;
}

.publication-card {
  background: white;
  padding: 30px;
  margin-top: 20px;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.contact-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
  gap: 30px;
}

.contact-form {
  background: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px;
  margin-bottom: 18px;
  border-radius: 10px;
  border: 1px solid #ccc;
}

.contact-form button {
  padding: 14px 24px;
  border: none;
  border-radius: 10px;
  background: #1f9c72;
  color: white;
  cursor: pointer;
}


.btn-secondary:hover {
  background: white;
  color: #0b1f3a;
}

.hero-card {
  flex: 1;
  min-width: 300px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 35px;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.hero h1 {
  font-size: 4rem;
  animation: fadeInUp 1.2s ease;
  animation-delay: 0.2s;
  animation-fill-mode: both;
}

.hero p {
  animation: fadeInUp 1.5s ease;
  animation-delay: 0.5s;
  animation-fill-mode: both;
}

.hero-card h3 {
  margin-bottom: 20px;
  margin-left: 50px;
  font-size: 1.5rem;
  text-align: left;
}

.hero-card ul {
  list-style: none;
}

.hero-card ul li {
  margin-bottom: 16px;
  margin-left: 10px;
  padding-left: 24px;
  position: relative;
  text-align: left;
}

.hero-card ul li::before {
  content: '●';
  position: absolute;
  left: 0;
  color: #8ef0c8;
}
.hero-text h1 {
  font-size: 4rem;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-text h1 span {
  color: #8ef0c8;
}

html {
  overflow-y: scroll;
}

section {
  padding: 90px 8%;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
  }

  .section-title h2 {
    font-size: 4.0rem;
    color: #0b1f3a;
    margin-bottom: 10px;
  }

  .section-title p {
    color: #5b6777;
    font-size: 1.4rem;
    max-width: 700px;
    margin: auto;
  }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.card {
  background: white;
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transition: 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
}

.card h3 {
  margin-bottom: 10px;
  color: #0b1f3a;
  font-size: 1.8rem;
}


.research {
  background: linear-gradient(135deg, #eff7ff, #eefdf5);
}

.research-item {
  padding: 28px;
  border-radius: 22px;
  background: white;
  box-shadow: 0 6px 18px rgba(0,0,0,0.07);
}

.research-item h4 {
  margin-bottom: 12px;
  color: #0c6c8f;
  font-size: 1.3rem;
}

.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.member {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.member img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.member-content {
  padding: 24px;
}

.member-content h4 {
  color: #0b1f3a;
  margin-bottom: 6px;
}

.stats {
  background: linear-gradient(135deg, #0b1f3a, #0c6c8f);
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 25px;
  text-align: center;
}

.stat-box h3 {
  font-size: 3rem;
  color: #8ef0c8;
}

.contact {
  background: white;
  border-radius: 28px;
  padding: 50px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}



.contact form textarea {
  resize: vertical;
  min-height: 140px;
}
.main-wrapper{
    margin-left:280px;
    width:calc(100% - 280px);
    min-height:100vh;
    display:flex;
    flex-direction:column;
}

footer {
  margin-top: auto; /* Forces the footer to the bottom of its flex container */
}

.content{
    flex:1;
    padding:40px;
    box-sizing:border-box;
}

.logo {
  font-size: 2rem;
  font-weight: bold;
  animation: glowText 3s infinite;
}

.logo span {
  color: #8ef0c8;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 28px;
}

nav ul li a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: 0.3s;
}

nav ul li a:hover {
  color: #8ef0c8;
}



.hero-text {
  flex: 1;
  min-width: 320px;
}


.hero-buttons {
      display: flex;
      gap: 18px;
      flex-wrap: wrap;
    }

.btn {
  padding: 14px 28px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
  display: inline-block;
}

.btn-primary {
  background: #8ef0c8;
  color: #083344;
}

.btn-primary:hover {
  transform: translateY(-3px);
  background: #b9ffe3;
}

.btn-secondary {
  border: 2px solid white;
  color: white;
}

.btn-secondary:hover {
  background: white;
  color: #0b1f3a;
}


section {
  padding: 90px 8%;
}



.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}



.research {
  background: linear-gradient(135deg, #eff7ff, #eefdf5);
}

.research-item {
  padding: 28px;
  border-radius: 22px;
  background: white;
  box-shadow: 0 6px 18px rgba(0,0,0,0.07);
}

.research-item h4 {
  margin-bottom: 12px;
  color: #0c6c8f;
  font-size: 1.3rem;
}

.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.member {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.member img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.member-content {
  padding: 24px;
}

.member-content h4 {
  color: #0b1f3a;
  margin-bottom: 6px;
}

.stats {
  background: linear-gradient(135deg, #0b1f3a, #0c6c8f);
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 25px;
  text-align: center;
}

.stat-box h3 {
  font-size: 3rem;
  color: #8ef0c8;
}

.contact {
  background: white;
  border-radius: 28px;
  padding: 50px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}


.contact form input,
.contact form textarea {
  width: 100%;
  padding: 14px;
  margin-bottom: 18px;
  border-radius: 14px;
  border: 1px solid #d6dbe3;
  font-size: 1rem;
    }

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(320px,1fr));
  gap: 30px;
  margin-top: 40px;
}

.news-card {
  background: white;
  padding: 30px;
  border-radius: 24px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.news-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg,#1f9c72,#0c6c8f);
}

.news-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.featured-news {
  grid-column: span 2;
  background: linear-gradient(135deg,#0b1f3a,#0c6c8f);
  color: white;
}

.news-date {
  display: inline-block;
  background: rgba(31,156,114,0.15);
  color: #1f9c72;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 14px;
  margin-bottom: 20px;
  font-weight: bold;
}

.featured-news .news-date {
  background: rgba(255,255,255,0.2);
  color: #8ef0c8;
}

.news-card h2 {
  margin-bottom: 16px;
  line-height: 1.4;
}

.news-button {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  border-radius: 30px;
  background: #8ef0c8;
  color: #0b1f3a;
  text-decoration: none;
  transition: all 0.3s ease;
}

.news-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 18px rgba(142,240,200,0.6);
}

.news-card {
  animation: fadeInUp 1s ease;
}

/* Team Member Links */

.member-links {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.member-links a {
  padding: 10px 18px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;

  background: linear-gradient(135deg,#10b981,#06b6d4);
  color: white;

  transition: all 0.4s ease;
}

.member-links a:hover {
  transform: translateY(-3px) scale(1.05);

  box-shadow:
    0 0 20px rgba(16,185,129,0.4);
}
@media(max-width:900px) {

  .featured-news {
    grid-column: span 1;
  }
}


    
@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 2.8rem;
  }

  nav {
    flex-direction: column;
    gap: 16px;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
}
