/* Root Theme Variables */
:root {
  --primary-green: #2e7d32;
  --light-green: #4caf50;
  --dark-green: #1b5e20;
  --light-bg: #f8f9fa;
  --text-dark: #333;
  --text-muted: #6c757d;
  --white: #fff;
}

/* Global Styles */
body {
  margin: 0;
  font-family: "Poppins", Arial, sans-serif;
  color: var(--text-dark);
  background-color: var(--light-bg);
  scroll-behavior: smooth;
}

.section-padding {
  padding: 4rem 0;
}

h1,
h2 {
  font-weight: 700;
  margin-bottom: 2rem;
  position: relative;
  text-align: center;
}

h1::after,
h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-green), var(--light-green));
  border-radius: 2px;
}

/* Hero Section - Full Screen Height */
.hero-section {
  position: relative;
  height: 100vh; /* Always full screen height */
  min-height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}

.hero-section .carousel {
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
}

.hero-section .carousel-inner {
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
}

.hero-section .carousel-item {
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  position: relative;
}

.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Fills screen height properly */
  object-position: center; /* Centers the image */
  display: block;
}

/* Carousel Caption Styling */
.carousel-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.carousel-caption {
  right: 0 !important;
  left: 0 !important;
  bottom: 0 !important;

  top: 0 !important;
  display: flex !important;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.carousel-caption h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: white;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  animation: fadeInUp 0.8s ease-out;
}

.carousel-caption .lead {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: white;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
  font-weight: 300;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.carousel-caption .support-text {
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  color: white;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
  font-style: italic;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-buttons .btn {
  padding: 0.8rem 2rem;
  font-weight: 600;
  border-radius: 30px;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  min-width: 160px;
}

.hero-buttons .btn-success {
  background-color: var(--primary-green);
  border-color: var(--primary-green);
}

.hero-buttons .btn-success:hover {
  background-color: var(--dark-green);
  border-color: var(--dark-green);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.hero-buttons .btn-outline-light:hover {
  background-color: white;
  color: var(--primary-green);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  z-index: 2;
}

.carousel-indicators {
  z-index: 2;
  bottom: 30px;
}

.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 5px;
  background-color: rgba(255, 255, 255, 0.5);
}

.carousel-indicators button.active {
  background-color: white;
}

.features-section {
  background: var(--light-bg);
}

.feature-box {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.feature-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary-green);
}

.feature-box h5 {
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--primary-green);
}

.feature-box p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Cards */
.card {
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  background-color: var(--white);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.card-body ul {
  list-style: none;
  padding: 0;
}

.card-body ul li {
  padding: 0.75rem 0;
  padding-left: 2rem;
  position: relative;
  border-bottom: 1px solid #f0f0f0;
}

.card-body ul li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-green);
  font-weight: bold;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 992px) {
  .carousel-caption h1 {
    font-size: 2.8rem;
  }

  .carousel-caption .lead {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    height: 80vh;
    min-height: 80vh;
    max-height: 80vh;
  }

  .hero-section .carousel,
  .hero-section .carousel-inner,
  .hero-section .carousel-item {
    height: 80vh;
    min-height: 80vh;
    max-height: 80vh;
  }

  .carousel-caption h1 {
    font-size: 2.2rem;
  }

  .carousel-caption .lead {
    font-size: 1.1rem;
  }

  .carousel-caption .support-text {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .hero-buttons .btn {
    width: 200px;
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 576px) {
  .hero-section {
    height: 70vh;
    min-height: 70vh;
    max-height: 70vh;
  }

  .hero-section .carousel,
  .hero-section .carousel-inner,
  .hero-section .carousel-item {
    height: 70vh;
    min-height: 70vh;
    max-height: 70vh;
  }

  .carousel-caption {
    padding: 1rem;
  }

  .carousel-caption h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  .carousel-caption .lead {
    font-size: 1rem;
    margin-bottom: 0.8rem;
  }

  .carousel-caption .support-text {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .hero-buttons .btn {
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
    min-width: 140px;
  }

  h1,
  h2 {
    font-size: 1.8rem;
  }

  .section-padding {
    padding: 2rem 0;
  }
}

.carousel-caption {
  pointer-events: none;
}

.hero-buttons .btn {
  pointer-events: auto;
}

/* MGB Project Information Section */
.mgb-section {
  background: #f1fcf7;
}
.mgb-card {
  background: #ffffff;
  border-left: 5px solid #198754;
}
.mgb-list {
  list-style: none;
  padding-left: 0;
}

.mgb-list li {
  margin-bottom: 12px;
  padding: 10px 14px;
  background: #e8f7f1;
  border-left: 4px solid #198754;
  border-radius: 6px;
}

/* PI & Co-PI Section  */
.investigator-photo {
  width: 180px;
  height: 220px;
  object-fit: cover;
  object-position: top;
  border-radius: 10px;

  display: block;          /* important */
  margin: 0 auto 1rem;     /* centers image */

  background-color: #f5f5f5;
}

.investigator-card {
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
}

.investigator-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

/* Modern Scope Section CSS */
.modern-scope {
  background: linear-gradient(135deg, #f8fff8 0%, #f0f9f5 100%);
  position: relative;
  overflow: hidden;
}

.modern-scope::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(76, 175, 80, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(23, 109, 99, 0.05) 0%, transparent 50%);
}

.section-header {
  position: relative;
  z-index: 1;
}

.section-label {
  display: inline-block;
  background: linear-gradient(90deg, #1b5e20, #4caf50);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.text-gradient-primary {
  background: linear-gradient(90deg, #1b5e20, #388e3c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Scope Grid */
.scope-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

/* Scope Card */
.scope-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(23, 109, 99, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(76, 175, 80, 0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.scope-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(23, 109, 99, 0.15);
  border-color: var(--card-color);
}

.card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(var(--card-color-rgb, 27, 94, 32), 0.03) 0%, 
    transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.scope-card:hover .card-bg {
  opacity: 1;
}

.card-border {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--card-color), #81c784);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s ease;
}

.scope-card:hover .card-border {
  transform: scaleX(1);
}

/* Scope Icon */
.scope-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  transition: transform 0.5s ease;
}

.scope-card:hover .scope-icon {
  transform: scale(1.2) rotate(5deg);
}

/* Scope Content */
.scope-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1b5e20;
  margin-bottom: 1rem;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.scope-card:hover .scope-title {
  color: var(--card-color);
}

.scope-desc {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

/* Scope Tags */
.scope-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tag {
  background: rgba(76, 175, 80, 0.1);
  color: #2e7d32;
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid rgba(76, 175, 80, 0.2);
  transition: all 0.3s ease;
}

.scope-card:hover .tag {
  background: var(--card-color);
  color: white;
  border-color: var(--card-color);
}

/* Responsive Design */
@media (max-width: 992px) {
  .scope-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .scope-grid {
    grid-template-columns: 1fr;
  }
  
  .section-header .lead {
    font-size: 1rem;
  }
  
  .scope-card {
    padding: 2rem 1.5rem;
  }
  
  .scope-icon {
    font-size: 3rem;
  }
}

/* Animation Classes */
.py-6 {
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
}

.mb-6 {
  margin-bottom: 4rem !important;
}