/* ============================================================
   style.css - CSS Utama Publik CMS SMP Negeri 3 Sragen
   Desain: Futuristik, Modern, Animasi Penuh
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@700;800&family=JetBrains+Mono:wght@400;600&display=swap');

/* ============================================================
   CSS VARIABLES - Design Tokens
   ============================================================ */
:root {
  /* Color Palette */
  --primary: #6c63ff;
  --primary-light: #8b85ff;
  --primary-dark: #4d44d9;
  --secondary: #00c9a7;
  --secondary-light: #00e8c0;
  --accent: #e94560;
  --accent-light: #ff6b88;
  --gold: #ffd700;
  --orange: #f5a623;

  /* Backgrounds */
  --bg-dark: #0a0a1a;
  --bg-card: #12122a;
  --bg-glass: rgba(108, 99, 255, 0.08);
  --bg-glass-dark: rgba(10, 10, 26, 0.85);

  /* Text */
  --text-white: #ffffff;
  --text-light: #c8c8e8;
  --text-muted: #8888aa;
  --text-dark: #0a0a1a;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #6c63ff 0%, #00c9a7 100%);
  --grad-hero: linear-gradient(135deg, #0a0a1a 0%, #1a0a2e 50%, #0a1a2a 100%);
  --grad-card: linear-gradient(135deg, rgba(108,99,255,0.15), rgba(0,201,167,0.08));
  --grad-text: linear-gradient(135deg, #6c63ff, #00c9a7);
  --grad-accent: linear-gradient(135deg, #e94560, #f5a623);

  /* Shadows */
  --shadow-sm: 0 4px 15px rgba(108, 99, 255, 0.15);
  --shadow-md: 0 8px 30px rgba(108, 99, 255, 0.25);
  --shadow-lg: 0 20px 60px rgba(108, 99, 255, 0.3);
  --shadow-glow: 0 0 30px rgba(108, 99, 255, 0.5);
  --shadow-accent: 0 8px 30px rgba(233, 69, 96, 0.3);

  /* Border */
  --border-glass: 1px solid rgba(108, 99, 255, 0.2);
  --border-radius: 16px;
  --border-radius-sm: 8px;
  --border-radius-lg: 24px;

  /* Transitions */
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Spacing */
  --section-padding: 100px 0;
  --container-max: 1200px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

/* Animated Background Stars */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(108,99,255,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(0,201,167,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(233,69,96,0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

a { color: var(--primary-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--secondary); }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.3;
}

/* ============================================================
   SCROLLBAR CUSTOM
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb {
  background: var(--grad-primary);
  border-radius: 3px;
}

/* ============================================================
   GLASSMORPHISM CARD
   ============================================================ */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: var(--border-glass);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.glass-card:hover {
  transform: translateY(-6px);
  border-color: rgba(108, 99, 255, 0.5);
  box-shadow: var(--shadow-md);
}

/* ============================================================
   SECTION STYLES
   ============================================================ */
.section {
  padding: var(--section-padding);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-glass);
  border: var(--border-glass);
  border-radius: 50px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.section-badge i { color: var(--secondary); }

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 16px;
}

.section-title .gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================================
   GRADIENT TEXT UTILITY
   ============================================================ */
.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-accent {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary-custom {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--grad-primary);
  color: white;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  padding: 14px 32px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.5px;
}

.btn-primary-custom::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: var(--transition);
}

.btn-primary-custom:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
  color: white;
}

.btn-primary-custom:hover::before { left: 100%; }

.btn-outline-custom {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--primary-light);
  font-weight: 600;
  padding: 13px 30px;
  border-radius: 50px;
  border: 2px solid rgba(108, 99, 255, 0.5);
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
}

.btn-outline-custom:hover {
  background: var(--bg-glass);
  border-color: var(--primary);
  color: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--grad-hero);
  z-index: 0;
}

/* Floating orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float-orb 8s ease-in-out infinite alternate;
}

.hero-orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #6c63ff, transparent);
  top: -100px; left: -100px;
  animation-duration: 10s;
}

.hero-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #00c9a7, transparent);
  bottom: -50px; right: -50px;
  animation-duration: 8s;
  animation-delay: 2s;
}

.hero-orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #e94560, transparent);
  top: 50%; right: 30%;
  animation-duration: 12s;
  animation-delay: 1s;
}

@keyframes float-orb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -30px) scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(108, 99, 255, 0.15);
  border: 1px solid rgba(108, 99, 255, 0.3);
  border-radius: 50px;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-light);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 28px;
  animation: slideInDown 0.8s ease both;
}

.hero-badge .pulse-dot {
  width: 8px; height: 8px;
  background: var(--secondary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 900;
  color: var(--text-white);
  line-height: 1.1;
  margin-bottom: 24px;
  animation: slideInUp 0.8s ease 0.2s both;
}

.hero-title .school-name {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 550px;
  margin-bottom: 40px;
  animation: slideInUp 0.8s ease 0.4s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: slideInUp 0.8s ease 0.6s both;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 60px;
  animation: slideInUp 0.8s ease 0.8s both;
}

.hero-stat {
  text-align: center;
}

.hero-stat .number {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1;
}

.hero-stat .label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* Hero visual side */
.hero-visual {
  position: relative;
  animation: slideInRight 1s ease 0.3s both;
}

.hero-school-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: var(--border-glass);
  border-radius: 24px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.hero-school-card::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: conic-gradient(from 0deg, transparent 0%, rgba(108,99,255,0.1) 25%, transparent 50%);
  animation: rotate-bg 8s linear infinite;
}

@keyframes rotate-bg {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.hero-logo {
  width: 100px; height: 100px;
  background: var(--grad-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: white;
  margin: 0 auto 20px;
  box-shadow: 0 0 40px rgba(108,99,255,0.5);
  position: relative;
  z-index: 1;
}

/* ============================================================
   BERITA CARDS
   ============================================================ */
.news-card {
  background: var(--bg-glass);
  border: var(--border-glass);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
}

.news-card:hover {
  transform: translateY(-8px);
  border-color: rgba(108,99,255,0.5);
  box-shadow: var(--shadow-md);
}

.news-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: var(--transition);
}

.news-card:hover .news-card-img { transform: scale(1.05); }

.news-card-img-wrapper {
  overflow: hidden;
  position: relative;
}

.news-card-body {
  padding: 24px;
}

.news-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--secondary);
  background: rgba(0,201,167,0.1);
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.news-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: var(--transition);
}

.news-card:hover .news-title { color: var(--primary-light); }

.news-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
}

.news-meta i { color: var(--primary-light); }

/* ============================================================
   PENGUMUMAN
   ============================================================ */
.announcement-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-glass);
  border: var(--border-glass);
  border-radius: var(--border-radius-sm);
  padding: 20px;
  transition: var(--transition);
  margin-bottom: 12px;
}

.announcement-item:hover {
  border-color: rgba(108,99,255,0.4);
  transform: translateX(6px);
}

.announcement-icon {
  width: 48px; height: 48px;
  min-width: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
}

.announcement-content .title {
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.announcement-content .meta {
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================================
   AGENDA
   ============================================================ */
.agenda-card {
  background: var(--bg-glass);
  border: var(--border-glass);
  border-radius: var(--border-radius);
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: var(--transition);
  margin-bottom: 16px;
}

.agenda-card:hover {
  border-color: rgba(108,99,255,0.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.agenda-date {
  min-width: 70px;
  text-align: center;
  background: var(--grad-primary);
  border-radius: 12px;
  padding: 12px 8px;
  color: white;
}

.agenda-date .day {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}

.agenda-date .month {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}

.agenda-info .agenda-title {
  font-weight: 700;
  color: var(--text-white);
  font-size: 1rem;
  margin-bottom: 6px;
}

.agenda-info .agenda-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.agenda-info .agenda-meta i { color: var(--primary-light); }

/* ============================================================
   GALERI GRID
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.gallery-item:hover img { transform: scale(1.1); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,26,0.9) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay-icon {
  width: 60px; height: 60px;
  background: var(--grad-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  transform: scale(0);
  transition: var(--transition-bounce);
}

.gallery-item:hover .gallery-overlay-icon { transform: scale(1); }

.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px;
  transform: translateY(100%);
  transition: var(--transition);
}

.gallery-item:hover .gallery-caption { transform: translateY(0); }

.gallery-caption-title {
  font-weight: 700;
  color: white;
  font-size: 0.95rem;
}

/* ============================================================
   COUNTER STATS
   ============================================================ */
.stats-section {
  background: var(--grad-primary);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stat-item {
  text-align: center;
  position: relative;
  padding: 20px;
}

.stat-item .stat-number {
  font-size: 3.5rem;
  font-weight: 900;
  color: white;
  display: block;
  line-height: 1;
}

.stat-item .stat-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 8px;
  font-weight: 500;
}

.stat-item i {
  font-size: 2.5rem;
  color: rgba(255,255,255,0.3);
  display: block;
  margin-bottom: 12px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #050510;
  border-top: 1px solid rgba(108, 99, 255, 0.15);
  padding-top: 80px;
}

.footer-brand .brand-name {
  font-size: 1.4rem;
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 12px;
  line-height: 1.8;
}

.footer-heading {
  color: var(--text-white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 30px; height: 2px;
  background: var(--grad-primary);
  border-radius: 2px;
}

.footer-links { list-style: none; padding: 0; margin: 0; }

.footer-links li { margin-bottom: 10px; }

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-light);
  transform: translateX(4px);
}

.footer-links a i {
  font-size: 10px;
  color: var(--secondary);
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-contact-item i {
  color: var(--primary-light);
  min-width: 16px;
  margin-top: 3px;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.social-link {
  width: 40px; height: 40px;
  background: var(--bg-glass);
  border: var(--border-glass);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
  font-size: 16px;
}

.social-link:hover {
  background: var(--grad-primary);
  border-color: transparent;
  color: white;
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

/* Footer Bottom - "Dibuat oleh Eko Daresdi" */
.footer-bottom {
  border-top: 1px solid rgba(108, 99, 255, 0.1);
  padding: 24px 0;
  margin-top: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copyright {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-credit {
  display: flex;
  align-items: center;
  gap: 10px;
}

.credit-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(108,99,255,0.2), rgba(0,201,167,0.2));
  border: 1px solid rgba(108,99,255,0.3);
  border-radius: 50px;
  padding: 8px 18px;
  position: relative;
  overflow: hidden;
}

.credit-badge::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.credit-badge .credit-icon {
  font-size: 16px;
  animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.credit-text {
  font-size: 13px;
  font-weight: 600;
}

.credit-text .made-by { color: var(--text-muted); }

.credit-text .creator-name {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  font-size: 14px;
}

/* Typewriter animation for creator name */
.typewriter-text {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--secondary);
  animation: typewriter 2s steps(15) 1s both, blink 0.7s step-end infinite 3s;
}

@keyframes typewriter {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink {
  0%, 100% { border-color: var(--secondary); }
  50% { border-color: transparent; }
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 16, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
  transform: scale(0.8);
  transition: var(--transition-bounce);
}

.lightbox-overlay.active .lightbox-content {
  transform: scale(1);
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.lightbox-close {
  position: absolute;
  top: -50px; right: 0;
  width: 40px; height: 40px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  font-size: 18px;
  transition: var(--transition);
}

.lightbox-close:hover { transform: rotate(90deg); }

.lightbox-caption {
  text-align: center;
  margin-top: 16px;
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ============================================================
   LOADING SCREEN
   ============================================================ */
#loading-screen {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transition: opacity 0.5s ease;
}

#loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-logo {
  width: 80px; height: 80px;
  background: var(--grad-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: white;
  animation: pulse-glow 1.5s ease infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(108,99,255,0.7); }
  50% { box-shadow: 0 0 0 20px rgba(108,99,255,0); }
}

.loading-bar {
  width: 200px; height: 3px;
  background: rgba(108,99,255,0.2);
  border-radius: 3px;
  overflow: hidden;
}

.loading-bar-fill {
  height: 100%;
  background: var(--grad-primary);
  border-radius: 3px;
  animation: loading-progress 1.5s ease forwards;
}

@keyframes loading-progress {
  from { width: 0%; }
  to { width: 100%; }
}

.loading-text {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-family: 'JetBrains Mono', monospace;
  animation: blink-text 1s step-end infinite;
}

@keyframes blink-text {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
#back-to-top {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 50px; height: 50px;
  background: var(--grad-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  z-index: 999;
  box-shadow: var(--shadow-sm);
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

#back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

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

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.7; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* AOS custom overrides */
[data-aos] { transition-duration: 0.7s !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
  .hero-title { font-size: clamp(2rem, 6vw, 3.5rem); }
  .hero-stats { gap: 24px; }
  .hero-stat .number { font-size: 2rem; }
}

@media (max-width: 768px) {
  :root { --section-padding: 60px 0; }
  .hero-section { padding: 100px 0 60px; min-height: auto; }
  .hero-buttons { flex-direction: column; }
  .hero-stats { justify-content: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

@media (max-width: 480px) {
  .hero-stats { gap: 20px; }
  .hero-stat .number { font-size: 1.8rem; }
}

/* ============================================================
   PARTICLES CANVAS
   ============================================================ */
#particles-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-hero, .page-header {
  padding: 140px 0 60px;
  background: var(--grad-hero);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 26, 0.4);
  z-index: 1;
}

.page-hero .container-xl, .page-header .container-xl,
.page-hero > div, .page-header > div {
  position: relative;
  z-index: 2;
}

.page-hero::after, .page-header::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 60px;
  background: var(--bg-dark);
  clip-path: polygon(0 60px, 100% 0, 100% 60px);
  z-index: 2;
}

.page-hero-title, .page-header-title, .page-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  margin-bottom: 12px;
  color: var(--text-white);
}

.page-hero-subtitle, .page-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 20px;
}

.page-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(108, 99, 255, 0.15);
  border: 1px solid rgba(108, 99, 255, 0.3);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 16px;
}

.page-header-breadcrumb, .page-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.page-header-breadcrumb a, .page-breadcrumb a { color: var(--primary-light); text-decoration: none; }
.page-header-breadcrumb a:hover, .page-breadcrumb a:hover { color: var(--text-white); }
.page-header-breadcrumb i, .page-breadcrumb i { font-size: 10px; opacity: 0.5; }
