/* Custom Styles */
:root {
  /* Primary Colors */
  --primary-dark: #1b5e20;
  --primary-main: #2e7d32;
  --primary-light: #4caf50;
  
  /* Secondary Colors */
  --secondary-blue: #1a3c6e;
  --secondary-amber: #f59e0b;
  --light-gray: #f3f4f6;
  
  /* Font Styles */
  --heading-font: 'Montserrat', sans-serif;
  --body-font: 'Merriweather', serif;
}

body {
  font-family: var(--body-font);
  color: #333;
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .nav-link, .btn {
  font-family: var(--heading-font);
}

.text-primary-dark {
  color: var(--primary-dark);
}

.text-secondary-blue {
  color: var(--secondary-blue);
}

.text-secondary-amber {
  color: var(--secondary-amber);
}

.bg-primary-dark {
  background-color: var(--primary-dark);
}

.bg-primary-main {
  background-color: var(--primary-main);
}

.bg-secondary-blue {
  background-color: var(--secondary-blue);
}

.bg-secondary-amber {
  background-color: var(--secondary-amber);
}

.bg-light-gray {
  background-color: var(--light-gray);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(rgba(27, 94, 32, 0.8), rgba(26, 60, 110, 0.8)), url('images/image4.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* Parallax effect */
  color: white;
  padding: 120px 0;
  position: relative;
}

.hero-content {
  z-index: 2;
  position: relative;
}

.dna-animation {
  position: absolute;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  width: 180px;
  height: 350px;
  opacity: 0.6;
  z-index: 1;
  display: none;
}

@media (min-width: 992px) {
  .dna-animation {
    display: block;
  }
}

/* Cards & Feature Styles */
.feature-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: none;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.feature-icon {
  font-size: 2.5rem;
  width: 80px;
  height: 80px;
  background-color: rgba(46, 125, 50, 0.1);
  color: var(--primary-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background-color: var(--primary-main);
  color: white;
  transform: scale(1.1);
}

.research-icon {
  font-size: 4rem;
  color: white;
}

.research-area {
  background-color: var(--primary-main);
  border-radius: 0.5rem;
  padding: 2rem;
  text-align: center;
  height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.research-area:hover {
  background-color: var(--primary-dark);
  transform: scale(1.02);
}

/* Stats Section Styles */
.stats-section {
  background-color: #ffffff;
  padding: 5rem 0;
}

.stats-card {
  padding: 2.5rem 1.5rem;
  background-color: white;
  border-radius: 0;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
  border: 1px solid rgba(0,0,0,0.04);
  text-align: center;
}

.stats-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.stats-number {
  font-size: 5rem;
  font-weight: 700;
  color: var(--primary-main);
  line-height: 1.2;
  margin-bottom: 0.5rem;
  font-family: var(--heading-font);
  text-align: center;
}

.stats-number::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background-color: var(--secondary-amber);
  margin: 10px auto 15px;
}

.stats-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
  font-family: var(--heading-font);
  text-align: center;
}

.stats-description {
  color: #6c757d;
  font-size: 0.95rem;
  margin-bottom: 0;
  line-height: 1.5;
  text-align: center;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

/* Card separator lines */
.stats-card::before {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background-color: #f0f0f0;
  display: none;
}

.col-md-4:not(:last-child) .stats-card::before {
  display: block;
}

/* Legacy Stats Styles (for backward compatibility) */
.stats-item {
  text-align: center;
  padding: 1.5rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.stats-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Platform Cards */
.platform-card {
  border: none;
  border-radius: 0.5rem;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.platform-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.platform-card .card-border-top {
  height: 5px;
}

.platform-card-blue .card-border-top {
  background: linear-gradient(90deg, var(--primary-main), var(--secondary-blue));
}

.platform-card-green .card-border-top {
  background: linear-gradient(90deg, var(--secondary-blue), var(--primary-main));
}

.platform-card-amber .card-border-top {
  background: linear-gradient(90deg, var(--secondary-amber), #e65100);
}

/* Buttons */
.btn {
  border-radius: 30px;
  padding: 0.6rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-main);
  border-color: var(--primary-main);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(27, 94, 32, 0.3);
}

.btn-secondary {
  background-color: var(--secondary-blue);
  border-color: var(--secondary-blue);
}

.btn-secondary:hover {
  background-color: #15305a;
  border-color: #15305a;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(26, 60, 110, 0.3);
}

.btn-amber {
  background-color: var(--secondary-amber);
  border-color: var(--secondary-amber);
  color: white;
}

.btn-amber:hover {
  background-color: #e65100;
  border-color: #e65100;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3);
}

.btn-outline-primary {
  color: var(--primary-main);
  border-color: var(--primary-main);
}

.btn-outline-primary:hover {
  background-color: var(--primary-main);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(27, 94, 32, 0.2);
}

.btn-outline-secondary {
  color: var(--secondary-blue);
  border-color: var(--secondary-blue);
}

.btn-outline-secondary:hover {
  background-color: var(--secondary-blue);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(26, 60, 110, 0.2);
}

.btn-light {
  background-color: white;
  color: var(--primary-dark);
}

.btn-light:hover {
  background-color: #f8f9fa;
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Navigation */
.navbar {
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar-brand {
  font-weight: 600;
  font-size: 1.5rem;
}

.navbar-brand span {
  color: var(--primary-main);
}

.nav-link {
  position: relative;
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  color: #333;
  font-weight: 500;
}

.nav-link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-main);
  transition: width 0.3s ease;
}

.nav-link:hover:after {
  width: 100%;
}

.nav-link.active:after {
  width: 100%;
}

.navbar-scrolled {
  background-color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 0.5rem 0;
}

.sticky-navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

/* Mission Statement */
.mission-statement {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 2rem;
  backdrop-filter: blur(5px);
  max-width: 800px;
  margin: 0 auto 2rem auto;
  border-left: 4px solid var(--secondary-amber);
}

/* DNA Animation */
.dna-helix {
  position: relative;
  width: 100%;
  height: 300px;
}

.dna-strand {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: rotate 8s linear infinite;
}

.nucleotide {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  margin: 5px 0;
  position: relative;
}

.nucleotide:nth-child(odd) {
  background-color: var(--primary-light);
}

.nucleotide:nth-child(even) {
  background-color: var(--secondary-blue);
}

.nucleotide:after {
  content: '';
  position: absolute;
  height: 2px;
  width: 50px;
  background-color: rgba(255,255,255,0.6);
  top: 50%;
  transform: translateY(-50%);
}

.nucleotide:nth-child(odd):after {
  right: 15px;
}

.nucleotide:nth-child(even):after {
  left: 15px;
}

@keyframes rotate {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

/* Tabs Interface */
.nav-tabs {
  border-bottom: 2px solid #f0f0f0;
}

.nav-tabs .nav-link {
  border: none;
  border-bottom: 3px solid transparent;
  color: #777;
  font-weight: 600;
  padding: 1rem 1.5rem;
  margin-bottom: -2px;
}

.nav-tabs .nav-link.active {
  color: var(--primary-main);
  border-bottom-color: var(--primary-main);
  background-color: transparent;
}

.tab-content {
  padding: 2rem 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .hero-section {
    padding: 80px 0;
    background-attachment: scroll;
  }
  
  .stats-section {
    background: var(--light-gray);
  }
  
  .stats-card {
    margin-bottom: 1.5rem;
  }
  
  .stats-number {
    font-size: 3.5rem;
  }
  
  .stats-description {
    max-width: 100%;
  }
  
  .stats-card::before {
    display: none;
  }
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.active {
  opacity: 1;
  transform: translateY(0);
}

/* Delay staggered animations */
.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.4s;
}

.delay-5 {
  transition-delay: 0.5s;
}

/* Footer Styles */
.footer {
  background-color: #1d2330;
  color: #f8f9fa;
  padding: 40px 0 20px;
}

.footer i {
  color: #4caf50 !important;
  margin-bottom: 10px;
}

.footer p {
  color: #f8f9fa;
  font-size: 0.95rem;
}

.footer a {
  color: #f8f9fa;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: #4caf50;
}

.footer hr {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 20px 0;
}

/* Projects Section Specific Styles */
#projects .feature-icon {
  width: 80px;
  height: 80px;
  background-color: rgba(40, 167, 69, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
}

#projects .feature-icon i {
  font-size: 32px;
  color: #28a745;
}

/* Project card variant styles */
#projects .feature-card:nth-child(1) .feature-icon {
  background-color: rgba(40, 167, 69, 0.1);
}

#projects .feature-card:nth-child(1) .feature-icon i {
  color: #28a745;
}

#projects .feature-card:nth-child(2) .feature-icon {
  background-color: rgba(0, 123, 255, 0.1);
}

#projects .feature-card:nth-child(2) .feature-icon i {
  color: #007bff;
}

#projects .feature-card:nth-child(3) .feature-icon {
  background-color: rgba(255, 193, 7, 0.1);
}

#projects .feature-card:nth-child(3) .feature-icon i {
  color: #ffc107;
}

/* Project card hover animation */
#projects .feature-card:hover .feature-icon i {
  animation: heartBeat 1s;
}

@keyframes heartBeat {
  0% {
    transform: scale(1);
  }
  14% {
    transform: scale(1.3);
  }
  28% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.3);
  }
  70% {
    transform: scale(1);
  }
}

/* Publication cards */
.publication-card {
  border: none;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  width: 100%;
  margin: 0 auto;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  background-color: #fff;
}

.publication-card .card-body {
  padding: 1.5rem;
  width: 100%;
}

.publication-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.publication-card .badge {
  font-weight: 500;
  padding: 0.5rem 0.8rem;
  border-radius: 30px;
  background-color: var(--primary-main);
  display: inline-block;
}

.publication-card h4 {
  line-height: 1.4;
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.publication-card:hover h4 {
  color: var(--primary-main);
}

.publication-card .btn-outline-primary {
  border-color: var(--primary-main);
  color: var(--primary-main);
  border-radius: 30px;
  padding: 0.5rem 1.25rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
  width: auto;
  text-align: center;
}

.publication-card .btn-outline-primary:hover {
  background-color: var(--primary-main);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(27, 94, 32, 0.2);
}

/* Fix for row spacing */
.row.publications-row {
  margin-left: 0;
  margin-right: 0;
}

.row.publications-row > [class*="col-"] {
  padding-left: 15px;
  padding-right: 15px;
}

/* Horizontal Metrics Styles */
.metric-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  padding: 2rem 1.5rem;
  height: 100%;
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
}

.metric-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.metric-icon-container {
  width: 80px;
  height: 80px;
  background-color: rgba(46, 125, 50, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  transition: all 0.3s ease;
}

.metric-card:hover .metric-icon-container {
  background-color: var(--primary-main);
}

.metric-icon {
  font-size: 32px;
  color: var(--primary-main);
  transition: all 0.3s ease;
}

.metric-card:hover .metric-icon {
  color: white;
}

.metric-card h3 {
  font-weight: 700;
  color: var(--primary-main);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.metric-card p {
  margin-bottom: 0;
  font-size: 0.95rem;
}
/* Team Section Styles */
.bg-light-gray {
  background-color: var(--light-gray);
}

/* Team Cards */
.team-card {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: all 0.4s ease;
  height: 100%;
  margin-bottom: 30px;
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Image Container */
.team-image-wrapper {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
}

.team-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transition: transform 0.6s ease;
}

.team-card:hover .team-image {
  transform: scale(1.08);
}

/* Social Media Overlay */
.team-social-overlay {
  position: absolute;
  bottom: -60px;
  left: 0;
  right: 0;
  background: linear-gradient(rgba(46, 125, 50, 0.85), rgba(26, 60, 110, 0.85));
  padding: 15px 0;
  display: flex;
  justify-content: center;
  gap: 12px;
  transition: all 0.4s ease;
  opacity: 0;
}

.team-card:hover .team-social-overlay {
  bottom: 0;
  opacity: 1;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon:hover {
  background: white;
  color: var(--primary-main);
  transform: translateY(-5px);
}

.social-icon i {
  font-size: 18px;
}

/* Team Section */
.team-profile {
  text-align: center;
  max-width: 350px;
  margin: 0 auto 30px;
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.team-profile:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* Profile Image - Circular */
.profile-image-container {
  width: 200px;
  height: 200px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid white;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  position: relative;
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.4s ease;
}

.profile-image-container:hover .profile-image {
  transform: scale(1.08);
}

/* Social Icons - Horizontal Layout */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: white;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon:nth-child(1) {
  background-color: #0077b5; /* LinkedIn blue */
}

.social-icon:nth-child(2) {
  background-color: #4285F4; /* Google blue */
}

.social-icon:nth-child(3) {
  background-color: var(--primary-main); /* Primary green */
}

.social-icon:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.social-icon i {
  font-size: 18px;
}

/* Profile Text */
.profile-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: #333;
}

.profile-position {
  font-size: 1rem;
  color: var(--primary-main);
  font-weight: 500;
  margin-bottom: 5px;
}

.position-underline {
  width: 50px;
  height: 3px;
  background-color: var(--secondary-amber);
  margin: 10px auto 15px;
}

.profile-bio {
  font-size: 0.95rem;
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  .profile-image-container {
    width: 180px;
    height: 180px;
  }
  
  .profile-name {
    font-size: 1.3rem;
  }
  
  .social-icon {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 767px) {
  .profile-image-container {
    width: 160px;
    height: 160px;
  }
  
  .profile-bio {
    font-size: 0.9rem;
  }
  
  .social-icon {
    width: 32px;
    height: 32px;
  }
  
  .social-icon i {
    font-size: 16px;
  }
}