/* ─ Base ───────────────────────────────────────────── */
body {
  background-color: #1A1D21;
  color: #F8F9FA;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* ─ Custom scrollbar ───────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #1A1D21;
}

::-webkit-scrollbar-thumb {
  background: #007A87;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #0F3C61;
}

* {
  scrollbar-width: thin;
  scrollbar-color: #007A87 #1A1D21;
}

/* ─ 3D Canvas Background ───────────────────────────── */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  opacity: 0.25;
  pointer-events: none;
}

/* App container wrapper to sit above canvas */
#app {
  position: relative;
  z-index: 10;
}

/* ─ Glassmorphism Utilities ────────────────────────── */
.glass-panel {
  background: linear-gradient(135deg, rgba(30, 34, 40, 0.8) 0%, rgba(15, 60, 97, 0.4) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(0, 122, 135, 0.22);
  border-radius: 1rem;
}

.glass-panel-hover {
  transition: all 0.4s ease;
}

.glass-panel-hover:hover {
  border-color: rgba(0, 122, 135, 0.5);
  transform: translateY(-3px);
  background: rgba(26, 29, 33, 0.85);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* ─ Section-Specific Glass Panels ──────────────────── */
.glass-panel-services {
  background: linear-gradient(135deg, rgba(0, 122, 135, 0.25) 0%, rgba(15, 60, 97, 0.6) 100%);
  border-color: rgba(0, 122, 135, 0.35);
}
.glass-panel-services.glass-panel-hover:hover {
  background: linear-gradient(135deg, rgba(0, 122, 135, 0.4) 0%, rgba(15, 60, 97, 0.8) 100%);
  border-color: rgba(0, 122, 135, 0.6);
}
.glass-panel-industries {
  background: linear-gradient(135deg, rgba(26, 29, 33, 0.85) 0%, rgba(22, 85, 140, 0.15) 100%);
}
.glass-panel-industries.glass-panel-hover:hover {
  background: linear-gradient(135deg, rgba(26, 29, 33, 0.95) 0%, rgba(22, 85, 140, 0.3) 100%);
}
.glass-panel-portfolio {
  background: linear-gradient(135deg, rgba(26, 29, 33, 0.85) 0%, rgba(184, 134, 11, 0.15) 100%);
}
.glass-panel-portfolio.glass-panel-hover:hover {
  background: linear-gradient(135deg, rgba(26, 29, 33, 0.95) 0%, rgba(184, 134, 11, 0.3) 100%);
}

/* ─ Text utilities ─────────────────────────────────── */
.text-teal-glow {
  color: #007A87;
  text-shadow: 0 0 18px rgba(0, 122, 135, 0.65);
}

/* ─ GSAP Reveal Default State ──────────────────────── */
.gs-reveal {
  opacity: 0;
  transform: translateY(48px);
}

/* Fallback for old intersection observer if GSAP fails */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible, .reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* ─ Buttons ────────────────────────────────────────── */
.btn-primary {
  background: #0F3C61;
  color: #fff;
  font-weight: 700;
  padding: 0.85rem 2rem;
  border-radius: 0.5rem;
  transition: all 0.3s;
  border: 1px solid #0F3C61;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary:hover {
  background: #0B2C46;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 60, 97, 0.5);
}

/* ─ Nav: scrolled state ────────────────────────────── */
#site-nav {
  transition: background-color 300ms ease, box-shadow 300ms ease, backdrop-filter 300ms ease, border 300ms ease;
  border-bottom: 1px solid transparent;
}

#site-nav.scrolled {
  background-color: rgba(26, 29, 33, 0.85);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 122, 135, 0.22);
}

/* ─ Desktop dropdown ───────────────────────────────── */
.nav-dropdown {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 220ms ease, transform 220ms ease, visibility 220ms;
  pointer-events: none;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* ─ Active nav link indicator ──────────────────────── */
.nav-link-active {
  color: #fff;
}

.nav-link-active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #007A87;
  border-radius: 2px;
}

/* ─ Hamburger morphing icon ────────────────────────── */
.ham-line {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 300ms ease, opacity 300ms ease;
  transform-origin: center;
}

.ham-open .ham-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.ham-open .ham-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.ham-open .ham-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ─ Mobile menu stagger ────────────────────────────── */
.mob-link {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 300ms ease, transform 300ms ease;
}

.mob-link.mob-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─ Logo marquee ─────────────────────────────────────── */
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

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

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

.marquee-viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

/* ─ SVG Layer Animations (Services) ──────────────────── */
.svg-layer { opacity: 0; transition: opacity 0.8s ease-in-out; }
.svg-layer.active { opacity: 1; }
.svg-layer-1 { transition-delay: 200ms; }
.svg-layer-2 { transition-delay: 400ms; }
.svg-layer-3 { transition-delay: 600ms; }
.svg-layer-4 { transition-delay: 800ms; }

/* ─ Accordion details marker hide ──────────────────── */
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
