/* ==========================================================================
   EVOC DIGITAL MEDIA - GLOBAL DESIGN SYSTEM & STYLESHEET
   Brand Accent: Electric Lime Green (#CCFF00)
   Primary Background: Deep Dark (#0D0D0D)
   Card Surface: Glassmorphic #141414 with white/10 border
   ========================================================================== */

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

:root {
  --bg-dark: #0d0d0d;
  --card-bg: rgba(20, 20, 20, 0.75);
  --card-border: rgba(255, 255, 255, 0.1);
  --card-border-hover: rgba(204, 255, 0, 0.4);
  --lime-accent: #ccff00;
  --lime-glow: rgba(204, 255, 0, 0.25);
  --text-main: #ffffff;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  --font-heading: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* Base resets & smooth scroll */
html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #090909;
}

::-webkit-scrollbar-thumb {
  background: #262626;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--lime-accent);
}

/* Selection highlight */
::selection {
  background-color: var(--lime-accent);
  color: #0d0d0d;
}

/* Utility Design System Classes */
.font-heading {
  font-family: var(--font-heading);
}

.text-electric-lime {
  color: var(--lime-accent);
}

.bg-electric-lime {
  background-color: var(--lime-accent);
}

.border-electric-lime {
  border-color: var(--lime-accent);
}

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

.glass-card:hover {
  border-color: var(--card-border-hover);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8), 0 0 20px var(--lime-glow);
  transform: translateY(-4px);
}

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

/* Buttons */
.btn-primary {
  background-color: var(--lime-accent);
  color: #0d0d0d;
  font-weight: 700;
  border-radius: 0.5rem;
  padding: 0.75rem 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(204, 255, 0, 0.2);
}

.btn-primary:hover {
  background-color: #d8ff33;
  box-shadow: 0 0 25px rgba(204, 255, 0, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.5rem;
  padding: 0.75rem 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  border-color: var(--lime-accent);
  color: var(--lime-accent);
  background: rgba(204, 255, 0, 0.05);
  transform: translateY(-2px);
}

/* Ambient Glow & Radial Elements */
.glow-aura {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(204, 255, 0, 0.12) 0%, rgba(13, 13, 13, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}

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

.lime-gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #ccff00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Canvas background */
#ambient-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}

#plexus-map-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Custom Form Elements */
.custom-input {
  background-color: rgba(20, 20, 20, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-radius: 0.5rem;
  padding: 0.875rem 1.25rem;
  width: 100%;
  transition: all 0.3s ease;
}

.custom-input:focus {
  outline: none;
  border-color: var(--lime-accent);
  box-shadow: 0 0 15px rgba(204, 255, 0, 0.2);
}

.custom-input::placeholder {
  color: #6b7280;
}

/* Modals & Portfolio Lightbox Gallery */
.modal-overlay {
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-thumb {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 2px solid transparent;
  opacity: 0.6;
}

.lightbox-thumb:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.lightbox-thumb.active-thumb {
  border-color: #CCFF00;
  opacity: 1;
  box-shadow: 0 0 15px rgba(204, 255, 0, 0.4);
  transform: translateY(-2px) scale(1.05);
}

/* Custom scrollbar for gallery thumbnails bar */
.custom-horizontal-scrollbar::-webkit-scrollbar {
  height: 4px;
}
.custom-horizontal-scrollbar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}
.custom-horizontal-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(204, 255, 0, 0.5);
  border-radius: 4px;
}
.custom-horizontal-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #CCFF00;
}

/* ==========================================================================
   FULL-WINDOW UNCROPPED GALLERY & HOVER EFFECTS
   ========================================================================== */

/* Full-Window Portfolio Gallery Modal */
.full-window-modal-card {
  width: 98vw;
  height: 94vh;
  max-width: 1800px;
  max-height: 1000px;
  display: flex;
  flex-direction: column;
  background: rgba(12, 12, 12, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(204, 255, 0, 0.25);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 35px rgba(204, 255, 0, 0.15);
}

/* Gallery Grid Card Hover Effects */
.gallery-grid-card {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  background: rgba(20, 20, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.gallery-grid-card:hover {
  border-color: #CCFF00;
  box-shadow: 0 12px 35px -5px rgba(0, 0, 0, 0.85), 0 0 25px rgba(204, 255, 0, 0.35);
  transform: translateY(-4px) scale(1.015);
}

.gallery-grid-card img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
  display: block;
  width: 100%;
  height: auto;
}

.gallery-grid-card:hover img {
  transform: scale(1.05);
  filter: brightness(1.08);
}

/* Shimmer Sheen Hover Line */
.gallery-grid-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.18),
    transparent
  );
  transition: left 0.75s ease;
  z-index: 5;
  pointer-events: none;
}

.gallery-grid-card:hover::before {
  left: 140%;
}

/* View Mode Switcher Button States */
.view-mode-btn {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.view-mode-btn.active-view-tab {
  background-color: #CCFF00;
  color: #0d0d0d;
  font-weight: 700;
  box-shadow: 0 0 15px rgba(204, 255, 0, 0.35);
}

/* Aspect-fit uncropped image wrapper for lightbox view */
.uncropped-img-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 8, 8, 0.9);
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.uncropped-img-wrapper img {
  max-height: 68vh;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 0.75rem;
}

/* Image slider animation classes */
.lightbox-slide-fade {
  animation: slideFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

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

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

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

.animate-marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 32s linear infinite;
  will-change: transform;
}

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

/* ==========================================================================
   RESPONSIVE DEVICE OPTIMIZATIONS (Mobile, Tablet, Laptop, Desktop, 4K)
   ========================================================================== */

/* High-DPI crisp image rendering & touch safety */
img {
  max-width: 100%;
  height: auto;
  image-rendering: -webkit-optimize-contrast;
  -webkit-user-drag: none;
}

/* Touch manipulation safety & body boundary */
body {
  max-width: 100vw;
  overflow-x: hidden;
  touch-action: manipulation;
}

/* Mobile Screens (< 640px) */
@media (max-width: 640px) {
  header {
    height: 4.5rem;
  }
  
  .btn-primary, .btn-secondary {
    min-height: 48px;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  
  .modal-overlay > div {
    max-height: 94vh;
    padding: 1.25rem;
  }

  #modal-image-container {
    height: 230px !important;
  }
}

/* Tablet Devices (641px - 1024px) */
@media (min-width: 641px) and (max-width: 1024px) {
  .glass-card {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}

/* Ultra-Wide 4K Displays (> 1920px) */
@media (min-width: 1921px) {
  .max-w-7xl {
    max-width: 1536px;
  }
}



