/* -------------------------------------------------------------
   138 CREATIVENT - MODERN DARK THEME STYLES (FULLY RESPONSIVE)
   PT. Pundi Artha Utama - Integrated Event Organizer
-------------------------------------------------------------- */

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

:root {
  --bg-primary: #070709;
  --bg-secondary: #0e0e14;
  --bg-card: rgba(18, 18, 26, 0.75);
  --bg-card-hover: rgba(26, 26, 38, 0.95);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(0, 240, 255, 0.35);
  --accent-cyan: #00f0ff;
  --accent-magenta: #ff007a;
  --accent-purple: #7928ca;
  --accent-amber: #ffbe0b;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-display: 'Syne', sans-serif;
}

/* Base resets & typography */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #09090c;
}
::-webkit-scrollbar-thumb {
  background: #272735;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3f3f56;
}

.scrollbar-none::-webkit-scrollbar {
  display: none;
}
.scrollbar-none {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

::selection {
  background: var(--accent-cyan);
  color: #000;
}

.font-display { font-family: var(--font-display); }
.font-heading { font-family: var(--font-heading); }

/* Ambient Glow & Textures (overflow safe) */
.noise-overlay {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 1;
}

.ambient-glow-wrapper {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.3;
}

@media (max-width: 640px) {
  .ambient-glow {
    filter: blur(80px);
    opacity: 0.2;
  }
}

.ambient-cyan {
  background: radial-gradient(circle, rgba(0, 240, 255, 0.35) 0%, transparent 70%);
}

.ambient-purple {
  background: radial-gradient(circle, rgba(121, 40, 202, 0.4) 0%, transparent 70%);
}

.ambient-magenta {
  background: radial-gradient(circle, rgba(255, 0, 122, 0.35) 0%, transparent 70%);
}

/* Glassmorphism */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: var(--bg-card-hover);
}

.glass-nav {
  background: rgba(7, 7, 9, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Text Stroke & Gradients */
.text-gradient {
  background: linear-gradient(135deg, #ffffff 30%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-accent {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, #c084fc 50%, var(--accent-magenta) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-stroke {
  -webkit-text-stroke: 1.2px rgba(255, 255, 255, 0.85);
  color: transparent;
}

@media (max-width: 640px) {
  .text-stroke {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.85);
  }
}

/* Badge Tags */
.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (min-width: 640px) {
  .badge-tag {
    padding: 0.25rem 0.65rem;
    font-size: 0.6875rem;
  }
}

/* Glowing Elements */
.glow-box-cyan {
  box-shadow: 0 0 35px -10px rgba(0, 240, 255, 0.3);
}
.glow-box-purple {
  box-shadow: 0 0 35px -10px rgba(121, 40, 202, 0.3);
}

/* Marquee Animation */
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-marquee {
  display: flex;
  width: max-content;
  animation: marqueeScroll 35s linear infinite;
}

.animate-marquee:hover {
  animation-play-state: paused;
}

/* Interactive Filter Buttons */
.filter-btn {
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  touch-action: manipulation;
}

@media (min-width: 640px) {
  .filter-btn {
    padding: 0.5rem 1.125rem;
    font-size: 0.8125rem;
  }
}

.filter-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.filter-btn.active {
  color: #000 !important;
  background: #00f0ff !important;
  border-color: #00f0ff !important;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

/* Project Cards */
.project-card {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  background: rgba(16, 16, 24, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 240, 255, 0.35);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.8), 0 0 30px -10px rgba(0, 240, 255, 0.25);
}

.project-card .img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #111116;
}

.project-card .img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

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

/* Modal Styling */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

@media (min-width: 640px) {
  .modal-backdrop {
    padding: 1.25rem;
  }
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #0e0e15;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 1.25rem;
  width: 100%;
  max-width: 920px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 50px -10px rgba(0, 240, 255, 0.25);
  transform: scale(0.96) translateY(15px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 640px) {
  .modal-content {
    border-radius: 1.5rem;
  }
}

.modal-backdrop.open .modal-content {
  transform: scale(1) translateY(0);
}

/* Compro Deck Presentation Viewer */
.deck-stage {
  position: relative;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,0.9), 0 0 40px -10px rgba(0, 240, 255, 0.2);
}

@media (min-width: 640px) {
  .deck-stage {
    border-radius: 1.5rem;
  }
}

.deck-slide-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #050508;
  transition: opacity 0.2s ease;
}

.thumb-item {
  flex-shrink: 0;
  width: 72px;
  aspect-ratio: 16 / 9;
  border-radius: 0.375rem;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.2s ease;
  background: #111;
}

@media (min-width: 640px) {
  .thumb-item {
    width: 90px;
    border-radius: 0.5rem;
  }
}

.thumb-item:hover {
  opacity: 0.9;
  border-color: rgba(255,255,255,0.4);
}

.thumb-item.active {
  opacity: 1;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
  transform: scale(1.04);
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Floating Action Buttons */
.floating-widget {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 45;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
}

@media (min-width: 640px) {
  .floating-widget {
    bottom: 1.5rem;
    right: 1.5rem;
    gap: 0.75rem;
  }
}

.btn-floating-wa {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1rem;
  background: #25d366;
  color: #000;
  font-weight: 700;
  font-size: 0.75rem;
  border-radius: 9999px;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  transition: all 0.25s ease;
  text-decoration: none;
}

@media (min-width: 640px) {
  .btn-floating-wa {
    padding: 0.75rem 1.25rem;
    font-size: 0.8125rem;
    gap: 0.5rem;
  }
}

.btn-floating-wa:hover {
  background: #2ee572;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.6);
}

.btn-scroll-top {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(20, 20, 28, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

@media (min-width: 640px) {
  .btn-scroll-top {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }
}

.btn-scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.btn-scroll-top:hover {
  background: var(--accent-cyan);
  color: #000;
  border-color: var(--accent-cyan);
}

/* Animations */
@keyframes pulseGlow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.04); }
}
.animate-pulse-glow {
  animation: pulseGlow 4s ease-in-out infinite;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
