/* ─── techworx · main.css ─────────────────────────────────────────────────── */

/* 0. Custom Fonts */
@font-face {
  font-family: 'Aquawax Pro';
  src: url('../fonts/Aquawax-Pro-DemiBold-trial.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* 1. Base & Font */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 2. Navbar: glass effect on scroll */
#navbar {
  background: transparent;
  transition: background 0.3s ease, backdrop-filter 0.3s ease,
              box-shadow 0.3s ease, border-color 0.3s ease;
}

#navbar.navbar-scrolled {
  background: rgba(249, 250, 251, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.06);
}

.dark #navbar.navbar-scrolled {
  background: rgba(11, 17, 32, 0.85);
  box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.04);
}

/* Active nav link */
.nav-link.nav-active {
  color: #4F46E5;
}
.dark .nav-link.nav-active {
  color: #818CF8;
}

/* 3. Scroll Reveal Animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  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.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* 4. Hero Illustration Float */
@keyframes heroFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33%       { transform: translateY(-12px) rotate(0.5deg); }
  66%       { transform: translateY(-6px) rotate(-0.5deg); }
}

.hero-float {
  animation: heroFloat 7s ease-in-out infinite;
  will-change: transform;
}

/* 5. Mobile Menu Slide Animation */
#mobileMenu {
  transform-origin: top;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  transform: scaleY(0.96) translateY(-8px);
}

#mobileMenu.menu-open {
  opacity: 1;
  transform: scaleY(1) translateY(0);
}

#mobileMenu.menu-closing {
  opacity: 0;
  transform: scaleY(0.96) translateY(-8px);
}

/* 6. Glassmorphism Service Cards — extra shimmer layer */
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0) 60%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.service-card:hover::before {
  opacity: 1;
}

/* 7. Button Glow Pulse */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); }
  50%       { box-shadow: 0 0 24px 4px rgba(79, 70, 229, 0.25); }
}

.btn-glow {
  animation: glowPulse 3s ease-in-out infinite;
}

/* 8. Custom Scrollbar */
::-webkit-scrollbar        { width: 6px; }
::-webkit-scrollbar-track  { background: transparent; }
::-webkit-scrollbar-thumb  {
  background: linear-gradient(to bottom, #4F46E5, #9333EA);
  border-radius: 999px;
}

/* 9. Selection */
::selection {
  background: rgba(79, 70, 229, 0.2);
  color: inherit;
}

/* 10. Focus ring for accessibility */
:focus-visible {
  outline: 2px solid #4F46E5;
  outline-offset: 3px;
  border-radius: 4px;
}
