/* ==========================================================================
   Rakib Alom - Gaming World Cyber HUD Portfolio Template
   Pure Jet Black Dark Mode (#000000) & High-Tech Cybernetic Styling
   ========================================================================== */

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

:root {
  /* Pure Jet Black Gaming World */
  --bg-main: #000000;
  --bg-surface: #05070c;
  --bg-card: #090c14;
  --bg-card-hover: #0e121e;
  --bg-card-inner: #05070d;
  
  --border-subtle: rgba(255, 255, 255, 0.12);
  --border-neon-cyan: #00f0ff;
  --border-neon-purple: #a855f7;
  --border-neon-emerald: #00ff88;
  --border-neon-amber: #ffb800;
  
  --neon-cyan: #00f0ff;
  --neon-blue: #3b82f6;
  --neon-purple: #a855f7;
  --neon-magenta: #ff007f;
  --neon-emerald: #00ff88;
  --neon-amber: #ffb800;

  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --header-bg: rgba(0, 0, 0, 0.90);
  --header-border: rgba(0, 240, 255, 0.25);
  
  --glow-cyan: 0 0 25px rgba(0, 240, 255, 0.45);
  --glow-purple: 0 0 25px rgba(168, 85, 247, 0.45);
  --glow-emerald: 0 0 25px rgba(0, 255, 136, 0.45);
}

/* Base Body & Layout */
html {
  scroll-behavior: smooth;
  background-color: var(--bg-main);
  color: var(--text-main);
}

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

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--text-main);
}

code, pre, .font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* ==========================================================================
   Cyber Card & Border Engine: Flawless Continuous Chamfered Borders
   ========================================================================== */

/* ==========================================================================
   Cyber Card & Border Engine: Clean, High-Precision HUD Borders
   ========================================================================== */

/* Standard Cyber Chamfer with Enclosed Glowing Stroke */
.cyber-card {
  position: relative;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.3) 0%, rgba(255, 255, 255, 0.08) 50%, rgba(168, 85, 247, 0.3) 100%);
  padding: 1px; /* 1px crisp continuous border */
  border-radius: 4px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, background 0.3s ease;
}

.cyber-card-inner {
  background: var(--bg-card);
  width: 100%;
  height: 100%;
  border-radius: 3px;
  transition: background-color 0.3s ease;
}

/* Subtle, refined card hover: border color and subtle aura ONLY (no scale, no translateY) */
.cyber-card:hover {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.45) 0%, rgba(59, 130, 246, 0.35) 50%, rgba(168, 85, 247, 0.45) 100%);
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.7), 0 0 10px rgba(0, 240, 255, 0.08);
}

.cyber-card:hover .cyber-card-inner {
  background: var(--bg-card-hover);
}

/* Color Variants with Subtle Glow */
.cyber-card-cyan {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.35) 0%, rgba(0, 240, 255, 0.08) 60%, rgba(0, 240, 255, 0.25) 100%);
}
.cyber-card-cyan:hover {
  background: rgba(0, 240, 255, 0.45);
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.7), 0 0 10px rgba(0, 240, 255, 0.08);
}

.cyber-card-emerald {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.35) 0%, rgba(0, 255, 136, 0.08) 60%, rgba(0, 255, 136, 0.25) 100%);
}
.cyber-card-emerald:hover {
  background: rgba(0, 255, 136, 0.45);
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.7), 0 0 10px rgba(0, 255, 136, 0.08);
}

.cyber-card-purple {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.35) 0%, rgba(168, 85, 247, 0.08) 60%, rgba(168, 85, 247, 0.25) 100%);
}
.cyber-card-purple:hover {
  background: rgba(168, 85, 247, 0.45);
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.7), 0 0 10px rgba(168, 85, 247, 0.08);
}

.cyber-card-amber {
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.35) 0%, rgba(255, 184, 0, 0.08) 60%, rgba(255, 184, 0, 0.25) 100%);
}
.cyber-card-amber:hover {
  background: rgba(255, 184, 0, 0.45);
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.7), 0 0 10px rgba(255, 184, 0, 0.08);
}

/* HUD Rectangular Panel with 4 Glowing Corner Brackets */
.hud-panel {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.hud-panel::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--neon-cyan);
  border-left: 2px solid var(--neon-cyan);
  pointer-events: none;
  z-index: 10;
  transition: border-color 0.25s ease, filter 0.25s ease;
}

.hud-panel::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 10px;
  height: 10px;
  border-bottom: 2px solid var(--neon-purple);
  border-right: 2px solid var(--neon-purple);
  pointer-events: none;
  z-index: 10;
  transition: border-color 0.25s ease, filter 0.25s ease;
}

/* Hover: Border color & soft glow ONLY (no zoom in/out, no translateY) */
.hud-panel:hover {
  background-color: var(--bg-card-hover);
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.7), 0 0 10px rgba(0, 240, 255, 0.08);
}

.hud-panel:hover::before {
  border-color: #38bdf8;
  filter: drop-shadow(0 0 2px rgba(0, 240, 255, 0.35));
}

.hud-panel:hover::after {
  border-color: #c084fc;
  filter: drop-shadow(0 0 2px rgba(168, 85, 247, 0.35));
}

/* Cyber Panel - Clean continuous border with subtle border-color hover response */
.cyber-panel {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

/* Hover: Border color ONLY (no zoom in/out, no translateY) */
.cyber-panel:hover {
  background-color: var(--bg-card-hover);
  border-color: rgba(0, 240, 255, 0.35);
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.7), 0 0 10px rgba(0, 240, 255, 0.08);
}

/* Preserve custom left-border accents on hover */
.cyber-panel[class*="border-l-"]:hover,
.hud-panel[class*="border-l-"]:hover {
  border-top-color: rgba(255, 255, 255, 0.22);
  border-right-color: rgba(255, 255, 255, 0.22);
  border-bottom-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.7), 0 0 8px rgba(255, 255, 255, 0.04);
}

.hud-box {
  position: relative;
  background: var(--bg-card);
  border: 1px solid rgba(0, 240, 255, 0.25);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.06);
}

/* Corner bracket tech accents */
.cyber-bracket {
  position: relative;
}
.cyber-bracket::before {
  content: '[';
  color: var(--neon-cyan);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  margin-right: 6px;
}
.cyber-bracket::after {
  content: ']';
  color: var(--neon-cyan);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  margin-left: 6px;
}

/* ==========================================================================
   Unified Hero Buttons (Exact Same Medium Height, Balanced Proportions)
   ========================================================================== */
.hero-btn-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-btn {
  height: 46px; /* Exactly medium height: not too big, not too small */
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  box-sizing: border-box;
  text-decoration: none;
  border-radius: 2px;
}

.hero-btn-primary {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: #ffffff !important;
  border: 1px solid rgba(56, 189, 248, 0.5);
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.2);
}

.hero-btn-primary:hover {
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  border-color: #38bdf8;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
}

.hero-btn-secondary {
  background: #090c14;
  color: #00f0ff !important;
  border: 1px solid rgba(0, 240, 255, 0.4);
}

.hero-btn-secondary:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: #00f0ff;
  box-shadow: 0 4px 12px rgba(0, 240, 255, 0.18);
}

.hero-btn-whatsapp {
  background: #04140e;
  color: #00ff88 !important;
  border: 1px solid rgba(0, 255, 136, 0.45);
}

.hero-btn-whatsapp:hover {
  background: rgba(0, 255, 136, 0.12);
  border-color: #00ff88;
  box-shadow: 0 4px 12px rgba(0, 255, 136, 0.2);
}

/* Mobile full-width rule for WhatsApp button */
@media (max-width: 640px) {
  .hero-btn-whatsapp {
    width: 100% !important;
  }
}

/* Sticky Sidebar Utility */
.sticky-sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: 6.5rem;
  align-self: flex-start;
}

/* Responsive Masonry Grid for Pure Image Gallery (Zero Empty Dead Space) */
.gallery-masonry {
  column-count: 1;
  column-gap: 1.25rem;
}

@media (min-width: 640px) {
  .gallery-masonry {
    column-count: 2;
    column-gap: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .gallery-masonry {
    column-count: 3;
    column-gap: 1.25rem;
  }
}

@media (min-width: 1280px) {
  .gallery-masonry {
    column-count: 4;
    column-gap: 1.25rem;
  }
}

.gallery-masonry-item {
  break-inside: avoid;
  margin-bottom: 1.25rem;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--bg-card);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.gallery-masonry-item:hover {
  border-color: rgba(0, 240, 255, 0.45);
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 240, 255, 0.08);
}

/* ==========================================================================
   Unique Futuristic Cyber HUD Button (Transparent Glass, Dual-Color Brackets, Zero Arrow)
   ========================================================================== */
.nav-cta-btn,
.hud-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #00f0ff !important;
  background: rgba(6, 11, 24, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  border-radius: 2px;
  white-space: nowrap;
}

/* Top-Left Corner Bracket (Neon Cyan) */
.nav-cta-btn::before,
.hud-btn::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  width: 8px;
  height: 8px;
  border-top: 2px solid #00f0ff;
  border-left: 2px solid #00f0ff;
  pointer-events: none;
  transition: all 0.25s ease;
}

/* Bottom-Right Corner Bracket (Neon Purple) */
.nav-cta-btn::after,
.hud-btn::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 8px;
  height: 8px;
  border-bottom: 2px solid #a855f7;
  border-right: 2px solid #a855f7;
  pointer-events: none;
  transition: all 0.25s ease;
}

/* Micro Beacon Status Dot */
.nav-cta-beacon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 8px;
  height: 8px;
  position: relative;
}

.nav-cta-beacon .beacon-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00ff88;
  box-shadow: 0 0 6px rgba(0, 255, 136, 0.6);
  animation: beaconPulse 2s ease-in-out infinite;
}

@keyframes beaconPulse {
  0%, 100% { opacity: 0.7; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}

.nav-cta-text {
  position: relative;
  z-index: 2;
  transition: color 0.2s ease;
}

/* Hover: Refined & Gentle - Less Glow, Clean Cyber Transition */
.nav-cta-btn:hover,
.hud-btn:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: rgba(0, 240, 255, 0.45);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(0, 240, 255, 0.16);
}

.nav-cta-btn:hover::before,
.hud-btn:hover::before {
  border-color: #38bdf8;
  filter: drop-shadow(0 0 3px rgba(0, 240, 255, 0.45));
}

.nav-cta-btn:hover::after,
.hud-btn:hover::after {
  border-color: #c084fc;
  filter: drop-shadow(0 0 3px rgba(168, 85, 247, 0.45));
}

/* General Cyber Buttons (Refined Eye-Catching Colors, Controlled Subtle Glow) */
.btn-cyber-primary {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: #ffffff !important;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.2);
  transition: all 0.25s ease;
  position: relative;
  border: 1px solid rgba(56, 189, 248, 0.5);
  border-radius: 2px;
}

.btn-cyber-primary:hover {
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  border-color: #38bdf8;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
}

.btn-cyber-secondary {
  background: #090c14;
  color: #00f0ff !important;
  border: 1px solid rgba(0, 240, 255, 0.4);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: all 0.25s ease;
  border-radius: 2px;
}

.btn-cyber-secondary:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: #00f0ff;
  box-shadow: 0 4px 12px rgba(0, 240, 255, 0.18);
}

.btn-cyber-emerald {
  background: #061811;
  color: #00ff88 !important;
  border: 1px solid rgba(0, 255, 136, 0.45);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: all 0.25s ease;
  border-radius: 2px;
}

.btn-cyber-emerald:hover {
  background: rgba(0, 255, 136, 0.12);
  border-color: #00ff88;
  box-shadow: 0 4px 12px rgba(0, 255, 136, 0.2);
}

/* Gradient Text Utilities */
.text-gradient {
  background: linear-gradient(135deg, #00f0ff 0%, #3b82f6 40%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #00f0ff 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-emerald {
  background: linear-gradient(135deg, #00ff88 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-purple {
  background: linear-gradient(135deg, #c084fc 0%, #9333ea 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Cyber Matrix Background Grid */
.cyber-grid-bg {
  background-size: 48px 48px;
  background-image: 
    linear-gradient(to right, rgba(0, 240, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 240, 255, 0.05) 1px, transparent 1px);
}

/* Scanline effect overlay */
.scanlines {
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%, 
    rgba(0, 0, 0, 0.25) 50%
  ), linear-gradient(
    90deg,
    rgba(255, 0, 0, 0.02),
    rgba(0, 255, 0, 0.01),
    rgba(0, 255, 0, 0.02)
  );
  background-size: 100% 3px, 6px 100%;
  pointer-events: none;
}

/* Navigation HUD Bar */
.hud-header {
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--header-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.7);
}

/* WordPress Admin Bar Header & Mobile Navigation Offsets */
body.admin-bar #mainHeader,
body.admin-bar .hud-header {
  top: 32px !important;
}
body.admin-bar #mobileMenuDrawer {
  top: 32px !important;
}
@media screen and (max-width: 782px) {
  body.admin-bar #mainHeader,
  body.admin-bar .hud-header {
    top: 46px !important;
  }
  body.admin-bar #mobileMenuDrawer {
    top: 46px !important;
  }
  body.admin-bar #wpadminbar {
    position: fixed !important;
  }
}

.nav-link {
  position: relative;
  transition: all 0.2s ease;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.02em;
  color: #94a3b8;
  padding: 6px 12px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--neon-cyan) !important;
}

.nav-link::before {
  content: '[';
  opacity: 0;
  margin-right: 4px;
  color: var(--neon-cyan);
  transition: all 0.2s ease;
}

.nav-link::after {
  content: ']';
  opacity: 0;
  margin-left: 4px;
  color: var(--neon-cyan);
  transition: all 0.2s ease;
}

.nav-link:hover::before,
.nav-link:hover::after,
.nav-link.active::before,
.nav-link.active::after {
  opacity: 1;
}

/* Sleek Cyber Box Back to Top Button (Sharp Box Style, Controlled Gentle Glow) */
#backToTopBtn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 50;
  width: 42px;
  height: 42px;
  border-radius: 0px; /* Sharp authentic cyber box style */
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  background: #080c16;
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  cursor: pointer;
}

#backToTopBtn:hover {
  background: #0f172a;
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.18);
  transform: translateY(0);
}

#backToTopBtn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Smooth 3D Cyber Marquee (Hardware Accelerated, Smooth 60fps Dual Direction) */
.marquee-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  perspective: 900px;
}

.marquee-content {
  display: flex;
  white-space: nowrap;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  animation: marqueeLeft 34s linear infinite;
}

.marquee-content.reverse {
  animation: marqueeRight 34s linear infinite;
}

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

@keyframes marqueeLeft {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

@keyframes marqueeRight {
  0% { transform: translate3d(-50%, 0, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #000000;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
  border: 2px solid #000000;
}
::-webkit-scrollbar-thumb:hover {
  background: #00f0ff;
}

/* Three.js Hero Canvas (Strictly in Background) */
#heroThreeCanvas,
.cyber-three-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Micro Animations */
@keyframes pulseGlow {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.05); }
}

.animate-pulse-glow {
  animation: pulseGlow 4s ease-in-out infinite;
}

/* Accordion transition */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
}

.accordion-item.active .accordion-content {
  max-height: 1000px;
  transition: max-height 0.4s ease-in-out;
}

/* Lightbox Modal */
.lightbox-modal {
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

/* ==========================================================================
   Futuristic 3D Tilt & Micro-Interactions (Zero Zoom, Real 3D Perspective)
   ========================================================================== */
.tilt-card {
  transform-style: preserve-3d;
  perspective: 1000px;
  will-change: transform;
}

.tilt-card-inner {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
  transform-style: preserve-3d;
}

/* Subtle Scroll-Reveal Animation */
.cyber-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.cyber-reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Futuristic Gaming Circuit Trace Lines */
.cyber-circuit-line {
  position: relative;
  overflow: hidden;
}

.cyber-circuit-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.35), transparent);
  animation: circuitPulse 4s ease-in-out infinite;
}

@keyframes circuitPulse {
  0% { left: -100%; }
  50%, 100% { left: 150%; }
}

/* ==========================================================================
   Futuristic Gaming UI Enhancements (Scanlines, Telemetry, Zero Zoom)
   ========================================================================== */

/* Ambient Cyber Scanline (High-Tech Laser Scan Beam) */
.cyber-scanline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.4), transparent);
  animation: scanlineMove 8s linear infinite;
  pointer-events: none;
  z-index: 5;
}

@keyframes scanlineMove {
  0% { top: -2%; opacity: 0; }
  15% { opacity: 0.8; }
  85% { opacity: 0.8; }
  100% { top: 102%; opacity: 0; }
}

/* Interactive Gaming Telemetry Badges */
.cyber-telemetry-strip {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cyber-telemetry-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(8, 12, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #94a3b8;
  border-radius: 2px;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.cyber-telemetry-badge:hover {
  border-color: rgba(56, 189, 248, 0.4);
  color: #e2e8f0;
}

/* ==========================================================================
   3D Angle Tilt & Running Specular Border Reflection (Zero Zoom Scale)
   ========================================================================== */
.hud-panel,
.cyber-panel,
.cyber-card,
.tilt-card {
  transform-style: preserve-3d;
  perspective: 900px;
  will-change: transform;
  transition: transform 0.12s ease-out, border-color 0.25s ease, box-shadow 0.25s ease;
}

.hud-panel:hover,
.cyber-panel:hover,
.cyber-card:hover,
.tilt-card:hover {
  border-color: rgba(0, 240, 255, 0.45);
  box-shadow: 0 10px 28px -4px rgba(0, 0, 0, 0.8), 0 0 12px rgba(0, 240, 255, 0.12);
  /* Dynamic running specular reflection following cursor */
  background-image: radial-gradient(320px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 240, 255, 0.12), transparent 70%);
}

/* Strict Zero Image Zoom (Images stay crisp and still) */
.gallery-masonry-item img,
.cyber-card img,
.hud-panel img {
  transform: none !important;
  transition: opacity 0.25s ease !important;
}


/* ==========================================================================
   Fluent Forms Cyber HUD Integration
   ========================================================================== */
.fluentform,
.fluentform * {
  box-sizing: border-box;
}

.fluentform .ff-t-container {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 20px !important;
  margin-bottom: 20px !important;
}

.fluentform .ff-t-cell {
  flex: 1 1 calc(50% - 10px) !important;
  min-width: 250px !important;
}

@media (max-width: 640px) {
  .fluentform .ff-t-container {
    flex-direction: column !important;
    gap: 16px !important;
  }
  .fluentform .ff-t-cell {
    flex-basis: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
  }
}

.fluentform .ff-el-group {
  margin-bottom: 20px !important;
}

.fluentform .ff-el-form-control,
.fluentform input[type="text"],
.fluentform input[type="email"],
.fluentform input[type="tel"],
.fluentform input[type="url"],
.fluentform textarea,
.fluentform select {
  width: 100% !important;
  background-color: #05080e !important;
  border: 1px solid rgba(0, 240, 255, 0.3) !important;
  color: #ffffff !important;
  font-family: 'JetBrains Mono', monospace !important;
  border-radius: 0 !important;
  padding: 12px 16px !important;
  font-size: 14px !important;
  transition: all 0.2s ease-in-out !important;
}

.fluentform input::placeholder,
.fluentform textarea::placeholder {
  color: #64748b !important;
  font-family: 'JetBrains Mono', monospace !important;
}

.fluentform select option {
  background-color: #070912 !important;
  color: #ffffff !important;
}

.fluentform .ff-el-form-control:focus,
.fluentform input:focus,
.fluentform textarea:focus,
.fluentform select:focus {
  border-color: #00f0ff !important;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3) !important;
  outline: none !important;
}

.fluentform .ff-el-input--label label {
  color: #00f0ff !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  margin-bottom: 8px !important;
  display: block !important;
}

.fluentform .asterisk-right label::after,
.fluentform .ff-el-is-required label::after {
  content: "" !important;
}

.fluentform .ff-btn-submit {
  width: 100% !important;
  background: linear-gradient(to right, #00f0ff, #3b82f6, #6366f1) !important;
  color: #000000 !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  border-radius: 0 !important;
  border: none !important;
  padding: 16px 28px !important;
  font-size: 14px !important;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4) !important;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)) !important;
  cursor: pointer !important;
  transition: all 0.25s ease-in-out !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

.fluentform .ff-btn-submit:hover {
  background: linear-gradient(to right, #00f0ff, #6366f1) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.6) !important;
}

.fluentform .ff-errors-in-stack {
  color: #ff4d6d !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 12px !important;
  margin-top: 10px !important;
}

.fluentform .text-danger {
  color: #ff4d6d !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 11px !important;
  margin-top: 4px !important;
}

.fluentform .ff-message-success {
  background: #031e1e !important;
  border: 1px solid #00f0ff !important;
  color: #00f0ff !important;
  font-family: 'JetBrains Mono', monospace !important;
  padding: 16px !important;
  margin-top: 16px !important;
}


/* ==========================================================================
   Full Width Elementor Canvas & Container Rules (Exact HTML Container Width)
   ========================================================================== */
.elementor,
.elementor-page,
.elementor-page main,
.elementor .e-con.e-parent,
.elementor .e-con.e-parent.e-con-full,
.elementor .elementor-element.e-con {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.elementor .elementor-widget-html,
.elementor .elementor-widget-html .elementor-widget-container {
  width: 100% !important;
  max-width: 100% !important;
}

/* Ensure max-w-7xl containers align at 1280px with centered auto margins */
.max-w-7xl {
  max-width: 80rem !important;
  margin-left: auto !important;
  margin-right: auto !important;
}



/* ==========================================================================
   Global Default Typography, Tables & Content Fallbacks
   Applies ONLY to unstyled elements (elements without custom classes / designs).
   Does NOT override existing styled components or elements with utility classes.
   ========================================================================== */

/* 1. Headings (h1 - h6) without classes */
:where(article, .entry-content, .blog-article-body, .prose, main, body) h1:not([class]),
:where(article, .entry-content, .blog-article-body, .prose, main, body) h1[class=""] {
  font-family: var(--font-heading, 'Space Grotesk', -apple-system, sans-serif);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.2;
  color: #ffffff;
  margin-top: 2rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

:where(article, .entry-content, .blog-article-body, .prose, main, body) h2:not([class]),
:where(article, .entry-content, .blog-article-body, .prose, main, body) h2[class=""] {
  font-family: var(--font-heading, 'Space Grotesk', -apple-system, sans-serif);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.25;
  color: #ffffff;
  margin-top: 2.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  letter-spacing: -0.01em;
}

:where(article, .entry-content, .blog-article-body, .prose, main, body) h3:not([class]),
:where(article, .entry-content, .blog-article-body, .prose, main, body) h3[class=""] {
  font-family: var(--font-heading, 'Space Grotesk', -apple-system, sans-serif);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  line-height: 1.35;
  color: #ffffff;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

:where(article, .entry-content, .blog-article-body, .prose, main, body) h4:not([class]),
:where(article, .entry-content, .blog-article-body, .prose, main, body) h4[class=""] {
  font-family: var(--font-heading, 'Space Grotesk', -apple-system, sans-serif);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.4;
  color: #00f0ff;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

:where(article, .entry-content, .blog-article-body, .prose, main, body) h5:not([class]),
:where(article, .entry-content, .blog-article-body, .prose, main, body) h5[class=""] {
  font-family: var(--font-heading, 'Space Grotesk', -apple-system, sans-serif);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.45;
  color: #e2e8f0;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

:where(article, .entry-content, .blog-article-body, .prose, main, body) h6:not([class]),
:where(article, .entry-content, .blog-article-body, .prose, main, body) h6[class=""] {
  font-family: var(--font-heading, 'Space Grotesk', -apple-system, sans-serif);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

/* 2. Paragraphs without classes */
:where(article, .entry-content, .blog-article-body, .prose) p:not([class]),
:where(article, .entry-content, .blog-article-body, .prose) p[class=""] {
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

/* 3. Lists (ul, ol, li) without classes */
:where(article, .entry-content, .blog-article-body, .prose) ul:not([class]),
:where(article, .entry-content, .blog-article-body, .prose) ul[class=""] {
  list-style-type: disc !important;
  padding-left: 1.75rem !important;
  margin-top: 1rem !important;
  margin-bottom: 1.25rem !important;
  color: #cbd5e1 !important;
}

:where(article, .entry-content, .blog-article-body, .prose) ol:not([class]),
:where(article, .entry-content, .blog-article-body, .prose) ol[class=""] {
  list-style-type: decimal !important;
  padding-left: 1.75rem !important;
  margin-top: 1rem !important;
  margin-bottom: 1.25rem !important;
  color: #cbd5e1 !important;
}

:where(article, .entry-content, .blog-article-body, .prose) li:not([class]),
:where(article, .entry-content, .blog-article-body, .prose) li[class=""] {
  margin-bottom: 0.5rem !important;
  line-height: 1.7 !important;
  color: #cbd5e1 !important;
}

:where(article, .entry-content, .blog-article-body, .prose) ul:not([class]) > li:not([class])::marker,
:where(article, .entry-content, .blog-article-body, .prose) ul[class=""] > li[class=""]::marker {
  color: #00f0ff !important;
}

:where(article, .entry-content, .blog-article-body, .prose) ol:not([class]) > li:not([class])::marker,
:where(article, .entry-content, .blog-article-body, .prose) ol[class=""] > li[class=""]::marker {
  color: #00f0ff !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-weight: 700 !important;
}

/* 4. Tables & Mobile-Friendly Responsiveness */
:where(article, .entry-content, .blog-article-body, .prose) table {
  width: 100% !important;
  max-width: 100% !important;
  border-collapse: collapse !important;
  margin-top: 1.75rem !important;
  margin-bottom: 1.75rem !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  background-color: rgba(6, 10, 18, 0.85) !important;
  display: table;
}

@media (max-width: 768px) {
  :where(article, .entry-content, .blog-article-body, .prose) table {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
}

:where(article, .entry-content, .blog-article-body, .prose) table th {
  background-color: #061822 !important;
  color: #00f0ff !important;
  font-family: var(--font-heading, 'Space Grotesk', -apple-system, sans-serif) !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.05em !important;
  padding: 12px 14px !important;
  border: 1px solid rgba(0, 240, 255, 0.25) !important;
  text-align: left !important;
  white-space: normal !important;
  vertical-align: middle !important;
}

:where(article, .entry-content, .blog-article-body, .prose) table td {
  padding: 10px 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #cbd5e1 !important;
  font-size: 0.92rem !important;
  line-height: 1.55 !important;
}

:where(article, .entry-content, .blog-article-body, .prose) table tr:nth-child(even) td {
  background-color: rgba(255, 255, 255, 0.02) !important;
}

:where(article, .entry-content, .blog-article-body, .prose) table tr:hover td {
  background-color: rgba(0, 240, 255, 0.04) !important;
}

/* 5. Blockquotes without classes */
:where(article, .entry-content, .blog-article-body, .prose) blockquote:not([class]),
:where(article, .entry-content, .blog-article-body, .prose) blockquote[class=""] {
  border-left: 3px solid #00f0ff !important;
  padding: 1rem 1.5rem !important;
  margin: 1.75rem 0 !important;
  background: rgba(0, 240, 255, 0.03) !important;
  color: #94a3b8 !important;
  font-style: italic !important;
  border-radius: 0 4px 4px 0 !important;
}

/* 6. Code & Pre without classes */
:where(article, .entry-content, .blog-article-body, .prose) pre:not([class]),
:where(article, .entry-content, .blog-article-body, .prose) pre[class=""] {
  background: #05070c !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  padding: 1.25rem !important;
  border-radius: 4px !important;
  overflow-x: auto !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.875rem !important;
  color: #e2e8f0 !important;
  margin: 1.5rem 0 !important;
}

:where(article, .entry-content, .blog-article-body, .prose) :not(pre) > code:not([class]),
:where(article, .entry-content, .blog-article-body, .prose) :not(pre) > code[class=""] {
  background: rgba(0, 240, 255, 0.08) !important;
  color: #00f0ff !important;
  padding: 0.2rem 0.45rem !important;
  border-radius: 3px !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.875em !important;
  border: 1px solid rgba(0, 240, 255, 0.2) !important;
}

/* 7. Links without classes */
:where(article, .entry-content, .blog-article-body, .prose) a:not([class]),
:where(article, .entry-content, .blog-article-body, .prose) a[class=""] {
  color: #00f0ff !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  transition: color 0.2s ease !important;
}

:where(article, .entry-content, .blog-article-body, .prose) a:not([class]):hover,
:where(article, .entry-content, .blog-article-body, .prose) a[class=""]:hover {
  color: #ffffff !important;
}

/* 8. Images without classes */
:where(article, .entry-content, .blog-article-body, .prose) img:not([class]),
:where(article, .entry-content, .blog-article-body, .prose) img[class=""] {
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
  margin: 1.5rem auto !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 4px !important;
}

/* ==========================================================================
   Responsive Lightbox Modal Rules
   ========================================================================== */
#galleryLightboxModal {
  z-index: 99999 !important;
}

#galleryLightboxModal .max-w-4xl {
  max-height: 92vh !important;
}

#galleryLightboxModal img#lightboxImg {
  max-height: 68vh !important;
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}

@media (max-height: 750px) {
  #galleryLightboxModal img#lightboxImg {
    max-height: 58vh !important;
  }
  #galleryLightboxModal .max-w-4xl {
    max-height: 96vh !important;
    padding: 12px !important;
  }
}


/* ==========================================================================
   Rank Math HTML Sitemap - Cyber HUD Grid & Custom List Styling
   ========================================================================== */
.rank-math-html-sitemap {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
  gap: 1.75rem !important;
  width: 100% !important;
  margin-top: 1rem !important;
}

.rank-math-html-sitemap__section {
  background: #070913 !important;
  border: 1px solid rgba(0, 240, 255, 0.25) !important;
  padding: 1.75rem !important;
  position: relative !important;
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 0 100%) !important;
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.06) !important;
  display: flex !important;
  flex-direction: column !important;
}

.rank-math-html-sitemap__title {
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin: 0 0 1.25rem 0 !important;
  padding-bottom: 0.75rem !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
}

.rank-math-html-sitemap__title::before {
  content: '// ' !important;
  color: #00f0ff !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 1rem !important;
}

.rank-math-html-sitemap__list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.65rem !important;
}

.rank-math-html-sitemap__list .rank-math-html-sitemap__list {
  padding-left: 1.25rem !important;
  margin-top: 0.5rem !important;
  margin-bottom: 0.25rem !important;
  border-left: 1px solid rgba(0, 240, 255, 0.25) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.5rem !important;
}

.rank-math-html-sitemap__item {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

.rank-math-html-sitemap__link {
  color: #cbd5e1 !important;
  font-size: 0.85rem !important;
  font-family: 'JetBrains Mono', monospace !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  line-height: 1.4 !important;
  transition: all 0.2s ease !important;
}

.rank-math-html-sitemap__link::before {
  content: '>' !important;
  color: #00f0ff !important;
  font-weight: 700 !important;
  font-size: 0.75rem !important;
  transition: transform 0.2s ease !important;
}

.rank-math-html-sitemap__link:hover {
  color: #00f0ff !important;
  transform: translateX(4px) !important;
}

.rank-math-html-sitemap__link:hover::before {
  transform: translateX(2px) !important;
}

/* ==========================================================================
   Fluent Forms Message Textarea - Natural 8 Rows & Remove line-height: 1
   ========================================================================== */
.fluentform textarea,
.fluentform textarea.ff-el-form-control,
.fluentform .ff-el-form-control[rows="8"],
.fluentform .ff-el-form-control[rows="10"],
.ff-default textarea.ff-el-form-control,
.ff-default .ff-el-group textarea,
#ff_1_message,
#ff_2_message,
textarea[name="message"] {
  line-height: inherit !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 12px 16px !important;
  background-color: #05080e !important;
  border: 1px solid rgba(0, 240, 255, 0.3) !important;
  color: #ffffff !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 14px !important;
}

.fluentform textarea:focus,
#ff_1_message:focus,
#ff_2_message:focus {
  border-color: #00f0ff !important;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3) !important;
}

/* ==========================================================================
   WordPress Footer Dynamic Navigation Menus & Section Spacing
   ========================================================================== */
footer h4 {
  margin-top: 0 !important;
  margin-bottom: 1.5rem !important; /* Uniform 24px professional gap between header & content */
}

.footer-cyber-menu {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.85rem !important;
}

.footer-cyber-menu li {
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}

.footer-cyber-menu li a {
  color: #cbd5e1 !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  transition: all 0.2s ease !important;
}

.footer-cyber-menu li a:hover {
  color: #00f0ff !important;
  transform: translateX(3px) !important;
}

.footer-bottom-menu {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 1.5rem !important;
}

.footer-bottom-menu li {
  margin: 0 !important;
  padding: 0 !important;
  display: inline-block !important;
}

.footer-bottom-menu li a {
  color: #94a3b8 !important;
  font-size: 0.875rem !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

.footer-bottom-menu li a:hover {
  color: #00f0ff !important;
}

/* ==========================================================================
   Single Portfolio Visual Showcase - Uncropped & Aspect Ratio Preserved
   ========================================================================== */
.single-portfolio img[alt*="Preview"],
.single-portfolio section.py-12 img,
.single-portfolio .border-cyan-400\/30 img,
article.portfolio img[alt*="Preview"],
body.single-portfolio img.object-cover {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  display: block !important;
}

