/* ==========================================================================
   STYLE CSS - YAYASAN TEMAN AKSARA CITA HARAPAN INDONESIA (TEACH ID)
   Tema: 3D Cinematic Immersive Web Experience
   Palet: Deep Midnight Navy, Electric Gold, Teach Blue & Crimson Red
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Cinzel:wght@500;700&display=swap');

:root {
  --bg-primary: #060913;
  --bg-secondary: #0a0f1e;
  --bg-tertiary: #0f172a;
  --card-bg: rgba(15, 23, 42, 0.75);
  
  --gold-primary: #f59e0b;
  --gold-light: #fbbf24;
  --gold-glow: rgba(245, 158, 11, 0.35);
  
  --teach-blue: #2563eb;
  --teach-blue-light: #38bdf8;
  --teach-blue-glow: rgba(37, 99, 235, 0.35);
  
  --teach-red: #ef4444;
  --teach-red-glow: rgba(239, 68, 68, 0.35);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(245, 158, 11, 0.25);
  --border-blue: rgba(37, 99, 235, 0.25);
}

/* Base Setup */
html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  overflow-x: hidden;
  position: relative;
  selection-background-color: #f59e0b;
  selection-color: #000;
}

::selection {
  background: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

h1, h2, h3, h4, .font-heading {
  font-family: 'Outfit', sans-serif;
}

.font-cinematic {
  font-family: 'Cinzel', serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: #060913;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #1e293b, #f59e0b);
  border-radius: 6px;
  border: 2px solid #060913;
}
::-webkit-scrollbar-thumb:hover {
  background: #fbbf24;
}

/* Background Gradients & Grid Overlay */
.cinematic-bg {
  background: 
    radial-gradient(circle at 15% 20%, rgba(37, 99, 235, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 65%, rgba(245, 158, 11, 0.1) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(239, 68, 68, 0.08) 0%, transparent 35%),
    #060913;
}

.grid-overlay {
  background-size: 50px 50px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
}

/* Three.js Canvas Container */
#hero-canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: auto;
}

/* Glassmorphism Styles */
.glass-nav {
  background: rgba(6, 9, 19, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.glass-card {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 35px -5px rgba(0, 0, 0, 0.5);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  background: rgba(22, 33, 58, 0.85);
  border-color: rgba(245, 158, 11, 0.35);
  transform: translateY(-6px);
  box-shadow: 0 20px 45px -10px rgba(245, 158, 11, 0.15), 0 0 20px rgba(37, 99, 235, 0.1);
}

.glass-card-gold {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* 3D Tilt Card Container */
.tilt-card {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.tilt-inner {
  transition: transform 0.2s cubic-bezier(0.2, 0, 0.2, 1);
  transform-style: preserve-3d;
}

/* Glowing Buttons */
.btn-glow-gold {
  position: relative;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #060913;
  font-weight: 700;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.45);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.btn-glow-gold:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  box-shadow: 0 0 35px rgba(245, 158, 11, 0.7);
  transform: translateY(-2px) scale(1.02);
}

.btn-glow-gold::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 30%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 70%
  );
  transform: rotate(30deg) translateY(-100%);
  transition: transform 0.7s;
}

.btn-glow-gold:hover::after {
  transform: rotate(30deg) translateY(100%);
}

.btn-glow-blue {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
  transition: all 0.3s ease;
}

.btn-glow-blue:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 0 30px rgba(37, 99, 235, 0.65);
  transform: translateY(-2px);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  color: #f8fafc;
  transition: all 0.3s ease;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

/* Text Gradients */
.text-gradient-gold {
  background: linear-gradient(135deg, #ffffff 10%, #fbbf24 60%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-blue {
  background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-teach {
  background: linear-gradient(135deg, #38bdf8 0%, #2563eb 50%, #f43f5e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Sound Wave Visualizer in Navbar */
.sound-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 18px;
}

.sound-bar {
  width: 3px;
  background-color: #fbbf24;
  border-radius: 2px;
  height: 6px;
  transition: height 0.2s ease;
}

.sound-playing .sound-bar:nth-child(1) {
  animation: waveBar 0.9s infinite ease-in-out alternate;
}
.sound-playing .sound-bar:nth-child(2) {
  animation: waveBar 1.2s infinite ease-in-out alternate 0.2s;
}
.sound-playing .sound-bar:nth-child(3) {
  animation: waveBar 0.8s infinite ease-in-out alternate 0.4s;
}
.sound-playing .sound-bar:nth-child(4) {
  animation: waveBar 1.1s infinite ease-in-out alternate 0.1s;
}

@keyframes waveBar {
  0% { height: 4px; }
  100% { height: 18px; }
}

/* Glowing Pulsing Beacon */
.pulse-beacon {
  position: relative;
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: #10b981;
  border-radius: 50%;
}

.pulse-beacon::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid #10b981;
  animation: pulseBeacon 1.8s infinite;
}

@keyframes pulseBeacon {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* Masonry / Gallery Styling */
.gallery-img-wrapper {
  overflow: hidden;
  border-radius: 1rem;
  position: relative;
  cursor: pointer;
}

.gallery-img-wrapper img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}

.gallery-img-wrapper:hover img {
  transform: scale(1.08);
  filter: brightness(1.1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(6, 9, 19, 0.9) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.gallery-img-wrapper:hover .gallery-overlay {
  opacity: 1;
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(6, 9, 19, 0.95);
  backdrop-filter: blur(25px);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox-modal.active {
  display: flex;
  animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

/* Admin Dashboard Specific */
.admin-sidebar {
  background: #080d1a;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  color: #94a3b8;
  font-weight: 500;
  transition: all 0.2s ease;
}

.admin-nav-item:hover, .admin-nav-item.active {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border-left: 3px solid #f59e0b;
}

/* Badge Status Styles */
.badge-pending {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-success {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-info {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
