/* ========== GLASSMORPHISM ========== */
.glass-deep {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.glass-card-hover {
  transition: var(--transition);
}

.glass-card-hover:hover {
  transform: translateY(-8px) scale(1.02);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 229, 255, 0.2);
  box-shadow: 0 20px 60px rgba(0, 229, 255, 0.1);
}

/* ========== NEON GLOW ========== */
.glow-cyan {
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.3),
              0 0 60px rgba(0, 229, 255, 0.1);
}

.glow-magenta {
  box-shadow: 0 0 20px rgba(255, 0, 110, 0.3),
              0 0 60px rgba(255, 0, 110, 0.1);
}

.text-glow-cyan {
  text-shadow: 0 0 20px rgba(0, 229, 255, 0.5),
               0 0 40px rgba(0, 229, 255, 0.2);
}

.text-glow-magenta {
  text-shadow: 0 0 20px rgba(255, 0, 110, 0.5),
               0 0 40px rgba(255, 0, 110, 0.2);
}

/* ========== 3D PERSPECTIVE UTILITIES ========== */
.perspective-3d {
  perspective: 1200px;
  perspective-origin: 50% 50%;
}

.float-3d {
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.float-3d:hover {
  transform: rotateX(4deg) rotateY(-4deg) translateZ(20px);
}

.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

.tilt-card:hover {
  transform: rotateX(var(--rotX, 0deg)) rotateY(var(--rotY, 0deg));
}

/* ========== PARALLAX LAYER ========== */
.parallax-layer {
  position: absolute;
  will-change: transform;
}

.parallax-slow { z-index: 0; }
.parallax-mid { z-index: 1; }
.parallax-fast { z-index: 2; }

/* ========== GRADIENT BORDERS ========== */
.gradient-border {
  position: relative;
  border-radius: var(--radius);
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--neon-cyan), var(--electric-magenta), var(--gold));
  z-index: -1;
  opacity: 0.5;
  transition: opacity 0.4s;
}

.gradient-border:hover::before {
  opacity: 1;
}

/* ========== ANIMATED GRADIENT BG ========== */
.gradient-shift {
  background: linear-gradient(135deg, var(--obsidian), var(--charcoal), #0d1b2a, var(--charcoal));
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ========== FLOATING ANIMATION ========== */
.float-anim {
  animation: float 6s ease-in-out infinite;
}

.float-anim-delayed {
  animation: float 6s ease-in-out infinite;
  animation-delay: -3s;
}

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

/* ========== PULSE RING ========== */
.pulse-ring {
  position: relative;
}

.pulse-ring::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--neon-cyan);
  animation: pulseRing 2s ease-out infinite;
}

@keyframes pulseRing {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ========== GRID LINE OVERLAY ========== */
.grid-overlay {
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ========== HORIZONTAL SCROLL CONTAINER ========== */
.horizontal-scroll {
  display: flex;
  flex-wrap: nowrap;
  overflow: visible;
}

.horizontal-scroll-inner {
  display: flex;
  gap: 32px;
  padding: 0 32px;
  will-change: transform;
}

/* ========== STAGGER ENTRY ========== */
.stagger-item {
  opacity: 0;
  transform: translateY(40px);
}

/* ========== UNDERLINE ANIMATION ========== */
.hover-underline {
  position: relative;
  display: inline-block;
}

.hover-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--neon-cyan);
  transition: width 0.4s ease;
}

.hover-underline:hover::after {
  width: 100%;
}

/* ========== SPLIT TEXT (for GSAP) ========== */
.split-char {
  display: inline-block;
}

/* ========== MAGNETIC HOVER (JS-driven, CSS helper) ========== */
.magnetic-btn {
  transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

/* ========== ASYMMETRIC GRID HELPERS ========== */
.masonry-grid {
  column-count: 3;
  column-gap: 16px;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 16px;
}

@media (max-width: 1024px) {
  .masonry-grid { column-count: 2; }
}

@media (max-width: 768px) {
  .masonry-grid { column-count: 1; }
}

/* ========== LIGHTBOX ========== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
  cursor: pointer;
}

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

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.4s ease;
}

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

.lightbox-content img,
.lightbox-content video {
  max-width: 100%;
  max-height: 85vh;
  border-radius: var(--radius);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
  transition: var(--transition);
}

.lightbox-close:hover {
  color: var(--neon-cyan);
  transform: rotate(90deg);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav:hover {
  background: rgba(0, 229, 255, 0.2);
  border-color: var(--neon-cyan);
}

.lightbox-prev { left: -60px; }
.lightbox-next { right: -60px; }

/* ========== FULL SCREEN MENU OVERLAY ========== */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 8999;
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(50px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s, visibility 0.5s;
}

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

.menu-overlay-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.menu-overlay-links a {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 4px;
  transition: var(--transition);
}

.menu-overlay-links a:hover {
  color: var(--white);
  text-shadow: 0 0 40px rgba(0, 229, 255, 0.3);
}

@media (max-width: 768px) {
  .menu-overlay-links a { font-size: 2rem; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}
