/* =====================
   Global variables & reset
   ===================== */
:root{
  --yellow: #ffd95a;     /* primary warm */
  --yellow-dark: #FBC02D;
  --text: #222222;
  --muted: #666;
  --accent: #8B5E3C;     /* coklat-emas Melayu */
  --glass: rgba(255,255,255,0.75);
  --card-bg: #ffffff;
  --max-width: 1100px;
  --radius: 14px;
}

*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{
  font-family: 'Poppins', sans-serif;
  color:var(--text);
  line-height:1.5;
  background: url("FOTO/Background.png") center/cover no-repeat fixed;
  position:relative;
}

/* subtle global overlay to keep text legible */
body::before{
  content:"";
  position:fixed;inset:0;
  background:linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0.55));
  z-index:-1;
}

/* =====================
   Header
   ===================== */
.site-header{
  position:sticky; top:0; z-index:120;
  display:grid;
  grid-template-columns: 160px 1fr 220px;
  align-items:center;
  gap:16px;
  padding:14px 36px;
  background: linear-gradient(180deg, rgba(255,217,90,0.95), rgba(255,217,90,0.88));
  border-bottom: 5px solid;
  border-image: linear-gradient(to right, var(--accent), var(--yellow-dark), var(--accent)) 1;
  transition:padding 200ms ease, box-shadow 200ms ease;
}

/* reduced header on scroll */
.site-header.scrolled{ padding:8px 28px; box-shadow:0 6px 18px rgba(0,0,0,0.09)}

/* logo */
.logo{height:72px; width:auto}
.logo-link{display:inline-block}

/* search center */
.search-bar{
  display:flex; justify-content:center;
}
.search-bar input{
  width:70%; max-width:540px;
  padding:12px 14px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,0.08);
  outline:none;
  font-size:0.95rem;
  background:rgba(255,255,255,0.98);
  transition:box-shadow 180ms ease, transform 120ms ease;
}
.search-bar input:focus{ box-shadow:0 6px 18px rgba(0,0,0,0.12); transform:translateY(-2px) }
.search-bar button{
  margin-left:8px;
  padding:10px 12px;
  border-radius:8px;
  border:none; background:var(--accent); color:white; cursor:pointer;
}

/* nav right */
.main-nav{ display:flex; justify-content:flex-end; gap:12px; align-items:center }
.main-nav a{
  display:inline-block; padding:8px 12px; border-radius:10px;
  text-decoration:none; color:var(--text); font-weight:600;
  transition:background .2s, color .2s, transform .15s;
  position:relative;
}
.main-nav a:hover{ background: rgba(255,255,255,0.85); color:var(--accent); transform:translateY(-3px) 

}

.main-nav a.active {
  color: var(--accent);
  font-weight: 700;
}

/* LOGIN MODAL */
.login-modal {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  justify-content: center; align-items: center;
  z-index: 999;
}
.login-box {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  width: 320px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  position: relative;
}
.login-box h2 { margin-bottom: 16px; color: #8B5E3C; }
.login-box input {
  width: 100%; margin-bottom: 12px;
  padding: 10px; border: 1px solid #ccc; border-radius: 6px;
}
.login-box .btn {
  width: 100%;
  padding: 10px;
  background: #8B5E3C; color: #fff;
  border: none; border-radius: 6px;
  cursor: pointer; font-weight: 600;
}
.login-box .btn:hover { background: #6d4428; }
.close-btn {
  position: absolute; top: 8px; right: 8px;
  border: none; background: transparent; font-size: 1.2rem; cursor: pointer;
}


/* =====================
   Active Nav Styling
   ===================== */
.main-nav a.active {
  color: var(--accent);
  font-weight: 700;
  position: relative;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  padding: 8px 14px;
  box-shadow: 0 4px 12px rgba(139, 94, 60, 0.2);
  animation: pulseActive 1.2s ease infinite alternate;
}


/* animasi bernafas biar nav aktif keliatan hidup */
@keyframes pulseActive {
  from { box-shadow: 0 4px 12px rgba(139, 94, 60, 0.15); transform: scale(1); }
  to   { box-shadow: 0 6px 16px rgba(139, 94, 60, 0.25); transform: scale(1.05); }
}



/* mobile menu toggle */
.menu-toggle{ display:none; background:transparent; border:none; font-size:1.2rem; cursor:pointer }

/* mobile slide menu */
.mobile-menu{
  display:none; position:fixed; top:70px; right:14px; background:var(--card-bg);
  border-radius:10px; box-shadow:0 8px 30px rgba(0,0,0,0.15); padding:10px; z-index:130;
}
.mobile-menu.open{ display:flex; flex-direction:column; gap:8px }


/* =====================
   Hero
   ===================== */
.hero{
  min-height:calc(100vh - 120px);
  display:flex; align-items:center; justify-content:center;
  padding:40px 24px; text-align:center;
  position:relative;
}

.hero-inner{
  max-width: var(--max-width);
  width:100%;
  margin:0 auto;
  color:#000000; /* darker so it's readable on overlay */
  text-shadow: 0 1px 0 rgba(210, 209, 209, 0.6);
}

.hero-title{
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  line-height:1.05; margin-bottom:12px;
  font-weight:800;
}
.hero-title .accent{ color:var(--text) }

.hero-sub{
  font-size: clamp(1rem, 2vw, 1.15rem);
  margin-bottom:18px;
  color:var(--text);
  min-height:48px;
  opacity:0.95;
}

/* cta */
.hero-ctas{ display:flex; gap:14px; justify-content:center; margin-bottom:12px; flex-wrap:wrap }
.btn{
  padding:12px 20px; border-radius:10px; text-decoration:none; font-weight:700;
  box-shadow:0 6px 18px rgba(0,0,0,0.12); transition:transform .18s, box-shadow .18s;
}
.btn.primary{ background:var(--accent); color:#fff }
.btn.secondary{ background:var(--yellow-dark); color:#222 }

.btn:hover{ transform:translateY(-4px); box-shadow:0 14px 30px rgba(0,0,0,0.16) }

/* quick links under cta */
.hero-quick{ display:flex; gap:14px; justify-content:center; margin-top:6px; flex-wrap:wrap }
.hero-quick a{ font-size:.95rem; color:var(--muted); text-decoration:none; padding:6px 10px; border-radius:8px; background:rgba(255,255,255,0.65) }

/* decorative motif (thin pattern) */
.hero-decor{
  position:absolute; right:6%; top:10%; width:220px; height:220px;
  background: radial-gradient(circle at 20% 30%, rgba(139,94,60,0.06) 0 20%, transparent 21%),
              radial-gradient(circle at 80% 80%, rgba(139,94,60,0.06) 0 10%, transparent 11%);
  filter:blur(6px); border-radius:50%;
  pointer-events:none;
  opacity:0.9;
}

/* =====================
   Features (cards)
   ===================== */
.features{ padding:48px 22px; background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.95)); }
.section-title{ text-align:center; font-size:1.6rem; margin-bottom:18px; color:var(--accent) }

.features-grid{
  max-width:var(--max-width); margin:0 auto; display:grid;
  grid-template-columns:repeat(auto-fit, minmax(240px, 1fr)); gap:20px;
}

.card{
  background:var(--card-bg); border-radius:12px; padding:20px; text-align:left;
  box-shadow:0 8px 26px rgba(0,0,0,0.06);
  transition: transform .25s ease, box-shadow .25s ease;
  display:flex; flex-direction:column; gap:12px;
}
.card:hover{ transform:translateY(-10px); box-shadow:0 18px 40px rgba(0,0,0,0.12) }
.card-icon{ font-size:2.1rem; background:linear-gradient(180deg,#fff, #fff); width:56px; height:56px; border-radius:10px; display:flex; align-items:center; justify-content:center; box-shadow: inset 0 -4px 8px rgba(0,0,0,0.03) }
.card h3{ margin-top:4px; color: rgb(41, 40, 40) }
.card p{ color:#464646 ; font-size:0.95rem }
.card-cta{ margin-top:auto; text-decoration:none; font-weight:700; color:var(--accent) }

/* =====================
   Promo
   ===================== */
.promo{ padding:36px 20px; text-align:center; max-width:var(--max-width); margin:18px auto; background:transparent }
.promo h2{ color:var(--accent); margin-bottom:10px }
.promo p{ color:var(--muted) }

/* =====================
   Team (pakai styling kamu, ditambah hover)
   ===================== */
/* Our Team */
#team {
  padding: 80px 20px 120px 20px;
  text-align: center;
  background: transparent;
  position: relative;
  overflow: visible;
}


#team h2 {
  font-size: 2.2em;
  color: #b58800;
  margin-bottom: -100px;
  font-weight: 600;
}

.team-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.member {
  width: 250px;
  height: 400px; /* tinggi cukup untuk foto besar */
  position: relative;
  text-align: center;
  overflow: visible;
}

/* Shape kuning sebagai background */
.member .photo {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  overflow: visible;
}

.member .photo::before {
  content: "";
  position: absolute;
  bottom: 100px; /* shape di atas dari bawah */
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 160px;
  background: #ffd95a96;
  border-radius: 25px;
  z-index: 1;
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.member .photo img {
  position: relative;
  z-index: 10;
  width: 320px; /* SANGAT besar keluar dari shape 180px */
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 25px rgba(0,0,0,0.25));
  transform: translateY(-100px); /* foto naik SANGAT TINGGI keluar dari shape */
}

.member h3 {
  color: var(--text);
  font-size: 1.2rem;
  margin: 300px 0 8px 0; /* dekat dengan shape */
  font-weight: 600;
  position: relative;
  z-index: 10;
}

.member p {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
  position: relative;
  z-index: 10;
  font-weight: 400;
}

/* Slogan di bawah judul Our Team */
.team-slogan {
  font-size: 1.2rem;
  color: var(--text);
  margin: 100px auto -50px auto;
  max-width: 720px;
  line-height: 1.6;
  font-style: italic;
  opacity: 0.9;
  animation: fadeIn 1.2s ease-in-out;
}

/* Efek masuk pelan */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Responsif untuk mobile */
@media (max-width: 768px) {
  .team-slogan {
    font-size: 0.95rem;
    margin: 16px auto 40px auto;
    padding: 0 12px;
  }
}


/* Responsif untuk Mobile */
/* Sembunyikan Our Team di layar kecil */
@media (max-width: 520px) {
  #team {
    display: none;
  }
}



/* Responsif untuk Tablet */
@media (max-width: 1024px) and (min-width: 769px) {
  .member .photo img {
    width: 300px;
    transform: translateY(-90px);
  }
  
  .member h3 {
    margin: -35px 0 8px 0;
  }
}


/* =====================
   Footer
   ===================== */
footer {
  background: var(--yellow);
  padding: 40px 20px;
  color: var(--text);
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-bottom: 20px;
}

.footer-col h3 {
  margin-bottom: 12px;
  color: #8B5E3C;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  text-decoration: none;
  color: var(--text);
  transition: color 0.3s;
}

.footer-col ul li a:hover {
  color: #8B5E3C;
}

.socials a {
  margin-right: 10px;
  font-size: 1.5rem;
  text-decoration: none;
}

footer .copyright {
  text-align: center;
  font-size: 0.9rem;
  color: #444;
}


/* =====================
   Responsive rules
   ===================== */
@media (max-width:1000px){
  .site-header{ grid-template-columns: 120px 1fr 120px; padding:12px 22px }
  .logo{ height:64px }
  .hero-inner{ padding:0 12px }
}
@media (max-width:768px){
  .site-header{ grid-template-columns: 1fr auto auto; gap:8px; padding:10px 16px }
  .logo{ height:56px }
  .search-bar input{ width:100% }
  .main-nav{ display:none }
  /* Default hidden, muncul di mobile */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 32px;
  cursor: pointer;
  background: transparent;
  border: none;
  gap: 6px;
  z-index: 200; /* di atas menu */
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animasi jadi X */
.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile menu slide */
/* Mobile menu dengan animasi modern */
.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: fixed;
  top: 70px;
  right: 0;
  width: 240px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px); /* efek kaca modern */
  border-radius: 16px 0 0 16px;
  box-shadow: -6px 12px 30px rgba(0, 0, 0, 0.2);
  padding: 18px;
  z-index: 200;
  transform: translateX(110%);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.3, 1), opacity 0.35s ease;
}

.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
}

/* Link style */
.mobile-menu a {
  opacity: 0;
  transform: translateX(30px);
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
  padding: 10px 14px;
  border-radius: 8px;
  transition: background 0.3s, color 0.3s, opacity 0.4s ease, transform 0.4s ease;
}

/* Saat menu dibuka → animasi tiap link */
.mobile-menu.open a {
  opacity: 1;
  transform: translateX(0);
}

/* Tambahkan delay agar muncul satu per satu */
.mobile-menu.open a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.open a:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu.open a:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu.open a:nth-child(4) { transition-delay: 0.4s; }

/* Hover effect */
.mobile-menu a:hover {
  background: var(--yellow);
  color: #222;
}


/* Responsive rule */
@media (max-width:768px){
  .site-header{ grid-template-columns: 1fr auto auto; gap:8px; padding:10px 16px }
  .logo{ height:56px }
  .search-bar input{ width:100% }
  .main-nav{ display:none }
  .menu-toggle{ display:flex } /* tampilkan hamburger */
}

}
/* Untuk layar kecil (mobile) */
@media (max-width: 768px) {
  .hero {
    background-attachment: scroll; /* hilangkan efek besar kecil */
    background-size: cover;        /* biar tetap penuh */
    background-position: center;   /* posisi tengah */
  }
}

/* Atur tampilan khusus mobile */
/* Mobile adjustment untuk Our Team */
@media (max-width: 520px) {
  .team-slogan {
    margin: 20px 10px;
    font-size: 0.85rem;
    line-height: 1.4;
    text-align: center;
  }

  .team-grid {
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }

  .member {
    width: 180px;
    height: auto;
    text-align: center;
  }

  .member .photo::before {
    width: 120px;
    height: 100px;
    bottom: 50px;
  }

  .member .photo img {
    width: 250px;
    transform: translateY(-50px);
  }

  .member h3 {
    margin-top: 20px;
    font-size: 1rem;
  }

  .member p {
    font-size: 0.85rem;
    line-height: 1.4;
    text-align: center;
  }
}

/* Footer */

/* Layout grid desktop */
@media (min-width: 1024px) {
  .footer-container {
    grid-template-columns: 2fr 1fr 1fr; /* Brand lebih lebar */
    align-items: start;
  }

  .footer-col.brand {
    text-align: left;
  }

  .footer-col:nth-child(2),
  .footer-col:nth-child(3) {
    text-align: left;
  }

  /* Icon sosmed lebih besar di desktop */
  .social-btn {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
  }

  /* Tambah garis pemisah antar kolom */
  .footer-col {
    border-left: 1px solid rgba(255,255,255,0.2);
    padding-left: 20px;
  }

  .footer-col:first-child {
    border-left: none;
    padding-left: 0;
  }
}


.site-footer {
  background: linear-gradient(135deg, #ffd95a, #fbc02d);
  padding: 40px 20px;
  color: #222;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-col h3 {
  margin-bottom: 12px;
  color: #8B5E3C;
}

.footer-logo {
  width: 120px;
  margin-bottom: 10px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  text-decoration: none;
  color: #222;
  transition: color 0.3s;
}

.footer-col ul li a:hover {
  color: #8B5E3C;
}

.socials img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.socials img:hover {
  transform: scale(1.2);
}

.socials a {
  margin-right: 12px;
  font-size: 1.6rem;
  text-decoration: none;
  transition: transform 0.3s;
}

.socials a:hover {
  transform: scale(1.2);
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  font-size: 0.85rem;
  color: #444;
}

