/* ========================================
   IKASMIN-SS GLOBAL STYLES (PWA FINAL)
   Finalized — .page-wrap standard (margin-top:40px)
   ======================================== */

/* RESET & BASELINE */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:Inter,system-ui,-apple-system,'Segoe UI',Roboto,Arial;
}

html,body{
  height:100%;
  width:100%;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}

/* COLOR ROOT */
:root{
  --bg:#efeaff;
  --text-main:#0d0d0d;
  --glass:rgba(255,255,255,0.32);
  --glass-border:rgba(255,255,255,0.45);
  --shadow:0 18px 40px rgba(0,0,0,0.14);

  /* Layout standard */
  --wrap-width:95%;
  --wrap-max:1400px;
}

/* ========================================
   BACKGROUND BALLOON 3D (VIVID NEON)
   ======================================== */

.bg-balloons{
  position:fixed;
  inset:0;
  z-index:-2;
  pointer-events:none;
  background:
    radial-gradient(circle at 14% 20%, rgba(255,90,150,0.70) 0%, transparent 55%),
    radial-gradient(circle at 88% 18%, rgba(120,80,255,0.70) 0%, transparent 55%),
    radial-gradient(circle at 78% 78%, rgba(255,182,87,0.70) 0%, transparent 55%),
    radial-gradient(circle at 22% 82%, rgba(75,230,210,0.65) 0%, transparent 55%);
  filter: blur(30px) saturate(1.45);
}

/* ========================================
   GLOBAL WRAP (PAGE CONTAINER)
   - .wrap : used by header area (index.php inline may override)
   - .page-wrap : standard for SPA page contents (ALL pages)
   ======================================== */

.wrap{
  width:var(--wrap-width);
  max-width:var(--wrap-max);
  margin:12px auto;
  padding:10px 0;
}

/* STANDARD PAGE WRAP FOR ALL PAGES (SPAs)
   margin-top = 40px (as requested),
   margin-bottom kept generous for footer/nav spacing */
.page-wrap{
  width:var(--wrap-width);
  max-width:var(--wrap-max);
  margin:40px auto 120px auto;
  padding: 0;
}

/* ========================================
   CARD GLASS GLOBAL
   ======================================== */

.card{
  background:var(--glass);
  border:1px solid var(--glass-border);
  backdrop-filter:blur(16px);
  border-radius:18px;
  padding:20px 22px;
  margin-bottom:22px;
  box-shadow:var(--shadow);
  transition: transform .28s ease, box-shadow .28s ease, border .28s ease;
}

.card:hover{
  border:1px solid rgba(255,255,255,0.85);
  box-shadow:0 20px 45px rgba(255,255,255,0.35);
  transform: translateY(-4px);
}

.card-title{
  font-size:22px;
  font-weight:800;
  margin-bottom:10px;
  color:#1a1a1a;
}

.card-sub{
  font-size:14px;
  margin-bottom:16px;
  color:#333;
}

.card p{
  font-size:14.5px;
  color:#222;
  line-height:1.55;
  margin-bottom:14px;
}

/* small utility for muted small text */
.text-muted{ color:#666; font-size:14px; }

/* ========================================
   FOOTER CARD
   ======================================== */

.footer-card p{
  margin:6px 0;
  color:#222;
  font-size:14px;
}

.footer-card a{
  color:#333;
  text-decoration:none;
  font-weight:600;
}

.footer-card a:hover{
  text-decoration:underline;
}

/* ========================================
   TEXT GLOBAL
   ======================================== */

.text-bold{ font-weight:800; }
.text-center{ text-align:center; }
.text-small{ font-size:12px; }

/* ========================================
   SPACING UTILITIES
   ======================================== */

.mt-1{margin-top:6px}
.mt-2{margin-top:12px}
.mt-3{margin-top:18px}
.mb-1{margin-bottom:6px}
.mb-2{margin-bottom:12px}
.mb-3{margin-bottom:18px}

/* ========================================
   BUTTON (OPTIONAL GLOBAL)
   ======================================== */

.btn{
  display:inline-block;
  padding:10px 14px;
  border-radius:12px;
  background:rgba(255,255,255,0.38);
  border:1px solid var(--glass-border);
  backdrop-filter:blur(10px);
  font-size:14px;
  color:#000;
  font-weight:600;
  text-decoration:none;
  box-shadow:0 8px 20px rgba(0,0,0,0.12);
  transition:.25s;
}
.btn:hover{
  backdrop-filter:blur(14px);
  transform:translateY(-2px);
}

/* 3D NEUMORPHIC PRIMARY / GHOST (dipakai di Panel Anggota) */
.btn-primary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 22px;
  border-radius:999px;
  border:none;
  cursor:pointer;
  background:linear-gradient(135deg,#ff7bff,#8f5bff);
  color:#fff;
  font-weight:800;
  font-size:14px;
  box-shadow:0 14px 26px rgba(120,60,200,0.55);
  transition:.22s ease;
}
.btn-primary:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 36px rgba(120,60,200,0.65);
}

.btn-ghost{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 22px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.9);
  cursor:pointer;
  background:rgba(255,255,255,0.25);
  color:#222;
  font-weight:700;
  font-size:14px;
  box-shadow:0 10px 22px rgba(0,0,0,0.18);
  backdrop-filter:blur(14px);
  transition:.22s ease;
}
.btn-ghost:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 32px rgba(0,0,0,0.24);
}

/* ========================================
   FEATURE GRID (Anggota — global helper)
   responsive 3 / 2 / 1
   ======================================== */

.features-grid,
.feature-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media(max-width: 860px) {
  .features-grid,
  .feature-container {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media(max-width: 540px) {
  .features-grid,
  .feature-container {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* Icon helpers */
.icon-3d,
.icon-3d-big,
.icon-3d-menu {
  width:48px;
  height:48px;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,0.25));
  transition: .25s ease;
}

/* ========================================
   RESPONSIVE FIXES
   ======================================== */

@media(max-width:520px){
  .wrap{
    width:92%;
    margin:80px auto 120px auto;
  }

  .card{
    padding:16px 18px;
    border-radius:16px;
  }

  .card-title{ font-size:18px; }

  .card p{ font-size:14px; }
}

/* ========================================
   MODAL FOTO GLOBAL (Glass)
   ======================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(6px);
    display: none;
    opacity: 0;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity .25s ease;
}

/* saat ada class .show → tampil & opacity 1 */
.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal-box {
    width: 92%;
    max-width: 420px;
    border-radius: 20px;
    padding: 22px;
    background: radial-gradient(circle at 0 0, rgba(255,196,224,0.95), rgba(255,255,255,0.98));
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,0.55);
    box-shadow: 0 18px 45px rgba(0,0,0,0.35);
    text-align: center;
    position: relative;
    animation: fadeIn .25s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(.92); }
    to { opacity: 1; transform: scale(1); }
}

.modal-box img {
    width: 100%;
    border-radius: 16px;
    margin-bottom: 14px;
}

.modal-name {
    font-size: 20px;
    font-weight: 900;
    color: #0d0d0d;
    margin-bottom: 6px;
}

.modal-role {
    font-size: 14px;
    color: #333;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    color: #111;
}

.modal-close:hover {
    color: #d00;
}

/* ========================================
   SMALL HELPERS
   ======================================== */

.kv { font-weight:700; color:#0d0d0d; }
.lead { font-size:15px; color:#222; line-height:1.6; }

/* End of styles.css */
