/* Universal Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


html, body {
  width: 100%;
  min-height: 100vh;
  font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to right, #0f0f1a, #1a1a2e); /* Match premium background */
  color: #f1f1f1;
  scroll-behavior: smooth;
  overflow-x: hidden;
}
main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 50px;
}


/* --- Navbar --- */
#navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* Changed from baseline to center for better vertical alignment */
  background-color: #3e97ff;
  color: white;
  padding: 10px 20px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1000;
  /* Ensure navbar is on top */
}

#navbar img {
  border-radius: 7px;
  height: 40px;
}

/* Navigation menu */
#navbtn {
  display: flex;
  list-style: none;
  gap: 25px;
}

#navbtn li {
  cursor: pointer;
  padding: 10px;
}


  .head{
    color:rgb(29, 231, 29);
  }

  .managment{
    color:red;
  }

.socialmedia{
  color:rgb(243, 50, 82);
}

.organising{
  color:rgb(255, 230, 0)
}

.tech{
  color:#1449f8
}

#navbtn li a {
  /* Targeting anchor tags inside list items */
  color: white;
  text-decoration: none;
  /* Remove underline from links */
  transition: background-color 0.3s ease, border-radius 0.3s ease;
  padding: 10px 15px;
  border-radius: 5px;
  transition: background 0.3s ease;
}

#navbtn li:hover a,
#navbtn li.active a {
  /* Hover effect for navigation links */
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
}

/* Hamburger icon */
.hamburger {
  display: none;
  /* Hidden by default for desktop */
  font-size: 28px;
  cursor: pointer;
  user-select: none;
  color: white;
  /* Ensure hamburger is white */
}


/* Responsive */
@media (max-width: 768px) {

.hamburger {
    display: block;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #ffffff;
    position: absolute;
    top: 80px;
    right: 0;
    width: 200px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  }

  .nav-links.show {
    display: flex;
  }
}

/* Navbar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background-color: #3e97ff;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar img {
  height: 50px;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
.nav-links li a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  transition: color 0.3s ease;
}
.nav-links li a:hover,
.nav-links li a.active {
  color: #ffdb58;


}

@media screen and (max-width: 768px) {

  /* Navbar */
  .hamburger {
    display: block;
  }

  #navbtn {
    display: none;
    /* Hidden by default on mobile */
    flex-direction: column;
    width: 100%;
    background-color: #3e97ff;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 999;
    /* Below navbar, above main content */
    border-top: 1px solid rgba(255, 255, 255, 0.3);
  }

  #navbtn.show {
    display: flex;
    /* Show when 'show' class is added by JS */
  }

  #navbtn li {
    text-align: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    /* Added for separation */
  }

  #navbtn li:last-child {
    border-bottom: none;

  }
}
/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #ffffff;
    position: absolute;
    top: 80px;
    right: 0;
    width: 200px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  }

  .nav-links.show {
    display: flex;
  }


}
@media screen and (max-width: 480px) {

  /* Navbar */
  #navbar {
    padding: 10px 15px;
  }

  #navbar img {
    height: 35px;
  }

  .hamburger {
    font-size: 24px;
  }
}
.org-chart-section {
  padding-top: 120px;
  padding-bottom: 80px;
  background: linear-gradient(to right, #0f0f1a, #1a1a2e);
  width: 100vw;
  min-height: 100vh;
  overflow-x: hidden;
}

.org-chart {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.org-chart .core {
  font-weight: bold;
  padding: 18px 36px;
  background-color: #b300b3;
  color: white;
  border-radius: 12px;
  text-align: center;
  font-size: 1.2rem;
  z-index: 2;
  position: relative;
  margin-bottom: 40px;
}

.org-chart .core::after {
  content: "";
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 40px;
  background-color: #999;
  z-index: 1;
}

.branch-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 80px;
  margin-top: 20px;
  position: relative;
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
}

.branch-row::before {
  content: "";
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 2px;
  background-color: #999;
  z-index: 0;
}

.branch-row .node {
  background-color: #3e97ff;
  padding: 15px 25px;
  border-radius: 10px;
  font-weight: 600;
  color: white;
  text-align: center;
  width: max-content;
  min-width: 180px;
  position: relative;
  font-size: 1rem;
  z-index: 2;
}

.branch-row .node::before {
  content: "";
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 30px;
  background-color: #999;
  z-index: 1;
}

.org-chart .core,
.branch-row .node {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.branch-row .node:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Mobile Responsive Fix */
@media (max-width: 768px) {
  .branch-row {
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
  }

  .branch-row::before {
    width: 2px;
    height: 100%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
  }

  .branch-row .node {
    width: 80%;
    max-width: 90%;
    font-size: 0.95rem;
  }

  .branch-row .node::before {
    top: -20px;
  }
}


/* --- TEAM CATEGORY SECTION (Redesigned as per sketch) --- */
.head-team-section {
    background: linear-gradient(135deg, #0a0a23, #1a1a40);
    padding: 60px 20px;
    color: #fff;
    width: 100%;
    box-sizing: border-box;
    text-align: center; /* Center the main heading */
    display: flex;
    flex-direction: column; /* Stack children vertically */
    align-items: center; /* Center content horizontally */
    gap: 40px; /* Space between the main heading, text blocks, and gallery */
}

.head-team-section h1 {
    font-size: 2.8rem; /* Adjusted for prominent main title */
    /* color: #00BFFF; */
    margin-bottom: 0; /* Gap handled by section gap */
    text-transform: uppercase;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    max-width: 900px; /* Limit title width on very large screens */
}

/* Styles for the new text blocks */
.head-team-text-block {
    max-width: 900px; /* Max width for text content */
    width: 100%; /* Ensure it takes available width */
    text-align: left; /* Text content itself remains left-aligned for readability */
    padding: 0 20px; /* Add some horizontal padding */
    box-sizing: border-box;
    line-height: 1.7;
}

.head-team-text-block h2 {
    font-size: 2rem;
    color: #e67d00; /* Highlighted color for sub-headings */
    margin-bottom: 15px;
    text-align: center; /* Center sub-heading as per sketch implied */
}

.head-team-text-block p,
.head-team-text-block ul {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 15px;
}

.head-team-text-block ul {
    list-style: none; /* Remove default bullet points */
    padding: 0;
}

.head-team-text-block ul li {
    margin-bottom: 10px;
    padding-left: 20px; /* Indent list items */
    position: relative;
}

.head-team-text-block ul li::before {
    content: "•"; /* Custom bullet point */
    color: #00BFFF; /* Bullet color */
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: 0;
}

/* --- Gallery for Head Team Images --- */
.head-team-images-gallery {
    display: flex;
    justify-content: center; /* Center images horizontally */
    flex-wrap: wrap; /* Allow images to wrap to the next line */
    gap: 30px; /* Space between image cards */
    max-width: 1200px; /* Max width for the image gallery */
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    margin-top: 20px; /* Space above the gallery */
}

.head-team-image-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px; /* Slightly less padding than full member cards */
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    flex: 1 1 280px; /* flex-grow, flex-shrink, flex-basis for ideal width */
    max-width: 350px; /* Limit individual card width */
    min-width: 200px; /* Prevent shrinking too much */
    box-sizing: border-box;
}

.head-team-image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.head-team-image-card img {
    width: 100%;
    height: 200px; /* Fixed height for image */
    object-fit: cover; /* Cover ensures image fills the space without distortion */
    border-radius: 10px; /* Slightly smaller border-radius for image */
    border: 2px solid #00BFFF; /* Blue border to match theme */
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.3);
    margin-bottom: 0; /* No margin bottom if no text below */
}


/* --- Responsive Adjustments for New Head Team Section --- */

@media (max-width: 1024px) {
    .head-team-section h1 {
        font-size: 2.5rem;
    }
    .head-team-text-block h2 {
        font-size: 1.8rem;
    }
    .head-team-text-block p,
    .head-team-text-block ul {
        font-size: 1rem;
    }
    .head-team-images-gallery {
        gap: 25px;
    }
    .head-team-image-card {
        flex: 1 1 250px;
        padding: 18px;
    }
    .head-team-image-card img {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .head-team-section {
        padding: 40px 15px;
        gap: 30px;
    }
    .head-team-section h1 {
        font-size: 2.2rem;
    }
    .head-team-text-block {
        padding: 0 15px;
        text-align: center; /* Center all text in text blocks */
    }
    .head-team-text-block h2 {
        font-size: 1.6rem;
    }
    .head-team-text-block p,
    .head-team-text-block ul {
        font-size: 0.95rem;
    }
    .head-team-text-block ul li {
        text-align: left; /* Keep list items left-aligned within centered block */
        margin-left: auto;
        margin-right: auto;
        max-width: 350px; /* Limit list item width */
    }
    .head-team-images-gallery {
        gap: 20px;
        padding: 0 15px;
    }
    .head-team-image-card {
        flex: 1 1 220px; /* Allow cards to be smaller */
        max-width: 300px; /* Prevent them from getting too wide if only one/two in a row */
        padding: 15px;
    }
    .head-team-image-card img {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .head-team-section {
        padding: 30px 10px;
        gap: 25px;
    }
    .head-team-section h1 {
        font-size: 1.8rem;
    }
    .head-team-text-block {
        padding: 0 10px;
    }
    .head-team-text-block h2 {
        font-size: 1.4rem;
    }
    .head-team-text-block p,
    .head-team-text-block ul {
        font-size: 0.9rem;
    }
    .head-team-images-gallery {
        gap: 15px;
        padding: 0 10px;
    }
    .head-team-image-card {
        flex: 1 1 90%; /* Force one card per row, taking 90% width */
        max-width: 280px; /* Max width for single column */
        padding: 12px;
    }
    .head-team-image-card img {
        height: 140px;
    }
}


/* HERO BUTTONS */
.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-btn {
  font-family: 'Montserrat', sans-serif;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-transform: uppercase;
  transition: all 0.3s ease;
  text-decoration: none;
}

.primary-btn {
  background: linear-gradient(45deg, #ff8c00, #e67d00);
  color: rgb(248, 251, 254);
}

.primary-btn:hover {
  transform: scale(1.05);
}

.secondary-btn {
  background-color: transparent;
  border: 2px solid white;
  color: white;
}

.secondary-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* JOIN CTA SECTION */
.join-cta {
  background-color: #000000;
  padding: 60px 20px;
  text-align: center;
}

.join-cta h3 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #fff;
}

.join-cta p {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 20px;
}

/* FOOTER */
.site-footer {
  background: linear-gradient(to right, #000000, #1a1a1a);
  color: #ffffff;
  border-top: 2px solid #333;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  padding: 0; /* padding moved into .footer-container for consistency */
}

.footer-content {
  text-align: center;
  padding-top: 40px;
}

.footer-content h3 {
  margin-bottom: 15px;
  font-size: 28px;
  letter-spacing: 1px;
}

.footer-content p {
  margin: 10px 0;
  font-size: 16px;
  opacity: 0.85;
}

.footer-content .social-icons {
  margin: 20px 0;
}

.footer-content .social-icons a {
  color: #ffffff;
  margin: 0 12px;
  font-size: 22px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.footer-content .social-icons a:hover {
  color: #1da1f2;
  transform: scale(1.2);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .join-us-section h3 {
    font-size: 1.6rem;
  }

  .join-us-section p {
    font-size: 1rem;
  }

  .footer-content h3 {
    font-size: 24px;
  }
}
