/* ====================================
   GLOBAL STYLES
==================================== */
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: url('../banners/about.png') no-repeat center top;
  background-size: 1920px auto;
  font-family: 'Poppins', sans-serif;
}

.container {
  max-width: 1920px;
  margin: 0 auto;
}

.box-wrapper {
  border: 2px solid white;
  margin: 12px;
  padding: 12px;
  background: transparent;
}






/* ====================================
   SCROLL TO TOP BUTTON
==================================== */
#scrollToTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 90px;
  height: 90px;
  font-size: 24px;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid white;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  transition: background 0.3s, transform 0.2s;
  box-sizing: border-box;
  max-width: 100vw;
  pointer-events: auto;
}

#scrollToTopBtn:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

#scrollToTopBtn svg {
  display: block;
  margin: auto;
  width: 35px;
  height: 35px;
  transition: transform 0.3s ease;
}


#scrollToTopBtn:hover svg {
  transform: scale(1.4); /* Increase arrow size on hover */
}

/* Prevent horizontal overflow globally */
html, body {
  overflow-x: hidden;
}


/* Mobile adjustments */
@media (max-width: 600px) {
  #scrollToTopBtn {
    bottom: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    font-size: 16px;
    border-width: 1.2px;
  }

  #scrollToTopBtn svg {
    width: 18px;
    height: 18px;
  }
}





/* ====================================
   NAVIGATION SECTION
==================================== */
.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  position: relative;
  background-color: transparent;
  flex-wrap: wrap;
  gap: 20px;
  min-height: 160px;
}

.nav-left,
.nav-right {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-item {
  color: white;
  text-decoration: none;
  font-weight: 400;
  font-size: 18px;
  padding: 12px 18px;
  border-radius: 4px;
  display: inline-block;
  text-align: center;
  transition: background 0.3s, transform 0.2s;
}

.nav-item:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.logo {
  padding: 4px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 140px;
  height: 140px;
  overflow: hidden;
  transition: background 0.3s, transform 0.2s;
  position: relative;
  z-index: 1000;
}

.logo:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.logo img {
  width: 100px;
  height: 100px;
  display: block;
  animation: rotateLogo 4s linear infinite;
  transform-origin: center;
}

@keyframes rotateLogo {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* === HAMBURGER MENU === */
.hamburger {
  display: none;
  font-size: 28px;
  font-weight: 700;
  color: white;
  cursor: pointer;
  padding: 12px 18px;
  z-index: 1001;
  position: absolute;
  top: 20px;
  left: 20px;
}

/* === MOBILE NAVIGATION === */
.mobile-nav {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 160px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.95);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 999;
  width: 80%;
  max-width: 320px;
}

.mobile-nav a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  padding: 12px 0;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: background 0.3s;
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.mobile-nav.active {
  display: flex;
}


/* ====================================
   RESPONSIVE NAVIGATION (≤1000px)
==================================== */
@media (max-width: 1000px) {
  /* Hide desktop nav links */
  .nav-item {
    display: none;
  }

  /* Show hamburger icon */
  .hamburger {
    display: block;
    z-index: 1002;
  }

  /* Resize logo for mobile */
  .logo {
    width: 100px;
    height: 100px;
    margin: 0 auto;
  }

  .logo img {
    width: 70px;
    height: 70px;
  }

  /* Mobile nav hidden by default */
  .mobile-nav {
    display: none;
  }

  /* Mobile nav visible when active */
  .mobile-nav.active {
    display: flex;
  }
}


/* ====================================
   LOADER SCREEN
==================================== */

/* Loader screen full page */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black; /* solid black background */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Hide the rest of the page while loading */
body.loading main,
body.loading header,
body.loading footer {
  visibility: hidden;
}

/* Rotating logo */
#loading-logo {
  width: 120px;
  height: 120px;
  animation: spin 3s linear infinite; /* continuous slower spin */
}

/* Continuous rotation animation */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Class to stop rotation instantly */
.stop-rotation {
  animation: none !important;
}

/* Fade out animation for loader */
.fade-out {
  animation: fadeOut 1s ease forwards;
}

@keyframes fadeOut {
  to { opacity: 0; visibility: hidden; }
}

@media (max-width: 600px) {
  #loading-logo {
    width: 80px;
    height: 80px;
  }
}

/* ====================================
   HERO SECTION
==================================== */

.hero-section {
  position: relative;
  width: 100%;
  height: 75vh;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* White-bordered box with clipped background */
.white-border {
  position: relative;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  border: 2px solid #fff;
  box-sizing: border-box;
  overflow: hidden;
  animation: fadeIn 0.8s ease-out forwards;
  opacity: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Background image contained within the border */
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Hero text positioned top-left inside the border */
.hero-text {
  position: relative;
  padding: 100px 100px;
  max-width: 1200px;
  text-align: left;
  color: #fff;
  z-index: 1;
  text-shadow: 0px 2px 6px rgba(0, 0, 0, 0.45);
}

.hero-text h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 150px;
  line-height: 1.2;
  margin: 0;
  width: 900px;
  word-wrap: break-word;
  opacity: 0; /* start hidden */
}

.hero-text h1 span,
.hero-text h1 strong {
  font-weight: 800;
}

/* Triggered animation */
.hero-text h1.animate-text {
  animation: swipeInRight 0.8s ease-out forwards;
}

@keyframes swipeInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}


/* ==== DESCRIPTION SECTION START ==== */
.description-frame {
  width: calc(100% - 24px); /* to simulate 12px space on left & right */
  box-sizing: border-box;
  padding: 12px;
  background-color: transparent;
  border: 2px solid #fff;
  margin: 12px auto; /* centers the section and adds top/bottom space */
  opacity: 1; /* Fully visible without animation */
}

.description-inner {
  max-width: 1100px; /* previously 900px */
  width: 100%;
  margin: 0 auto;
  padding: 12px;
  text-align: center;
}


.description-inner h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 40px;
  color: #fff;
  margin-top: 20px;
  margin-bottom: 10px;
  text-align: center;
}




.description-inner p {
  font-family: 'Poppins', sans-serif;
  font-weight: 200;
  font-size: 18px;
  line-height: 2;
  color: #fff;
  margin-top: 20px; /* reduced from 50px */
  margin-bottom: 50px;
  display: inline-block;
  max-width: 95%;
}


@media screen and (max-width: 480px) {
  .hero-section {
    height: 60vh;
    padding: 12px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .white-border {
    width: 100%;
    height: 100%;
    border: 2px solid #fff;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-text {
    padding: 0 20px;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 48px;
    line-height: 1.3;
    width: 100%;
    animation: swipeInRight 0.6s ease-out forwards;
  }

  .description-frame {
    padding: 12px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
  }

  .description-inner {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .description-inner h2 {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin-top: 12px;
    margin-bottom: 8px;
    text-align: center;
  }

  .description-inner p {
    font-size: 12px;
    line-height: 1.8;
    color: #fff;
    margin-top: 8px;
    margin-bottom: 24px;
    max-width: 95%;
    text-align: center;
  }
}







/* ====================================
 VISION AND MISSION 
==================================== */


.vision-mission-box {
  width: calc(100% - 24px);
  margin: 12px;
  padding: 24px;
  border: 2px solid white;
  background-color: transparent;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 800px;
  position: relative;
  overflow: hidden;
}

.vm-container {
  width: 100%;
  max-width: 880px;
  height: 100%;
  background-color: transparent;
  padding: 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  border: none; /* remove white border on desktop */
  z-index: 1;
}


.vm-image {
  cursor: pointer;
  transition: transform 0.2s ease;
  height: auto;
}

.vm-image:hover {
  transform: scale(1.05);
}

.vision-img {
  max-width: 520px;
}

.mission-img {
  max-width: 640px;
}

/* Shared content panel for Vision and Mission */
.content-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 880px;
  width: 100%;
  padding: 24px;
  box-sizing: border-box;
  border: 2px solid white;
  background-color: transparent;
  color: white;
  z-index: 2;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.content-panel.active {
  display: flex;
}

/* Utility */
.hidden {
  display: none;
}

.back-btn {
  margin-top: 20px;
  color: white;
  text-decoration: underline;
  font-weight: 600;
  cursor: pointer;
}

@media screen and (max-width: 480px) {
  .vision-mission-box {
    width: calc(100% - 24px);
    margin: 12px auto;
    padding: 16px;
    min-height: auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .vm-container {
    width: 100%;
    padding: 12px;
    flex-direction: column;
    gap: 16px;
    border: none; /* removed */
  }
  .vision-img,
  .mission-img {
    max-width: 100%;
    width: 100%;
    height: auto;
  }

  .content-panel {
    position: fixed;
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    height: 100%;
    padding: 20px;
    border: none;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 999;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .content-panel h2 {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .content-panel p {
    font-size: 12px;
    line-height: 1.6;
    max-width: 90%;
    margin-bottom: 20px;
  }

  .back-btn {
    font-size: 14px;
    margin-top: 12px;
  }
}











/* ====================================
 ROOTED SECTION
==================================== */

.rooted-section {
  width: calc(100% - 24px);
  margin: 0 auto;
  padding: 48px 0;
  border: 2px solid #fff;
  background-color: transparent;
  color: #fff;
  box-sizing: border-box;
  text-align: center;
  margin-bottom: 15px; 
}

/* Header */
.rooted-section > h2 {
  font-size:90px;
  margin-bottom: 48px;
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
}

/* Horizontal Container Row */
.container-row {
  display: flex;
  justify-content: center; /* centers all containers as a unit */
  gap: 24px; /* slightly reduced gap between containers */
  padding: 0 12px; /* reduces side padding */
  flex-wrap: wrap;
  max-width: 100%; /* ensures it doesn’t overflow */
  box-sizing: border-box;
}

.container {
  width: 350px; /* slightly narrower than before */
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}


/* Image Box */
.image-box {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  transition: transform 0.3s ease;
}

/* Image */
.image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

/* Hover Zoom */
.image-box:hover img {
  transform: scale(1.05);
}

/* Overlay */
.overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 24px;
}

.image-box:hover .overlay {
  opacity: 1;
}

.overlay-content {
  max-height: 100%;
  overflow-y: auto;
  width: 100%;
}

/* Title Below Image */
.box-title {
  margin-top: 16px;
  font-size: 20px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  color: #fff;
  text-align: center;
}

/* Responsive */
@media screen and (max-width: 480px) {
  .container-row {
    flex-direction: column;
    align-items: center;
  }

  .rooted-section > h2 {
    font-size: 24px;
    margin-bottom: 32px;
  }

  .container {
    width: 90vw;
  }

  .image-box {
    height: 90vw;
  }

  .box-title {
    font-size: 18px;
    margin-top: 12px;
  }

  .overlay {
    font-size: 14px;
    padding: 16px;
  }
}


@media screen and (max-width: 480px) {
  .rooted-section {
    padding: 16px 0;
    border-width: 1px;
    margin-bottom: 8px;
  }

  .rooted-section > h2 {
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
  }

  .container-row {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    display: flex;
  }

  .container {
    width: 85vw;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .image-box {
    width: 60vw;
    height: 60vw;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .overlay {
    font-size: 9px;
    padding: 8px;
    text-align: center;
  }

  .box-title {
    font-size: 15px; 
    margin-top: 6px;
    text-align: center;
  }
}


/* ====================================
   CALL TO ACTION SECTION
==================================== */
.box-wrapper.cta-box {
  margin: 12px; /* outer margin */
  padding: 40px;
  background: transparent;
  border: 2px solid white;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.cta-content {
  width: 100%;
  max-width: 1120px;
  padding: 0 20px;
  box-sizing: border-box;
  text-align: center;
}

.cta-title {
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.2;
  color: white;
}

.cta-text {
  font-weight: 500;
  font-size: 20px;
  color: white;
  line-height: 1.8;
  margin: 0 auto;
}

@media screen and (max-width: 480px) {
  .stroke-section img {
    width: 1920px;
    margin: 5px;
  }

  .box-wrapper.cta-box {
    margin: 12px;
    padding: 20px;
    border-width: 1px;
  }

  .cta-title {
    font-size: 28px;
    line-height: 1.3;
    margin-bottom: 16px;
  }

  .cta-text {
    font-size: 12px;
    line-height: 1.8;
    padding: 0 12px;
  }
}

/* ====================================
   footer wrapper
==================================== */
.footer-wrapper {
  width: 100%;
}


/* ==== FOOTER BOX ==== */
.footer-box {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 60px 0;
  background-color: rgba(0, 0, 0, 0.3);
  border-left: 2px solid white;
  border-right: 2px solid white;
  box-sizing: border-box;
}


/* ==== FOOTER CONTENT LAYOUT ==== */
.footer-content {
  display: flex;
  justify-content: center;
  gap: 40px;
}


/* ==== LEFT SIDE CONTAINER ==== */
.footer-left {
  width: 350px;
  height: 503px;
  overflow: hidden;
  position: relative;
  margin-right: 60px;
}


/* ==== SCROLL TRACK ==== */
.footer-left-track {
  display: flex;
  flex-direction: column;
  animation: scrollLoop 12s linear infinite;
}


/* ==== IMAGE STYLE ==== */
.footer-left-track img {
  width: 350px;
  object-fit: contain;
  display: block;
  margin-bottom: 40px;
}


/* ==== INFINITE SCROLL KEYFRAMES ==== */
@keyframes scrollLoop {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}


/* ==== RIGHT SIDE CONTAINER ==== */
.footer-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-end;
}


/* ==== 2a - SLOGAN TEXT ==== */
.footer-2a p {
  font-size: 70px;
  font-weight: 800;
  color: white;
  text-align: right;
  line-height: 1.2;
  margin: 0;
}



/* ==== WRAPPER FOR 2b and 2c SIDE-BY-SIDE ==== */
.footer-2bc-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 40px;
}


/* ==== 2b - NAVIGATION LINKS ==== */
.footer-2b {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.footer-2b a {
  font-family: 'Poppins', sans-serif;
  font-size: 30px;
  font-weight: 400;
  color: white;
  text-decoration: none;
  padding: 7px 15px;
  border-radius: 6px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.footer-2b a:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}


/* ==== 2c - ICON BUTTONS ==== */
.footer-2c {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.footer-2c a img {
  width: 45px;
  height: 45px;
  padding: 6px;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.footer-2c a img:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}


/* ==== CREDITS SECTION ==== */
.credits-box {
  padding: 20px 0;
  background-color: black;
  display: flex;
  justify-content: center;
}

.credits-container {
  width: 960px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.credits-left,
.credits-right {
  font-size: 14px;
  color: white;
  font-weight: 400;
  margin: 0;
  white-space: nowrap;
}
@media screen and (max-width: 768px) {
  /* ==== FOOTER BOX ==== */
  .footer-box {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    border-left: 1px solid white;
    border-right: 1px solid white;
    box-sizing: border-box;
    overflow: visible;
    height: 400px;
  }

  /* ==== FOOTER CONTENT ==== */
.footer-content {
  display: flex;
  justify-content: flex-start; /* Aligns items to the left */
  align-items: center;
  width: 600px;
  height: 500px;
  transform: scale(0.65);
  transform-origin: center center;
  margin: 0 auto;
  gap: 10px; /* Ensures no space between children */
}


  /* ==== LEFT SIDE ==== */
  .footer-left {
    width: 350px;
    height: 503px;
    margin-right: 0;
  }

  .footer-left-track img {
    width: 250px;
    margin-bottom: 40px;
  }

  /* ==== RIGHT SIDE ==== */
  .footer-right {
    gap: 10px;
    align-self: center; /* Ensures vertical centering inside scaled layout */
    margin-top: 0;       /* Remove any default spacing */
    padding-top: 0;      /* Just in case */
  }




  .footer-2a {
    width: 100%;
    max-width: 320px;
    margin-top: 0;
    padding-top: 0;
  }

  .footer-2a p {
    font-size: 50px;
    line-height: 1.2;
    font-weight: 800;
    color: white;
    text-align: right;
    margin: 0;
    padding-bottom: 10px;
  }

  .footer-2b a {
    font-size: 25px;
    padding: 5px 10px;
  }

  .footer-2c a img {
    width: 40px;
    height: 40px;
    padding: 2px;
  }

  .footer-2bc-wrapper {
    gap: 20px;
  }

  /* ==== CREDITS SECTION ==== */
  .credits-box {
    padding: 12px 0;
  }

  .credits-container {
    width: 100%;
    padding: 0 12px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .credits-left {
    font-size: 10px;
    white-space: nowrap;
    text-align: center;
  }

  .credits-right {
    display: none;
  }
}