/* ==========================================================
   ⚡ FUTURISTIC NEON UI SYSTEM (Clean & Professional)
   Mode: Dark / Light | Theme: Glassmorphism | UI: Neon Aura
==========================================================*/

/* ---------- ROOT VARIABLES ---------- */
:root {
  --radius: 18px;
  --blur: 18px;
  --text: #e8faff;

  /* Neon Palette */
  --neon-a: #00eaff;
  --neon-b: #8affff;
  --neon-purple: #b36eff;

  /* Surface */
  --card-bg: rgba(255,255,255,0.08);
  --card-border: rgba(255,255,255,0.12);

  /* Glow */
  --glow-shadow: 0 0 25px rgba(110,255,243,0.25);

  /* Interactive UI */
  --toggle-bg: rgba(255,255,255,0.12);
  --toggle-border: rgba(255,255,255,0.25);
}

/* ---------- THEME: DARK ---------- */
:root[data-theme="dark"] {
  --bg: radial-gradient(circle at 20% 20%, #0f1017, #05060a 70%);
}

/* ---------- THEME: LIGHT ---------- */
:root[data-theme="light"] {
  --bg: #f5f7fb;
  --text: #222;
  --card-bg: rgba(255,255,255,0.55);
  --card-border: rgba(0,0,0,0.08);
  --glow-shadow: 0 0 18px rgba(250,180,60,0.3);

  /* adjust neon on light mode */
  --neon-a: #ffaf40;
  --neon-b: #ffd27f;
}
:root[data-theme="dark"] .footer {
  color: #ffffff; /* teks putih */
}

:root[data-theme="dark"] .footer a {
  color: var(--neon-a); /* link neon tetap */
}

/* ==========================================================
   🔳 GLOBAL STRUCTURE + BACKGROUND
==========================================================*/
body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg), url("assets/img/bg.png");
  background-size: cover;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

/* Moving cyber texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background:
    url("assets/textures/hexagon.png"),
    radial-gradient(circle at 20% 20%, rgba(110,255,243,0.18), transparent 60%),
    radial-gradient(circle at 80% 70%, rgba(179,110,255,0.18), transparent 60%);
  background-size: 220px, 60vmax, 60vmax;
  opacity: 0.22;
  filter: blur(40px);
  animation: bgMove 45s linear infinite;
}

@keyframes bgMove {
  100% { background-position: 200px 200px, 40px 40px, -40px -40px; }
}


/* ==========================================================
   🧭 TOPBAR
==========================================================*/
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 14px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;

  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(16px);
  border-radius: 0 0 22px 22px;
  transition: .35s;
}

/* Logo Title */
.topbar__brand {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: var(--text);
  position: relative;
}

.topbar__brand::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  height: 2px;
  width: 50%;
  background: linear-gradient(90deg, var(--neon-a), transparent);
  animation: glowline 3s infinite alternate;
}

@keyframes glowline {
  0% { width: 20%; opacity: .3 }
  100% { width: 90%; opacity: 1 }
}

/* Right area (buttons) */
.topbar__actions { display: flex; gap: 12px; }


/* ==========================================================
   🔘 THEME TOGGLE BUTTON
==========================================================*/
.theme-toggle {
  width: 22px;
  height: 22px;
  cursor: pointer;
  border-radius: 20px;

  background: var(--toggle-bg);
  border: 1px solid var(--toggle-border);
  backdrop-filter: blur(10px);

  position: relative;
  transition: .35s;
  overflow: hidden;
}

.theme-toggle__orb {
  width: 14px;
  height: 14px;
  position: absolute;
  top: 3px;
  left: 3px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--neon-a), var(--neon-b));
  transition: 0.35s cubic-bezier(.25,1,.30,1.1);
}

[data-theme="light"] .theme-toggle__orb {
  left: calc(100% - 18px);
}

/* ==========================================================
                        PAGE STRUCTURE
==========================================================*/

.app-main {
  padding: 20px;
  padding-top: 20px;
}

.hero-inner {
  text-align: center;
  margin-bottom: 35px;
}

.hero h1 {
  margin: 0;
  font-size: 38px;
  font-weight: 800;
}

.hero .sub {
  font-size: 15px;
  opacity: .7;
  margin-top: 6px;
}

/* GRID LAYOUT */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px,1fr));
  gap: 20px;
}

/* ==========================================================
                     CARD FUTURISTIC
==========================================================*/

.card {
  position: relative;
  display: flex;
  gap: 8px;
  padding: 18px;
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--card-border);
  background: var(--card-bg);

  backdrop-filter: blur(var(--blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);

  transition: .25s ease;
  overflow: hidden;
  box-shadow: inset 0 0 10px rgba(255,255,255,0.02), var(--glow-shadow);
}

/* Neon Overlay */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(110,255,243,0.12), rgba(179,110,255,0.12));
  opacity: 0;
  transition: .25s ease;
}

.card:hover {
  transform: translateY(-8px) scale(1.03);
  border-color: rgba(110,255,243,0.35);
  box-shadow: 0 0 16px rgba(110,255,243,0.35);
}

.card:hover::before {
  opacity: .25;
}

/* ICON */
.card-icon {
  width:56px;
  height:56px;
  border-radius:14px;
  display:flex;
  justify-content:center;
  align-items:center;
  background: rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
}

.card-body h3 { margin:0;font-size:16px;font-weight:600; }
.card-body p { margin:4px 0 0;opacity:.75;font-size:13px; }

/* Arrow */
.card-arrow {
  margin-left: auto;
  align-self: center;
  font-size: 20px;
  opacity: .5;
  transition: .2s;
}

.card:hover .card-arrow { opacity: 1; transform: translateX(3px); }


/* ==========================================================
   🪩 FOOTER
==========================================================*/
.footer {
  text-align: center;
  padding: 20px;
  opacity: .6;
}

.footer a {
  color: var(--neon-a);
  font-weight: 600;
  text-decoration: none;
  text-shadow: 0 0 8px rgba(0,255,255,0.4);
}


/* ==========================================================
   📱 RESPONSIVE BEHAVIOUR
==========================================================*/
@media (max-width: 600px) {
  .topbar { padding: 10px 18px; }
  .cards-grid { padding: 15px; gap: 15px; }
}

/* ---- TOPBAR ---- */ 
.topbar { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  padding: 14px 28px; 
  backdrop-filter: blur(16px); 
  background: rgba(255, 255, 255, 0.05); 
  border-bottom: 1px solid rgba(255, 255, 255, 0.1); 
  box-shadow: 0 0 40px rgba(0,255,255,0.05), inset 0 0 14px rgba(255,255,255,0.03); } 
  
  /* Brand Text */ 
  .topbar .brand { 
    font-size: 1rem; 
    letter-spacing: 1.2px; 
    text-transform: uppercase; 
    color: var(--text); 
    position: relative; } 
    
    /* Futuristic underline glow */ 
    .topbar .brand::after { 
      content: ""; 
      position: absolute; 
      bottom: -4px; 
      left: 0; 
      width: 50%; 
      height: 2px; 
      background: linear-gradient(90deg, #00f3ff, transparent); 
      animation: glowline 3s infinite alternate; 
    } 
    @keyframes 
    glowline { from { 
      width: 20%; 
      opacity: .3 } to { 
        width: 90%; 
        opacity: 1 } } 
        /* Actions Container */ 
        .actions { 
          display: flex; 
          align-items: center; 
          gap: 12px; } 
          
          /* ---- FUTURISTIC BUTTON ---- */ 
          .icon-btn { 
            background: rgba(255,255,255,0.06); 
            border: 1px solid rgba(0,255,255,0.25); 
            padding: 4px 8px; 
            border-radius: 30px; 
            font-size: 20px; 
            cursor: pointer; 
            color: var(--text); 
            display: flex; 
            align-items: center; 
            justify-content: center; 
            transition: 0.25s ease transform, 0.25s ease box-shadow, 0.25s ease border-color; 
          } 
          .icon-btn:hover { 
            transform: translateY(-3px) scale(1.08); 
            box-shadow: 0 0 4px rgba(0,255,255,0.5), 0 0 16px rgba(0,255,255,0.25); 
            border-color: rgba(0,255,255,0.6); 
          } 
            /* Button glowing pulse effect */ 
            .pulse-btn { 
              animation: pulse 3s infinite; 
            } 
            @keyframes 
            pulse { 0% { 
              box-shadow: 0 0 5px rgba(0,255,255,0.2); } 50% { 
                box-shadow: 0 0 16px rgba(0,255,255,0.6); } 100% { 
                  box-shadow: 0 0 5px rgba(0,255,255,0.2); } } 
            /* Icon inside button */ .icon { transform: translateY(1px); }