/* 🌍 Reset & Base */
* { margin:0; padding:0; box-sizing:border-box; font-family:"Poppins",sans-serif; }
body { background:#f9fbff; color:#333; line-height:1.6; scroll-behavior:smooth; }
img { max-width:100%; display:block; }

/* Hero (fixed, responsive, fallback-safe) */
.about-hero {
  /* NOTE: use a folder name without spaces. Recommended: photo-gallery */
  background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.35)),
              url('./about_background.webp') center center / cover no-repeat;
  /* If you cannot rename folder, use this instead (less recommended):
     url('photo%20gallery/about_background.webp') center center / cover no-repeat;
  */

  /* fallback color if image fails */
  background-color: #002b3a;

  position: relative;
  color: #fff;

  /* top 140px, right/left 20px, bottom 100px */
  padding: 140px 20px 100px;

  text-align: center;
  overflow: hidden; /* prevents children overflow during animations */
}

/* dark overlay layer (keeps text readable) */
.about-hero .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.45);
  pointer-events: none;
}

/* content above overlay */
.about-hero .hero-text {
  position: relative;
  z-index: 2;
  animation: fadeIn 900ms ease both;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 12px;
}

/* logo */
.about-hero .hero-logo {
  width: 90px;
  margin: 0 auto 15px;
  display: block;
  animation: bounce 2.2s infinite;
}

/* heading & accent */
.about-hero h1 {
  font-size: 3rem;
  line-height: 1.05;
  margin: 8px 0 10px;
  font-weight: 800;
}
.about-hero h1 span {
  color: #ff9800;
  text-shadow: 0 2px 12px rgba(255,152,0,0.12);
}

/* paragraph */
.about-hero p {
  font-size: 1.1rem;
  opacity: 0.95;
  margin: 0 auto;
  max-width: 760px;
  animation: fadeInUp 900ms ease both;
}

/* small-screen responsive tweaks */
@media (max-width: 768px) {
  .about-hero {
    padding: 100px 16px 60px;
    background-position: center top;
  }
  .about-hero h1 { font-size: 2rem; }
  .about-hero .hero-logo { width: 72px; }
  .about-hero p { font-size: 1rem; }
}

/* simple keyframes used above */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Sections */
section { padding:80px 20px; }
section h2 { font-size:2.2rem; margin-bottom:20px; color:#004d7a; text-align:center; position:relative; }
section h2::after { content:""; width:70px; height:3px; background:#ff9800; display:block; margin:10px auto; border-radius:2px; }

/* Our Story */
.split { display:flex; flex-wrap:wrap; align-items:center; gap:30px; }
.story-text { flex:1; animation:fadeLeft 2s ease; }
.story-img { flex:1; animation:fadeRight 2s ease; }
.story-img img { width:100%; border-radius:15px; box-shadow:0 5px 20px rgba(0,0,0,0.15); }

/* Vision & Values */
.vision-row { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:20px; margin-top:30px; }
.vision-card { background:#fff; padding:25px; border-radius:12px; text-align:center; box-shadow:0 5px 15px rgba(0,0,0,0.08); font-weight:600; transition:.4s; }
.vision-card p { margin-top:8px; font-size:0.9rem; font-weight:400; color:#555; }
.vision-card:hover { transform:translateY(-8px) rotate(-1deg) scale(1.05); background:linear-gradient(135deg,#fff,#e0f7fa); box-shadow:0 12px 25px rgba(0,0,0,0.2); }

/* Work Process */
.steps { display:flex; justify-content:space-around; margin-top:30px; flex-wrap:wrap; gap:20px; }
.step { background:#fff; padding:20px 25px; border-radius:12px; box-shadow:0 5px 15px rgba(0,0,0,0.08); font-weight:600; text-align:center; transition:.3s; flex:1; min-width:180px; }
.step p { margin-top:8px; font-size:0.9rem; font-weight:400; color:#555; }
.step.active { background:#ff9800; color:#fff; transform:scale(1.1); box-shadow:0 8px 25px rgba(0,0,0,0.25); }

/* Why Choose Us */
.why-row { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:20px; margin-top:30px; }
.why-card { background:#fff; padding:25px; border-radius:12px; text-align:center; box-shadow:0 5px 15px rgba(0,0,0,0.08); font-weight:600; transition:.4s; }
.why-card p { margin-top:8px; font-size:0.9rem; font-weight:400; color:#555; }
.why-card:hover { background:linear-gradient(135deg,#004d7a,#0072ff); color:#fff; transform:scale(1.08) rotate(1deg); }

/* Counters */
.counters { background:linear-gradient(135deg,#004d7a,#0072ff); color:#fff; }
.counters .container { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); text-align:center; gap:20px; }
.counter-box { padding:30px; }
.counter-box h2 { font-size:2.8rem; color:#ffeb3b; animation:zoomIn 2s; }
.counter-box p { opacity:.9; }

/* Packages Fun */
.fun-gallery { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:15px; margin-top:30px; }
.fun-gallery img { border-radius:10px; box-shadow:0 4px 12px rgba(0,0,0,0.1); transition:.4s; }
.fun-gallery img:hover { transform:scale(1.1); box-shadow:0 10px 25px rgba(0,0,0,0.2); }

/* Security */
.security { background:#f1f8ff; }
.secure-icons { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:20px; margin-top:20px; text-align:center; }
.secure-icons div { background:#fff; padding:20px; border-radius:12px; box-shadow:0 5px 15px rgba(0,0,0,0.08); transition:.3s; font-weight:600; }
.secure-icons div p { margin-top:8px; font-size:0.9rem; color:#555; }
.secure-icons div:hover { animation:pulse 1.2s infinite; background:#e0f7fa; }

/* Future Growth */
.future-growth { background:url('https://via.placeholder.com/1200x400') center/cover no-repeat; position:relative; color:#fff; text-align:center; }
.future-growth::before { content:""; position:absolute; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.65); }
.future-growth .container { position:relative; z-index:2; }
.future-growth p { max-width:800px; margin:15px auto; font-size:1.2rem; }
.future-growth .highlight { color:#ffeb3b; font-weight:700; font-size:1.3rem; animation:blink 1.5s infinite; }

/* Team */
.team-row { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:25px; margin-top:30px; text-align:center; }
.team-card { background:#fff; padding:20px; border-radius:14px; box-shadow:0 5px 15px rgba(0,0,0,0.08); transition:.3s; }
.team-card:hover { transform:translateY(-8px) scale(1.05); box-shadow:0 12px 25px rgba(0,0,0,0.2); }
.team-card img { width:120px; height:120px; border-radius:50%; margin-bottom:10px; }
.team-card h3 { margin-bottom:5px; color:#004d7a; }

/* Gallery */
.gallery-row { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:15px; margin-top:30px; }
.gallery-row img { border-radius:10px; box-shadow:0 4px 12px rgba(0,0,0,0.1); transition:.4s; }
.gallery-row img:hover { transform:scale(1.1) rotate(1deg); }

/* Reviews */
.reviews-row { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:25px; margin-top:30px; }
.review-card { background:#fff; padding:20px; border-radius:14px; box-shadow:0 5px 15px rgba(0,0,0,0.08); animation:fadeUp 1.5s ease; }
.review-text { font-size:.95rem; margin-bottom:10px; font-style:italic; }
.review-author { font-weight:600; color:#004d7a; }

/* Newsletter */
.newsletter{
text-align:center;
padding:60px 20px;
background:linear-gradient(135deg,#004d7a,#0072ff);
color:white;
}

.newsletter-form{
display:flex;
justify-content:center;
align-items:center;
gap:10px;
margin-top:20px;
flex-wrap:wrap;
}

.newsletter input{
padding:12px;
width:260px;
border-radius:6px;
border:none;
outline:none;
font-size:14px;
}

.newsletter button{
padding:12px 22px;
background:#ff9800;
color:white;
border:none;
border-radius:6px;
cursor:pointer;
font-weight:600;
transition:0.3s;
}

.newsletter button:hover{
background:#e68900;
transform:scale(1.05);
}
/* Footer */
.site-footer { background:#004d7a; color:#fff; text-align:center; padding:15px 0; margin-top:40px; }

/* Animations */
@keyframes fadeIn { from{opacity:0;} to{opacity:1;} }
@keyframes fadeUp { from{opacity:0;transform:translateY(30px);} to{opacity:1;transform:translateY(0);} }
@keyframes fadeLeft { from{opacity:0;transform:translateX(-50px);} to{opacity:1;transform:translateX(0);} }
@keyframes fadeRight { from{opacity:0;transform:translateX(50px);} to{opacity:1;transform:translateX(0);} }
@keyframes fadeInUp { from{opacity:0;transform:translateY(50px);} to{opacity:1;transform:translateY(0);} }
@keyframes bounce { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-10px);} }
@keyframes zoomIn { from{transform:scale(0.5);opacity:0;} to{transform:scale(1);opacity:1;} }
@keyframes blink { 50%{opacity:0.5;} }
@keyframes pulse { 0%{transform:scale(1);} 50%{transform:scale(1.05);} 100%{transform:scale(1);} }

/* =========================
   HEADER OVERLAP / HERO FIX
   (Add this at the very end of about.css)
   ========================= */

/* ===== ABOUT PAGE HEADER SIZE FIX ===== */
.about-page .ujss-contact-desktop a,
.about-page .ujss-contact-desktop .ujss-phone,
.about-page .ujss-contact-desktop .ujss-wa,
.about-page .ujss-contact-desktop .ujss-cta {
  font-size: 0.9rem !important;  /* same as other pages */
  line-height: 1.2 !important;
  padding: 6px 10px !important;
  transform: none !important;
  text-transform: none !important;
}

/* Make sure button height & alignment same */
.about-page .ujss-contact-desktop {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

/* ensure chat and book buttons don't scale up */
.about-page .ujss-wa,
.about-page .ujss-cta {
  transform: scale(1) !important;
  font-weight: 700 !important;
  box-shadow: 0 6px 22px rgba(0,188,212,0.12) !important;
  background: linear-gradient(90deg, var(--accent-1,#00bcd4), var(--accent-2,#0097a7)) !important;
  color: #001 !important;
}

/* phone number */
.about-page .ujss-phone {
  background: transparent !important;
  color: var(--muted, #cfeff6) !important;
  font-weight: 700 !important;
}

/* reduce extra zoom or animation */
.about-page .ujss-contact-desktop *,
.about-page .ujss-title,
.about-page .ujss-sub {
  transition: none !important;
  transform: none !important;
}

/* mobile nav CTA fix as well */
.about-page .ujss-mobile-cta {
  font-size: 1rem !important;
  padding: 8px 16px !important;
}

/* --- Video gallery styles (auto-thumbnails using <video>) --- */
.memory-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap:16px; align-items:start; }
.memory-item { position: relative; background:#fff; border-radius:10px; overflow:hidden; box-shadow:0 6px 18px rgba(0,0,0,0.12); cursor:pointer; }
.memory-item img, .memory-item video { width:100%; height:160px; object-fit:cover; display:block; }
.video-thumb { position:relative; background:#000; overflow:hidden; }
.video-thumb video { display:block; width:100%; height:160px; object-fit:cover; filter:brightness(0.8); }
/* play overlay */
.play-overlay { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:36px; color:#fff; text-shadow:0 6px 18px rgba(0,0,0,0.6); pointer-events:none; background:linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0.35)); }
/* filter buttons */
.memory-controls .filter-btn { margin:3px; padding:8px 14px; border-radius:20px; border:1px solid rgba(255,255,255,0.06); background:transparent; color:inherit; font-weight:700; cursor:pointer; }
.memory-controls .filter-btn.active { background:linear-gradient(90deg,#00bcd4,#0097a7); color:#001; }

/* Modal */
.video-modal { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.85); align-items:center; justify-content:center; z-index:2000; padding:20px; }
.video-modal[aria-hidden="false"] { display:flex; }
.video-modal-content { max-width:1000px; width:100%; background:transparent; position:relative; }
.video-modal-content video, .video-modal-content iframe { width:100%; height:calc(56.25vw); max-height:72vh; border-radius:10px; background:#000; }
.video-close { position:absolute; top:-12px; right:-12px; background:#fff; border-radius:50%; width:44px; height:44px; box-shadow:0 6px 18px rgba(0,0,0,0.3); font-size:18px; cursor:pointer; border:0; }
@media (max-width:700px){ .video-modal-content video, .video-modal-content iframe { height:55vh; } }

/* =========================
   MEDIA VIEWER (image / video preview with close '×')
   ========================= */

.media-viewer-backdrop {
  position: fixed;
  inset: 0;
  display: none;                 /* shown by JS */
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  z-index: 2147483646;           /* on top of modal */
  padding: 20px;
  overflow: hidden;
}

.media-viewer {
  position: relative;
  max-width: 96vw;
  max-height: 92vh;
  width: auto;
  background: transparent;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

/* media itself */
.media-viewer img,
.media-viewer video {
  max-width: 92vw;
  max-height: 86vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  display: block;
  object-fit: contain;
  background: #000;
}

/* Close (cross) button */
.media-viewer .media-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: #111;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.2s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.media-viewer .media-close:hover {
  transform: scale(1.05);
  background: #fff;
}

/* ===== 📱 MOBILE VIEW OPTIMIZATION ===== */
@media (max-width: 600px) {
  .media-viewer-backdrop {
    padding: 0;
    background: rgba(0, 0, 0, 0.9);
  }
  .media-viewer {
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
  }
  .media-viewer img,
  .media-viewer video {
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
    width: 100%;
    height: auto;
    object-fit: contain;
  }
  .media-viewer .media-close {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    font-size: 20px;
    background: rgba(255, 255, 255, 0.85);
  }
}

/* Extra small phones */
@media (max-width: 400px) {
  .media-viewer .media-close {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }
}
