/* =============================================
   GLOBAL RESET & BASE
============================================= */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  width: 100%;
  font-family: 'Poppins', sans-serif !important;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =============================================
   FLUID FONT SIZE REFERENCE
   ─────────────────────────────────────────
   badge           : 11px → 14px   clamp
   section h2      : 20px → 44px   clamp
   paragraph       : 14px → 20px   clamp
   about h1        : 26px → 72px   clamp
   about p         : 14px → 22px   clamp
   card h3         : 15px → 22px   clamp
   card p          : 13px → 18px   clamp
   profile name    : 13px → 26px   clamp
   profile role    : 11px → 17px   clamp
   vision/mis h2   : 20px → 44px   clamp
   vision/mis p    : 14px → 20px   clamp
============================================= */

/* =============================================
   ABOUT SECTION
============================================= */
.about-section {
  background: #0f7c66;
  padding: clamp(40px, 6vw, 80px) clamp(12px, 3vw, 20px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 130px;
  width: 100%;
}

.about-card {
  position: relative;
  font-family: 'Inter', sans-serif !important;
  background: linear-gradient(216.93deg, #007260 58.27%, #003B31 99.98%);
  max-width: 95%;
  font-family: 'Inter', sans-serif;
  width: 95%;
  padding: clamp(32px, 5vw, 72px) clamp(20px, 5vw, 60px);
  border-radius: clamp(14px, 2vw, 25px);
  text-align: center;
  color: #fff;
  box-shadow: 0 0 0 8px rgba(0,0,0,0.15), 0 15px 30px rgba(0,0,0,0.25);
  border: 0.5px solid rgba(255,255,255,1);
}

/* ─── Shared Badge (About, Core Values) ─── */
.badge {
      display: inline-block;
      font-family: 'Inter', sans-serif !important;
    padding: .35em .65em;
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 12px;
}

/* About Heading */
.about-card h1 {
  font-size: 120px;
  font-family: 'Inter', sans-serif !important;
  font-weight: 700;
  line-height: 125px;
  margin-bottom: clamp(16px, 2vw, 28px);
  color: #fff;
}

/* About Paragraph */
.about-card p {
    font-size: 40px;  
    font-family: 'Inter', sans-serif !important;
    line-height: 52px;
    color: #e6f2ef;
    font-weight: 400;
    max-width: 76%;
    margin: 0 auto;
}

/* =============================================
   VISION SECTION
============================================= */
.vision-section {
  background: #0f7c66;
  padding: clamp(50px, 7vw, 90px) clamp(20px, 6vw, 80px);
  color: #fff;
  width: 100%;
}

.vision-container {
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(28px, 5vw, 60px);
}

.vision-content {
  flex: 1;
  max-width: 50%;
}

/* Vision & Mission shared badge */
.vision-badge,
.mission-badge {
  background: #d4a73c;
  color: #fff;
  padding: clamp(5px, 0.6vw, 9px) clamp(12px, 1.5vw, 20px);
  border-radius: 12px;
  font-size: 32px;
  line-height: 44px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: clamp(12px, 1.5vw, 20px);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.vision-content h2,
.mission-content h2 {
  font-size: 54px;
    font-weight: 700;
    line-height: 64px;
    margin-bottom: clamp(10px, 1.2vw, 18px);
    color: #fff;
}

.highlight {
  color: #f2b541;
}

.underline {
  width: clamp(44px, 5vw, 68px);
  height: 3px;
  background: #f2b541;
  margin: clamp(12px, 1.5vw, 18px) 0;
  border-radius: 2px;
}

.vision-content p,
.mission-content p {
  font-size: 28px;
  line-height: 40px;
  color: #e6f2ef;
  font-weight: 400;
}

.vision-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 50%;
}

.vision-image img {
  max-width: clamp(160px, 28vw, 380px);
  width: 100%;
  height: auto;
  animation: float 4s ease-in-out infinite;
}

/* =============================================
   MISSION SECTION
============================================= */
.mission-section {
  background: #0f7c66;
  padding: clamp(50px, 7vw, 90px) clamp(20px, 6vw, 80px);
  color: #fff;
  width: 100%;
}

.mission-container {
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(28px, 5vw, 70px);
}

.mission-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 50%;
}

.mission-image img {
  max-width: clamp(160px, 28vw, 380px);
  width: 100%;
  height: auto;
  animation: float 4s ease-in-out infinite;
}

.mission-content {
  flex: 1;
  max-width: 50%;
}

/* =============================================
   CORE VALUES SECTION
============================================= */
.core-values {
  background: #0f7c66;
  padding: clamp(50px, 7vw, 90px) clamp(16px, 4vw, 40px);
  color: #fff;
  width: 100%;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: clamp(28px, 4vw, 50px);
}

.section-header h2 {
  font-size: 54px;
  font-weight: 700;
  margin-top: clamp(8px, 1vw, 14px);
  margin-bottom: clamp(10px, 1.2vw, 16px);
  color: #fff;
  line-height: 64px;
}

.section-header h2 span {
  color: #f2b541;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 28px);
}

/* ─── Value Card ─────────────────────────── */
.value-card {
  padding: clamp(18px, 2.5vw, 30px) clamp(14px, 2vw, 26px);
  border-radius: clamp(10px, 1.2vw, 14px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 0.5px solid rgba(255,255,255,0.75);
  background: linear-gradient(216.93deg, #007260 58.27%, #003B31 99.98%);
  box-shadow: 4px 8px 16px rgba(0,0,0,0.35);
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: 4px 16px 30px rgba(0,0,0,0.5);
}

.value-card .card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: clamp(10px, 1.5vw, 18px);
  gap: clamp(8px, 1vw, 12px);
}

.value-card .card-top h3 {
    font-size: 40px;
    font-weight: 500;
    color: #fff;
    flex: 1;
    line-height: 44px;
}

.icon-circle {
  width: clamp(40px, 5vw, 70px);
  height: clamp(40px, 5vw, 70px);
  min-width: clamp(36px, 4vw, 50px);
  background: linear-gradient(180deg, #C9982C 0%, #4C3C19 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-circle img {
  width: clamp(18px, 2.5vw, 35px);
  height: clamp(18px, 2.5vw, 35px);
}

.value-card p {
  font-size: 28px;
  line-height: 40px;
  color: #e6f2ef;
  font-weight: 400;
}

/* =============================================
   TEAM SECTION — Fully Fluid Profile Cards
   ─────────────────────────────────────────
   Cards fill the grid cell width.
   Aspect-ratio 2/3 replaces hardcoded height.
   All inner offsets become % so they scale.
============================================= */
.team-section {
  background: #037b69;
  padding: clamp(50px, 6vw, 80px) clamp(14px, 3vw, 40px) clamp(60px, 8vw, 100px);
  width: 100%;
}

.team-container {
  max-width: 1400px;
  margin: 0 auto;
}

.team-heading {
  text-align: center;
  margin-bottom: clamp(28px, 4vw, 48px);
}

/* GRID */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 75px;
  justify-items: center;
  align-items: start;
}

.profile-card-wrapper {
  width: 380px;
  height: 622px;    
  aspect-ratio: 2 / 3;
  border-radius: clamp(18px, 3vw, 45px);
  border: 4px solid #ffffff;
  padding: 8px;                            /* gap between border and card          */
  box-sizing: border-box;
  background: transparent;                 /* wrapper itself stays see-through     */
}

/* ─── Profile Card — Fully Fluid ─────────── */
.profile-card {
  width: 355px;
  height: 600px;           /* graceful cap on very wide grids      */
  aspect-ratio: 2 / 3;       /* replaces fixed 400 × 600             */
  background: #c79a2b;
  border-radius: clamp(18px, 3vw, 45px);
  /* border: 4px solid #ffffff; */
  position: relative;
  overflow: visible;          /* image top overflow allowed           */
}

/* IMAGE WRAPPER — overflows card top by ~8% */
.profile-img-wrap {
  position: absolute;
  top: -8%;
  left: 0;
  width: 100%;
  height: 108%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
  border-radius: clamp(18px, 3vw, 45px);
}

.profile-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: clamp(18px, 3vw, 45px);
}

/* OVERLAY — anchored to card bottom */
.profile-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: clamp(10px, 3.5%, 30px) clamp(8px, 4%, 20px);
  text-align: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 0 0 clamp(15px, 2.8vw, 39px) clamp(15px, 2.8vw, 39px);
  min-height: 22%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: clamp(3px, 0.5vw, 8px);
}

.profile-overlay h2 {
  font-size: clamp(12px, 1.5vw, 26px);
  font-weight: 800;
  margin: 0px;
  letter-spacing: clamp(0.5px, 0.2vw, 3px);
  text-shadow: 2px 2px 10px rgba(0,0,0,0.6);
  line-height: 1.2;
}

.profile-overlay p {
  font-size: clamp(10px, 1.1vw, 17px);
  line-height: 1.3;
  color: #f0ece2;
  font-weight: 400;
}

/* =============================================
   FLOAT ANIMATION
============================================= */
@keyframes float {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-14px); }
  100% { transform: translateY(0px); }
}

/* =============================================
   ≥ 1600px — EXTRA WIDE
============================================= */
@media (min-width: 1600px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}

/* =============================================
   ≤ 1280px — STANDARD DESKTOP
============================================= */
@media (max-width: 1280px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}

/* =============================================
   ≤ 1024px — TABLET LANDSCAPE
============================================= */
@media (max-width: 1024px) {
  .about-card {
    max-width: 96%;
    width: 96%;
  }

  /* Core Values — 2 columns */
  .values-grid { grid-template-columns: repeat(2, 1fr); }

  /* Team — 3 columns */
  .team-grid { grid-template-columns: repeat(3, 1fr); }

  .profile-overlay h2{
    font-size: 28px;    
  }
  .profile-overlay p{
    font-size: 18px;
  }
}

/* =============================================
   ≤ 900px — TABLET PORTRAIT
============================================= */
@media (max-width: 900px) {
  /* Vision — stack */
  .vision-container {
    flex-direction: column;
    text-align: center;
    gap: 28px;
  }
  .vision-content { max-width: 100%; }
  .vision-content .underline { margin: 14px auto; }
  .vision-image { max-width: 100%; }
  .vision-image img { max-width: 240px; margin: 0 auto; }

  /* Mission — stack */
  .mission-container {
    flex-direction: column-reverse;  /* image below text on portrait */
    text-align: center;
    gap: 28px;
  }
  .mission-content { max-width: 100%; }
  .mission-content .underline { margin: 14px auto; }
  .mission-image { max-width: 100%; }
  .mission-image img { max-width: 240px; margin: 0 auto; }

  /* Team — 3 columns */
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}

/* =============================================
   ≤ 768px — LARGE MOBILE
============================================= */
@media (max-width: 768px) {
  .about-card { max-width: 100%; width: 100%; }

  /* Core Values — 1 column */
  .values-grid { grid-template-columns: 1fr; }

  /* Team — 2 columns */
  .team-grid {     
      grid-template-columns: repeat(2, 1fr);
      width: 50%; 
  }

  .profile-card{
    width: 300px;
    height: 350px;
  }

  .vision-image img,
  .mission-image img { max-width: 200px; }

  .about-card p{
    max-width: 100%;
    font-size: 28px;
  }
  .about-card h1{
    font-size: 60px;
  }
  .vision-badge, .mission-badge{
      line-height: 30px;
  }
  .vision-content h2, .mission-content h2{
    font-size: 40px;
    line-height: 50px;
  }
  .vision-content p, .mission-content p{
    font-size: 22px;
  }
  .section-header h2{
    font-size: 40px;
  }
}

/* =============================================
   ≤ 600px — STANDARD MOBILE
============================================= */
@media (max-width: 600px) {
  .vision-image img,
  .mission-image img { max-width: 170px; }

  .team-grid { grid-template-columns: repeat(1, 1fr); gap: 12px; }
}

/* =============================================
   ≤ 480px — SMALL MOBILE
============================================= */
@media (max-width: 480px) {
  .about-card { 
        border-radius: 12px;
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
  }

  .vision-image img,
  .mission-image img { max-width: 150px; }

  /* Keep 2 columns but constrain grid */
  .team-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 50px;
    /* max-width: 380px; */
    margin: 0 auto;
    width: auto;
  }

  .value-card .card-top h3{
      font-size: 28px;
      line-height: 30px;
  }

  .value-card p{
    font-size: 18px;
    line-height: 30px;
  }

  .section-header h2{
    line-height: 35px;
    font-size: 28px;
  }

  .badge, .mission-badge{
    font-size: 18px ;
    background: #d4a73c;
  }

  

  .vision-badge, .mission-badge{
    font-size: 18px;
  }
  .vision-content h2, .mission-content h2{
        font-size: 26px;
        line-height: 40px;
  }
  .vision-content p, .mission-content p{
    font-size: 18px;
    line-height: 30px;
  }

  .about-card h1{
    font-size: 28px;
    line-height: 35px;
  }
  .about-card p{
    font-size: 18px;
    line-height: 30px;
  }

  .about-section{
    padding-top: 100px;
  }

  /* Overlay text compact */
  .profile-overlay h2 { letter-spacing: 0.3px; font-size: 28px; color: rgba(255, 255, 255, 1); }

  .profile-overlay p {     letter-spacing: 0.3px; font-size: 18px; }
}

/* =============================================
   ≤ 390px — EXTRA SMALL
============================================= */
@media (max-width: 390px) {
  .vision-image img,
  .mission-image img { max-width: 130px; }

  .team-grid {
    max-width: 340px;
    gap: 8px;
  }
}

/* =============================================
   ≤ 360px — MINIMUM VIEWPORT
============================================= */
@media (max-width: 360px) {
  .team-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 8px;
    max-width: 300px;
  }
}

/* =============================================
   LANDSCAPE PHONE
============================================= */
@media (max-height: 500px) and (orientation: landscape) {
  .vision-container,
  .mission-container {
    flex-direction: row;
    text-align: left;
  }
  .vision-content,
  .mission-content { max-width: 55%; }
  .vision-content .underline,
  .mission-content .underline { margin: 12px 0; }
  .vision-image img,
  .mission-image img { max-width: 180px; }

  .team-grid { grid-template-columns: repeat(1, 1fr); }
}

/* =============================================
   TOUCH DEVICES — remove hover states
============================================= */
@media (hover: none) and (pointer: coarse) {
  .value-card:hover {
    transform: none;
    box-shadow: 4px 8px 16px rgba(0,0,0,0.35);
  }
}

/* =============================================
   iOS SAFARI
============================================= */
@supports (-webkit-touch-callout: none) {
  body { -webkit-overflow-scrolling: touch; }
  .profile-overlay { -webkit-backdrop-filter: blur(12px); }
  .about-card h1,
  .vision-content h2,
  .mission-content h2 {
    -webkit-font-smoothing: antialiased;
  }
}

@media (max-width: 425px){
  .profile-card-wrapper{
    width: 322px !important;
    height: 372px !important;
  }
}

@media (max-width: 480px){
  .profile-card-wrapper{
    width: 322px !important;
    height: 372px !important;
  }
}

@media (max-width: 576px){
  .profile-card-wrapper{
    width: 322px !important;
    height: 372px !important;
  }
}