/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --accent: #ff6600;
  --text: #fff;
  --card: #1c1c1c;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #fff;
  background: url("images/background.jpg") no-repeat center center/cover;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  z-index: -1;
}

/* Header */
.header-overlay {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 40px;
  background: rgba(0,0,0,0.85);
  position: relative;
  z-index: 10;
}

/* Logo */
.logo img { height: 45px; }

/* NAV */
nav {
  display:flex;
  gap: 16px;
  align-items:center;
}

/* Links */
nav a,
nav .dropdown > a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
  transition: color 200ms ease, background 200ms ease, transform 180ms ease;
}

/* Hover effect */
nav a:hover,
nav .dropdown > a:hover {
  color: var(--accent);
  background: rgba(255,102,0,0.12);
  transform: translateY(-2px);
}

/* Active/selected state */
nav a.active,
nav .dropdown > a.active
 {
   background: #ff6600;
  color: #fff;
}

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: 120%;
  left: 0;
  background: var(--card);
  border-radius: 8px;
  display: none;
  flex-direction: column;
  min-width: 180px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.dropdown.open .dropdown-menu { display: flex; }
.dropdown-menu a {
  padding: 10px 14px;
  color: var(--text);
  text-decoration: none;
}
.dropdown-menu a:hover {
  background: var(--accent);
  color: #fff;
}
/* Dropdown main button hover (same flip effect as other nav links) */
nav .dropdown > a {
  display: inline-block;
  transition: transform 0.3s ease, background 0.3s ease;
}

nav .dropdown > a:hover {
  transform: translateY(-3px);   /* ✅ little flip up */
  background: #ff6600;
  color: #fff;
}


/* Management Section */
.management-section {
  padding: 70px 10%;
  text-align: center;
}
.management-section h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 12px;
  animation: softGlow 2.5s infinite alternate;
}
.underline {
  width: 140px;
  height: 4px;
  margin: 0 auto 50px;
  background: linear-gradient(90deg, #ff6600, #ff9900);
  border-radius: 2px;
  animation: pulseLine 2s infinite;
}

/* Layout */
.management-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
}
.top-row, .bottom-row {
  display: flex;
  justify-content: center;
  gap: 50px;
}

/* Member Cards */
.member-card {
  background: #fff;
  color: #111;
  border-radius: 16px;
  padding: 25px;
  text-align: center;
  transition: all 0.4s ease;
  width: 270px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
  position: relative;
  overflow: hidden;
}
.member-card:hover {
  transform: translateY(-12px) scale(1.07);
  box-shadow: 0 20px 45px rgba(0,0,0,0.7);
}

/* Image container -> square with glow, full photo visible */
.img-container {
  width: 180px;
  height: 180px;
  margin: 0 auto 15px;
  border-radius: 12px;
  overflow: hidden;
  border: 4px solid var(--accent);
  box-shadow: 0 0 20px rgba(255,102,0,0.6);
  background: #fff; /* fill background for empty space */
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* ✅ full image shown */
  display: block;
}

.member-card:hover .img-container {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(255,102,0,0.9);
}

.member-card h3 { font-size: 1.25rem; margin-bottom: 6px; color: #111; }
.member-card p { font-size: 0.95rem; color: #333; }

.contact-info {
  margin-top: 12px;
  font-size: 0.9rem;
  color: #444;
  text-align: center;   /* ✅ Center align */
}

.contact-info p {
  display: flex;
  justify-content: center;  /* ✅ Center horizontally */
  align-items: center;
  gap: 8px;
  margin: 4px 0;
  font-weight: 500;
}

.contact-info i {
  color: #ff6600; /* Orange icons */
  font-size: 1rem;
}



/* Popup Overlay */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.75);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* Popup Box */
.popup-content {
  background: #fff;
  color: #111;
  padding: 25px 30px;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
  animation: scaleUp 0.3s ease;
   position: relative; /* ✅ Needed for close button */
}

.popup-content h2 {
  margin-bottom: 15px;
  color: #ff6600;
  text-align: center;
}

/* Close Button */
.close-btn {
  position: absolute;
  top: 20px; right: 25px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  color: #333;
  transition: color 0.3s ease;
}
.close-btn:hover { color: #ff6600; }

/* Animation */
@keyframes scaleUp {
  0% { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}


/* Animations */
@keyframes softGlow {
  0% { text-shadow: 0 0 6px #ff6600; }
  100% { text-shadow: 0 0 16px #ff9900; }
}
@keyframes pulseLine {
  0%, 100% { transform: scaleX(1); opacity: 1; }
  50% { transform: scaleX(1.3); opacity: 0.6; }
}
.fade-in {
  opacity: 0;
  transform: translateY(25px);
  animation: fadeInUp 1s forwards;
}
.fade-in:nth-child(1) { animation-delay: 0.3s; }
.fade-in:nth-child(2) { animation-delay: 0.6s; }
.fade-in:nth-child(3) { animation-delay: 0.9s; }
.fade-in:nth-child(4) { animation-delay: 1.2s; }
.fade-in:nth-child(5) { animation-delay: 1.5s; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

/* Responsive */
@media (max-width: 768px) {
  .top-row, .bottom-row { flex-direction: column; gap: 25px; }
  .member-card { width: 85%; }
}
/* Footer minimal */
.site-footer { text-align:center; padding: 18px 10px; background: rgba(0,0,0,0.5); color: var(--muted); }

/* Existing CSS kept same */

/* Hamburger Button */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}
.hamburger span {
  width: 25px;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Responsive Navbar */
@media (max-width: 900px) {
  nav {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(0,0,0,0.95);
    flex-direction: column;
    align-items: flex-start;
    width: 250px;
    padding: 20px;
    display: none;
  }
  nav.open {
    display: flex;
  }
  nav a,
  nav .dropdown > a {
    width: 100%;
    padding: 12px 0;
  }
  .hamburger {
    display: flex;
  }
}
