html, body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}
body {
  min-height: 100vh;
  width: 100%;
  margin: 0;
  font-family: 'Montserrat', 'Bree Serif', serif;
  background: #ffffff;
  background-attachment: fixed;
  transition: background 0.5s;
}
@font-face {
  font-family: 'Nebulosa Stencil';
  src: url('fonts/NebulosaStencil.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Nebulosa Solid';
  src: url('fonts/NebulosaSolid.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
body.dark-theme {
  background: #242323;
  background-attachment: fixed;
  transition: background 0.5s;
}

#splash-screen {
  position: fixed;
  z-index: 9999;
  background: #222;
  width: 100vw;
  height: 100vh;
  top: 0; left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s;
  opacity: 1;
}
#splash-screen.fade-out {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s;
}
.splash-text {
  font-size: 2.5rem;
  position: relative;
  color: #fff;
  background: linear-gradient(90deg, #fff 10%, #ffd700 40%, #fff 60%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3.5s linear forwards;
}
.splash-logo {
  width:40px; 
  margin-bottom:24px;
  animation: rotateZoom 4s ease forwards;
}
@keyframes shimmer {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 100% 0;
  }
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}


@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.fade-out {
  animation: fadeOut 1s forwards;
}


@keyframes rotateZoom {
  0% { transform: rotate(0deg) scale(1); }
  100% { transform: rotate(360deg) scale(1.5); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

body.dark-theme { color: #eee; }
body.dark-theme .navbar { background: black; color: white; }
body.dark-theme .dropdown-content { background: #333; }
body.dark-theme .footer { background: #222; color: #ccc; }
body.light-theme {color: black; }
body.light-theme .navbar { background: white !important; color: black !important; }
body.light-theme .dropdown-content { background: white; }
body.light-theme .footer { background: white; color: black; }

@media (max-width: 768px) {
  .hero-text { font-size: 2rem; }
  .navbar-right { flex-direction: column; display: none; }
  .navbar-right.show { display: flex; background: #111; }
}

.dropdown { position: relative; }
.dropdown-content {
  display: none; position: absolute; top: 100%; left: 0;
  background-color: #222; min-width: 160px; box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}
.dropdown:hover .dropdown-content { display: block; }
.dropdown-content a {
  color: #fff; padding: 12px 16px; text-decoration: none; display: block;
}
.dropdown-content a:hover { background-color: #555; }


.theme-toggle { cursor: pointer; font-size: 1.5rem; }

.hero {
  position: relative; height: 100vh; overflow: hidden;
}
.hero-text {
  position: absolute; top: 40%; left: 10%;
  color: white; font-size: 3rem;
}
.animate-text {
  animation: slideIn 2s ease;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  z-index: 1000;
  flex-wrap: wrap;
  height: 80px;
  box-sizing: border-box;
  background: white;
  color: black;
}
.navbar-left {
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  width: 400px;
  height: 60px;
  overflow: hidden;
}

.navbar-right a:hover {
  background: #555; border-radius: 5px; padding: 8px;
  color: #ffd700;
}
.navbar-right a,
.navbar-right .dropbtn {
  color: #23272f;
  transition: color 0.4s;
}
.toggle-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.toggle-block {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
}

.toggle-block.active {
  opacity: 1;
}

.profile-block img,
.iitm-block img {
  height: 60px;
  width: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.prof-name {
  font-family: 'Bree Serif', serif;
  font-size: 1.3rem;
  white-space: nowrap;
}

.iitm-block {
  flex-direction: row;
}

.iit-text {
  display: flex;
  flex-direction: column;
}

.iit-heading, .dept-name {
  font-family: 'Bree Serif', serif;
  margin: 0;
  font-size: 0.87rem;
  line-height: 1.2;
  white-space: nowrap;
  color: #23272f;
  transition: color 0.4s;
}

body.dark-theme .navbar-right a,
body.dark-theme .navbar-right .dropbtn {
  color: #fff;
}

body.dark-theme .iit-heading,
body.dark-theme .dept-name {
  color: #fff;
}

.navbar-right {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.navbar-right a,
.navbar-right .dropbtn {
  text-decoration: none;
  font-size: 1.05rem;
  transition: color 0.3s;
}


.hamburger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
}

.content {
  width: 100vw;
  max-width: none;
  margin: 0;
  padding: 100px 20px 20px 20px;
  box-sizing: border-box;
}


@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .navbar-right {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: white;
    color:black;
    position: absolute;
    top: 80px;
    left: 0;
    padding: 10px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  }

  .navbar-right.show {
    display: flex;
  }

  .navbar-right a {
    padding: 12px 20px;
    border-top: 1px solid #ffffff33;
  }
  .navbar-left {
    width: 250px;
  }

  .prof-name, .iit-heading, .dept-name {
    font-size: 0.85rem;
  }

  .profile-block img,
  .iitlogo {
    height: 50px;
    width: 50px;
  }
}
.footer {
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  width: 100%;
}

.dropdown-content{
  background: transparent;
}
.theme-switch {
  width: 48px;
  height: 24px;
  display: flex;
  align-items: center;
  cursor: pointer;
  margin-left: 18px;
}

.switch-track {
  width: 100%;
  height: 100%;
  background: #bbb;
  border-radius: 12px;
  position: relative;
  transition: background 0.3s;
}

.switch-thumb {
  width: 20px;
  height: 20px;
  background: #222;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: left 0.3s, background 0.3s;
  box-shadow: 0 1px 4px #0002;
}

body.dark-theme .switch-track {
  background: #444;
}

body.dark-theme .switch-thumb {
  background: #fff;
}

body:not(.dark-theme) .switch-thumb {
  background: #222;
}

.theme-switch.active .switch-thumb {
  left: 26px;
}
body.dark-theme .navbar {
  background: #111 !important;
  color: white !important;
}
body.light-theme .navbar {
  background: #fff !important;
  color: black !important;
}

body.dark-theme .navbar-right a,
body.dark-theme .navbar-right .dropbtn {
  color: #fff !important;
}
body.light-theme .navbar-right a,
body.light-theme .navbar-right .dropbtn {
  color: #23272f !important;
}

@media (max-width: 768px) {
  body.dark-theme .navbar-right,
  body.dark-theme .navbar-right.show {
    background: #111 !important;
    color: white !important;
  }
  body.dark-theme .navbar-right a,
  body.dark-theme .navbar-right .dropbtn {
    color: #fff !important;
  }

  body.light-theme .navbar-right,
  body.light-theme .navbar-right.show {
    background: #fff !important;
    color: black !important;
  }
  body.light-theme .navbar-right a,
  body.light-theme .navbar-right .dropbtn {
    color: #23272f !important;
  }
}
@media (max-width: 768px) {
  .navbar {
    flex-direction: row;
    align-items: center;
    position: relative;
    height: auto;
    padding: 0 10px;
  }
  .hamburger {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    z-index: 1001;
    cursor: pointer;
    display: block;
  }
  .navbar-right {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    background: #222;
    width: 100vw;
    flex-direction: column;
    z-index: 1000;
  }
  .navbar-right.active {
    display: flex;
  }
  .navbar-left {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .navbar {
    height: 56px;             
    padding: 0 2px;
    min-height: 56px;
  }
  .navbar-left {
    width: auto;
    min-width: 0;
    max-width: 60vw;
    height: 56px;
    overflow: visible;
    display: flex;
    align-items: center;
  }
  .toggle-container {
    flex-direction: row;
    align-items: center;
    width: auto;
    height: 56px;
    gap: 8px;
    position: static;
  }
  .toggle-block {
    position: static;
    width: auto;
    height: 56px;
    opacity: 1;
    gap: 8px;
  }
  .profile-block img,
  .iitlogo {
    height: 38px;
    width: 38px;
  }
  .prof-name, .iit-heading, .dept-name {
    font-size: 0.82rem;
    white-space: normal;
  }
  .hamburger {
    font-size: 1.5rem;
    right: 56px; /* Leave space for theme switch */
    top: 50%;
    transform: translateY(-50%);
    z-index: 101;
    display: block;
    position: absolute;
  }
  .theme-switch {
    margin-left: 8px;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 102;
  }
  .navbar-right {
    top: 56px;
  }
  .iitm-block {
    display: none;
  }
}
body.light-theme .footer {
  background: #f7f7f7 !important;
  color: #23272f;
  border-top: 1px solid #e0e0e0;
}

body.dark-theme .footer {
  background: #181818;
  color: #ccc;
  border-top: 1px solid #333;
}

.hero-video-section {
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
}
.hero-video-section video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: brightness(0.6) saturate(1.2);
}
body.light-theme .hero-video-section video {
  filter: none;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.85) 100%);
  z-index: -1;
}
.hero-content {
  position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  z-index: 2;
}
.hero-morph-text {
  font-size: 2.5rem;
  font-weight: 900;
  font-family: 'Nebulosa Solid', 'Bree Serif', 'Roboto', serif;
  letter-spacing: 0.04em;
  position: relative;
}
.hero-morph-text span {
  display: none;
  background: linear-gradient(90deg, #ffd700, #ff4e50, #ffd700);
  background-size: 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: glowFade 6s infinite;
}
.hero-morph-text span.active {
  display: inline-block;
}
@keyframes glowFade {
  0%, 100% { opacity: 0; background-position: 0% 50%; }
  25%, 75% { opacity: 1; background-position: 100% 50%; }
}

/* Carousel */
.carousel-section {
  padding: 0 20px 60px 0px;
  background: #242323;
  text-align: center;
  margin: 0;
}
body.light-theme .carousel-section {
  background: #f5f5f5;
}
.carousel-title {
  font-size: 2.4rem;
  margin-bottom: 30px;
  font-family: 'Bree Serif', serif;
  color: var(--text);
  position: relative;
  display: inline-block;
}
.carousel-title::after {
  content: '';
  display: block;
  height: 4px;
  width: 60%;
  background: var(--primary, #00b4d8);
  margin: 10px auto 0;
  border-radius: 2px;
}
.carousel-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  box-sizing: border-box;
}
.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(.77,0,.18,1);
  gap: 20px;
  will-change: transform;
  padding-bottom: -2rem;
}
.carousel-card {
  background: var(--card-bg);
  border-radius: 18px;
  box-shadow: 0 8px 8px rgba(0,0,0,0.13), 0 2px 8px rgba(0,0,0,0.08);
  padding: 24px;
  min-width: 320px;
  max-width: 320px;
  flex: 0 0 320px;
  color: var(--text);
  transition: 
    transform 0.4s cubic-bezier(.77,0,.18,1), 
    box-shadow 0.4s cubic-bezier(.77,0,.18,1), 
    background 0.3s;
  position: relative;
  backdrop-filter: blur(3px);
  opacity: 0.8;
  z-index: 1;
  border: 1.5px solid #e0f7fa;
  margin-top: 30px;
}
.carousel-card.center {
  opacity: 1;
  transform: scale(1.07) translateY(-10px) rotateY(0deg);
  box-shadow: 0 8px 8px var(--primary, #00b4d8), 0 2px 8px rgba(0,0,0,0.08);
  z-index: 2;
  background: linear-gradient(135deg, var(--card-bg) 60%, #e0f7fa 100%);
  border: 2px solid var(--primary, #00b4d8);
}
.carousel-card:hover {
  box-shadow: 0 16px 48px var(--primary, #00b4d8), 0 2px 8px rgba(0,0,0,0.08);
  transform: scale(1.09) translateY(-16px) rotateY(2deg);
  z-index: 3;
}
body.dark-theme .carousel-card {
  background: linear-gradient(135deg, #1b1b1b 60%, #23272f 100%);
  color: #f8f9fa;
  border: 1.5px solid #23272f;
}
body.dark-theme .carousel-card.center {
  background: linear-gradient(135deg, #23272f 100%, #00b4d8 100%);
  border: 2px solid #00b4d8;
}
.card-logo {
  height: 50px;
  width: 50%;
  margin-bottom: 14px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.card-headline {
  font-weight: bold;
  margin: 12px 0;
  font-size: 1.15rem;
  line-height: 1.4;
  color: #0077b6;
  text-shadow: 0 2px 8px #00b4d822;
}
body.dark-theme .card-headline {
  color: #00b4d8;
}
.card-meta {
  font-size: 0.9rem;
  color: gray;
  margin-top: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.7rem;
}
body.dark-theme .card-meta {
  color: #bdbdbd;
}
.carousel-controls {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 24px;
}
.carousel-btn {
  background: var(--primary, #00b4d8);
  border: none;
  padding: 10px 16px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: background 0.3s, transform 0.3s;
  color: #fff;
}
.carousel-btn:hover {
  background: #0077b6;
  transform: scale(1.1);
}

/* Theme colors */
body.dark-theme {
  --bg: #111;
  --card-bg: #1b1b1b;
  --text: #eee;
  --primary: #00b4d8;
}
body.light-theme {
  --bg: #f5f5f5;
  --card-bg: #fff;
  --text: #222;
  --primary: #00b4d8;
}

/* Responsive */
@media (max-width: 768px) {
  .carousel-card {
    min-width: 260px;
    max-width: 260px;
    flex: 0 0 260px;
  }
  .hero-morph-text {
    font-size: 2.5rem;
  }
}
@media (max-width: 500px) {
  .carousel-card {
    min-width: 90vw;
    max-width: 95vw;
    flex: 0 0 90vw;
    padding: 18px;
  }
}
.carousel-track {
  display: flex;
  transition: transform 0.3s cubic-bezier(.77,0,.18,1);
  gap: 20px;
  will-change: transform;
  padding-bottom: 1.5rem;
}
.lab-abbr-section {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1rem 0 1rem 0;
}

.lab-abbr-text {
  font-family: 'Bree Serif', 'Montserrat', serif;
  font-size: 1.7rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.02em;
  line-height: 1.5;
  /*background: linear-gradient(90deg, #00eaff 0%, #1fa2ff 50%, #ffd700 100%);*/
  background: linear-gradient(90deg, #2193b0 0%, #6dd5ed 50%, #b721ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  box-shadow: 0 2px 16px #00b4d8cc; /* Strong blue glow */
  transition: background 0.5s, box-shadow 0.5s;
}

.lab-abbr-text span {
  font-size: 1.6em;
  font-weight: 900;
  /*background: linear-gradient(90deg, #ffd700 0%, #00eaff 100%);*/
  background: linear-gradient(90deg, #b721ff 0%, #2193b0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-right: 2px;
  letter-spacing: 0.05em;
}

body.dark-theme .lab-abbr-text {
  /*background: linear-gradient(90deg, #ffd700 0%, #00eaff 100%);*/
  background: linear-gradient(90deg, #b721ff 0%, #2193b0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  box-shadow: 0 2px 16px #ffd70033;
}

body.dark-theme .lab-abbr-text span {
  /*background: linear-gradient(90deg, #00eaff 0%, #ffd700 100%);*/
  background: linear-gradient(90deg, #2193b0 0%, #b721ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lab-quote-section {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2.5rem 0 2rem 0;
}

.lab-quote {
  font-family: 'Bree Serif', 'Montserrat', serif;
  font-size: 1.25rem;
  font-weight: 900;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 1.5rem 2rem 1.2rem 2rem;
  border-radius: 1.5rem;
  background: rgba(255,255,255,0.7);
  box-shadow: 0 4px 32px 0 rgba(33,147,176,0.10), 0 2px 8px 0 rgba(183,33,255,0.08);
  position: relative;
  color: #23272f;
  background-clip: padding-box;
  border-left: 6px solid #b721ff;
  border-right: 6px solid #2193b0;
  transition: background 0.5s, color 0.5s;
  word-spacing: 0.8rem;
}

.lab-quote::before, .lab-quote::after {
  font-size: 2.5rem;
  color: #b721ff;
  opacity: 0.25;
  position: absolute;
}
.lab-quote::before {
  left: 18px;
  top: 10px;
}
.lab-quote::after {
  right: 18px;
  bottom: 10px;
}

.lab-quote-author {
  display: block;
  margin-top: 1.2rem;
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(90deg, #2193b0 0%, #b721ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: right;
  letter-spacing: 0.04em;
}

body.dark-theme .lab-quote {
  background: rgba(34,34,34,0.85);
  color: #eee;
  border-left: 6px solid #2193b0;
  border-right: 6px solid #b721ff;
  box-shadow: 0 4px 32px 0 rgba(183,33,255,0.10), 0 2px 8px 0 rgba(33,147,176,0.08);
}

body.dark-theme .lab-quote-author {
  background: linear-gradient(90deg, #b721ff 0%, #2193b0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (max-width: 600px) {
  .lab-quote {
    font-size: 1rem;
    padding: 1rem 0.7rem 1rem 0.7rem;
    border-radius: 1rem;
  }
}
.lab-facilities-section {
  margin: 3rem 0 2rem 0;
  text-align: center;
}

.lab-facilities-title {
  font-size: 2rem;
  font-family: 'Bree Serif', 'Montserrat', serif;
  background: linear-gradient(90deg, #2193b0 0%, #b721ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.lab-facilities-carousel {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 1rem 2vw;
  scrollbar-width: none;
  scroll-padding-left: 2vw;
  scroll-padding-right: 2vw;
}
.lab-facilities-carousel::-webkit-scrollbar {
  display: none;
}
.facility-slide {
  min-width: 320px;
  max-width: 320px;
  flex: 0 0 320px;
  margin: 0;
  background: #fff;
  border-radius: 1.2rem;
  box-shadow: 0 4px 24px #2193b033, 0 2px 8px #b721ff22;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.facility-slide img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-radius: 1.2rem;
  transition: transform 0.3s;
}
.facility-slide:hover {
  transform: scale(1.05) translateY(-8px);
  box-shadow: 0 8px 32px #b721ff44, 0 2px 8px #2193b022;
}

body.dark-theme .facility-slide {
  background: #181828;
  box-shadow: 0 4px 24px #b721ff33, 0 2px 8px #2193b022;
}
@media (max-width: 1100px) {
  .facility-slide {
    min-width: 240px;
    max-width: 240px;
    flex: 0 0 240px;
  }
}
.apply-section {
  padding: 3rem 1rem 2rem 1rem;
  background: linear-gradient(120deg, #f8fafc 0%, #e0e7ff 100%);
  border-radius: 2rem;
  margin: 3rem auto 2rem auto;
  max-width: 1100px;
  box-shadow: 0 8px 32px 0 rgba(33,147,176,0.10), 0 2px 8px 0 rgba(183,33,255,0.08);
  text-align: center;
}

body.dark-theme .apply-section {
  background: #242323;
  box-shadow: 0 8px 32px 0 rgba(183,33,255,0.10), 0 2px 8px 0 rgba(33,147,176,0.08);
}

.apply-title {
  font-size: 2.2rem;
  font-family: 'Bree Serif', 'Montserrat', serif;
  background: linear-gradient(90deg, #2193b0 0%, #b721ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2.5rem;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.apply-cards {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.apply-card {
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 4px 24px #2193b033, 0 2px 8px #b721ff22;
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  min-width: 300px;
  max-width: 350px;
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.apply-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 32px #b721ff44, 0 2px 8px #2193b022;
}

body.dark-theme .apply-card {
  background: #23243a;
  color: #eee;
}

.apply-card-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #b721ff;
  width: 100%;
  justify-content: center;
}

.apply-phd i {
  color: #b721ff;
}
.apply-project i {
  color: #2193b0;
}

.apply-card-body {
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
}

.apply-btn {
  display: inline-block;
  padding: 0.7rem 1.7rem;
  border-radius: 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  margin-top: 1rem;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 8px #2193b033;
}

.apply-btn-red {
  background: linear-gradient(90deg, #ff416c 0%, #ff4b2b 100%);
  color: #fff;
  border: none;
}
.apply-btn-red:hover {
  background: linear-gradient(90deg, #ff4b2b 0%, #ff416c 100%);
  color: #fff;
}

.apply-btn-yellow {
  background: linear-gradient(90deg, #ffd700 0%, #ffb347 100%);
  color: #23243a;
  border: none;
}
.apply-btn-yellow:hover {
  background: linear-gradient(90deg, #ffb347 0%, #ffd700 100%);
  color: #23243a;
}

@media (max-width: 768px) {
  .apply-cards {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }
}
.project-vacancy-note {
  margin: 2rem auto 0 auto;
  max-width: 800px;
  background: #fffbe6;
  color: #000000;
  border-radius: 0.7rem;
  padding: 1.1rem 1.5rem;
  font-size: 0.8rem;
  box-shadow: 0 2px 12px #0847cf22;
  opacity: 0.92;
  transition: background 0.3s, color 0.3s;
}
body.dark-theme .project-vacancy-note {
  background: #242323;
  color: #fff;
  box-shadow: 0 2px 12px #bfa10033;
  opacity: 0.85;
}
.lab-stats-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 3rem 0 2rem 0;
  gap: 2.5rem;
}

.lab-stats-title {
  font-size: 2.2rem;
  font-family: 'Bree Serif', 'Montserrat', serif;
  font-weight: 900;
  background: linear-gradient(90deg, #2193b0 0%, #b721ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
}

.lab-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  width: 100%;
  max-width: 600px;
}

.lab-stat-card {
  background: #2d2323;
  color: #fff;
  border-radius: 1.5rem;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 4px 24px #b721ff22;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  user-select: none;
}
.lab-stat-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 8px 32px #2193b044;
}
.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: #ffb347;
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}
.stat-label {
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
}


body.dark-theme .lab-stat-card {
  background: #181828;
  color: #ffe066;
}
body.dark-theme .stat-label {
  color: #ffe066;
}
body.dark-theme .stat-number {
  color: #ffd700;
}

@media (max-width: 768px) {
  .lab-stats-flex {
    flex-direction: column;
    align-items: center;
  }
  .lab-stats-video {
    margin-top: 2rem;
    max-width: 98vw;
  }
}
.lab-stats-flex {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  flex-wrap: wrap;
}

.lab-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  min-width: 320px;
  max-width: 400px;
  flex: 1 1 320px;
}

.lab-stats-video {
  max-width: 420px;
  min-width: 300px;
  flex: 1 1 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-section {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  align-items: stretch;
  padding: 3rem 1rem 2rem 1rem;
  max-width: 1200px;
  margin: 3rem auto 2rem auto;
}

body.dark-theme .contact-section {
  background: #242323;
}

.contact-map-container {
  flex: 1 1 420px;
  min-width: 320px;
  max-width: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-zoom-anim {
  width: 100%;
  height: 340px;
  overflow: hidden;
  border-radius: 1.2rem;
  box-shadow: 0 4px 24px #2193b033, 0 2px 8px #b721ff22;
}

@keyframes mapZoom {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.contact-details {
  flex: 1 1 320px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px #b721ff11, 0 2px 8px #2193b022;
  padding: 2.5rem 2.5rem 2rem 2.5rem;
  margin-left: 0;
  color: #23243a;
  transition: background 0.3s, color 0.3s;
  animation: fadeInUp 1s;
}

body.dark-theme .contact-details {
  background: #23243a;
  color: #eee;
}

.contact-title {
  font-size: 2.1rem;
  font-family: 'Bree Serif', 'Montserrat', serif;
  background: linear-gradient(90deg, #2193b0 0%, #b721ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2.2rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.7rem;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-size: 1.13rem;
  font-weight: 500;
  color: inherit;
  padding: 0.7rem 0;
  border-bottom: 1px solid #e0e0e0;
  transition: background 0.3s, color 0.3s;
}

.contact-row:last-child {
  border-bottom: none;
}

.contact-label {
  min-width: 110px;
  font-weight: 700;
  color: #b721ff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
}

.contact-row i {
  font-size: 1.5rem;
  color: #2193b0;
  background: #e0e7ff;
  border-radius: 50%;
  padding: 0.4rem;
  margin-right: 0.5rem;
  transition: color 0.3s, background 0.3s;
}

body.dark-theme .contact-label {
  color: #b721ff;
}
body.dark-theme .contact-row i {
  color: #4144e4;
  background: #23243a;
}

.contact-link {
  color: #2193b0;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s;
  word-break: break-all;
  font-size: 1.13rem;
}
.contact-link:hover {
  color: #b721ff;
  text-decoration: underline;
}

body.dark-theme .contact-link {
  color: #ffffff;
}
body.dark-theme .contact-link:hover {
  color: #b721ff;
}
@media (max-width: 768px) {
  .contact-section {
    flex-direction: column;
    align-items: stretch;
    padding: 1.2rem 0.3rem;
    gap: 1.5rem;
  }
  .contact-map-container,
  .contact-details {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
  }
  .map-zoom-anim {
    height: 220px;
    min-width: 0;
    max-width: 100%;
  }
  .contact-details {
    padding: 1.2rem 1rem;
    border-radius: 1rem;
    font-size: 0.98rem;
  }
  .contact-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }
  .contact-row {
    font-size: 1rem;
    gap: 0.6rem;
    padding: 0.5rem 0;
  }
  .contact-label {
    font-size: 1.05rem;
    min-width: 90px;
  }
}
.lab-facilities-carousel {
  display: flex;
  gap: 2rem;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.facility-slide {
  flex: 0 0 auto;
  width: 320px; 
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lab-facilities-carousel .carousel-track {
  display: flex;
  animation: scrollFacilities 20s linear infinite;
  gap: 2rem;
}

@keyframes scrollFacilities {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

body.light-theme .carousel-card {
  border-radius: 22px;
  border: 1.5px solid #b388ff;
  box-shadow: 0 0 18px 2px #e0e7ff88, 0 2px 8px #b388ff33;
}

body.light-theme .carousel-card.center {
  border: 2.5px solid #7f5fff;
  box-shadow: 0 0 32px 4px #b388ff66, 0 4px 16px #7f5fff33;
}

body.light-theme .carousel-card.center:hover,
body.light-theme .carousel-card:hover {
  box-shadow: 0 0 48px 8px #b388ff99, 0 4px 24px #7f5fff55;
  border-color: #7f5fff;
  z-index: 3;
  transform: scale(1.09) translateY(-16px) rotateY(2deg);
}
.iitlogo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
@media (max-width: 768px) {
  .iitlogo {
    width: 38px;
    height: 38px;
  }
}
.team-title,
.lab-abbr-text,
.splash-text {
  font-family: 'Nebulosa Stencil', 'Bree Serif', 'Roboto', serif;
}
.splash-img-animated {
  width: 100vw;
  max-width: 340px;
  min-width: 180px;
  opacity: 0;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 4px 24px #0008);
  animation: splashGrow 3.5s cubic-bezier(.23,1.02,.58,1) forwards, splashReveal 2.8s 0.5s cubic-bezier(.23,1.02,.58,1) forwards;
  position: relative;
  z-index: 2;
  transition: width 0.5s cubic-bezier(.23,1.02,.58,1);
}

@keyframes splashGrow {
  0% {
    width: 80px;
    opacity: 0;
    clip-path: inset(0 100% 0 0);
  }
  20% {
    opacity: 1;
    width: 80px;
    clip-path: inset(0 100% 0 0);
  }
  70% {
    width: 340px;
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
  100% {
    width: 340px;
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}

@keyframes splashReveal {
  0% {
    filter: brightness(0.7) blur(2px);
    opacity: 1;
  }
  100% {
    filter: brightness(1) blur(0);
    opacity: 1;
  }
}

.splash-img-animated::after {
  content: '';
  position: absolute;
  left: 0; top: 0; width: 100%; height: 100%;
  background: linear-gradient(120deg, #fff0 60%, #ffd70055 100%);
  pointer-events: none;
  animation: splashGradientReveal 2.8s 0.5s cubic-bezier(.23,1.02,.58,1) forwards;
  z-index: 3;
  opacity: 0.7;
}

@keyframes splashGradientReveal {
  0% {
    left: -100%;
    opacity: 0.7;
  }
  60% {
    left: 60%;
    opacity: 0.7;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}
@media (max-width: 600px) {
  .splash-img-animated {
    max-width: 220px;
    min-width: 120px;
  }
  .splash-logo {
    width: 32px;
    margin-bottom: 14px;
  }
}
.lab-quote-translation {
  display: block;
  margin-top: 0.5em;
  font-size: 1rem;
  color: #888;
  font-style: italic;
}
