@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* styles.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

main {
  flex: 1; /* yung laman ng page, para itulak pababa ang footer */
}

.footer {
  margin-top: auto; /* para laging nasa pinakababa */
}
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    text-align: justify; /* lahat ng text justified */
    overflow-x: hidden;
      display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* First About Us Section */
.about-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 3rem 1rem;
  overflow: hidden;
  color: #fff;
  text-align: center;
}

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background: #000 url("images/kami.png") center/cover no-repeat;
  filter: brightness(0.5);
  z-index: 0;
  will-change: transform;
  animation: introBlur 1.2s ease-out; /* blur intro effect */
}

/* overlays for shuffle */
.parallax-bg::before,
.parallax-bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  z-index: 1;
  animation: shuffle 6s infinite; /* faster slideshow */
}

/* 2nd image */
.parallax-bg::before {
  background-image: url("images/55.png");
  animation-delay: 2s;
}

/* 3rd image */
.parallax-bg::after {
  background-image: url("images/1.png");
  animation-delay: 4s;
}

/* intro blur once */
@keyframes introBlur {
  0% {
    filter: brightness(0.5) blur(12px);
  }
  100% {
    filter: brightness(0.5) blur(0px);
  }
}

/* smooth & quick shuffle */
@keyframes shuffle {
  0%   { opacity: 0; }
  15%  { opacity: 1; }
  35%  { opacity: 1; }
  50%  { opacity: 0; }
  100% { opacity: 0; }
}



.about-section h1{
  font-size: 2.5rem;
  font-weight: 700;
}
.about-section p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  opacity: 1;               /* default visible */
  transform: none;          /* no hiding */
}

.about-section h1,
.about-section p {
  opacity: 0;
  transform: translateY(30px);
}

/* kapag visible */
.about-section h1.show,
.about-section p.show {
  animation: fadeSlide 0.8s ease-out forwards;
}

/* keyframes */
@keyframes fadeSlide {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}




/* Who We Are Section */
#who-we-are {
    background-color: #1D1616;
    color: #fff;
    padding: 3rem 2rem;
    border-radius: 15px;
    margin: 10rem auto;
    max-width: 1100px;
}

#who-we-are .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

#who-we-are h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

#who-we-are p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    color: #e0e0e0;
}

#who-we-are .text {
    flex: 1 1 60%;
}

#who-we-are .slider {
    flex: 1 1 35%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

#who-we-are .slides {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: auto;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

/* Hover zoom effect */
#who-we-are .slider:hover .slides {
    transform: scale(1.05);
    opacity: 0.95;
    cursor: pointer;
}

#who-we-are .about-img {
    display: none;
    width: 100%;     /* responsive */
    height: auto;    /* depends on image */
    border-radius: 15px;
    object-fit: contain;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

#who-we-are .about-img.active {
    display: block;
}

/* Navigation Buttons */
#who-we-are .prev,
#who-we-are .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 1.2rem;
    z-index: 10;
    transition: all 0.3s ease; /* smooth animation */
}

#who-we-are .prev { left: 10px; }
#who-we-are .next { right: 10px; }

/* hover effect */
#who-we-are .prev:hover,
#who-we-are .next:hover {
    background-color: rgba(0, 0, 0, 0.3);
    color: #8E1616; 
    transform: translateY(-50%) scale(1.2); /* zoom in konti */
    box-shadow: 0 4px 12px rgba(0,0,0,0.3); /* dagdag depth */
}

/* kapag clinick, may konting "click" effect */
#who-we-are .prev:active,
#who-we-are .next:active {
    transform: translateY(-50%) scale(0.9);
}

/* hidden state */
#who-we-are {
  opacity: 0;
  transform: scale(0.8) translateY(80px) rotate(-3deg);
  transition: all 0.3s ease-out;
}

/* visible state (cartoony bounce) */
#who-we-are.show {
  opacity: 1;
  transform: none;
  animation: cartoonyBounce 1s cubic-bezier(.68,-0.55,.27,1.55); 
}

/* cartoony bounce animation */
@keyframes cartoonyBounce {
  0% {
    transform: scale(0.8) translateY(80px) rotate(-5deg);
    opacity: 0;
  }
  60% {
    transform: scale(1.05) translateY(-15px) rotate(2deg); 
    opacity: 1;
  }
  80% {
    transform: scale(0.95) translateY(5px) rotate(-1deg);
  }
  100% {
    transform: scale(1) translateY(0) rotate(0);
  }
}

/* ========================= */
/* 📱 Mobile Responsive for Who We Are Section */
/* ========================= */
@media (max-width: 768px) {
  #who-we-are {
    margin: 5rem auto;       /* smaller margin for mobile */
    padding: 2rem 1rem;
    max-width: 95%;          /* fit within smaller screens */
  }

  #who-we-are .container {
    flex-direction: column;  /* stack text and slider */
    text-align: center;
  }

  #who-we-are .text {
    flex: 1 1 100%;
    margin-bottom: 1.5rem;
  }

  #who-we-are .slider {
    flex: 1 1 100%;
    max-width: 100%;
  }

  #who-we-are h2 {
    font-size: 2rem;
    line-height: 1.3;
  }

  #who-we-are p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
}

@media (max-width: 480px) {
  #who-we-are h2 {
    font-size: 1.6rem;
  }

  #who-we-are p {
    font-size: 0.9rem;
  }

  #who-we-are .prev,
  #who-we-are .next {
    padding: 8px 12px;
    font-size: 1rem;  /* smaller nav buttons */
  }
}

/* Mission Section */
#mission {
  padding: 4rem 2rem;
  text-align: center;
  margin-top:   -80px;
}

#mission h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1D1616;
}

#mission > p {
  max-width: 900px;
  margin: 0 auto 3rem auto;
  color: #555;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Grid Layout - 2 columns */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem; /* adjust mo ito (e.g., 1rem, 1.5rem) */
  max-width: 890px;
  margin: 0 auto;
  justify-items: center;
}

/* Mission Card */
.mission-card {
  position: relative;
  border: 5px solid #8E1616;
  border-radius: 12px;
  padding: 3rem 2rem 2rem 5rem; /* dagdag top + left space for icon */
  text-align: left;
  max-width: 400px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Icon sa upper-left - putol yung border */
.icon-box {
  position: absolute;
  top: -20px;   /* itinaas */
  left: -35px;  /* lumabas sa gilid */
  background: #fff;  /* para takpan yung border sa likod */
  padding: 3.5rem; /* dati siguro 1rem lang, dagdagan mo */
  width: 80px;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.icon-box img {
  width: 85px;
  height: 85px;
  object-fit: contain;
}

/* Text */
.mission-card p {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
  margin: 0;
}

.mission-card span {
  color: #8E1616;
  font-weight: 600;
}

/* ---------------------------
   Mission & reveal (scoped)
   --------------------------- */

/* Hidden state for revealable text (only scope to #mission & .our-values) */
#mission .hidden,
.our-values .hidden {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

/* Scroll in from left (scrolling down) */
#mission .fade-left.show,
.our-values .fade-left.show {
  animation: fadeSlideLeft 0.8s ease-out forwards;
}

/* Scroll in from right (scrolling up) */
#mission .fade-right.show,
.our-values .fade-right.show {
  animation: fadeSlideRight 0.8s ease-out forwards;
}

/* ---------------------------
   Mission cards bounce
   --------------------------- */
/* This is the rule that triggers the cartoony bounce — add it back! */
.mission-card.show {
  animation: cartoonyBounce 1s cubic-bezier(.68,-0.55,.27,1.55);
}

/* Hover still works */
.mission-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ---------------------------
   Keyframes
   --------------------------- */
@keyframes fadeSlideLeft {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeSlideRight {
  0% {
    opacity: 0;
    transform: translateX(30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes cartoonyBounce {
  0% {
    transform: scale(0.8) translateY(80px) rotate(-5deg);
    opacity: 0;
  }
  60% {
    transform: scale(1.05) translateY(-15px) rotate(2deg);
    opacity: 1;
  }
  80% {
    transform: scale(0.95) translateY(5px) rotate(-1deg);
  }
  100% {
    transform: scale(1) translateY(0) rotate(0);
  }
}


/* Responsive - 1 column pag maliit screen */
@media (max-width: 768px) {
  .mission-grid {
    grid-template-columns: 1fr;
  }
  .mission-card {
    padding: 4rem 2rem 2rem; /* balik sa taas center pag mobile */
    text-align: center;
  }
  .icon-box {
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* ========================= */
/* 📱 Mobile Responsive for Mission Section */
/* ========================= */
@media (max-width: 768px) {
  #mission {
    padding: 3rem 1.5rem;
    margin-top: -40px; /* bawasan ng konti gap sa taas */
  }

  #mission h2 {
    font-size: 2rem;
    line-height: 1.3;
  }

  #mission > p {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }

  .mission-grid {
    grid-template-columns: 1fr; /* 1 column layout */
    gap: 1.5rem;
  }

  .mission-card {
    max-width: 100%;
    padding: 4rem 1.5rem 2rem; /* balance spacing for mobile */
  }

  .icon-box {
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 70px;
    padding: 2.5rem;
  }

  .icon-box img {
    width: 70px;
    height: 70px;
  }
}

@media (max-width: 480px) {
  #mission h2 {
    font-size: 1.6rem;
  }

  #mission > p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .mission-card p {
    font-size: 0.9rem;
  }

  .icon-box {
    width: 60px;
    height: 60px;
    padding: 2rem;
    top: -35px;
  }

  .icon-box img {
    width: 60px;
    height: 60px;
  }
}



/* Our Vision Section */
#vision {
  background: #1D1616   ;
  color: #fff;
  text-align: center;
  padding: 1.5rem 2rem;
  border-radius: 200px;
  max-width: 1000px;
  margin: 2rem auto;
    margin-top:   80px;

  
}

#vision h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

#vision p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  color: #ddd;
}

/* Default hidden state */
#vision {
  opacity: 0;
  transform: scale(0.9) translateY(50px) rotate(-3deg);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

/* Show state (applies cartoony bounce) */
#vision.show {
  opacity: 1;
  transform: none;
  animation: cartoonyBounce 1s cubic-bezier(.68,-0.55,.27,1.55);
}

/* Cartoony bounce keyframes */
@keyframes cartoonyBounce {
  0% {
    transform: scale(0.8) translateY(80px) rotate(-5deg);
    opacity: 0;
  }
  60% {
    transform: scale(1.05) translateY(-15px) rotate(2deg);
    opacity: 1;
  }
  80% {
    transform: scale(0.95) translateY(5px) rotate(-1deg);
  }
  100% {
    transform: scale(1) translateY(0) rotate(0);
  }
}

/* Mobile Responsive - Our Vision Section */
@media (max-width: 768px) {
  #vision {
    padding: 1.2rem 1.5rem;
    border-radius: 50px; /* reduce circle radius for smaller screens */
    margin: 1.5rem;
  }

  #vision h2 {
    font-size: 1.8rem;
  }

  #vision p {
    font-size: 1rem;
    line-height: 1.6;
    padding: 0 0.5rem;
  }
}

@media (max-width: 480px) {
  #vision {
    padding: 1rem;
    border-radius: 30px;
    margin: 1rem;
  }

  #vision h2 {
    font-size: 1.5rem;
  }

  #vision p {
    font-size: 0.9rem;
    line-height: 1.5;
  }
}

/* Our Values Section */
.our-values {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  align-items: flex-start;
  margin: 5rem auto;
  max-width: 1100px;
  padding: 0 1rem;
  color: #1D1616;
  margin-top:  130px;
;

}

.values-left {
  flex: 1;
  max-width: 55%;
}

/* Heading with red line to the right */
.values-heading {
  font-size: 2.5rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
  padding-right: 1rem;
}

.values-heading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  height: 3px;
  background-color: #8E1616;
  padding: 2px; 
  width: calc(100vw - 100%); /* sakto hanggang dulo ng screen */}

.values-left p {
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
}

/* Right side - Accordion */
.values-right {
  flex: 1;
  max-width: 40%;
}

.accordion-item {
  border-bottom: 1px solid #000;
  padding: 0.7rem 0;
  margin: 5rem;
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
}
.accordion-item.active .accordion-body {
  max-height: 1000px; /* malaking value para siguradong kasya */
  opacity: 1;
}



.accordion-header .icon {
  font-size: 1.1rem;
}

/* Default visible (Our Values only) */
.our-values .values-left h2,
.our-values .values-left p,
.our-values .accordion-item {
  opacity: 1;
  transform: none;
}

/* Hidden state (before animation) */
.our-values .hidden {
  opacity: 0;
  transform: translateX(30px); /* horizontal offset */
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Scroll down animation (slide from left) */
.our-values .fade-left.show {
  animation: fadeSlideLeft 0.6s ease-out forwards;
}

/* Scroll up animation (slide from right) */
.our-values .fade-right.show {
  animation: fadeSlideRight 0.6s ease-out forwards;
}

/* Keyframes */
@keyframes fadeSlideLeft {
  from {
    opacity: 0;
    transform: translateX(-30px); /* galing kaliwa */
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeSlideRight {
  from {
    opacity: 0;
    transform: translateX(30px); /* galing kanan */
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Mobile responsiveness for Our Values Section */
@media (max-width: 1024px) {
  .our-values {
    flex-direction: column;
    gap: 2rem;
    margin-top: 80px;
  }

  .values-left,
  .values-right {
    max-width: 100%;
  }

  .values-heading {
    font-size: 2rem;
    padding-right: 0.5rem;
  }

  .values-heading::after {
    width: 50px; /* shorter line for smaller screens */
  }

  .values-left p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .accordion-item {
    margin: 2rem 0; /* reduce spacing on smaller screens */
  }
}

@media (max-width: 768px) {
  .values-heading {
    font-size: 1.8rem;
  }

  .values-heading::after {
    width: 40px;
  }

  .values-left p {
    font-size: 0.9rem;
  }

  .accordion-header {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .our-values {
    margin: 3rem auto;
    padding: 0 1rem;
  }

  .values-heading {
    font-size: 1.6rem;
  }

  .values-heading::after {
    width: 30px;
  }

  .values-left p {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .accordion-header {
    font-size: 0.9rem;
  }

  .accordion-item {
    margin: 1.5rem 0;
  }
}

/* Our Partners Section */
.partners-section {
  text-align: center;
  margin: 3rem 0;
  margin-top:  10px;
}

.partners-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #1D1616; /* dark text for contrast */
  padding-bottom: 0.5rem;
}

.partners-slider {
  width: 100%;
  overflow: hidden;
  border-top: 5px solid #1D1616;
  border-bottom: 5px solid #1D1616;
  background-color: #8E1616;
  padding: 2.5rem 0;
}

.partners-track {
  display: flex;
  gap: 2rem;
  animation: scroll 15s linear infinite;
}

.partner-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-weight: 600;
  flex-shrink: 0;
}

.partner-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.partner-logo img {
  width: 100%;
  height: 100%;
  object-fit: stretch;
}

/* Keyframes: dire-diretso lang */
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ✅ Pause on hover */
.partners-slider:hover .partners-track {
  animation-play-state: paused;
}

/* Default hidden state */
.partners-section.hidden {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Scroll down (fade in from left) */
.partners-section.fade-left.show {
  animation: fadeSlideLeft 0.8s ease-out forwards;
}

/* Scroll up (fade in from right) */
.partners-section.fade-right.show {
  animation: fadeSlideRight 0.8s ease-out forwards;
}

/* 📱 Mobile Responsive - Our Partners Section */
@media (max-width: 768px) {
  .partners-section h2 {
    font-size: 2rem;
  }

  .partners-slider {
    padding: 2rem 0;
  }

  .partners-track {
    gap: 1.5rem;
  }

  .partner-logo {
    width: 50px;
    height: 50px;
  }

  .partner-item {
    font-size: 0.95rem;
    gap: 0.4rem;
  }
}

@media (max-width: 480px) {
  .partners-section h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }

  .partners-slider {
    padding: 1.5rem 0;
  }

  .partners-track {
    gap: 1rem;
  }

  .partner-logo {
    width: 40px;
    height: 40px;
  }

  .partner-item {
    font-size: 0.85rem;
    gap: 0.3rem;
  }
}

/* Meet Our Team Section */
.our-team {
  max-width: 1200px;
  margin: 5rem auto;
  padding: 0 1rem;
  margin-top: 110px;
}

.team-heading {
  font-size: 2.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center; /* text at lines nasa gitna */
  gap: 1rem; /* space sa pagitan ng line at text */
  margin: 2rem 0;
  color: #1D1616; 
}

.team-heading::before,
.team-heading::after {
  content: "";
  flex: 1;
  height: 3px;
  padding: 2px;
  background-color: #8E1616;
}


/* Team grid - fixed 8 cards (4x2 layout) */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  justify-items: center;
}

/* Team card */
.team-card {
  background: #fff;
  border: 5px solid #1D1616;
  border-radius: 12px;
  text-align: center;
  padding: 2rem 1rem;
  width: 180px;
}

.team-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 5px solid #8E1616;
  margin: 0 auto 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.team-img img {
  width: 100%;
  height: 100%;
  object-fit: stretch;
}

.team-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.team-card p {
  font-size: 0.9rem;
  color: #555;
}

/* Hidden state for heading and cards */
.our-team .hidden {
  opacity: 0;
  transform: translateX(30px); /* horizontal slide for heading */
  transition: opacity 0.35s ease, transform 0.35s ease;
}

/* Heading slide animations */
.fade-left.show {
  animation: fadeSlideLeft 0.8s ease-out forwards;
}

.fade-right.show {
  animation: fadeSlideRight 0.8s ease-out forwards;
}

@keyframes fadeSlideLeft {
  0% { opacity: 0; transform: translateX(-30px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes fadeSlideRight {
  0% { opacity: 0; transform: translateX(30px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* Team cards bounce */
.team-card.show {
  animation: cartoonyBounce 1s cubic-bezier(.68,-0.55,.27,1.55);
  /* remove 'forwards' so hover works */
}

/* Hover effect */
.team-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Mobile responsiveness */
@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 columns on tablet */
    gap: 1.5rem;
  }

  .team-card {
    width: 150px; /* slightly smaller cards */
    padding: 1.5rem 1rem;
  }

  .team-img {
    width: 70px;
    height: 70px;
    border-width: 4px;
  }

  .team-card h3 {
    font-size: 0.95rem;
  }

  .team-card p {
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on small tablets/large phones */
    gap: 1rem;
  }

  .team-card {
    width: 140px;
    padding: 1.2rem 0.8rem;
  }

  .team-img {
    width: 60px;
    height: 60px;
    border-width: 3px;
  }

  .team-heading {
    font-size: 2rem;
    gap: 0.8rem;
  }
}

@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: 1fr; /* single column on phones */
    gap: 1rem;
  }

  .team-card {
    width: 100%; /* fill width */
    max-width: 250px;
    padding: 1rem 0.8rem;
  }

  .team-img {
    width: 50px;
    height: 50px;
    border-width: 3px;
  }

  .team-heading {
    font-size: 1.8rem;
    gap: 0.5rem;
  }
}


/* Footer Styles */
.footer {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 5rem 1rem;
  margin-top: 100px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  position: relative; /* para gumana yung ::after */
  transition: color 0.3s ease, transform 0.3s ease; /* add transform transition */}

.footer-nav a:hover {
  color: #8E1616;
  transform: scale(1.1); /* slight zoom on hover */
}


/* optional: active state */
.footer-nav a.active::after {
  width: 100%;
}


.footer-logo {
  height: 40px;
  transition: 0.3s ease-in-out;
  cursor: pointer; /* kamay na cursor kapag hover */
  transition: color 0.3s ease, transform 0.3s ease; /* add transform transition */}


.footer-logo:hover {
  transform: scale(1.2); /* slight zoom on hover */
  content: url("images/logo.png"); /* change image on hover */
}

.footer-divider {
  border: none;
  border-top: 1px solid #666;
  margin: 1.5rem auto;
  width: 80%;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-social a {
  color: #fff;
  font-size: 1.2rem;
  border: 1px solid #fff;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  text-decoration: none; /* tanggal underline */
}


.footer-social a {
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.footer-social a:hover {
  background: #8E1616;
  border-color: #8E1616;
  transform: scale(1.1); /* zoom effect */
}


.footer-bottom {
  font-size: 0.8rem;
  color: #aaa;
}

.footer {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 5rem 1rem;
  margin-top: 100px;

  /* Hidden state */
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.footer.show {
  opacity: 1;
  transform: translateY(0);
}

/* 📱 Mobile Responsive - Footer */
@media (max-width: 768px) {
  .footer {
    padding: 3rem 1rem;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .footer-nav a {
    font-size: 0.9rem;
  }

  .footer-social {
    gap: 1rem;
  }

  .footer-social a {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 2.5rem 1rem;
  }

  .footer-nav {
    flex-direction: column;
    gap: 0.8rem;
  }

  .footer-nav a {
    font-size: 0.85rem;
  }

  .footer-social {
    flex-wrap: wrap;
    gap: 0.8rem;
  }

  .footer-social a {
    width: 30px;
    height: 30px;
    font-size: 0.95rem;
  }

  .footer-bottom {
    font-size: 0.75rem;
  }
}


/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-img {
    max-width: 90%;
    max-height: 85%;
    border-radius: 10px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox .close:hover {
    color: #ff5555;
}

/* Lightbox navigation buttons */
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(255,255,255,0.2);
    color: #ff5555;
}

.lightbox-prev {
    left: calc(50% - 45% - 40px); /* 45% = half of max-width, 40px = offset from image */
}

.lightbox-next {
    right: calc(50% - 45% - 40px);
}

/* ========================= */
/* 📱 Mobile Responsive for Lightbox */
/* ========================= */
@media (max-width: 768px) {
  .lightbox-img {
    max-width: 95%;
    max-height: 75%;   /* allow room for controls */
  }

  .lightbox-prev,
  .lightbox-next {
    font-size: 1.6rem;
    padding: 8px 12px;
  }
}

@media (max-width: 480px) {
  .lightbox-img {
    max-width: 100%;
    max-height: 70%;
  }

  .lightbox .close {
    font-size: 2rem;
    top: 15px;
    right: 20px;
  }

  .lightbox-prev,
  .lightbox-next {
    font-size: 1.2rem;
    padding: 6px 10px;
  }

  /* move nav buttons closer to edges for small screens */
  .lightbox-prev {
    left: 15px;
  }

  .lightbox-next {
    right: 15px;
  }
}
