:root{
  --bg:#f5f6fb;
  --ink:#1f2430;
  --muted:#6b7280;
  --line:#e5e7ef;
  --card:#ffffff;
  --chip:#f0f2f8;
  --accent:#3163ff;
  --accent-2:#1e3a8a;
  --shadow:0 8px 30px rgba(16,24,40,.08);
  --radius:16px;
    --transparent-light: #fcfcfdd9;
    --transparent-light-hover: #b9bbc620;
    --transparent-dark: #101010d9;
    --transparent-dark-hover: #80828d14;
    --bpPrimary-1: #fdfdfd;
    --bpPrimary-50: #f5f8fe;
    --bpPrimary-100: #ebf1fd;
    --bpPrimary-200: #ccddfa;
    --bpPrimary-300: #adc8f7;
    --bpPrimary-400: #709ff0;
    --bpPrimary-500: #3276ea;
    --bpPrimary-600: #2d6ad3;
    --bpPrimary-700: #1e478c;
    --bpPrimary-800: #173569;
    --bpPrimary-900: #0f2346;
    --bpPrimary-950: #0a182f;
    --bpGray-1: #fdfdfd;
    --bpGray-50: #f8f8f9;
    --bpGray-100: #f0f0f3;
    --bpGray-200: #dadbe0;
    --bpGray-300: #c3c5cd;
    --bpGray-400: #9699a8;
    --bpGray-500: #696d83;
    --bpGray-600: #5f6276;
    --bpGray-700: #3f414f;
    --bpGray-800: #2f313b;
    --bpGray-900: #202127;
    --bpGray-950: #15161a;
    --bpError: #f05656;
    --bpRadius-scale: 1;
    --bpRadius-sm: .125rem;
    --bpRadius-md: .375rem;
    --bpRadius-lg: .5rem;
    --bpRadius-xl: .75rem;
    --bpRadius-2xl: 1rem;
    --bpRadius-3xl: 1.5rem;
    --bpRadius-full: 9999px;
    --bpSpacing-0: 0px;
    --bpSpacing-px: 1px;
    --bpSpacing-0_5: .125rem;
    --bpSpacing-1: .25rem;
    --bpSpacing-1_5: .375rem;
    --bpSpacing-2: .5rem;
    --bpSpacing-2_5: .625rem;
    --bpSpacing-3: .75rem;
    --bpSpacing-3_5: .875rem;
    --bpSpacing-4: 1rem;
    --bpSpacing-4_5: 1.125rem;
    --bpSpacing-5: 1.25rem;
    --bpSpacing-6: 1.5rem;
    --bpSpacing-7: 1.75rem;
    --bpSpacing-8: 2rem;
    --bpSpacing-9: 2.25rem;
    --bpSpacing-10: 2.5rem;
    --bpSpacing-11: 2.75rem;
    --bpSpacing-12: 3rem;
    --bpSpacing-14: 3.5rem;
    --bpSpacing-16: 4rem;
    --bpSpacing-20: 5rem;
    --bpSpacing-24: 6rem;
    --bpSpacing-28: 7rem;
    --bpSpacing-32: 8rem;
    --bpSpacing-36: 9rem;
    --bpSpacing-40: 10rem;
    --bpSpacing-44: 11rem;
    --bpSpacing-48: 12rem;
    --bpSpacing-52: 13rem;
    --bpSpacing-56: 14rem;
    --bpSpacing-60: 15rem;
    --bpSpacing-64: 16rem;
    --bpSpacing-72: 18rem;
    --bpSpacing-80: 20rem;
    --bpSpacing-96: 24rem;
    --rubik-font: "Rubik", sans-serif;
    --inter-font: "Inter", sans-serif;
    --ibm-font: "IBM Plex Sans", sans-serif;
    --fira-font: "Fira Code", monospace;
    --font-family: var(--inter-font);
    --header-bg: var(--transparent-light);
    --header-bg-hover: var(--transparent-light-hover);
    --header-hover-dark: var(--bpGray-200);
    --header-title: var(--bpGray-900);
    --header-description: var(--bpGray-800);
    --header-description-icon: var(--bpPrimary-800);
    --header-description-link: var(--bpPrimary-900);
    --header-avatar-bg: var(--bpPrimary-600);
    --header-avatar-text: var(--bpPrimary-50);
    --message-bg: var(--bpPrimary-100);
    --message-bg-hover: var(--bpPrimary-200);
    --message-text: var(--bpPrimary-900);
    --send-button-bg: var(--bpPrimary-600);
    --send-button-bg-hover: var(--bpPrimary-700);
    --send-button-text: var(--bpPrimary-50);
    --button-bg: var(--bpPrimary-500);
    --button-bg-hover: var(--bpPrimary-600);
    --button-text: var(--bpPrimary-50);
    --fab-bg: var(--bpPrimary-100);
    --fab-bg-hover: var(--bpPrimary-200);
    --fab-icon: var(--bpPrimary-700);
    --scrollbar: var(--bpGray-200);
    --scrollbar-hover: var(--bpGray-400);
    --modal-submit-bg: var(--bpPrimary-200);
    --modal-submit-bg-hover: var(--bpPrimary-300);
    --error-header-bg: #3d63dd;
    --error-header-text: white;
    --error-content-icon: var(--bpGray-400);
    --error-content-title: var(--bpGray-700);
    --error-content-message: var(--bpGray-600);
}

@font-face {
  font-family:'KFGQPC Uthmanic Script HAFS';
  src: url('/fonts/KFGQPC-Uthmanic-Script-HAFS-Regular.otf') format('opentype');
  font-display: swap;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; font:16px/1.6 "Poppins", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color:white; background:var(--bg);
  box-sizing: border-box;
  display: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: url("1. HOMEPAGE/photo/background.webp") no-repeat center center / cover;
  opacity: 90%; /* adjust transparency here */
  z-index: -1; /* keeps it behind content */
}

img{display:block; max-width:100%; height:auto}
img#qrImage {display:block; max-width:100%;}
.media{max-width: 100%; max-height: fit-content; padding: 10px; padding-bottom: 0px; margin: 0 auto;}
.container{width:min(1200px,92vw); margin-inline:auto}

.wrap{max-width:1140px; margin:auto; padding:0 3%}

/* ========= Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.55rem;
  padding:.7rem 1rem; border-radius:10px; border:1px solid transparent;
  font-weight:700; cursor:pointer; transition:all .25s ease;
}
.btn-primary{background: rgba(255, 255, 255, 0.05); color:white;}
.btn-primary:hover{filter:brightness(.95)}
.btn-secondary{background:#fff; border-color:var(--line); color:var(--ink)}
.btn-secondary:hover{background:#f8fafc}
.btn-ghost{background:#fff; border-color:var(--line); color:var(--ink)}
.center{text-align:center}
.mt-20{margin-top:40px}
.mt-10{margin-top:10px}
.muted{color:var(--muted)}

#quotebutton {
  background: linear-gradient(180deg, #5b84ff, #3866ff);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 10px 18px;
  margin-top: 10px;
  cursor: pointer;
  font-size: 15px;
  transition: transform 0.2s ease;
}


#quotebutton:hover{
  transform:scale(1.03);
  
}

/* Topbar */
.topbar{margin-left: auto; margin-right: auto; position:sticky; top:40px; z-index:40; background: rgba(255, 255, 255, 0.1);border-radius: 20px;box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);backdrop-filter: blur(25px);width: 80%;}
.topbar__inner{display:flex; align-items:center; justify-content:space-between; height: 100px; max-width: 1140px; width: 90%; margin: 0 auto;}
.brand{display:flex; align-items:center; gap:10px; font-weight:700; color:var(--ink)}
.brand__logo {
  width: 250px;
  height: auto;
  border-radius: 0;
  box-shadow: none;
  background: none;
}

.nav{display:flex; gap:24px}
.nav__link{color:#ffffff; text-decoration:none}
.nav__link:hover{color:var(--bpPrimary-200)}

/* Dropdown (Explore) */
.nav__item {
  position: relative;
  transition: all 0.3s ease;
}

.dropdown__menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(100%);
  min-width: 160px;
  padding: 8px 0;
  z-index: 50;
}

.dropdown__link {
  display: block;
  padding: 10px 16px;
  color:white;
  text-decoration: none;
  font-size: 15px;
}

.dropdown__link:hover {
  background: white;
  color:var(--bpPrimary-500);
  border-radius: 6px;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown__menu {
  display: block;
  transition: all 0.3s ease;
}

/* Add to existing hamburger styles */
.hamburger {
  display: none;
  width: 42px;
  height: 38px;
  background: none;
  position: relative;
  transition: all 0.3s ease;
}

.hamburger-line {
  position: absolute;
  left: 8px;
  height: 2px;
  background: #e9e9e9;
  border-radius: 2px;
  transition: all 0.3s ease;
  width: 26px;
}

.hamburger-line:nth-child(1) {
  top: 10px;
}

.hamburger-line:nth-child(2) {
  top: 18px;
}

.hamburger-line:nth-child(3) {
  top: 26px;
}

/* Hamburger animation when open */
.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile menu transition */
.mobile {
  display: block;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  width: 90%;
  margin: 0 auto;
}

.mobile.open {
  max-height: 500px;
  opacity: 1;
}


/* Mobile menu */
.mobile{background:transparent;}
.mobile__link{display:block; padding:12px 20px; color:white; text-decoration:none; border-bottom: 1px solid rgba(255,255,255,0.1);margin-bottom: 5px;}
.mobile__link:hover{background:none;}
.mobile__item {border-bottom:1px solid rgba(255,255,255,0.1);}

.mobile__toggle {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font: inherit;
  padding: 12px 20px;
  color: white;
  cursor: pointer;
}

.mobile__submenu {
  display: none;
}

.mobile__sublink {
  display: block;
  padding: 10px 36px;
  text-decoration: none;
  color: white;
  font-size: 15px;
}

.mobile__sublink:hover {
  background: #eef3ff;
  color: var(--accent);
}

/* Show submenu when active */
.mobile__item.open .mobile__submenu {
  display: block;
}

/* Hero */

/* ========= Hero */
.hero{background: rgba(255, 255, 255, 0.05); border-radius: 20px; box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3); backdrop-filter: blur(20px); padding:80px 0 20px;}
.hero-inner{display:grid; grid-template-columns:1.1fr .9fr; gap:24px; align-items:center}
.hero-copy h1{font-size:36px; line-height:1.2; margin:0 0 8px;text-align: center;}
.hero .sub{color:#cdcdcd; margin-bottom:14px; text-align: center;}
.searchbar{display:flex; gap:10px; align-items:center}
.searchbar input{
  flex:1; min-width:260px; padding:12px 14px; border:1px solid var(--line); border-radius:10px; background:#fff; font:inherit
}
.hero-visual img{border-radius:16px; box-shadow:var(--shadow)}

/* Hero visual/video container */
.ph {
    border-radius: 20px;
    width: 100%;
    overflow: hidden;
    /* penting supaya video tak keluar luar border */
    display: grid;
    place-items: center;
    position: relative;
    /* Adding background image for mobile fallback */
    background: url("2. EXPLORE/photo/sun moon stars.webp") no-repeat center center / cover; /* Placeholder image path */
    min-height: 200px; /* Ensure space for fallback image */
}

/* Hide video source by default and show only on desktop */
.ph video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
}

/* Hover effect sama macam sebelum */
.ph:hover video {
    transform: scale(1.05);
    filter: brightness(1.1);
}


/* ========= Tabs */
.tabs-wrap{height: 100px; align-content:center;}
.tabs{
  position:relative; display:flex; gap:10px; padding:12px 0; overflow: overlay; margin-top:30px; place-content: center;
}
.tab{
  position:relative; background: rgba(255, 255, 255, 0.05); border-radius: 20px; box-shadow: 0 4px 30px rgba(0, 0, 0, 0.07); border: none;
  padding:.55rem 1rem; border-radius:999px; font-weight:700; cursor:pointer; transition:.25s; color: white; height: 40px; width: 150px;
}
.tab.is-active{background:linear-gradient(180deg, #5b84ff, #3866ff); border-color:#cfe6ff}
.tab:hover{transform:translateY(-1px)}
.tab-ink{
  position:absolute; height:38px; border-radius:999px; background:rgba(99,153,255,.18);
  top:50%; transform:translateY(-50%); transition:all .35s cubic-bezier(.2,.8,.2,1);
  pointer-events:none;
}

/* ========= Featured */
.section{padding:34px 0}
.featured-card{
  display:grid; grid-template-columns: 1fr 1.3fr; gap:40px; background: rgba(255, 255, 255, 0.05); border-radius: 20px; box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3); backdrop-filter: blur(20px); padding:16px;margin: 0 auto; max-width: fit-content; max-width: 900px; box-sizing: border-box; overflow: hidden; min-width: 0; min-height: 0;  
}

.content {align-content:center; max-width: 500px;}
.thumb{position:relative; display:block; border-radius:12px; overflow:hidden}
.thumb .play{
  position:absolute; inset:auto; left:5px; bottom:5px; width:42px; height:42px; border-radius:50%;
  background:rgba(255, 255, 255, 0.05); display:grid; place-items:center; box-shadow:0 4px 30px rgba(0, 0, 0, 0.3);backdrop-filter: blur(20px); color:var(--bpPrimary-500); cursor: pointer;
}
.play .fa {font-size: 20px;}
/* .thumb .play::before{
  content:""; display:block; width:0; height:0; border-left:14px solid var(--ink);
  border-top:8px solid transparent; border-bottom:8px solid transparent; margin-left:4px;
} */
.hover-zoom img{transition:transform .35s ease}
.hover-zoom:hover img{transform:scale(1.04)}

.hover-zoomout img{transition:transform .35s ease}
.hover-zoomout:hover img{transform:scale(1.01); cursor: pointer;}


.badge{display:inline-block; padding:.25rem .55rem; background:#eef2ff; color:#3843a6; border-radius:6px; font-weight:700}
.meta{color:#c5c5c5; margin:15px 0px 0px 0px; text-align: center;}
.featured-card h2{margin:6px 0 8px}
.cta-row{display:flex; gap:10px; flex-wrap:wrap}

.qr-container {
  margin-top: 15px;
}

.qr-container img {
  width: 700px;
  height: 400px;
  object-fit: contain;
  border-radius: 10px;
  margin-top: 10px;
}

.cardquote {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
  padding: 20px;
  margin-bottom: 25px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  justify-self: center;
  text-align: center;
}

.cardquote:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* Fullscreen overlay */
#fullscreenOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

#fullscreenOverlay.show {
  opacity: 1;
}

#fullscreenOverlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

#fullscreenOverlay.show img {
  transform: scale(1);
  width: auto;
  height: auto;
}


.reflection {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    padding:20px;
    width: fit-content;
    margin-top: 40px;
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
}

.reflection .q-meta {
  text-align: start;
  color:#c5c5c5;
}

#quoteText {
  text-align: justify;
  min-height: fit-content;
  height: 50px;
}


/* ========= Cards Grid */
.cards-grid{
  display:grid; grid-template-columns: repeat(2, 40%); gap:18px; justify-content: center;
}
.card{
  background: rgba(255, 255, 255, 0.05); border-radius: 20px; box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3); backdrop-filter: blur(20px);
  overflow:hidden; transition:transform .25s ease, box-shadow .25s ease;
}
.card:hover{transform: scale(1.015); box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3)}
.card .thumb{border-radius:0; text-decoration: none;}
.card-body{padding:14px}
.card-meta{display:flex; gap:10px; color:#8f8f8f; font-size:.92rem}
.card h4{margin:.25rem 0 .35rem; color: white;}
.card .actions{display:flex; gap:10px; margin-top:8px}

/* ========= Qur’an */
.quran h3{margin:0 0 12px; color: white;}
.q-card{
  background: rgba(255, 255, 255, 0.05); border-radius: 20px;box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3); backdrop-filter: blur(20px);
  padding:20px; margin:12px 0;
}
#arabicText {
    font-size: 2rem;
    line-height: 2;
    text-align: center;
    direction: rtl;
    font-family: "KFGQPC Uthmanic Script HAFS","Scheherazade New","serif";
}
.q-meta{color:#8f8f8f; text-align:center; margin:6px 0}
.q-translation{text-align:center; max-width:850px; margin:0 auto}

/* ========= Video & Playlist */
.video-grid{display:grid; grid-template-columns: 1.3fr .7fr; gap:18px;}
.ratio{position:relative; width:100%; padding-bottom:56.25%; border-radius:14px; overflow:hidden; box-shadow:var(--shadow); background:#000}
.ratio iframe{position:absolute; inset:0; width:100%; height:100%}
.playlist{background: rgba(255, 255, 255, 0.05); border-radius: 20px; box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3); backdrop-filter: blur(20px);border-radius:20px; box-shadow:var(--shadow); padding:14px; overflow: auto;}
.playlist h4{margin:0 0 10px}
#playlist{list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:10px}
#playlist li{
  display:grid; grid-template-columns:140px 1fr; gap:10px; align-items:center;
  padding:8px; border-radius:10px; cursor:pointer; border:1px solid transparent; transition:.2s
}
#playlist li:hover{background: rgba(255, 255, 255, 0.05)}
#playlist li.is-active {
  background: rgba(255, 255, 255, 0.05)
}


/* ========= Gallery */
.gallery-grid{
  display:grid; grid-template-columns: repeat(3, 1fr); gap:30px;
}
.gallery-grid figure{
  border-radius:14px; overflow:hidden; background:#e9eef9; border:1px solid var(--line); box-shadow:var(--shadow)
}

/* ========= CTA */
.cta-box{
  display:flex; justify-content:space-between; align-items:center; gap:18px; background: rgba(255, 255, 255, 0.05); border-radius: 20px; box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3); backdrop-filter: blur(20px);
  padding:16px 18px;
}
.cta-form{display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.cta-form input{
  padding:12px 14px; border:1px solid var(--line); border-radius:10px; min-width:240px; background:#fff; font:inherit
}
.cta-form .note{color:var(--muted); margin-left:6px}

/* Footer */
.footer{background:rgba(255, 255, 255, 0.1); box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3); backdrop-filter: blur(25px);}
.foot__top{display:grid; grid-template-columns:1.2fr 1fr 2fr; gap:20px;}
.foot__brand{display:flex; align-items:center; gap:10px; justify-content: center;}
.foot__logo{width:250px; height:auto; border-radius:10px; background:none;}
.foot__social{display:flex; align-items:center}
.foot__social .ico{border-radius:6px; background-color: transparent; color:#5b84ff;}
.foot__links{display:flex; gap:18px; align-items:center; flex-wrap:wrap; justify-content: center; padding-bottom: 20px;}
.foot__links a{color:#ededed; text-decoration:none}
.foot__bottom{margin-left: auto; margin-right: auto; display:grid; justify-content:space-between; align-items:center; gap:16px; padding:12px 12px; border-top:1px solid var(--line); justify-content: center;}
.fa {font-size: 30px;}
.ico, .ph-ico{width:28px; height:28px; border-radius:8px; background:#d3d8e7; margin:0 auto 6px; color: rgb(85, 26, 139);}

.toTop{
  position:fixed; right:16px; bottom:16px; width:40px; height:40px; border-radius:999px;
  border:1px solid var(--line); background:#fff; box-shadow:var(--shadow); cursor:pointer; display:none;
  margin-bottom: 90px;
  margin-right: 20px;
}



/* Reveal on scroll */
.reveal{opacity:0; transform:translateY(16px); transition:opacity .6s ease, transform .6s ease}
.reveal.is-visible{opacity:1;}
.reveal.show{opacity:1; transform:none}

/* ========= Responsive */
@media (max-width: 1024px){
  .nav{display:none}
  .hamburger{display:block; border: none; right:10px;}
  .hero-inner{grid-template-columns:1fr}
  .featured-card{grid-template-columns:1fr}
  .video-grid{grid-template-columns:1fr}
  .foot__top{grid-template-columns:1fr}
}
@media (max-width: 900px){
  .nav{display:none}
  .hamburger{display:block; border: none; right:10px;}
  .cards-grid{grid-template-columns:repeat(2,1fr)}
  .gallery-grid{grid-template-columns:repeat(2,1fr)}
  .header-inner{grid-template-columns:auto 1fr auto 42px}
  .hamburger{display:block}
  .main-nav{display:none}
  .topbar__inner{width: max-content;}
  .foot__top{grid-template-columns:1fr}

  /* 1) Optimization: Replace hero video with image for mobile view */
  .ph.hero-visual {
      /* Show the fallback background image set in .ph rule */
      background-size: cover;
      background-position: center;
      min-height: 200px;
  }
  .ph.hero-visual video {
      /* Hide the video element */
      display: none;
  }

  /* 2) Optimization: Remove unnecessary animation/hover for mobile view */
  /* Remove scroll reveal transition on smaller screens */
  .reveal, .reveal.show, .reveal.is-visible {
      opacity: 1 !important; /* Force visibility immediately */
      transform: none !important; /* Remove initial transform state */
      transition: none !important; /* Disable CSS transitions */
  }

  /* Remove card hover/tilt effect on mobile */
  .card:hover {
      transform: none;
      box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3); /* Keep original shadow */
  }
  .hover-zoom:hover img, .hover-zoomout:hover img {
      transform: none;
  }
}
@media (max-width: 560px){
  .cards-grid{grid-template-columns:1fr}
  .gallery-grid{grid-template-columns:1fr}
  .topbar__inner{width: max-content;}
  .cta-box{flex-direction:column; align-items:flex-start}
}

    @media (max-width: 344px) {
  .topbar {width: max-content;}
  }
