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

html,
body {
  width: 100%;
  height: 100%;
  font-family: Arial, sans-serif;
  background-color: #fff9f9;
  color: #ffffff;
}

/* Scroll reveal base */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-visible {
  opacity: 1;
  transform: none;
}

.reveal-done {
  opacity: 1;
  transform: none;
  transition: none !important;
}

/* Progress bar styles */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 5px;
  width: 0%;
  background: #ff8400;
  z-index: 9999;
  transition: width 0.3s ease;
}

/* HOME PAGE container + slideshow */
.home_page {
  width: 100%;
  height: 50vh;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.home_page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../img/psu_bg2.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: bgSlideshow 16s infinite steps(1);
}

.home_page > * {
  position: relative;
  z-index: 1;
}

@keyframes bgSlideshow {
  0%,
  33.33% {
    background-image: url("../img/psu_bg2.png");
  }
  33.34%,
  66.66% {
    background-image: url("../img/psu_bg.jpg");
  }
  66.67%,
  100% {
    background-image: url("../img/psu_bg3.jpg");
  }
}

.overlay {
  
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.home_page-logo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  color: rgb(255, 255, 255);
}

.left-logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.left-logo img {
  width: 75px;
  height: auto;
}

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

.logo-text h3 {
  margin: 0;
  font-size: 35px;
  white-space: nowrap;
}

.logo-text h5 {
  margin: 0;
  font-size: 15px;
  font-weight: 100;
}

.right-logo {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.right-logo h5 {
  text-align: left;
  margin: 3px 0;
  font-weight: 120;
  font-size: 14px;
}

.home_page-title {
  text-align: center;
  margin-top: 6vh;
}

.home_page-title h1 {
  margin: 0;
  font-size: 50px;
  font-weight: bold;
}

.home_page-title h5 {
  margin-top: 10px;
  font-size: 25px;
  font-weight: 100;
}

/* Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #e7e1e1;
  z-index: 1000;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-nav.move-to-top {
  top: 0;
  bottom: auto;
  border-top: none;
}

.nav-container {
  display: flex;
  justify-content: space-around;
  max-width: 800px;
  margin: 0 auto;
}

.nav-item {
  color: rgb(4, 72, 24);
  text-decoration: none;
  padding: 15px 10px;
  text-align: center;
  flex: 1;
  transition: background-color 0.3s ease;
  font-size: 16px;
  font-weight: 700;
}

.nav-item:hover {
  background: #f16901;
  color: white;
}

.nav-item.active {
  background: #f16901;
  color: white;
}

/* Burger Menu Styles */
.burger-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 8px;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  transition: all 0.25s ease;
}

.burger-menu.nav-moved-top {
  background: #e7e1e1;
}

.burger-line {
  width: 20px;
  height: 2px;
  background: rgb(4, 72, 24);
  margin: 2px 0;
  border-radius: 2px;
  transition: all 0.25s ease;
  transform-origin: center;
}

.burger-menu.active .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger-menu.active .burger-line:nth-child(2) {
  opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Navigation Menu */
.mobile-nav-menu {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background: rgba(231, 225, 225, 0.98);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding-top: 80px;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.mobile-nav-menu.active {
  right: 0;
}

.mobile-nav-item {
  display: block;
  color: rgb(4, 72, 24);
  text-decoration: none;
  padding: 20px 30px;
  font-size: 18px;
  font-weight: 700;
  border-bottom: 1px solid rgba(4, 72, 24, 0.1);
  transition: all 0.3s ease;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
  background: #f16901;
  color: white;
}

/* Mobile Navigation Overlay */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}


/* About Page */
.about_page {
  width: 100%;
  min-height: 120vh;
  background-color: #f6f6f6;
  padding: 80px 20px;
  color: rgb(4, 72, 24);
}

.about-container {
  max-width: 65vw;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
}

.about-container div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.about-container img {
  flex: 1;
  max-width: 80%;
  height: auto;
  border-radius: 10px;
}

.about-container div h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 35px;
}

.about-container p {
  font-size: 14px;
  text-align: left;
  flex: 2;
  max-width: 45vw;
  line-height: 1.7;
}

.mvv-block {
  display: flex;
  margin: 0 auto;
  margin-top: 5%;
  max-width: 65vw;
  align-items: center;
  justify-content: center;
  padding: 0 auto;
  gap: 2%;
}

.image-m img {
  max-width: 90%;
  height: auto;
  border-radius: 8px;
  margin: 0 auto;
  display: block;
}

.content {
  padding: 0% auto;
  line-height: 1.7;
}

.content h3 {
  font-size: 35px;
}

.content p {
  font-size: 14px;
  text-align: justify;
}

.v-block {
  display: flex;
  flex-direction: row-reverse;
  margin: 0 auto;
  margin-top: 5%;
  max-width: 65vw;
  align-items: center;
  justify-content: center;
  padding: 0 auto;
}

.image-v img {
  max-width: 20vw;
  height: auto;
  border-radius: 8px;
  margin-left: 30px;
}

.v-block .content {
  padding: 0% auto;
  line-height: 1.7;
}

.v-block .content h3 {
  font-size: 35px;
  text-align: right;
}

.v-block .content p {
  font-size: 14px;
  text-align: justify;
}

/* About Members */
.about_members {
  width: auto;
  min-height: 30vh;
  background-color: #f6f6f6;

}

.about_members .container {
  max-width: 65vw;
  margin: 0 auto;
  padding: 20px;
  color: rgb(4, 72, 24);
  
}

.about_members h3 {
  /* margin-top: 0%; */
  text-align: center;
  margin-bottom: 15px;
  font-size: 35px;
}

.about_members p {
  text-align: justify;
  margin-bottom: 30px;
  line-height: 1.6;
  font-size: 14px;
}

.members {
  display: flex;
  gap: 10%;
  justify-content: center;
}

.member-card {
  text-align: center;
  padding: 15px 15px;
  width: 70%;
  border-radius: 5px;
  transition: transform 0.4s ease-in-out, background-color 0.4s ease-in-out;
}

.member-card h4 {
  margin-top: 40px;
  font-size: 20px;
}

.member-card p {
  font-size: 0.9rem;
  color: #555;
  margin-top: 4px;
  text-align: center;
}

.member-card img {
  width: 165px;
  height: 165px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.4s ease-in-out;
}

.member-card:hover {
  transform: scale(1.05);
  animation: rainbowBG 5s linear infinite;
}

.member-card:hover img {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes rainbowBG {
  0% {
    background-color: rgb(255, 99, 132);
  }
  20% {
    background-color: rgb(255, 206, 86);
  }
  40% {
    background-color: rgb(75, 192, 192);
  }
  60% {
    background-color: rgb(54, 162, 235);
  }
  80% {
    background-color: rgb(153, 102, 255);
  }
  100% {
    background-color: rgb(255, 99, 132);
  }
}



/* MOBILE RESPONSIVE STYLES */

/* Show burger menu on mobile, hide regular nav */
@media (max-width: 768px) {
  .bottom-nav {
    display: none;
  }

  .burger-menu {
    display: flex;
  }

  body.mobile-nav-open {
    overflow: hidden;
  }
}

  /* Tablets (768px and below) */
  @media (max-width: 768px) {
    .nav-item {
      font-size: 14px;
      padding: 12px 8px;
      text-align: center;
    }

    .home_page-logo {
      padding: 14px 16px;
      position: relative;
      flex-direction: row;
      align-items: center;
      gap: 10px;
      text-align: center;
    }

    .left-logo {
      justify-content: flex-start;
      align-items: center;
      text-align: center;
    }  .left-logo img { width: 56px; }

  .logo-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
    text-align: center;
  }
  .logo-text h3 { font-size: 24px; }

  .logo-text h5 { font-size: 12px; }

  .right-logo { display: none; }

  .right-logo h5 { font-size: 12px; text-align: center; }

  .home_page-title { margin-top: 18vh; }

  .home_page-title h1 { font-size: 36px; }

  .home_page-title h5 { font-size: 16px; }

  /* Review Page Tablet */
  .rp_container {
    max-width: 90vw;
  }

  .rp_container h3 {
    font-size: 28px;
  }

  .review_cards {
    gap: 30px;
  }

  /* About Page Tablet */
  .about-container {
    max-width: 90vw;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "image"
      "text";
    gap: 20px;
    align-items: start;
  }

  /* Flatten inner wrapper so h2 and p can be placed around the image */
  .about-container > div { display: contents; }
  .about-container > div h2 { grid-area: title; }
  .about-container > div p { grid-area: text; }
  .about-container > img { grid-area: image; justify-self: center; }
  .about-container > img {
    width: 100% !important;
    max-width: 95% !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
  }

  .about-container img {
    max-width: 100%;
  }

  .about-container p {
    max-width: 90vw;
  }

  .about-container div h2 {
    font-size: 28px;
  }

  .mvv-block {
    max-width: 90vw;
    flex-direction: column;
    gap: 20px;
  }

  .v-block {
    max-width: 90vw;
    flex-direction: column;
    gap: 20px;
  }

  .image-v img {
    max-width: 80%;
    height: auto;
    margin-left: 0;
    margin: 0 auto;
    display: block;
  }

  .v-block .content h3 {
    text-align: center;
  }

  .mvv-block .content h3 {
    font-size: 28px;
    text-align: center;
  }
  
  .image-m img {
    max-width: 80%;
    height: auto;
    margin-left: 0;
    margin: 0 auto;
    display: block;
  }

  /* Members Tablet */
  .about_members .container {
    max-width: 90vw;
  }

  .about_members h3 {
    font-size: 28px;
  }

  .members {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .member-card {
    width: 300px;
  }
}

/* Mobile phones (480px and below) */
@media (max-width: 480px) {
  .burger-menu {
    top: 15px;
    right: 15px;
    padding: -50px;
  }

  .mobile-nav-menu {
    width: 280px;
    right: -280px;
  }

  .mobile-nav-item {
    padding: 18px 25px;
    font-size: 16px;
  }
  .nav-item {
    font-size: 12px;
    padding: 10px 5px;
  }

  .home_page-logo { padding: 12px 14px; }

  .left-logo img { width: 44px; }

  .logo-text h3 { font-size: 18px; }

  .logo-text h5 {
    font-size: 10px;
  }

  .right-logo h5 {
    font-size: 9px;
    margin-left: 50px;
    margin-top: -5px;
  }

  .home_page-title { margin-top: 18vh; padding: 0 20px; }
  .home_page-title { text-align: center; margin-top: 10vh; }

  .home_page-title h1 { font-size: 30px; line-height: 1.25; }

  .home_page-title h5 { font-size: 14px; }

  /* Review Page Mobile */
  .rp_container {
    max-width: 95vw;
    padding: 0 10px;
  }

  .rp_container h3 {
    font-size: 24px;
    margin-top: 40px;
    text-align: center;
  }

  .rp_container p {
    font-size: 13px;
    margin: 20px 10px;
  }

  .review_cards {
    gap: 20px;
  }

  .review_card {
    flex: 1 1 100%;
    padding: 15px;
  }

  /* About Page Mobile */
  .about_page {
    padding: 40px 10px;
  }

  .about-container {
    max-width: 95vw;
    gap: 30px;
  }

  .about-container div h2 {
    font-size: 24px;
    text-align: center;
  }

  .about-container p {
    font-size: 13px;
    max-width: 95vw;
  }

  .mvv-block {
    max-width: 95vw;
    margin-top: 8%;
  }

  .v-block {
    max-width: 95vw;
    margin-top: 8%;
  }

  .content h3 {
    font-size: 24px;
  }

  .content p {
    font-size: 13px;
  }

  .image-v img {
    max-width: 70%;
    height: auto;
    margin: 0 auto;
    display: block;
  }

  .image-m img {
    max-width: 70%;
    height: auto;
    margin: 0 auto;
    display: block;
  }

  /* Members Mobile */
  .about_members .container {
    max-width: 95vw;
    padding: 10px;
  }

  .about_members h3 {
    font-size: 24px;
  }

  .about_members p {
    font-size: 13px;
  }

  .member-card {
    width: 250px;
  }

  .member-card img {
    width: 120px;
    height: 120px;
  }

  .member-card h4 {
    font-size: 18px;
    margin-top: 20px;
  }

}

  /* Extra small devices (320px and below) */
  @media (max-width: 320px) {
    .home_page-title h1 {
      font-size: 28px;
      text-align: center;
    }

    .home_page-title h5 {
      font-size: 14px;
      text-align: center;
    }

    .logo-text h3 {
      font-size: 18px;
      text-align: center;
    }

    .right-logo h5 {
      font-size: 8px;
      text-align: center;
    }

    .nav-item {
      font-size: 10px;
      padding: 8px 3px;
      text-align: center;
    }

    .rp_container h3 {
      font-size: 20px;
      text-align: center;
    }

    .about-container div h2 {
      font-size: 20px;
      text-align: center;
    }

    .content h3 {
      font-size: 20px;
      text-align: center;
    }

    .about_members h3 {
      font-size: 20px;
      text-align: center;
    }

    .image-v img {
      max-width: 60%;
      height: auto;
      margin: 0 auto;
      display: block;
    }

    .image-m img {
      max-width: 60%;
      height: auto;
      margin: 0 auto;
      display: block;
    }

    .member-card {
      width: 200px;
    }

    .member-card img {
      width: 100px;
      height: 100px;
    }
}

#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #1a5f3f;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#backToTop:hover {
  background: #f16901;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.footer {
  position: relative;
  background: url("img/psu_bg.jpg") no-repeat center center/cover;
  min-height: 30vh;
  color: white;
  text-align: center;
  padding: 40px 20px 20px;
  font-family: Arial, sans-serif;
}

.footer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 0;
}

.footer * {
  position: relative;
  z-index: 1;
}

.footer-top { margin-top: 0; margin-bottom: 10px; }
.footer-top h3 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.footer-top h4 {
  font-style: italic;
  font-weight: bold;
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.4;
}

/* Constrain inner content width for balanced alignment */
.footer .footer-top,
.footer .footer-links,
.footer .footer-bottom {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

/* Removed social icons block to simplify footer */

.footer-links {
  margin: 12px auto;
  font-size: 14px;
  line-height: 1.6;
}

.footer-links a {
  color: #ddd;
  margin: 0 5px;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
  color: #fff;
}

.footer-bottom {
  margin-top: 12px;
  font-size: 13px;
  color: #bbb;
}

/* Footer responsive tweaks */
@media (max-width: 768px) {
  .footer { padding: 30px 16px 14px; }
  .footer-top h3 { font-size: 18px; margin: 8px 0; }
  .footer-top h4 { font-size: 14px; margin: 6px 0; }
  .footer-top p { margin: 8px 0; }
  .footer-links { font-size: 13px; margin: 12px 0; }
  /* social icons removed */
  .footer-bottom { margin-top: 15px; }
}

@media (max-width: 480px) {
  .footer { padding: 24px 14px 12px; }
  .footer-top h3 { font-size: 16px; margin: 6px 0; }
  .footer-top h4 { font-size: 13px; margin: 5px 0; }
  .footer-top p { margin: 6px 0; }
  .footer-links { font-size: 12px; margin: 10px 0; }
  /* social icons removed */
  .footer-bottom { margin-top: 12px; }
}