/* ============================================================
   JADWAL STI — ITEBIS PGRI Dewantara
   Color palette from logo: cyan-blue to violet/purple
   ============================================================ */

:root {
  --cyan:    #00d4ff;
  --blue:    #3b82f6;
  --violet:  #7c3aed;
  --purple:  #a855f7;
  --dark:    #050a14;
  --dark2:   #0a1020;
  --dark3:   #111827;
  --glass:   rgba(255,255,255,0.04);
  --glass2:  rgba(255,255,255,0.07);
  --border:  rgba(255,255,255,0.08);
  --text:    #e2e8f0;
  --muted:   #64748b;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--text);
  font-family: 'Exo 2', sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ---- ANIMATED BACKGROUND ---- */
.bg-grid {
  position: fixed; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.bg-orbs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.18;
  animation: orbFloat 10s ease-in-out infinite alternate;
}
.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--cyan), transparent 70%);
  top: -150px; left: -150px;
  animation-duration: 12s;
}
.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--violet), transparent 70%);
  bottom: 10%; right: -100px;
  animation-duration: 9s; animation-delay: -3s;
}
.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--purple), transparent 70%);
  top: 40%; left: 30%;
  animation-duration: 15s; animation-delay: -6s;
}

@keyframes orbFloat {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, 30px) scale(1.1); }
}

/* ---- HEADER ---- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(5,10,20,0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.header-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo-wrap { display: flex; align-items: center; gap: 14px; }
.logo-img {
  width: 52px; height: 52px;
  border-radius: 12px;
  object-fit: cover;
  border: 1.5px solid rgba(0,212,255,0.3);
  box-shadow: 0 0 16px rgba(0,212,255,0.2);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem; font-weight: 800;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-sub { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.logo-inst { font-size: 0.65rem; color: rgba(100,116,139,0.7); margin-top: 1px; }

.header-badge {
  display: flex; flex-direction: column; align-items: flex-end;
  background: var(--glass2);
  border: 1px solid var(--border);
  border-radius: 10px; padding: 6px 14px;
}
.badge-label { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.badge-year {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem; font-weight: 700;
  color: var(--cyan);
}

/* ---- HERO ---- */
.hero {
  position: relative; z-index: 1;
  max-width: 1100px; margin: 0 auto;
  padding: 70px 24px 50px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px;
}
.hero-content { flex: 1; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--cyan); margin-bottom: 18px;
}
.hero-tag::before {
  content: ''; display: inline-block;
  width: 24px; height: 1.5px;
  background: var(--cyan);
}
.hero-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900; line-height: 1.05;
  margin-bottom: 18px;
  animation: fadeUp 0.8s ease both;
}
.gradient-text {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--violet) 60%, var(--purple) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  color: var(--muted); font-size: 0.95rem; margin-bottom: 30px;
  animation: fadeUp 0.8s ease 0.15s both;
}
.hero-pills {
  display: flex; flex-wrap: wrap; gap: 10px;
  animation: fadeUp 0.8s ease 0.25s both;
}
.pill {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 500;
  background: var(--glass2);
  border: 1px solid var(--border);
  color: var(--text);
  transition: border-color 0.3s, background 0.3s;
}
.pill:hover { border-color: rgba(0,212,255,0.4); background: rgba(0,212,255,0.07); }
.pill svg { width: 14px; height: 14px; color: var(--cyan); }

.hero-circuit {
  flex: 0 0 260px;
  animation: fadeUp 0.8s ease 0.35s both;
  opacity: 0.6;
}
.circuit-svg { width: 100%; max-width: 260px; }

/* ---- FILTER BAR ---- */
.filter-bar {
  position: relative; z-index: 1;
  padding: 0 24px 32px;
}
.filter-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; gap: 10px; flex-wrap: wrap;
}
.filter-btn {
  padding: 9px 22px; border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--glass);
  color: var(--muted);
  font-family: 'Exo 2', sans-serif;
  font-size: 0.85rem; font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}
.filter-btn:hover {
  border-color: rgba(0,212,255,0.4);
  color: var(--cyan);
  background: rgba(0,212,255,0.06);
}
.filter-btn.active {
  background: linear-gradient(135deg, rgba(0,212,255,0.2), rgba(124,58,237,0.2));
  border-color: rgba(0,212,255,0.5);
  color: var(--cyan);
}

/* ---- SCHEDULE SECTION ---- */
.schedule-section {
  position: relative; z-index: 1;
  max-width: 1100px; margin: 0 auto;
  padding: 0 24px 60px;
  display: flex; flex-direction: column; gap: 48px;
}

/* ---- DAY BLOCK ---- */
.day-block {
  animation: fadeUp 0.6s ease both;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.day-block.hidden {
  display: none;
}

.day-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.day-label { display: flex; align-items: center; gap: 12px; }
.day-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  box-shadow: 0 0 10px rgba(0,212,255,0.5);
  flex-shrink: 0;
}
.day-header h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem; font-weight: 700;
  color: #fff;
}
.day-count {
  font-size: 0.78rem; color: var(--muted);
  background: var(--glass2);
  border: 1px solid var(--border);
  padding: 4px 12px; border-radius: 999px;
}

/* ---- SCHEDULE GRID ---- */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

/* ---- SESSION CARD ---- */
.session-card {
  position: relative; overflow: hidden;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  display: flex; align-items: flex-start; gap: 16px;
  cursor: default;
  animation: fadeUp 0.5s ease calc(var(--delay, 0s)) both;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.session-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0,212,255,0.25);
  background: rgba(255,255,255,0.06);
}
.session-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 0% 0%, rgba(0,212,255,0.04), transparent 60%);
  pointer-events: none;
}

.session-bar {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--color, var(--cyan));
  border-radius: 3px 0 0 3px;
  box-shadow: 0 0 8px var(--color, var(--cyan));
}

.session-time {
  display: flex; flex-direction: column; align-items: center;
  min-width: 44px;
  padding-left: 6px;
}
.sesi-num {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem; font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.time-range {
  font-size: 0.68rem; color: var(--muted);
  white-space: nowrap; text-align: center;
  line-height: 1.4;
}

.session-info { flex: 1; }
.matkul-name {
  font-family: 'Exo 2', sans-serif;
  font-size: 0.88rem; font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 7px;
  line-height: 1.3;
}
.dosen-name {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.72rem; color: var(--muted);
  margin-bottom: 8px;
}
.dosen-name svg { width: 12px; height: 12px; flex-shrink: 0; }

.room-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(0,212,255,0.07);
  border: 1px solid rgba(0,212,255,0.18);
  font-size: 0.68rem; color: var(--cyan);
}
.room-tag svg { width: 11px; height: 11px; }

/* ---- INFO SECTION ---- */
.info-section {
  position: relative; z-index: 1;
  max-width: 1100px; margin: 0 auto;
  padding: 0 24px 70px;
}
.info-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem; font-weight: 700;
  color: #fff; margin-bottom: 24px;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.info-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color 0.3s;
}
.info-card:hover { border-color: rgba(124,58,237,0.4); }
.info-icon { font-size: 1.5rem; }
.info-card p { font-size: 0.8rem; color: var(--muted); line-height: 1.6; }
.info-card strong { color: var(--text); }

/* ---- FOOTER ---- */
.footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  background: rgba(5,10,20,0.6);
  padding: 28px 24px;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap;
}
.footer-logo {
  width: 40px; height: 40px; border-radius: 8px;
  object-fit: cover; border: 1px solid var(--border);
}
.footer-name { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.footer-inst { font-size: 0.72rem; color: var(--muted); }
.footer-copy {
  margin-left: auto;
  font-size: 0.72rem; color: var(--muted);
}

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .hero { flex-direction: column; padding: 40px 16px 30px; }
  .hero-circuit { display: none; }
  .schedule-grid { grid-template-columns: 1fr; }
  .header-inner { padding: 0 16px; }
  .hero-title { font-size: 2.2rem; }
  .schedule-section, .info-section, .filter-bar { padding-left: 16px; padding-right: 16px; }
  .footer-copy { margin-left: 0; width: 100%; }
}

@media (max-width: 480px) {
  .logo-inst { display: none; }
  .day-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .info-grid { grid-template-columns: 1fr; }
}
