/* ============================================
   CUSTOM RETRO FONT FOR TRIPLE-C TITLE
   ============================================ */
/* Import semua Google Fonts yang digunakan dalam satu request */
@import url('https://fonts.googleapis.com/css2?family=Exo+2:ital,wght@1,800;1,900&family=Orbitron:ital,wght@1,800;1,900&family=Pixelify+Sans:wght@700&family=Poppins:ital,wght@0,400;0,600;0,800;1,800&family=Press+Start+2P&family=VT323&display=swap');

:root {
  /* Section background colors (Base Gradient Theme) */
  --bg-hero: #0E291B;      /* Hijau Gelap Tua (Atas) */
  --bg-purple: #18222D;    /* Dark Navy/Hitam Kebiruan (Bawah) */
  --bg-black: #0E291B;     /* Disamakan agar transisi halus */
  --bg-card-alt: #132219;

  /* Accent & Titlebar Colors */
  --green: #39FF14;
  --green-dim: #23a30c;
  --white: #FFFFFF;
  --black: #0A0A0A;
  --gray-light: #D9D9D9;
  --gray-text: #B9BEC7;

  /* Window title bar palette */
  --bar-yellow: #EBB840;   /* Header "ABOUT_FTI_FESTIVAL.EXE" */
  --bar-pink: #FF3B6B;     /* Header "DESAIN_UIUX.EXE" */
  --bar-purple: #4B2E9E;
  --bar-olive: #A8C93A;
  --bar-cyan: #2FD5C8;

  /* Fonts */
  --font-pixel: 'Press Start 2P', monospace;
  --font-body: 'Poppins', sans-serif;

  --shadow-hard: 6px 6px 0 var(--black);
  --shadow-hard-sm: 4px 4px 0 var(--black);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Menyaturkan warna Hijau Gelap dan Dark Navy dengan Gradasi Mulus tanpa sekat */
body {
  margin: 0;
  font-family: var(--font-body);
  background: linear-gradient(180deg, #0E291B 0%, #122221 40%, #18222D 100%) !important;
  background-attachment: fixed; /* Menjaga gradasi tetap membentang dari atas ke bawah */
  color: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

ul { margin: 0; padding: 0; list-style: none; }

/* ============================================
   SCANLINE TEXTURE — applied over any bg
   ============================================ */
.scanline-bg {
  position: relative;
}
.scanline-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(0,0,0,0.12) 0px,
    rgba(0,0,0,0.12) 1px,
    transparent 1px,
    transparent 3px
  );
  z-index: 1;
}
.scanline-bg > * { position: relative; z-index: 2; }

/* Membuat background kelas-kelas section transparan agar tidak menutupi gradasi utama */
.bg-hero,
.bg-purple,
.bg-black {
  background-color: transparent !important;
}

/* ============================================
   BOOT SEQUENCE OVERLAY
   ============================================ */
#boot-overlay {
  position: fixed;
  inset: 0;
  background: #050505;
  background-image:
    linear-gradient(rgba(20,20,20,0.7) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,20,20,0.7) 1px, transparent 1px);
  background-size: 28px 28px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}
#boot-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}
.boot-window {
  width: min(90vw, 520px);
  border: 2px solid var(--black);
  box-shadow: var(--shadow-hard);
}
.boot-titlebar {
  background: var(--green);
  color: var(--black);
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.boot-controls span {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 1px solid var(--black);
  background: var(--white);
  margin-left: 6px;
  text-align: center;
  line-height: 14px;
  font-size: 0.55rem;
}
.boot-body {
  background: var(--white);
  color: var(--black);
  padding: 28px 22px;
  font-family: 'Courier New', monospace;
}
.boot-log { min-height: 90px; font-size: 0.85rem; line-height: 1.9; }
.boot-log .done { color: #888; }
.boot-log .active { color: var(--green-dim); font-weight: bold; }
.boot-progress-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  margin-top: 18px;
  margin-bottom: 6px;
  color: var(--green-dim);
}
.boot-progress-track {
  border: 2px solid var(--black);
  height: 22px;
  background: var(--black);
}
.boot-progress-fill {
  height: 100%;
  background: var(--green);
  width: 0%;
  transition: width 0.2s linear;
}

/* ============================================
   NAVBAR — floating pill
   ============================================ */
.navbar-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0;
  transition: padding 0.35s ease;
}
.navbar-wrap.scrolled {
  padding: 18px 16px 0;
}
.navbar {
  width: 100%;
  max-width: 1180px;
  background: transparent;
  backdrop-filter: none;
  border: 1px solid transparent;
  border-radius: 0;
  padding: 18px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: background 0.35s ease, border-radius 0.35s ease,
              border-color 0.35s ease, box-shadow 0.35s ease,
              backdrop-filter 0.35s ease, padding 0.35s ease;
}
.navbar-wrap.scrolled .navbar {
  background: rgba(10, 20, 12, 0.65);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(57, 255, 20, 0.25);
  border-radius: 999px;
  padding: 12px 26px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.navbar-logo {
  display: flex;
  align-items: center;
  white-space: nowrap;
  background: var(--white);
  padding: 8px 16px;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.navbar-logo-img {
  height: 32px;
  width: auto;
  display: block;
}
.navbar-menu {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}
.navbar-menu a {
  font-size: 0.85rem;
  color: var(--gray-light);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  position: relative;
}
.navbar-menu a:hover,
.navbar-menu a.active {
  color: var(--white);
  border-bottom-color: var(--green);
}
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  .navbar-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0; right: 0;
    background: rgba(10, 20, 12, 0.95);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 24px;
    border-radius: 22px;
    border: 1px solid rgba(57,255,20,0.25);
    display: none;
  }
  .navbar-menu.open { display: flex; }
  .navbar-toggle { display: block; }
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.wordmark {
  font-family: var(--font-body);
  font-weight: 800;
  font-style: italic;
  color: var(--white);
  line-height: 1;
}

.pixel-heading {
  font-family: var(--font-pixel);
  line-height: 1.5;
  letter-spacing: 1px;
  font-size: clamp(1.4rem, 4vw, 2.6rem);
  text-align: center;
}
.pixel-heading .chrome {
  background: linear-gradient(180deg, #f2f2f2 0%, #9b9b9b 55%, #6b6b6b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pixel-heading .glow {
  color: var(--green);
  text-shadow: 0 0 8px var(--green), 0 0 22px rgba(57,255,20,0.6);
}

.eyebrow-pill {
  display: inline-block;
  margin: 0 auto 18px;
  padding: 8px 18px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  font-size: 0.85rem;
  color: var(--gray-light);
}
.center-block { text-align: center; }

.section {
  padding: 90px 20px;
}
.container {
  max-width: 1180px;
  margin: 0 auto;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 0.75rem;
  padding: 16px 28px;
  border: 2px solid var(--black);
  cursor: pointer;
  box-shadow: var(--shadow-hard-sm);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--black);
}
.btn-solid {
  background: var(--green);
  color: var(--black);
}
.btn-outline {
  background: transparent;
  border-color: var(--green);
  color: var(--green);
  box-shadow: var(--shadow-hard-sm);
}
.btn-row {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 34px;
}

/* ============================================
   WINDOW CHROME CARD ("EXE" card)
   ============================================ */
.exe-card {
  background: var(--white);
  color: var(--black);
  border: 2px solid var(--black);
  box-shadow: var(--shadow-hard);
  margin-bottom: 8px;
}
.exe-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  color: var(--black);
  border-bottom: 2px solid var(--black);
}
.exe-titlebar.c-yellow { background: var(--bar-yellow); }
.exe-titlebar.c-purple { background: var(--bar-purple); color: var(--white); }
.exe-titlebar.c-olive  { background: var(--bar-olive); }
.exe-titlebar.c-cyan   { background: var(--bar-cyan); }
.exe-titlebar.c-pink   { background: var(--bar-pink); }

.exe-controls span {
  display: inline-block;
  width: 16px; height: 16px;
  border: 1px solid currentColor;
  background: var(--white);
  color: var(--black);
  margin-left: 6px;
  text-align: center;
  line-height: 14px;
  font-size: 0.55rem;
}
.exe-body {
  padding: 34px 32px;
}
.exe-body h2, .exe-body h3 {
  font-family: var(--font-body);
  font-weight: 800;
  margin-top: 0;
}
.exe-body p, .exe-body li {
  font-family: var(--font-body);
  line-height: 1.75;
  color: #222;
  max-width: 70ch;
}

/* grid of small exe cards */
.exe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
  margin-top: 40px;
}
.exe-grid .exe-card .exe-body {
  padding: 26px 24px;
}
.exe-icon {
  width: 46px; height: 46px;
  margin-bottom: 14px;
}

/* ============================================
   PROKER — LOGO DIVISI, LAYOUT STACK & ANIMASI
   ============================================ */
.exe-logo {
  display: block;
  width: 140px;
  height: 140px;
  object-fit: contain;
  margin: 0 auto 22px;
  border-radius: 50%;
  animation: logo-float 3.2s ease-in-out infinite;
  transition: transform 0.25s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 0 0 rgba(120, 255, 150, 0);
}
.exe-logo:hover {
  animation-play-state: paused;
  transform: scale(1.1);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.9),
    0 0 0 6px rgba(120, 255, 150, 0.4),
    0 0 25px 10px var(--green);
}

@keyframes logo-float {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.proker-stack {
  display: flex;
  flex-direction: column;
  gap: 26px;
  max-width: 760px;
  margin: 40px auto 0;
}
.proker-stack .exe-card { margin-bottom: 0; }
.proker-stack .exe-body {
  padding: 34px 32px;
  text-align: center;
}
.proker-stack .exe-body h3 {
  font-size: 1.3rem;
  margin-bottom: 18px;
}
.proker-stack .log-list {
  text-align: left;
  max-width: 420px;
  margin: 0 auto;
}

/* delay biar animasi logo ga kompak bareng */

/* ============================================
   PROFILE CARD (rounded, for org/divisi)
   ============================================ */
.profile-card {
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: 22px;
  box-shadow: var(--shadow-hard);
  padding: 30px 22px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.profile-blob {
  position: absolute;
  top: -30px; right: -30px;
  width: 120px; height: 120px;
  border-radius: 50%;
  z-index: 0;
}
.profile-avatar {
  width: 84px; height: 84px;
  border-radius: 50%;
  border: 3px solid var(--white);
  background: var(--bg-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  position: relative;
  z-index: 1;
  font-family: var(--font-pixel);
  color: var(--green);
  font-size: 1.1rem;
  overflow: hidden;
}
.profile-avatar .exe-logo {
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 50%;
  animation: none;
}
.profile-avatar .exe-logo:hover {
  animation-play-state: initial;
  transform: none;
  box-shadow: none;
}
.profile-card h4 {
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  color: var(--green-dim);
  border-bottom: 2px solid var(--green-dim);
  display: inline-block;
  padding-bottom: 6px;
  margin: 0 0 10px;
  position: relative;
  z-index: 1;
}
.profile-card p {
  font-size: 0.85rem;
  color: #333;
  position: relative;
  z-index: 1;
  margin: 0;
}

/* ============================================
   ORG TREE (Struktur Organisasi)
   ============================================ */
.org-tree { display: flex; flex-direction: column; align-items: center; gap: 0; }
.org-level {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
  margin-bottom: 46px;
}
.org-node {
  background: var(--white);
  color: var(--black);
  border: 2px solid var(--black);
  box-shadow: var(--shadow-hard-sm);
  padding: 14px 20px;
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  text-align: center;
  min-width: 160px;
}
.org-node.top { background: var(--green); }
.org-connector {
  width: 2px;
  height: 30px;
  background: var(--green);
  margin: 0 auto 16px;
}

/* ============================================
   PROKER LOG LIST
   ============================================ */
.log-list li {
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(0,0,0,0.15);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.log-status {
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  color: var(--green-dim);
  white-space: nowrap;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-top: 40px;
}
.gallery-item {
  border: 2px solid var(--black);
  box-shadow: var(--shadow-hard-sm);
  background: var(--white);
}
.gallery-item .gallery-bar {
  background: var(--bar-olive);
  padding: 6px 10px;
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  display: flex;
  justify-content: space-between;
  border-bottom: 2px solid var(--black);
}
.gallery-item .gallery-photo {
  aspect-ratio: 4/3;
  overflow: hidden;
  padding: 0;
}
.gallery-item .gallery-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.gallery-item:hover .gallery-photo img {
  transform: scale(1.06);
}

/* ============================================
   CONTACT
   ============================================ */
.terminal-block {
  background: var(--black);
  border: 2px solid var(--green-dim);
  padding: 28px;
  font-family: 'Courier New', monospace;
  color: var(--green);
  font-size: 1rem;
  line-height: 2.1;
  box-shadow: var(--shadow-hard);
}
.terminal-block .prompt { color: var(--gray-text); }

.social-row {
  display: flex;
  gap: 14px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.social-row a {
  width: 42px; height: 42px;
  border: 2px solid var(--green);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-pixel);
  font-size: 0.65rem;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: transparent;
  padding: 70px 20px 30px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.footer-grid h4 {
  font-family: var(--font-pixel);
  font-size: 0.75rem;
  margin-bottom: 18px;
  color: var(--white);
}
.footer-grid p, .footer-grid li, .footer-grid a {
  color: var(--gray-text);
  font-size: 0.9rem;
  line-height: 1.9;
}
.footer-grid .wordmark { font-size: 1.5rem; margin-bottom: 10px; }
.footer-tagline { font-size: 0.8rem; color: #666; margin-top: 4px; }
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.footer-social a {
  width: 36px;                  /* Ukuran kotakan diperkecil */
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;           /* Lengkungan sudut lebih pas */
  background: rgba(18, 24, 33, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  transition: all 0.2s ease;
}

.footer-social a:hover {
  border-color: var(--green, #39FF14);
  color: var(--green, #39FF14);
  background: rgba(57, 255, 20, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.3);
}

.footer-social a svg {
  width: 16px;                  /* Ukuran logo diperkecil agar pas di dalam kotak */
  height: 16px;
}
.footer-bottom {
  max-width: 1180px;
  margin: 50px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: #555;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================
   FLOATING ACTION BUTTON
   ============================================ */
#fab-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 52px; height: 52px;
  background: var(--green);
  border: 2px solid var(--black);
  box-shadow: var(--shadow-hard-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
#fab-top.visible { opacity: 1; pointer-events: auto; }
#fab-top svg { width: 22px; height: 22px; }

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */
.page-hero {
  padding: 70px 20px 60px;
  text-align: center;
}
.breadcrumb {
  font-size: 0.8rem;
  color: var(--gray-text);
  margin-top: 14px;
}
.breadcrumb a { color: var(--green); }

/* ============================================
   IMAGE SLOTS (placeholder until real photos added)
   ============================================ */
.img-slot {
  position: relative;
  overflow: hidden;
  background: #f0f0f0;
  border: 2px dashed rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.img-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.img-slot-label {
  font-family: 'Courier New', monospace;
  font-size: 0.7rem;
  color: #999;
  padding: 14px;
  line-height: 1.6;
}
.img-slot-label code {
  color: #666;
  background: rgba(0,0,0,0.06);
  padding: 1px 5px;
}

.img-slot-activity {
  aspect-ratio: 16/10;
  margin-bottom: 20px;
}

/* Tentang section: text + mascot slot */
.tentang-flex {
  display: flex;
  gap: 40px;
  align-items: stretch;
}
.tentang-text { flex: 1 1 0; min-width: 0; }
.tentang-mascot { flex: 0 0 240px; }
.img-slot-mascot {
  width: 100%;
  height: 100%;
  background: #f6f6f6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.img-slot-mascot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
@media (max-width: 760px) {
  .tentang-flex { flex-direction: column; align-items: stretch; }
  .tentang-mascot { flex: 0 0 auto; width: 200px; margin: 0 auto; }
  .img-slot-mascot { aspect-ratio: 3/4; height: auto; }
}

/* ============================================
   MARQUEE (Bidang yang Dipelajari — auto-slide)
   ============================================ */
.marquee-wrap {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}
.marquee-track {
  display: flex;
  gap: 26px;
  width: max-content;
  animation: marquee-scroll 26s linear infinite;
  will-change: transform;
}

.marquee-card {
  flex: 0 0 270px;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .marquee-wrap { overflow-x: auto; }
}

/* ============================================
   TUPOKSI — kartu diam, foto kiri + teks kanan, susun ke bawah
   ============================================ */
.tupoksi-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.tupoksi-card { margin-bottom: 0; }
.tupoksi-body {
  display: flex;
  gap: 0;
  align-items: stretch;
  padding: 0;
}
.tupoksi-photo {
  flex: 0 0 200px;
  width: 200px;
  aspect-ratio: 3 / 4;
  align-self: center;
  overflow: hidden;
}
.tupoksi-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tupoksi-text { flex: 1 1 0; min-width: 0; padding: 24px 26px; }
.tupoksi-text h3 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.98rem;
  margin: 0 0 8px;
  color: #000;
}
.tupoksi-text > p {
  margin: 0 0 10px;
  color: #333;
  line-height: 1.55;
  font-size: 0.85rem;
}
.tupoksi-text ul {
  margin: 0;
  padding-left: 18px;
  list-style: disc;
}
.tupoksi-text ul li {
  color: #333;
  line-height: 1.55;
  margin-bottom: 4px;
  font-size: 0.8rem;
}
@media (max-width: 700px) {
  .tupoksi-body { flex-direction: column; align-items: stretch; padding: 18px 18px; }
  .tupoksi-photo { width: 100%; max-width: 320px; flex: 0 0 auto; aspect-ratio: 3 / 4; margin: 0 auto; }
  .tupoksi-text { width: 100%; }
}

/* Utility */
.mt-lg { margin-top: 60px; }
.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}

/* ============================================
   EFEK TEKS MELAYANG & FONT FUTURISTIC ITALIC
   ============================================ */

.hero-title-floating {
  font-family: 'Poppins', 'Exo 2', sans-serif;
  font-style: italic;
  font-weight: 800;
  font-size: clamp(3rem, 7vw, 5.5rem);
  color: #FFFFFF;
  text-transform: none;
  letter-spacing: 1px;
  display: block;
  text-align: center;
  margin: 0 auto 20px auto;
  width: fit-content;
  will-change: transform;

  /* Efek Bayangan (Glow Soft & Shadow) */
  text-shadow: 0 10px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(57, 255, 20, 0.3);

  /* Panggil animasi melayang */
  animation: floatText 3.5s ease-in-out infinite;
}

/* Keyframes untuk pergerakan melayang (naik-turun) */
@keyframes floatText {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px); /* Naik ke atas 12px */
  }
  100% {
    transform: translateY(0px);
  }
}

/* ============================================
   SCROLL REVEAL — fade in + naik saat discroll
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================
   ANNOUNCEMENT / BROADCAST POPUP (halaman TCC)
   ============================================ */
#announce-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
#announce-overlay.visible {
  opacity: 1;
  visibility: visible;
}
.announce-window {
  width: min(92vw, 600px);
  max-height: 86vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
#announce-overlay.visible .announce-window {
  transform: translateY(0);
}
.announce-close {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
  font-family: inherit;
}
.announce-body p {
  color: var(--black);
  line-height: 1.7;
  margin-bottom: 16px;
  font-size: 0.95rem;
}
.announce-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-pixel);
  font-size: 0.75rem;
  letter-spacing: 1px;
  padding: 16px;
  text-decoration: none;
  border: 2px solid var(--black);
  transition: background 0.2s ease, color 0.2s ease;
}
.announce-btn:hover {
  background: var(--white);
  color: var(--black);
}

/* ============================================
   SPONSORSHIP & MEDIA PARTNER (halaman TCC)
   ============================================ */
.partner-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  margin: 10px auto 0;
}
.partner-item {
  width: 150px;
  text-align: center;
}
.partner-box {
  width: 150px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: transparent;
  margin: 0 auto 10px;
}
.partner-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.partner-item p {
  color: var(--black);
  font-size: 0.8rem;
  line-height: 1.35;
  margin: 0;
}

/* ============================================
   LOMBA DETAIL PAGE (Biaya Registrasi / Hadiah / Timeline)
   ============================================ */

/* --- Biaya Registrasi: gelombang cards --- */
.wave-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  margin-top: 36px;
}
.wave-card .exe-body {
  text-align: center;
  padding: 26px 20px;
}
.wave-status {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  letter-spacing: 1px;
  padding: 5px 12px;
  margin-bottom: 16px;
  border: 2px solid var(--black);
}
.wave-status.is-open {
  background: var(--green);
  color: var(--black);
}
.wave-status.is-closed {
  background: #d9d9d9;
  color: #666;
}
.wave-price {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.5rem;
  color: #000;
  margin: 0;
}
.wave-price span {
  display: block;
  font-family: 'Courier New', monospace;
  font-weight: 400;
  font-size: 0.75rem;
  color: #666;
  margin-top: 4px;
}

/* --- Hadiah: juara cards --- */
.prize-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-top: 36px;
}
.prize-card .exe-body {
  text-align: center;
  padding: 30px 22px;
}
.prize-rank {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-family: var(--font-pixel);
  font-size: 1.1rem;
}
.prize-rank.r1 { background: #FFD84D; }
.prize-rank.r2 { background: #D9D9D9; }
.prize-rank.r3 { background: #E3A25C; }
.prize-card h3 {
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  margin-bottom: 18px;
}
.prize-list {
  text-align: left;
  max-width: 220px;
  margin: 0 auto;
}
.prize-list li {
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  color: #333;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(0,0,0,0.15);
}
.prize-list li:last-child { border-bottom: none; }
.prize-list li::before {
  content: "»";
  color: var(--green-dim);
  margin-right: 8px;
}

/* --- Timeline --- */
.timeline-list {
  max-width: 720px;
  margin: 36px auto 0;
  position: relative;
  padding-left: 26px;
}
.timeline-list::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: repeating-linear-gradient(
    0deg, var(--green) 0px, var(--green) 6px, transparent 6px, transparent 12px
  );
}
.timeline-item {
  position: relative;
  padding-bottom: 30px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -26px;
  top: 4px;
  width: 14px;
  height: 14px;
  background: var(--green);
  border: 2px solid var(--black);
}
.timeline-mode {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  letter-spacing: 1px;
  padding: 3px 9px;
  margin-bottom: 8px;
  border: 1px solid var(--green-dim);
  color: var(--green-dim);
}
.timeline-date {
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: #666;
  margin: 0 0 4px;
}
.timeline-title {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  color: #000;
  margin: 0;
}

/* --- Detail page section title spacing --- */
.detail-section-title { margin-top: 70px; }
.detail-section-title:first-of-type { margin-top: 0; }

/* ============================================
   VIDEO PROFIL UKM
   ============================================ */
.video-profil {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  object-fit: cover;
}
@supports not (aspect-ratio: 16 / 9) {
  .video-profil { height: auto; }
}

/* ============================================
   TWIBBON GENERATOR
   ============================================ */
.twibbon-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}
.twibbon-card { margin: 0; }
@media (max-width: 760px) {
  .twibbon-split { grid-template-columns: 1fr; }
}

.twibbon-canvas-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 2px solid var(--black);
  background:
    linear-gradient(45deg, #ddd 25%, transparent 25%),
    linear-gradient(-45deg, #ddd 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #ddd 75%),
    linear-gradient(-45deg, transparent 75%, #ddd 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  background-color: #f2f2f2;
  overflow: hidden;
  touch-action: none;
}
#twibbon-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}
#twibbon-canvas:active { cursor: grabbing; }
#twibbon-canvas.is-empty { display: none; }

#twibbon-empty-hint {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #999;
  text-align: center;
  padding: 20px;
  pointer-events: none;
}
#twibbon-empty-hint p { margin: 0; font-size: 0.85rem; }

.twibbon-controls {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 20px;
}
.twibbon-upload-btn {
  text-align: center;
  cursor: pointer;
  display: inline-block;
}
.twibbon-control-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.twibbon-control-row label {
  font-size: 0.8rem;
  font-weight: 700;
}
.twibbon-control-row input[type="range"] {
  width: 100%;
  accent-color: var(--green);
}
.twibbon-hint {
  font-size: 0.78rem;
  color: var(--gray-text);
  margin: 0;
  line-height: 1.5;
}
#twibbon-download:disabled,
#twibbon-zoom:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.twibbon-caption-panel {
  display: flex;
  flex-direction: column;
}
.twibbon-panel-label {
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0 0 10px;
}
.twibbon-caption-box {
  width: 100%;
  height: 260px;
  padding: 14px;
  border: 2px solid var(--black);
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #222;
  background: #F9F9F9;
  resize: vertical;
  overflow-y: auto;
}
.twibbon-copy-row {
  display: flex;
  align-items: center;
  margin-top: 14px;
}
.twibbon-copy-btn { width: 100%; }
.twibbon-copy-feedback {
  margin-left: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green-dim);
  opacity: 0;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}
.twibbon-copy-feedback.show { opacity: 1; }

.twibbon-control-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 6px;
  gap: 6px;
}
.twibbon-control-value {
  font-family: 'Courier New', monospace;
  color: var(--green-dim);
  font-size: 0.8rem;
  white-space: nowrap;
}
.twibbon-btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.twibbon-btn-row .btn { flex: 1; min-width: 130px; }
.twibbon-tag-box {
  border: 2px solid var(--black);
  background: #F1FBEA;
  padding: 12px 14px;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  font-weight: 700;
}

/* ============================================
   WEBINAR / PRA EVENT
   ============================================ */
.webinar-point {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.webinar-point-icon {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
}
.webinar-point p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
}
.webinar-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.webinar-info-label {
  display: block;
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 6px;
}
.webinar-info-item p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #333;
  margin: 0;
}

.webinar-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: start;
}
.webinar-poster {
  position: sticky;
  top: 90px;
}
.webinar-poster img {
  width: 100%;
  display: block;
  border: 2px solid var(--black);
  box-shadow: var(--shadow-hard-sm);
}
@media (max-width: 760px) {
  .webinar-layout { grid-template-columns: 1fr; }
  .webinar-poster { position: static; max-width: 340px; margin: 0 auto; }
}
.twibbon-divider {
  border: none;
  border-top: 2px dashed #ccc;
  margin: 28px 0 22px;
}

/* ============================================
   LOGO ANIMASI PER LOMBA (Esai / Vibe Code / Poster)
   ============================================ */
.lomba-logo-wrap {
  width: 140px;
  height: 140px;
  margin: 0 auto 22px;
  animation: logo-float 3.2s ease-in-out infinite;
  transition: transform 0.25s ease, box-shadow 0.3s ease;
  border-radius: 50%;
}
.lomba-logo-wrap:hover {
  animation-play-state: paused;
  transform: scale(1.1);
}
.lomba-logo-wrap svg { display: block; width: 100%; height: 100%; overflow: visible; }

/* --- Esai: pena menulis di kertas --- */
.logo-esai .esai-line {
  transform-box: fill-box;
  transform-origin: left center;
  animation: esai-write 4.5s ease-in-out infinite;
}
.logo-esai .esai-line2 { animation-delay: 1.1s; }
.logo-esai .esai-line3 { animation-delay: 2.2s; }
@keyframes esai-write {
  0%   { transform: scaleX(0); }
  16%  { transform: scaleX(1); }
  85%  { transform: scaleX(1); }
  100% { transform: scaleX(0); }
}
.logo-esai .esai-pencil {
  animation: esai-move 4.5s ease-in-out infinite;
}
@keyframes esai-move {
  0%   { transform: translate(0px, 0px) rotate(-38deg); }
  16%  { transform: translate(46px, 0px) rotate(-38deg); }
  33%  { transform: translate(46px, 0px) rotate(-38deg); }
  36%  { transform: translate(0px, 16px) rotate(-38deg); }
  49%  { transform: translate(46px, 16px) rotate(-38deg); }
  66%  { transform: translate(46px, 16px) rotate(-38deg); }
  69%  { transform: translate(0px, 32px) rotate(-38deg); }
  82%  { transform: translate(46px, 32px) rotate(-38deg); }
  100% { transform: translate(0px, 0px) rotate(-38deg); }
}

/* --- Vibe Code: bracket, kursor berkedip, equalizer --- */
.logo-vibe .vibe-cursor {
  animation: vibe-blink 1s step-end infinite;
}
@keyframes vibe-blink {
  0%, 49%  { opacity: 1; }
  50%, 100% { opacity: 0; }
}
.logo-vibe .vibe-bar {
  transform-box: fill-box;
  transform-origin: bottom center;
  animation: vibe-eq 1.2s ease-in-out infinite;
}
.logo-vibe .vibe-b1 { animation-delay: 0s; }
.logo-vibe .vibe-b2 { animation-delay: 0.15s; }
.logo-vibe .vibe-b3 { animation-delay: 0.3s; }
.logo-vibe .vibe-b4 { animation-delay: 0.45s; }
@keyframes vibe-eq {
  0%, 100% { transform: scaleY(0.35); }
  50%      { transform: scaleY(1); }
}
.logo-vibe .vibe-bracket {
  animation: vibe-nudge 2.4s ease-in-out infinite;
}
.logo-vibe .vibe-bracket-l { transform-box: fill-box; transform-origin: right center; }
.logo-vibe .vibe-bracket-r { transform-box: fill-box; transform-origin: left center; animation-delay: 0s; }
@keyframes vibe-nudge {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(-4px); }
}

/* --- Poster: bingkai dengan sapuan kuas warna --- */
.logo-poster .poster-swipe {
  animation: poster-sweep 3.6s ease-in-out infinite;
}
@keyframes poster-sweep {
  0%   { transform: translateX(-6px); opacity: 0; }
  8%   { opacity: 0.9; }
  45%  { transform: translateX(58px); opacity: 0.9; }
  55%  { opacity: 0; }
  100% { transform: translateX(58px); opacity: 0; }
}
.logo-poster .poster-brush {
  animation: poster-brush-move 3.6s ease-in-out infinite;
}
@keyframes poster-brush-move {
  0%   { transform: translateX(-14px); }
  45%  { transform: translateX(28px); }
  55%  { transform: translateX(28px); }
  100% { transform: translateX(-14px); }
}
.logo-poster .poster-sun {
  animation: poster-glow 2s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes poster-glow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.18); opacity: 0.75; }
}

/* ============================================
   TCC AI ASSISTANT — CHAT WIDGET
   ============================================ */
#tcc-chat-widget {
  position: fixed;
  right: 24px;
  bottom: 96px;
  z-index: 999;
  font-family: var(--font-body);
}

#tcc-chat-toggle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid var(--black);
  background: var(--green);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 0 rgba(0,0,0,0.6);
  transition: transform 0.15s ease;
}
#tcc-chat-toggle:hover { transform: translateY(-2px) scale(1.05); }
#tcc-chat-toggle:active { transform: translateY(1px); box-shadow: 0 2px 0 rgba(0,0,0,0.6); }

#tcc-chat-window {
  position: absolute;
  right: 0;
  bottom: 74px;
  width: 340px;
  max-width: calc(100vw - 32px);
  display: none;
  flex-direction: column;
  box-shadow: 0 10px 0 rgba(0,0,0,0.5);
}
#tcc-chat-window.open { display: flex; }

#tcc-chat-close {
  background: none;
  border: none;
  color: inherit;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

.tcc-chat-body {
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  height: 420px;
}

#tcc-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
}

.tcc-msg {
  max-width: 85%;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 0.85rem;
  line-height: 1.4;
  border: 1.5px solid var(--black);
}
.tcc-msg-bot {
  align-self: flex-start;
  background: #F1FBEA;
  border-bottom-left-radius: 2px;
}
.tcc-msg-user {
  align-self: flex-end;
  background: var(--green);
  border-bottom-right-radius: 2px;
}
.tcc-msg-error {
  align-self: flex-start;
  background: #FFE5E5;
  border-color: #c0392b;
  color: #c0392b;
}
.tcc-msg-typing {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  padding: 12px 14px;
}
.tcc-msg-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--black);
  opacity: 0.4;
  animation: tcc-typing-bounce 1s infinite ease-in-out;
}
.tcc-msg-typing span:nth-child(2) { animation-delay: 0.15s; }
.tcc-msg-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes tcc-typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

#tcc-chat-form {
  display: flex;
  border-top: 2px solid var(--black);
  background: #fff;
}
#tcc-chat-input {
  flex: 1;
  border: none;
  padding: 12px;
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
}
#tcc-chat-send {
  border: none;
  border-left: 2px solid var(--black);
  background: var(--green);
  color: var(--black);
  width: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
#tcc-chat-send:disabled { opacity: 0.5; cursor: default; }

@media (max-width: 480px) {
  #tcc-chat-window { right: -8px; width: calc(100vw - 24px); }
}
