
/* ================ DARK MODE STYLES ================ */
body.dark-mode .section-title {
  color: #faf9f9;
}

body.dark-mode .carousel-container {
  background: #1a1a1a;
}

body.dark-mode .carousel-item h1, h2, h3, p {
  color: #faf9f9;
}
    
body.dark-mode .carousel-item p {
  color: #faf9f9;
}

body.dark-mode .intro-section,
body.dark-mode .intro-quote, 
body.dark-mode .intro-paragraph p {
  background-color: #1a1a1a !important;
  color: #faf9f9 !important;
}

/* ================= HERO SECTION STYLES ================ */
.hero {
  opacity: 0;
  transform: translateY(40px) scaleY(0.95);
  transition: opacity 1.2s ease, transform 1.2s ease;
  margin: 70px 60px;
  border-radius: 25px;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
  url("/imgs/IMG_8128.JPG");
  background-size: cover;
  background-position: center;
  padding: 4rem 2rem 6rem;
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
body.page-loaded .hero {
  opacity: 1;
  transform: translateY(0) scaleY(1);
}

.hero-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.2s ease 0.3s, transform 1.2s ease 0.3s;
  transform-origin: top;
}

body.page-loaded .hero-inner {
  opacity: 1;
  transform: translateY(0);
}

.profile-pic {
  width: 250px;
  height: 250px;
  background: url("https://avatars.githubusercontent.com/u/84480542?v=4") center/cover no-repeat;
  border-radius: 50%;
  border: none;
  box-shadow: 0 0 10px rgba(0,0,0,0.15);
  margin-bottom: 1rem;
}

.hero .name {
  font-size: 90px;
  font-weight: normal;
  color: #faf9f9;
  margin: 0.3rem 0;
  z-index: 2;
}

.hero .position,
.hero .institution {
  font-size: 40px;
  color: #faf9f9;
  margin: 0.2rem 0;
  z-index: 2;
  font-family:'Times New Roman', Times, serif !important;
}

.social-icons {
  display: flex;
  gap: 20px;
  margin-top: 1rem;
  z-index: 2;
}

.social-icons a {
  color: #fff;
  font-size: 40px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.social-icons a:hover {
  transform: scale(1.3);
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  z-index: 0;
}

.hero::before {
  top: -20px;
  left: -40px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 230, 100, 0.2), transparent 70%);
}

.hero::after {
  bottom: -50px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: conic-gradient(from 0deg, rgba(100, 200, 255, 0.2), transparent 80%);
}

.section-title {
  margin: 18px 60px 0;
  font-size: 50px;
  color: #966E6D;
  text-align: center;
}

.carousel-container {
  margin: 16px 60px 60px;
  position: relative;
  overflow: hidden;
  background: #faf9f9;
  border-radius: 12px;
  padding: 40px 20px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.carousel-track {
  display: flex;
  transition: transform 1s ease;
}

.carousel-item {
  position: absolute;
  top: 0;
  width: calc(100% - 40px); /* full width minus padding left+right */
  padding: 20px;
  opacity: 0;
  transition: opacity 1s ease, transform 1s ease;
  transform: translateX(100%);
  text-align: center;
}

.carousel-item h1, h2, h3, p {
  color: #1a1a1a;
  font-family: sans-serif;
}

.carousel-item h1 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.carousel-item p {
  font-size: 1.4vw;
  margin-bottom: 1rem;
}

.carousel-item.active {
  opacity: 1;
  transform: translateX(0);
  position: relative;
}

.carousel-item.exiting {
  transform: translateX(-100%);
  opacity: 0;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.carousel-dots .dot {
  height: 12px;
  width: 12px;
  margin: 0 5px;
  background-color: #ccc;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.carousel-dots .dot.active {
  background-color: #6D8196;
}

.article-image-card {
  width: 100%; /* ⬅️ You can change this */
  height: 400px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin: 0 auto;
}

.article-image-card img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
  border-radius: 12px;
}

.article-image-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

.article-image-card:hover img {
  transform: scale(1.02);
}

.intro-section {
  padding: 16px 100px;
  background-color: #faf9f9;
}

.intro-quote {
  text-align: center;
  font-size: 26px;
  font-style: italic;
  color: #1a1a1a;
  padding: 1rem;
}

.intro-paragraph{
  font-size: 20px;
  text-align: left;
  padding: 16px 0px;
  color: #1a1a1a;
  margin-bottom: 60px;
}

/* ================= RESPONSIVE STYLES ================ */
@media (max-width: 999px) {
          
  .hero {  
    margin-top: 70px;     
    margin-left: 50px;        
    margin-right: 50px;      
  }
            
  .hero .name {    
    font-size: 55px;      
  }

  .hero .position,      
  .hero .institution {        
    font-size: 25px;      
  }
      
  .social-icons a {
    font-size: 40px;        
    transition: color 0.2s ease;      
  }
        
  .intro-section {
    padding: 16px 80px;      
  }
      
  .intro-quote {
    font-size: 26px;    
    padding-left: 0;    
    padding-right: 0;    
    margin-left: 0;    
    margin-right: 0;      
  }
      
  .intro-paragraph{
    font-size: 20px;    
    padding: 16px 0px;      
  }
}   

@media (max-width: 680px) {
      
  .carousel-container {
    display: none;      
  }
        
  .hero {
    margin-top: 70px;     
    margin-left: 30px;        
    margin-right: 30px;        
    min-height: 450px;              
  }
              
  .hero .name {    
    font-size: 30px;     
  }

  .hero .position,
  .hero .institution {        
    font-size: 25px;      
  }
      
  .social-icons a {
    font-size: 30px;        
    transition: color 0.2s ease;      
  }
      
  .profile-pic {        
    width: 200px;        
    height: 200px;      
  }
      
  .section-title {
    font-size: 35px;        
    text-align: center;  
  }
      
  .intro-section {
    padding: 16px 40px;      
  }
      
  .intro-quote {
    font-size: 22px;;      
  }
      
  .intro-paragraph{
    font-size: 20px;    
    padding: 16px 0px;      
  }
}