
/* ===== CSS Variables ===== */
:root {
  /* Light Mode */
  --primary: #3a5ba0;
  --primary-dark: #2c3f66;
  --secondary: #10b981;
  --accent: #e76f51;
  --light: #f5f7fa;
  --dark: #1e293b;
  --gray: #cbd5e1;
  --white: #ffffff;
  --black: #000000;
  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.15);
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 12px;
  --max-width: 1200px;
  --nav-height: 80px;
  --font-primary: "Inter", system-ui, sans-serif;
}

/* ===== Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--light);
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--gray);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
h4 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

p {
  font-size: clamp(1rem, 2vw, 1.1rem);
  margin-bottom: 1.5rem;
  color: var(--dark);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ===== Utility Classes ===== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.section-title.visible {
  transform: scale(1);
  opacity: 1;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80px;
  height: 4px;
  background: var(--secondary);
  border-radius: 2px;
  transition: transform 0.6s ease 0.3s;
}

.section-title.visible::after {
  transform: translateX(-50%) scaleX(1);
}

.text-center { text-align: center; }

.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  background: var(--secondary);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.4s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  background: var(--primary);
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-hover);
}

.btn-accent {
  background: var(--accent);
}

.btn-accent:hover {
  background: #c0392b;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--secondary);
  color: var(--secondary);
}

.btn-outline:hover {
  background: var(--secondary);
  color: var(--white);
}

/* ===== History Hero Section ===== */
.history-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/History\ Banner1.png') no-repeat center center/cover;
  height: 50vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  margin-top: var(--nav-height);
}

.history-hero-content {
  max-width: 800px;
  padding: 2rem;
}

.history-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--white);
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

.history-hero p {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  color: var(--white);
  margin-bottom: 2rem;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* ===== Leaders Section ===== */
.leaders-container {
  max-width: 1000px; /* Or var(--max-width) for consistency */
  margin: 0 auto;
}

.leader-card {
  display: flex;
  align-items: center; /* Vertically align items */
  gap: 2rem;
  padding: 2rem 0; /* Added more vertical padding */
  /* animation properties are handled by .section general rules */
}

.leader-image {
  flex: 0 0 150px; /* Don't grow, don't shrink, base width 150px */
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--primary);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.leader-card:hover .leader-image {
  transform: scale(1.05);
  box-shadow: var(--shadow-hover);
}

.leader-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.leader-details {
  flex: 1; 
}

.leader-title { 
  font-size: 1.1rem; 
  font-weight: 600;
  color: var(--secondary); 
  margin-bottom: 0.25rem;
}

.leader-name { 
  font-size: 1.5rem; 
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.leader-period {
  display: inline-block;
  background: var(--light);
  color: var(--primary);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  border: 1px solid var(--gray);
}

.leader-bio {
  color: var(--dark);
  font-size: clamp(0.95rem, 1.8vw, 1rem);
  line-height: 1.7; 
}

.leader-divider {
  border: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gray), transparent);
  margin: 2rem 0;
}
/* ===== Certificate Section ===== */
.certificate-container {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(30px);
}

.certificate-container.visible {
  opacity: 1;
  transform: translateY(0);
}

.certificate-container:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.certificate-image {
  flex: 0 0 45%;
  border-radius: var(--radius);
  overflow: hidden;
}


.certificate-content span {
  transition: transform 0.6s ease;
}

.certificate-container:hover .certificate-image img {
  transform: scale(1.05);
}

.certificate-content:hover span {
  flex: 1;
  background: var(--primary);
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-hover);
}
.certificate-badge {
  display: inline-block;
  background: var(--secondary);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* ===== Testimonial ===== */
.testimonial {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 2rem auto;
  position: relative;
  max-width: 800px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.testimonial.visible {
  opacity: 1;
  transform: translateY(0);
}

.testimonial:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.testimonial::before {
  content: '\201C';
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 4rem;
  color: rgba(16, 185, 129, 0.1);
  font-family: serif;
  line-height: 1;
}

.testimonial p {
  font-style: normal;
  color: var(--dark);
  font-size: 1.4rem;
  position: relative;
  z-index: 1;
}

 

/* ===== Objectives List ===== */
.objectives-list {
  list-style: none;
  margin: 1.5rem 0;
}

.objectives-list li {
  margin-bottom: 1rem;
  padding-left: 2rem;
  position: relative;
}

.objectives-list li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--secondary);
}

/* ===== Location Section ===== */
.location-highlight {
  display: inline-block;
  background: var(--light);
  padding: 1rem;
  border-left: 4px solid var(--secondary);
  margin: 1rem 0;
  font-weight: 500;
}

.map-container {
  height: 350px;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 1.5rem;
}

/* ===== Header & Navigation ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: var(--nav-height);
}

.header-scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--nav-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  transform: translateY(10px);
  opacity: 0;
  transition: transform 0.6s ease 0.2s, opacity 0.6s ease 0.2s;
}

.logo.visible {
  transform: translateY(0);
  opacity: 1;
}

.logo-img {
  height: 70px;
  width: auto;
  transition: transform 0.4s ease;
}

.logo:hover .logo-img {
  transform: scale(1.1);
}

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

.logo-text h1 {
  font-size: 1.1rem;
  margin-bottom: 0;
  color: var(--primary);
}

.logo-text span {
  font-size: 1.1rem;
  color: var(--secondary);
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links > li { 
  position: relative;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.nav-links > li:nth-child(1) { transition-delay: 0.1s; }
.nav-links > li:nth-child(2) { transition-delay: 0.2s; }
.nav-links > li:nth-child(3) { transition-delay: 0.3s; }
.nav-links > li:nth-child(4) { transition-delay: 0.4s; }
.nav-links > li:nth-child(5) { transition-delay: 0.5s; }
.nav-links > li:nth-child(6) { transition-delay: 0.6s; }
.nav-links > li:nth-child(7) { transition-delay: 0.7s; }
.nav-links > li:nth-child(8) { transition-delay: 0.8s; }

.nav-links.visible > li {
  opacity: 1;
  transform: translateY(0);
}

.nav-links a {
  font-weight: 600;
  color: var(--dark);
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.nav-links a i {
  font-size: 0.9rem;
  color: var(--dark);
  transition: var(--transition);
}

.nav-links a:hover i,
.nav-links .current a i {
  color: var(--secondary);
  transform: scale(1.2);
}



.nav-links a:hover::after,
.nav-links .current a::after {
  width: 100%;
}

.nav-links .current a {
  color: var(--secondary);
  font-weight: 700;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width 0.4s ease;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 220px;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
  z-index: 100;
  padding: 0.5rem 0;
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-content a {
  display: block;
  padding: 0.8rem 1.5rem;
  color: var(--dark);
  transition: var(--transition);
}

.dropdown-content a:hover,
.dropdown-content a:focus {
  background: var(--light);
  color: var(--secondary);
  padding-left: 1.8rem;
  transform: translateX(5px);
}

.dropdown-content a i { color: var(--dark); }

.dropdown-content a:hover i,
.dropdown-content a:focus i {
  color: var(--secondary);
}

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform 0.4s ease;
}

.hamburger:hover {
  transform: rotate(90deg);
}

/* Mobile Menu Backdrop */
.nav-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.nav-backdrop.active {
  display: block;
  opacity: 1;
}

/* ===== Footer ===== */
footer {
  background: var(--primary);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-column {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.footer-column:nth-child(1) { transition-delay: 0.1s; }
.footer-column:nth-child(2) { transition-delay: 0.2s; }
.footer-column:nth-child(3) { transition-delay: 0.3s; }
.footer-column:nth-child(4) { transition-delay: 0.4s; }

.footer-column.visible {
  opacity: 1;
  transform: translateY(0);
}

.footer-column p {
  color: rgba(255, 255, 255, 0.7);
}

.footer-column h3 {
  color: var(--white);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--secondary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.footer-column.visible h3::after {
  transform: scaleX(1);
}

.footer-links { list-style: none; }

.footer-links li { margin-bottom: 0.8rem; }

.footer-links a {
  color: #bdc3c7;
  transition: var(--transition);
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--secondary);
  transform: translateX(10px);
}

.contact-info { list-style: none; }

.contact-info li {
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.contact-info i {
  margin-top: 3px;
  color: var(--secondary);
  transition: transform 0.4s ease;
}

.contact-info li:hover i {
  transform: scale(1.2);
}

.social {
  display: flex;
  gap: 25px;
}

.social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--black);
  color: var(--dark);
  font-size: 1.3rem;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.social a:nth-child(1) { color: #3b5998; }
.social a:nth-child(2) { color: #1da1f2; }
.social a:nth-child(3) { color: #e1306c; }
.social a:nth-child(4) { color: #25d366; }

.social a:hover,
.social a:focus {
  transform: translateY(-5px) scale(1.1);
  box-shadow: var(--shadow-hover);
}

.social a:nth-child(1):hover,
.social a:nth-child(1):focus { background: #3b5998; color: white; }
.social a:nth-child(2):hover,
.social a:nth-child(2):focus { background: #1da1f2; color: white; }
.social a:nth-child(3):hover,
.social a:nth-child(3):focus { background: #e1306c; color: white; }
.social a:nth-child(4):hover,
.social a:nth-child(4):focus { background: #25d366; color: white; }

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 0.5s, transform 0.6s ease 0.5s;
}

.footer-bottom.visible {
  opacity: 1;
  transform: translateY(0);
}
.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}
.tech-badge {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid #03fa6e;
  border-radius: 4px;
  background: rgba(0, 10, 20, 0.4);
  backdrop-filter: blur(4px);
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tech-badge span {
  font-size: 0.7em;
  color: #03fa6e;
  display: block;
}

.tech-badge strong {
  font-size: 0.9em;
  color: white;
  font-weight: 500;
}

.tech-badge:hover {
  background: rgba(0, 243, 255, 0.1);
  border-color: #03fa6e
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--primary);
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1000;
  transform: scale(0.8);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px) scale(1.1);
}

/* ===== Mobile Styles ===== */
@media (max-width: 1138px) {
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: -100%;
    width: 80%;
    height: calc(100vh - var(--nav-height));
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    gap: 1rem;
    transition: left 0.4s ease;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links > li {
    opacity: 1;
    transform: translateY(0);
    transition: none;
  }

  .dropdown-content {
    position: static;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.02);
    display: none;
    margin-left: 1rem;
    margin-top: 0.5rem;
  }

  .dropdown.active .dropdown-content {
    display: block;
  }

  .hamburger {
    display: block;
  }

  .leader-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
    opacity: 1;
    transform: none;
  }

  .leader-image {
    flex: none;
    width: 120px;
    height: 120px;
    margin: 0 auto;
  }

  .leader-details {
    width: 100%;
  }

  .certificate-container {
    flex-direction: column;
  }

  .nav-links a::after {
    display: none; /* Hide underline in mobile view for cleaner look */
  }

  .nav-links .current a {
    color: var(--secondary);
    border-left: 3px solid var(--secondary);
    padding-left: 0.5rem;
  }
}

@media (max-width: 768px) {
  .section { padding: 3rem 0; }
  .back-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 45px;
    height: 45px;
    opacity: 1;
    visibility: visible;
    transform: scale(1);
  }
  .back-to-top.visible {
    opacity: 1;
    visibility: visible;
  }
  .leader-card {
    padding: 1rem;
    gap: 1rem;
  }
  .leader-image {
    width: 100px;
    height: 100px;
  }
  .leader-title {
    font-size: 1.1rem;
  }
  .leader-name {
    font-size: 1rem;
  }
  .leader-bio {
    font-size: 0.9rem;
  }
}
