:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --light-color: #ecf0f1;
  --dark-color: #2c3e50;
  --text-color: #333;
  --text-light: #7f8c8d;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 24px;
}

/* Tablets */
@media (max-width: 1024px) {
  .container {
    max-width: 960px;
    padding-inline: 20px;
  }
}

/* Small tablets & large phones */
@media (max-width: 768px) {
  .container {
    max-width: 100%;
    padding-inline: 16px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .container {
    padding-inline: 12px;
  }
}


/* ===== PRELOADER CONTAINER ===== */
#preloader {
  position: fixed;
  inset: 0;
  background: #0a0a0a;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.8s ease, visibility 0.8s;
}

/* Hide after load */
#preloader.hide {
  opacity: 0;
  visibility: hidden;
}

/* ===== TEXT STYLE ===== */
.loader-text {
  font-size: clamp(1.1rem, 5vw, 2.2rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  color: white;
}

/* Individual letters */
.loader-text span {
  opacity: 0;
  display: inline-block;
  animation: glowReveal 1.5s ease forwards;
}

/* Sequential delay */
.loader-text span:nth-child(n) {
  animation-delay: calc(0.06s * var(--i));
}

/* Glow reveal animation */
@keyframes glowReveal {
  0% {
    opacity: 0;
    transform: translateY(20px);
    text-shadow: 0 0 0px rgba(255,255,255,0);
  }
  60% {
    opacity: 1;
    transform: translateY(0);
    text-shadow: 0 0 12px rgba(255,255,255,0.8);
  }
  100% {
    opacity: 1;
    text-shadow: 0 0 4px rgba(255,255,255,0.3);
  }
}

/* Gentle pulse after reveal */
.loader-text {
  animation: pulse 2.5s infinite ease-in-out 2s;
}

@keyframes pulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}
@media (max-width: 768px) {

  .loader-text {
    font-size: 1.2rem;        /* smaller text */
    letter-spacing: 0.05em;   /* tighter spacing */
    text-align: center;       /* center text */
    line-height: 1.4;
    padding: 0 20px;          /* prevent edge touching */
  }

  #preloader {
    padding: 0 15px;          /* safety spacing */
  }

}


/* Navigation */

#research,
#publica,
#teams,
#collaborators,
#reachus {
  scroll-margin-top: 90px;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  position: fixed;
  width: 100%;
  max-width: 1200px;
  top: 1%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  top: 0;
  padding: 0.7rem 2rem;
  background-color: rgba(255, 255, 255, 0.8);
}

.nav-brand {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  text-decoration: none;
}

.nav-brand-logo img{
    width: 3rem;
    height: 100%;
    margin-right: 10px;
}
.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-right: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--secondary-color);
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--secondary-color);
  transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* Hero Section 
.hero {
  height: 50vh;
  background: linear-gradient(rgba(100, 0, 0, 0.6), rgba(0, 0, 0, 0.4)), url("background.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  margin-top: 0;
}*/
.hero {
  height: 70vh;
  background:
    linear-gradient(rgba(100, 0, 0, 0.8), rgba(0, 0, 0, 0.2)),
    var(--hero-bg);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  margin-top: 0;
  transition: background-image 1s ease-in-out;
}
.hero-content {
  max-width: 1200px;
  padding: 20px 20px;
}

.hero h1 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Info Boxes */
.info-boxes {
  background-color: var(--light-color);
}

.boxes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.info-box {
  padding: 2rem;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.info-box h2 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.info-box ul {
  list-style: none;
}

.info-box li {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.info-box li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.info-box a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s;
}



/* Publications Section */
.selected-publications {
  padding: 4rem 0;
}

.selected-publications h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.publication-item {
  background-color: white;
  margin: 15px auto;
  border-left: 1px solid var(--secondary-color);
  border-radius: 8px;
  padding: 3px 13px;
  transition: transform 0.3s ease;
}

.publication-item:hover {
  transform: translateX(3px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0);
  border-left: 2px solid var(--secondary-color);
}

.publication-item .authors {
  color: dimgray;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.journal {
  font-weight: 400;
  font-size: 0.9rem;
}
.journal ul{
  list-style: none;
  display: flex; 
  padding: 0.5prem 1rem;
}
.journal li{
  margin-right: 0.8rem;
  
}
.journal li a{
    text-decoration: none;
    color: var(--secondary-color);
    font-size: 0.9rem;
}


.view-all {
  text-align: center;
}
.view-all .btn{
  padding: 0.7rem 2rem;
  border: 0px;
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}
.hidden-pub {
    display: none;
  }
.publication-item {
    margin-bottom: 15px;
}





/* Reach Us Section */
.reach-us {
  padding: 2rem 0;
}

.reach-us h2 {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.reach-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.contact-info  p{
    font-size: 0.9rem;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem
}
.contact-info h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
    text-align: center;
}

.contact-info ul {
  list-style: none;
}

.contact-info li {
  margin-bottom: 1.5rem;
    text-align: center;
}

.contact-info strong {
  display: block;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}
.contact-info ul li img{
  width: 100%;
  border-radius: 10px;
}
.map-container {
  border-radius: 8px;
  overflow: hidden;
}

/* Footer */
.footer {
  background-color: var(--dark-color);
  color: white;
  padding: 2rem 0;
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-block;
  background-color: var(--secondary-color);
  color: white;
  padding: 0.2rem 1.1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-outline {
  display: inline-block;
  border: 0px solid var(--secondary-color);
  color: var(--secondary-color);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 12px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background-color: var(--secondary-color);
  color: white;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .hero p {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: white;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    transition: left 0.3s ease;
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .nav-links li {
    margin: 1.5rem 0;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .navbar {
    padding: 1rem;
  }
  
  .nav-brand {
    font-size: 1.5rem;
  }
}






/* Page Transition Effects */
body {
  opacity: 1;
  transition: opacity 0.3s ease;
}

body.fade-out {
  opacity: 0;
}

/* Page Load Animation */
body.loaded .hero-content {
  animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}






/* Filter Controls */
.filter-controls {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.filter-btn {
  padding: 0.5rem 1.5rem;
  background-color: white;
  border: 2px solid var(--secondary-color);
  color: var(--secondary-color);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--secondary-color);
  color: white;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .publications-section {
    padding: 6rem 0 2rem;
  }
  
  .publications-section h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  .year-section {
    padding: 1.5rem;
  }
  
  .publication-item {
    padding: 1.2rem;
  }
}








/* Team Page Styles */
.team_section {
  padding: 4rem 0;
  background-color: #f9f9f9;
}
.team_section .join-us{
    text-align: center;
    font-size: 0.9rem;
}
.heading_container {
  text-align: center;
  margin-bottom: 40px;
}
.container h2{
    text-align: center;
}
.team-card {
  width: 100%;
  margin-bottom: 1rem;
}
.team-flex-container{
    margin: 2.5rem 0;
}

.team-details ul{
  list-style: none;
  margin: 1px 10px;
}

.team-details h5 {
  font-size: 1rem;
  color: #2c3e50;
  margin: 1px 10px;
  font-weight: 600;
}
.team-details h5 span{
  font-size: 1rem;
  color: #2c3e50;
  margin-bottom: 5px;
  font-weight: 300;
}
.team-card h2 {
  font-size: 1.2rem;
  color: #2c3e50;
  margin-bottom: 5px;
  font-weight: 600;
}
.team-card h3{
  font-size: 1.1rem;
  color: var(--secondary-color);
  font-weight: 300;
}
.team-details ul li{
  font-size: 0.9rem;
  color: #2c3e50;
  padding: 0.1rem 0.1rem;
  font-weight: 400;
}
.team-details a {
  font-size: 0.9rem;
  color: #2c3e50;
  text-decoration: none;
  padding: 0px 20px;
  font-weight: 400;
}
.team-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: right;
}

.image-carousel {
  position: relative;
  max-width: 600px;
  border-radius: 10px;
  overflow: hidden;  
}
.carousel-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: auto;
  display: block;        
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.carousel-img.active {
  opacity: 1;
  position: relative;
}





.contact-info {
  margin-bottom: 15px;
}

.contact-info a {
  color: #7f8c8d;
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
  margin-bottom: 5px;
}

.contact-info a:hover {
  color: #3498db;
}

.contact-info i {
  margin-right: 8px;
  width: 20px;
  text-align: center;
}

.btn-profile {
  display: inline-block;
  background-color: #3498db;
  color: white;
  padding: 8px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  width: 100%;
}

.btn-profile:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
}

/* Footer Styles */
.footer_section {
  background-color: #2c3e50;
  color: white;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.footer-brand p {
  color: #bdc3c7;
}

.footer-links h4, .footer-contact h4 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h4::after, .footer-contact h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background-color: #3498db;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #3498db;
}

.footer-contact p {
  color: #bdc3c7;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.footer-contact i {
  margin-right: 10px;
  width: 20px;
  color: #3498db;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .team-img-container {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .heading_container h1 {
    font-size: 2rem;
  }
  
  .heading_container p {
    font-size: 1rem;
  }
  
  .team-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .location-badge {
    margin-top: 10px;
  }
}

@media (max-width: 576px) {
  .team_section {
    padding: 60px 0;
  }
  
  .team-img-container {
    height: 180px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}










.funding {
  padding: 50px 0;
  background: #f7f9fc;
  text-align: center;
}

.funding h2 {
  margin-bottom: 40px;
  color: #2c3e50;
}

.funding-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  align-items: center;
}

.funding-item {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.funding-item img {
  max-width: 160px;
  border-radius: 5px;
  width: 100%;
  height: auto;
  transition: filter 0.3s ease, opacity 0.3s ease;
}


.funding-item:hover {
  transform: translateY(-4px);
}

/* Tablet */
@media (max-width: 900px) {
  .funding-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 480px) {
  .funding-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

