/* AI was used, in part, to create this code. The code itself was made mostly by a human. 
A human wrote this comment, but some comments were written by and/or with the help of AI*/
/* ================================================
  GLOBAL STYLES & RESET
  ================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: auto;
}

body {
  font-family: "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
  width: 100%;
  border-width: 100%;
  display: flex;
  flex-direction: column;
}

/* ================================================
  HEADER & NAVIGATION
  ================================================ */

header {
  position: sticky;
  top: 0;
  background: #5a189a;
  color: white;
  padding: 2.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

#logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

#logo a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

#logo a:hover {
  opacity: 0.8;
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

header nav a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s ease;
  position: relative;
}

header nav a:hover {
  opacity: 0.8;
}

header nav a::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: white;
  transition: width 0.3s ease;
}

header nav a:hover::after {
  width: 100%;
}

.hamburger { 
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.bar {
  display: block;
  width: 30px;
  height: 3px;
  background-color: white;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.tab {
  display: none;
}

.tab.active {
  display: block;
}

.tab-button:hover {
  transform: scale(1.05);
  border-top: #b799d1;
}

/* ================================================
  MAIN CONTENT & LAYOUT
  ================================================ */

main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  flex-grow: 1;
}

section {
  margin: 0;
  padding: 0;
}

h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  color: #000000;
  text-align: center;
}

h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: #2d1b4e;
}

h3 {
  font-size: 1.3rem;
  color: #333;
  margin-bottom: 0.8rem;
}

p {
  color: #232323;
  line-height: 1.8;
}

a {
  color: white;
}

/* ================================================
  HERO / WELCOME SECTION
    ================================================ */

.welcome {
  display: grid;
  grid-template-columns: 1.5fr;
  align-items: center;
  justify-content: left;
  gap: 3rem;
  width: 100%;
  min-height: 70vh;
  background: white;
  padding: 2rem;
  border-radius: 1.5rem;
}

.welcome-text {
  text-align: left;
}

.welcome-text h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: #000000;
}

.welcome-text p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.buttons {
  display: flex;
  row-gap: 1rem;
  column-gap: 0.6rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.button,
button {
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background: #7b2cbf;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-wrap: wrap;
}


  .buttons button a {
  color: white;
  text-decoration: none;
  font-size: clamp(0.5rem, 1rem, 1.5rem);
}

button:hover {
  transform: scale(1.05);
}

button a:hover{
  color: #b799d1;
}

.little_infos {
  display: inline-block;
  width: 100%;
}

.little_info {
  /* display: inline-block; */
  width: auto;
  background: #f0ebf8;
  color: #7b2cbf;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  width: 100%;
  max-width: 250px;
}

.image_container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.image_container img {
  width: 100%;
  max-width: 1000px;
  border-radius: 1.5rem;
  object-fit: cover;
}

.caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  margin-top: 1.5rem;
  color: #7b2cbf;
  font-weight: 600;
  font-size: 0.95rem;
}

.quote-section {
  display: flex;
  flex-direction: column;
  background: #f0ebf8;
  padding: 2rem;
  border-radius: 12px;
  margin: 2rem 0;
}

.quote-display {
  font-style: italic;
}

.tabs {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
  padding-top: 2rem;
  background: white;
  border-radius: 1.5rem;
}

.tab-content {
  width: 100%;
}

/* ================================================
  CARDS & GRIDS
  ================================================ */

.cards {
  list-style: none;
  gap: 2rem;
  margin: 2rem 0;
  padding: 0;
}

.cards li {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: none;
  border-top: 4px solid #7b2cbf;
}

.cards li:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(123, 44, 191, 0.15);
}

.cards li h3 {
  color: #7b2cbf;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  text-align: center;
}

.cards li p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ================================================
  WHAT WE DO - FIND YOUR ROLE
  ================================================ */

.what-we-do {
  text-align: center;
  padding: 2rem 0;
}

.find-your-role {
  text-align: center;
  padding: 2rem 0;
}

.what-we-do .cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.find-your-role .cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

/* ================================================
  W-W-D - F-Y-R - B-F SECTION
  ================================================ */
.what-we-do h2,
.find-your-role h2 {
  text-align: center;
  padding: 1rem;
}


/* ================================================
  BEGINNER FRIENDLY SECTION
  ================================================ */

.beginner-friendly {
  background: linear-gradient(150deg, #7b2cbf 0%, #5a189a 100%);
  color: white;
  padding: 3rem 2rem;
  border-radius: 16px;
  text-align: center;
  margin: 2rem 0;
}

.beginner-friendly h2 {
  color: white;
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.beginner-friendly p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 900px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}

.look-here {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 12px;
  margin: 1rem 0;
  display: inline-block;
  min-width: 200px;
  backdrop-filter: blur(10px);
}

.look-here p,
[class*="look here"] p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0.5rem 0 0 0;
  font-size: 0.95rem;
}

.note {
    font-size:xx-large;
    font-weight: 700;
}

/* ================================================
  TESTIMONIALS / MEMBER REVIEWS
  ================================================ */

.testimonials {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  background-color: #f0ebf8;
  border-radius: 1.5rem;
}

.cards ul.testimonials {
  list-style: none;
  display: grid;
  grid-column: auto;
  grid-template-rows: repeat(3, 1fr);
}

.cards li.testimonials {
  list-style: none;
  padding: 2rem;
  display: grid;
  flex-direction: column;
}

.testimonial-content {
  list-style: none;
  flex: 1;
  margin-bottom: 1rem;
}

.testimonial-text {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.member-name {
  font-weight: 700;
  color: #333;
  margin: 0;
}

.member-title {
  color: #7b2cbf;
  font-size: 0.98rem;
  margin: 0;
}

/* ================================================
  GALLERY
  ================================================ */

.gallery {
  margin: 3rem 0;
}

.gallery h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.image-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.image-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(123, 44, 191, 0.15);
}

/* ================================================
  PROJECTS
  ================================================ */

.project {
  margin: 2rem 0;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.project h3 {
  color: #7b2cbf;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.project p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.project .image-grid {
  margin-top: 1.5rem;
}

/* ================================================
  JOIN US SECTION
  ================================================ */

.join-us{
  background: linear-gradient(135deg, #7b2cbf 0%, #5a189a 100%);
  color: white;
  padding: 3rem 2rem;
  border-radius: 16px;
  text-align: center;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.join-prompt {
  align-items: center;
  gap: 20px;
}

.join-us h2 {
  color: white;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.join-us p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
}

.join-us button {
  margin-top: 1rem;
}

/* ================================================
  RECRUITMENT/FORM PAGES
  ================================================ */

.recruitment {
  text-align: center;
  padding: 2rem 0;
}

.recruitment h2 {
  color: #7b2cbf;
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.recruitment p {
  color: #666;
  max-width: 700px;
  margin: 1rem auto;
  font-size: 1.05rem;
  line-height: 1.8;
}

.roles-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin: 2rem 0;
}

.role-filter-btns {
  display: flex;
  flex: 1;
  flex-direction: row;
  gap: 0.1rem;
  width: 100%;
  max-width: 760px;
}

.filter-btn {
  width: auto;
  max-width: 130px;
  font-size: small;
}

.filter-btn:hover {
  transform: scale(1.05);
}

.available-roles .cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.5rem;
}

.role-badge {
  font-style: italic;
  color: #7b2cbf;
  font-weight: 600;
}

.application-form {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 800;
  margin: 2rem auto;
}

.application-form h3 {
  color: #7b2cbf;
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

label {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
  text-align: left;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #7b2cbf;
  outline: none;
}

form button {
  background: #7b2cbf;
  padding: 0.8rem 2rem;
}

form button:hover {
  background: #5a189a;
}
.error-field {
  border: 2px solid #dc2626;
  border-radius: 8px;
}

.error-message {
  display: block;
  color: #dc2626;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* ================================================
  CONTACT SECTION
  ================================================ */

.contact {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  width: 100%;
  max-width: 600px;
  margin: 2rem auto;
}

.contact h3 {
  color: #7b2cbf;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.contact-info p {
  margin: 0.5rem 0;
}

.contact-info a {
  color: #7b2cbf;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.3s ease;
}

.contact-info a:hover {
  opacity: 0.7;
}

/* ================================================
  FOOTER
  ================================================ */

footer {
  background-color: #1a1a2e;
  color: #a0aec0;
  padding: 2rem;
  text-align: center;
  margin-top: auto;
  border-top: auto;
}

footer .logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

footer .footer-text {
  color: #9d7fd8;
  margin-bottom: 0.5rem;
  font-style: italic;
}

footer p {
  color: #a0aec0;
  margin: 0.5rem 0;
}

footer a {
  color: #9d7fd8;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #b799d1;
}

/* ================================================
  BACK TO TOP BUTTON
  ================================================ */

#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #7b2cbf;
  color: white;
  width: 50px;
  height: 50px;
  font-size: 1.3rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 999;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

#back-to-top:hover {
    transform: scale(1.02);
}

/* ================================================
    RESPONSIVE DESIGN
   ================================================ */

/* AI-assisted: Used VSCode GitHub Copilot to help with
  how to format responsive design for this code */

/* ================================================
  Desktop & Large Screens
   ================================================ */

@media (max-width: 1024px) {
  main {
    padding: 1.5rem;
    gap: 2.5rem;
  }

  .welcome-section {
    flex-direction: column;
    gap: 2rem;
  }

  .welcome-text h2 {
    font-size: 2.2rem;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }
}

/* ================================================
  Tablet & Mobile Styles
   ================================================ */

@media (max-width: 768px) {
  header {
    flex-wrap: wrap;
    flex-direction: row;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  header nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 100%;
  }

  header nav ul {
    gap: 1rem;
    justify-content: center;
  }

  header nav li {
    background-color: #7b2cbf;
    border-radius: 1rem;
    padding: 0.25rem 0.5rem;
  }

  .hamburger {
    display: flex;
  }

  
  .nav-menu {
    display: none;
    gap: 1rem;
    width: 100%;
    padding: 1rem 0;
  }

  .nav-menu.open {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  main {
    padding: 1rem;
    gap: 2rem;
  }

  .welcome {
    display: grid;;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .welcome-section {
    order: 2;
    flex-direction: column;
    gap: 2rem;
  }

  .image_container {
    order: 1;
  }

  #image {
    width: 100%;
    max-width: 768px;
    margin: 0 auto;
  }

  .welcome-section {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .welcome-text h2 {
    font-size: 2rem;
  }

  .buttons {
    flex-wrap: nowrap;
    flex-direction: row;
  }

  .buttons button {
    width: 100%;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .image-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
  }

  .image-grid img {
    height: 200px;
  }

  .beginner-friendly,
  .join-us{
    padding: 2rem 1rem;
  }

  .look-here {
    display: block;
    margin: 1rem 0;
  }

  .little_infos {
    display: flex;
    flex-direction: row;
  }

  .little_info {
    display: inline-block;
    margin-bottom: 0rem;
    margin-right: 0;
  }

  .application-form {
    padding: 1.5rem;
    margin: 1.5rem auto;
  }

  .contact {
    padding: 1.5rem;
  }

  footer {
    padding: 1.5rem;
  }

  .cards .ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ================================================
    Phones & Small Screens
   ================================================ */

@media (max-width: 480px) {
  header {
    flex-wrap: wrap;
    padding: 0.8rem;
  }

  #logo {
    font-size: 1.2rem;
  }

  header nav ul {
    gap: 0.8rem;
    font-size: 0.9rem;
  }

  main {
    padding: 0.8rem;
    gap: 1.5rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  .welcome {
    padding: 1rem;
  }

  .welcome-section {
    gap: 0.5rem;
  }

  .welcome-text h2 {
    font-size: 1.8rem;
  }

  p {
    font-size: 0.95rem;
  }

  .cards li {
    padding: 1.5rem;
  }

  .buttons {
    width: auto;
    margin-bottom: 0.5rem;
  }

  .buttons button {
    padding: 0.5rem 1.5rem;
    font-size: 0.8rem;
  }

  .little_infos {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }

  .little_info {
    width: 100%;
    max-width: auto;
  }

  .quote-section {
    margin-top: 0.5rem;
  }

  .beginner-friendly,
  .join-us{
    padding: 1.5rem 1rem;
  }

  .tab-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  .tab-button {
    padding: 0.5rem 2rem;
  }

  .what-we-do .cards, 
  .find-your-role .cards, 
  .beginner-friendly {
    display: flex;
    flex-direction: column;
  }

  .image-grid {
    grid-template-columns: 1fr;
  }

  .role-cards {
    width: 100%;
    align-items: center;
  }

  .role-filter-btns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    justify-items: center;
    gap: 0.25rem;
    font-weight: 100;
  }

  form {
    gap: 1rem;
  }

  input,
  select,
  textarea {
    padding: 0.7rem;
    font-size: 0.95rem;
  }

  .project {
    padding: 1.5rem;
  }
}
