/* GENERAL STYLES */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #333;
  background: #f4f4f4;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

/* HEADER */
header {
  background: #004080;
  color: white;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

header h1 {
  display: inline-block;
  margin: 0;
  padding-left: 10px;
}

header nav {
  float: right;
}

header nav a {
  color: white !important;
  text-decoration: none;
  margin: 0 5px;
  font-weight: 900 !important;  /* Extra bold text */
  padding: 10px 15px;
  border-radius: 5px;
  transition: all 0.3s ease;
  display: inline-block;
  font-size: 16px;  /* Larger font for better visibility */
  letter-spacing: 0.5px;  /* Slight spacing for clarity */
}

/* COLORFUL TAB STYLING - Using !important for specificity */
header nav a:nth-of-type(1) {
  background-color: #3498db !important; /* Home - Blue */
}

header nav a:nth-of-type(2) {
  background-color: #e74c3c !important; /* About - Red */
}

header nav a:nth-of-type(3) {
  background-color: #2ecc71 !important; /* Projects - Green */
}

header nav a:nth-of-type(4) {
  background-color: #f39c12 !important; /* Teaching - Orange */
}

header nav a:nth-of-type(5) {
  background-color: #9b59b6 !important; /* Conferences - Purple */
}

header nav a:nth-of-type(6) {
  background-color: #1abc9c !important; /* Publications - Turquoise */
}

header nav a:nth-of-type(7) {
  background-color: #e67e22 !important; /* Achievements - Dark Orange */
}

header nav a:nth-of-type(8) {
  background-color: #34495e !important; /* Contact - Dark Gray */
}

header nav a:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  opacity: 0.9;
  text-decoration: none;
  color: white !important;  /* Keep white on hover */
}

header nav a:active {
  transform: translateY(0);
}

/* BANNER IMAGE SLIDER WITH BUTTONS */
.banner {
  position: relative;
  width: 100%;
  height: 70vh;
  max-height: 700px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  margin-bottom: 20px;
}

.slider_container {
  position: relative;
  width: 100%;
  height: 100%;
}

.slider {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Navigation Buttons */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 16px;
  cursor: pointer;
  font-size: 24px;
  border-radius: 4px;
  z-index: 10;
  transition: all 0.3s ease;
}

.slider-btn:hover {
  background: rgba(6,182,212,0.8);
}

.slider-btn.prev {
  left: 20px;
}

.slider-btn.next {
  right: 20px;
}

/* ABOUT SECTION — PHOTO LEFT, TEXT RIGHT */
.about-flex {
  background: white;
  padding: 60px 20px;
}

.about-container {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.about-image img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.about-text {
  flex: 1;
  min-width: 250px;
}

.about-text h2 {
  text-align: left;
  margin-bottom: 15px;
}

/* ADVISOR LINK STYLING - NO UNDERLINE, WHITE COLOR */
.advisor-link {
  color: white !important;
  text-decoration: none !important;
}

.advisor-link:hover {
  color: white !important;
  text-decoration: none !important;
}

.advisor-link:visited {
  color: white !important;
  text-decoration: none !important;
}

/* LISTS */
.section ul {
  list-style-type: disc;
  padding-left: 40px;
}

.section ul li {
  margin-bottom: 10px;
}

/* CONTACT SECTION STYLING */
#contact {
  padding: 80px 20px;
  background: linear-gradient(135deg, #004080 0%, #0059b3 100%);
  color: white;
  margin: 0;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

#contact h3 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: white;
}

#contact p {
  font-size: 1.1rem;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
}

.form-wrapper {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.form-wrapper iframe {
  border-radius: 10px;
  display: block;
}

/* RESPONSIVE DESIGN FOR CONTACT FORM */
@media (max-width: 768px) {
  #contact h3 {
    font-size: 2rem;
  }
  
  #contact p {
    font-size: 1rem;
    padding: 0 10px;
  }
  
  .form-wrapper {
    padding: 10px;
    border-radius: 10px;
  }
  
  .form-wrapper iframe {
    height: 850px;
  }
  
  /* Stack navigation vertically on mobile */
  header nav a {
    margin: 5px 2px;
    padding: 8px 12px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  #contact {
    padding: 60px 15px;
  }
  
  #contact h3 {
    font-size: 1.8rem;
  }
  
  .form-wrapper iframe {
    height: 900px;
  }
}

/* FOOTER */
footer {
  background: #004080;
  color: white;
  text-align: center;
  padding: 20px 0;
}
