/* Neptune Game - Bio-Tech Green Theme */
:root {
  --dark-green: #20331aff;
  --cal-poly-green: #33512aff;
  --fern-green: #446c37ff;
  --fern-green-2: #558745ff;
  --asparagus: #66a253ff;
  --mantis: #7cb36bff;
  --olivine: #94c186ff;
  --celadon: #abcea1ff;
  --tea-green: #c3dcbcff;
  --honeydew: #dbead7ff;
  --font-main: "Orbitron", "Exo 2", "Montserrat", sans-serif;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*,
*:before,
*:after {
  box-sizing: inherit;
}
body {
  margin: 0;
  font-family: var(--font-main);
  background: var(--dark-green);
  color: var(--honeydew);
  min-height: 100vh;
  line-height: 1.6;
}

/* Prevent anchors from being hidden below fixed navbar */
section[id] {
  scroll-margin-top: 90px;
}

/* Scroll sentinel for CSS-only navbar color change */
.top-sentinel {
  height: 1px;
}

/* Use :has() support to flip nav color when page is scrolled past top */
/* Fallback to JS-free default; this enhances when supported */
body:not(:has(#top-sentinel:in-view)) .navbar {
  background: linear-gradient(
    135deg,
    var(--cal-poly-green),
    var(--fern-green-2)
  );
  height: 75px;
  box-shadow: 0 6px 35px rgba(32, 51, 26, 0.6);
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
  background: var(--cal-poly-green);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 4px 25px rgba(32, 51, 26, 0.4);
  transition: all 0.4s ease;
  height: 85px;
  border-bottom: 1px solid var(--fern-green);
}

.navbar.scrolled {
  padding: 0.8rem 2rem;
  background: var(--fern-green-2);
  height: 75px;
  box-shadow: 0 6px 35px rgba(32, 51, 26, 0.6);
}

/* Logo Container */
.logo-container {
  display: flex;
  align-items: center;
}

.logo-svg {
  width: 300px;
  height: 70px;
  filter: drop-shadow(0 0 12px var(--asparagus));
  transition: filter 0.3s ease;
}

.logo-svg:hover {
  filter: drop-shadow(0 0 20px var(--mantis));
}

/* Logo Animations */
.logo-path {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: logoDrawIn 4s ease-in-out forwards;
  filter: drop-shadow(0 0 8px var(--asparagus));
}

@keyframes logoDrawIn {
  0% {
    stroke-dashoffset: 600;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

.logo-detail {
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
  animation: logoDetailDraw 2.5s ease-in-out 1.5s forwards;
}

@keyframes logoDetailDraw {
  0% {
    stroke-dashoffset: 80;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

.logo-pulse {
  animation: organicPulse 3s ease-in-out infinite;
  filter: drop-shadow(0 0 6px var(--mantis));
}

@keyframes organicPulse {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

.logo-node {
  animation: nodeGlow 4s ease-in-out infinite;
}

.logo-node:nth-child(1) {
  animation-delay: 0s;
}
.logo-node:nth-child(2) {
  animation-delay: 1.3s;
}
.logo-node:nth-child(3) {
  animation-delay: 2.6s;
}

@keyframes nodeGlow {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
    fill: var(--mantis);
  }
}

.logo-text-main,
.logo-text-sub {
  opacity: 0;
  animation: textSlideIn 1.2s ease-out 2.5s forwards;
}

@keyframes textSlideIn {
  0% {
    opacity: 0;
    transform: translateX(-15px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Decorative Elements */
.nav-decor {
  position: absolute;
  width: 120px;
  height: 30px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.7;
}

.nav-decor-left {
  left: 350px;
}

.nav-decor-right {
  right: 300px;
}

.decor-flow {
  stroke-dasharray: 150;
  stroke-dashoffset: 150;
  animation: organicFlow 5s ease-in-out infinite;
}

@keyframes organicFlow {
  0% {
    stroke-dashoffset: 150;
  }
  50% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: -150;
  }
}

.decor-orb {
  animation: orbFloat 3s ease-in-out infinite;
}

.decor-orb:nth-child(2) {
  animation-delay: 1s;
}

@keyframes orbFloat {
  0%,
  100% {
    opacity: 0.5;
    transform: translateY(0px);
  }
  50% {
    opacity: 1;
    transform: translateY(-8px);
  }
}

.decor-crystal {
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
  animation: crystalGrow 6s ease-in-out infinite;
}

@keyframes crystalGrow {
  0% {
    stroke-dashoffset: 80;
    opacity: 0.3;
  }
  50% {
    stroke-dashoffset: 0;
    opacity: 0.8;
  }
  100% {
    stroke-dashoffset: -80;
    opacity: 0.3;
  }
}

.decor-pulse {
  animation: gentlePulse 2.5s ease-in-out infinite;
}

@keyframes gentlePulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.4);
  }
}

/* Desktop Navigation */
.nav-desktop ul {
  list-style: none;
  display: flex;
  gap: 2.8rem;
  margin: 0;
  padding: 0;
}

.nav-desktop a {
  text-decoration: none;
  color: var(--honeydew);
  font-weight: 600;
  font-size: 1.1rem;
  position: relative;
  transition: all 0.3s ease;
  padding: 0.6rem 0;
  letter-spacing: 0.5px;
}

.nav-desktop a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--mantis);
  box-shadow: 0 0 12px var(--mantis);
  transition: width 0.4s ease;
}

.nav-desktop a:hover {
  color: var(--honeydew);
  text-shadow: 0 0 8px var(--celadon);
}

.nav-desktop a:hover::after {
  width: 100%;
}

/* Mobile Hamburger */
.hamburger-container {
  display: none;
  cursor: pointer;
  padding: 0.6rem;
  z-index: 1003;
  transition: transform 0.3s ease;
}

.hamburger-container:hover {
  transform: scale(1.1);
}

.hamburger-icon {
  width: 32px;
  height: 26px;
  transition: transform 0.3s ease;
}

.hamburger-container.active .hamburger-icon {
  transform: rotate(180deg);
}

.hamburger-line {
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger-container.active .line1 {
  transform: rotate(45deg) translate(6px, 6px);
  stroke: var(--mantis);
}

.hamburger-container.active .line2 {
  opacity: 0;
  transform: scale(0);
}

.hamburger-container.active .line3 {
  transform: rotate(-45deg) translate(8px, -7px);
  stroke: var(--mantis);
}

/* Checkbox-driven toggle wiring */
#nav-toggle:checked + .hamburger-container {
  transform: rotate(180deg) scale(1.05);
}
#nav-toggle:checked + .hamburger-container .line1 {
  transform: rotate(45deg) translate(6px, 6px);
  stroke: var(--mantis);
}
#nav-toggle:checked + .hamburger-container .line2 {
  opacity: 0;
  transform: scale(0);
}
#nav-toggle:checked + .hamburger-container .line3 {
  transform: rotate(-45deg) translate(8px, -7px);
  stroke: var(--mantis);
}

/* Slide-in panel when checked */
#nav-toggle:checked ~ .nav-mobile {
  right: 0;
}

/* Screen overlay to close on tap */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1001;
  top: 85px; /* keep below fixed navbar */
}
#nav-toggle:checked ~ .nav-overlay {
  opacity: 1;
  visibility: visible;
}

/* Mobile Navigation */
.nav-mobile {
  position: fixed;
  top: 85px;
  right: -100%;
  width: 100%;
  max-width: 320px;
  height: calc(100vh - 85px);
  background: linear-gradient(180deg, var(--fern-green), var(--cal-poly-green));
  border-left: 3px solid var(--asparagus);
  box-shadow: -8px 0 30px rgba(32, 51, 26, 0.6);
  transition: right 0.4s ease;
  overflow-y: auto;
  z-index: 1002;
}

.nav-mobile.active {
  right: 0;
}

.nav-mobile ul {
  list-style: none;
  padding: 2.5rem 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.nav-mobile li {
  border-bottom: 1px solid rgba(102, 162, 83, 0.3);
}

.nav-mobile a {
  display: block;
  padding: 1.4rem 2.5rem;
  color: var(--honeydew);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  position: relative;
  letter-spacing: 0.5px;
}

.nav-mobile a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(90deg, var(--asparagus), transparent);
  transition: width 0.3s ease;
}

.nav-mobile a:hover {
  color: var(--honeydew);
  background: rgba(102, 162, 83, 0.15);
  padding-left: 3rem;
  text-shadow: 0 0 8px var(--celadon);
}

.nav-mobile a:hover::before {
  width: 5px;
}

/* Hero Section */
.hero {
  background: linear-gradient(
    145deg,
    var(--dark-green) 0%,
    var(--cal-poly-green) 100%
  );
  text-align: center;
  padding-top: 85px;
  padding-left: 2rem;
  padding-right: 2rem;
  padding-bottom: 2rem;
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-content {
  z-index: 10;
  position: relative;
  max-width: 800px;
}

.hero h1 {
  font-size: 3.8rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--honeydew);
  text-shadow: 0 0 25px var(--mantis), 0 0 50px rgba(124, 179, 107, 0.4);
  margin-bottom: 1.5rem;
  animation: heroTextGlow 4s ease-in-out infinite alternate;
}

@keyframes heroTextGlow {
  0% {
    text-shadow: 0 0 25px var(--mantis), 0 0 50px rgba(124, 179, 107, 0.4);
    color: var(--honeydew);
  }
  100% {
    text-shadow: 0 0 35px var(--mantis), 0 0 70px rgba(124, 179, 107, 0.6);
    color: var(--tea-green);
  }
}

.tagline {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--celadon);
  margin-bottom: 3rem;
  text-shadow: 0 0 10px var(--fern-green);
  opacity: 0.95;
  line-height: 1.5;
}

.hero-btn {
  display: inline-block;
  padding: 1.4rem 3.5rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark-green);
  background: linear-gradient(135deg, var(--asparagus), var(--mantis));
  border: none;
  border-radius: 60px;
  box-shadow: 0 0 25px var(--mantis), 0 10px 40px rgba(124, 179, 107, 0.3);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.5s ease;
  position: relative;
  overflow: hidden;
  letter-spacing: 1px;
  border: 2px solid transparent;
}

.hero-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(219, 234, 215, 0.4),
    transparent
  );
  transition: left 0.7s ease;
}

.hero-btn:hover::before {
  left: 100%;
}

.hero-btn:hover {
  background: linear-gradient(135deg, var(--honeydew), var(--tea-green));
  color: var(--dark-green);
  box-shadow: 0 0 45px var(--celadon), 0 0 90px rgba(171, 206, 161, 0.55),
    0 15px 60px rgba(171, 206, 161, 0.4);
  transform: translateY(-6px) scale(1.08);
  border-color: var(--celadon);
}

/* Hero SVG Animations */
.hero-svg {
  position: absolute;
  width: 200px;
  height: 200px;
  z-index: 5;
  opacity: 0.8;
}

/* Neural Network Gaming SVG */
.svg-neural {
  top: 8%;
  left: 4%;
  animation: neuralFloat 12s ease-in-out infinite;
}

/* Bio-Data Stream SVG */
.svg-datastream {
  top: 12%;
  right: 6%;
  animation: dataFloat 10s ease-in-out infinite reverse;
}

/* Gaming DNA Fusion SVG */
.svg-fusion {
  bottom: 15%;
  left: 6%;
  animation: fusionFloat 14s ease-in-out infinite;
}

/* Tech Ecosystem SVG */
.svg-ecosystem {
  bottom: 10%;
  right: 4%;
  animation: ecosystemFloat 8s ease-in-out infinite reverse;
}

/* Animation Keyframes */
@keyframes neuralFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg) scale(1);
  }
  25% {
    transform: translateY(-20px) rotate(2deg) scale(1.08);
  }
  50% {
    transform: translateY(-35px) rotate(0deg) scale(1.15);
  }
  75% {
    transform: translateY(-15px) rotate(-2deg) scale(1.08);
  }
}

@keyframes dataFloat {
  0%,
  100% {
    transform: translateX(0px) translateY(0px) scale(1);
  }
  33% {
    transform: translateX(15px) translateY(-10px) scale(1.05);
  }
  66% {
    transform: translateX(-10px) translateY(-20px) scale(1.1);
  }
}

@keyframes fusionFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg) scale(1);
  }
  30% {
    transform: translateY(-25px) rotate(5deg) scale(1.1);
  }
  70% {
    transform: translateY(-18px) rotate(-3deg) scale(1.05);
  }
}

@keyframes ecosystemFloat {
  0%,
  100% {
    transform: translateY(0px) scale(1) rotate(0deg);
  }
  50% {
    transform: translateY(-30px) scale(1.12) rotate(5deg);
  }
}

/* Neural Network Elements */
.svg-neural {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: neuralPulse 8s ease-in-out infinite;
  filter: drop-shadow(0 0 8px var(--mantis));
}

@keyframes neuralPulse {
  0%,
  100% {
    stroke-dashoffset: 300;
    opacity: 0.4;
  }
  50% {
    stroke-dashoffset: 0;
    opacity: 0.9;
  }
}

.svg-node {
  animation: nodeGlow 3s ease-in-out infinite alternate;
}

@keyframes nodeGlow {
  0% {
    fill-opacity: 0.5;
    r: 2;
  }
  100% {
    fill-opacity: 1;
    r: 3.5;
  }
}

/* Data Stream Elements */
.svg-stream {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: dataFlow 6s linear infinite;
  filter: drop-shadow(0 0 6px currentColor);
}

@keyframes dataFlow {
  0% {
    stroke-dashoffset: 400;
  }
  100% {
    stroke-dashoffset: -400;
  }
}

.svg-data-particle {
  animation: particleMove 4s ease-in-out infinite;
}

.p1 {
  animation-delay: 0s;
}
.p2 {
  animation-delay: 1.3s;
}
.p3 {
  animation-delay: 2.6s;
}

@keyframes particleMove {
  0%,
  100% {
    transform: translateX(0px) translateY(0px);
    opacity: 0.6;
  }
  50% {
    transform: translateX(30px) translateY(-20px);
    opacity: 1;
  }
}

/* DNA Fusion Elements */
.svg-dna-strand {
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  animation: dnaHelix 10s ease-in-out infinite;
  filter: drop-shadow(0 0 10px currentColor);
}

@keyframes dnaHelix {
  0%,
  100% {
    stroke-dashoffset: 500;
    opacity: 0.5;
  }
  50% {
    stroke-dashoffset: 0;
    opacity: 0.9;
  }
}

.svg-pixel {
  animation: pixelGlow 2s ease-in-out infinite alternate;
}

@keyframes pixelGlow {
  0% {
    opacity: 0.4;
    transform: scale(1);
  }
  100% {
    opacity: 0.8;
    transform: scale(1.2);
  }
}

.svg-digital-bond {
  animation: bondPulse 3s ease-in-out infinite;
}

@keyframes bondPulse {
  0%,
  100% {
    stroke-opacity: 0.3;
    stroke-width: 1.5;
  }
  50% {
    stroke-opacity: 0.8;
    stroke-width: 2.5;
  }
}

/* Tech Ecosystem Elements */
.svg-hub {
  animation: hubPulse 4s ease-in-out infinite;
  filter: drop-shadow(0 0 15px var(--mantis));
}

@keyframes hubPulse {
  0%,
  100% {
    stroke-width: 2;
    opacity: 0.6;
  }
  50% {
    stroke-width: 3.5;
    opacity: 1;
  }
}

.svg-orbit {
  animation: orbitRotate 20s linear infinite;
  transform-origin: center;
}

@keyframes orbitRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.svg-satellite {
  animation: satelliteOrbit 15s linear infinite;
  transform-origin: 125px 125px;
}

.sat-1 {
  animation-delay: 0s;
}
.sat-2 {
  animation-delay: -5s;
}
.sat-3 {
  animation-delay: -10s;
}

@keyframes satelliteOrbit {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.svg-connection {
  stroke-dasharray: 5, 5;
  animation: connectionFlow 3s linear infinite;
}

@keyframes connectionFlow {
  0% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: 10;
  }
}

.svg-pulse {
  animation: heroElementPulse 3s ease-in-out infinite;
  filter: drop-shadow(0 0 12px currentColor);
}

@keyframes heroElementPulse {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.4);
  }
}

/* Additional Global Styles */

.particle-1 {
  animation-delay: 0s;
}
.particle-2 {
  animation-delay: 1.5s;
}
.particle-3 {
  animation-delay: 3s;
}
.particle-4 {
  animation-delay: 4.5s;
}

@keyframes particleFloat {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1) translateY(0px);
  }
  25% {
    opacity: 0.8;
    transform: scale(1.2) translateY(-10px);
  }
  50% {
    opacity: 1;
    transform: scale(1.5) translateY(-15px);
  }
  75% {
    opacity: 0.8;
    transform: scale(1.2) translateY(-5px);
  }
}

/* SVG Group Animation */
.svg-anim-group {
  animation: groupRotate 30s linear infinite;
  transform-origin: center;
}

@keyframes groupRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Section Dividers */
.section-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(
    135deg,
    var(--fern-green) 0%,
    var(--fern-green-2) 100%
  );
  clip-path: polygon(0 100%, 100% 0%, 100% 100%);
}

.divider-hero {
  background: linear-gradient(
    135deg,
    var(--fern-green) 0%,
    var(--fern-green-2) 100%
  );
}

/* About Section */
.about {
  background: linear-gradient(145deg, var(--fern-green-2), var(--asparagus));
  padding: 5rem 2rem;
  position: relative;
}

/* Unique About section */
.about-unique {
  overflow: hidden;
}

.about-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.about-grid {
  position: absolute;
  width: 120%;
  height: 120%;
  left: -10%;
  top: -10%;
  opacity: 0.35;
  filter: drop-shadow(0 0 12px rgba(171, 206, 161, 0.2));
  animation: aboutGridDrift 30s linear infinite;
}
.about-orbs {
  position: absolute;
  right: 5%;
  top: 10%;
  width: 180px;
  height: 90px;
  opacity: 0.8;
}
.grid-line {
  stroke-dasharray: 12 12;
  animation: connectionFlow 12s linear infinite;
}
@keyframes aboutGridDrift {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(2deg) scale(1.03);
  }
  100% {
    transform: rotate(0deg) scale(1);
  }
}

.about-wrap {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-left h2 {
  font-size: 2.8rem;
  margin: 0 0 1rem 0;
  color: var(--honeydew);
  text-shadow: 0 0 15px var(--mantis);
}
.about-lead {
  color: var(--tea-green);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.dna-vert {
  width: 140px;
  height: 320px;
  filter: drop-shadow(0 0 12px var(--mantis));
  margin: 1rem 0 1.5rem 0;
}
.dna-list {
  list-style: none;
  margin: 0 0 2rem 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 0.8rem 1rem;
}
.dna-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--asparagus), var(--mantis));
  color: var(--dark-green);
  font-weight: 800;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  margin-right: 0.5rem;
  box-shadow: 0 0 15px rgba(124, 179, 107, 0.4);
}
.dna-desc {
  color: var(--honeydew);
  opacity: 0.9;
}

.about-btn {
  display: inline-block;
  padding: 0.9rem 1.4rem;
  border: 2px solid var(--celadon);
  color: var(--honeydew);
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(171, 206, 161, 0.35);
}
.about-btn:hover {
  background: var(--celadon);
  color: var(--dark-green);
  transform: translateY(-2px);
}

.about-right {
  position: relative;
}
.chip-core {
  position: relative;
  width: 260px;
  height: 260px;
  margin: 0 auto 1.5rem auto;
  border-radius: 20px;
  background: radial-gradient(
    120px 120px at 50% 50%,
    rgba(171, 206, 161, 0.2),
    rgba(51, 81, 42, 0.6)
  );
  border: 2px solid var(--asparagus);
  box-shadow: 0 0 30px rgba(124, 179, 107, 0.45);
  overflow: hidden;
}
.core-ring {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  box-shadow: inset 0 0 30px rgba(124, 179, 107, 0.25);
}
.core-ring.r1 {
  animation: corePulse 4s ease-in-out infinite;
}
.core-ring.r2 {
  animation: corePulse 4s ease-in-out 2s infinite;
}
@keyframes corePulse {
  0%,
  100% {
    transform: scale(0.98);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.02);
    opacity: 1;
  }
}
.core-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  background: var(--mantis);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 20px var(--mantis), 0 0 40px rgba(124, 179, 107, 0.5);
}
.core-lines {
  position: absolute;
  inset: 0;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 1rem;
}
.signal-card {
  background: linear-gradient(145deg, var(--celadon), var(--tea-green));
  color: var(--dark-green);
  border: 2px solid var(--asparagus);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  box-shadow: 0 0 18px rgba(171, 206, 161, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.signal-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 0 30px rgba(171, 206, 161, 0.5);
}
.signal-card h3 {
  margin: 0 0 0.3rem 0;
  font-size: 1.05rem;
  color: var(--cal-poly-green);
  text-shadow: 0 0 8px var(--mantis);
}
.signal-card p {
  margin: 0;
  color: var(--fern-green);
}

@media (max-width: 900px) {
  .about-wrap {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .dna-vert {
    margin-left: auto;
    margin-right: auto;
  }
  .dna-list {
    grid-template-columns: 1fr;
  }
  .signal-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .signal-grid {
    grid-template-columns: 1fr;
  }
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.about-text h2 {
  font-size: 2.5rem;
  color: var(--honeydew);
  margin-bottom: 1.5rem;
  font-weight: 800;
  text-shadow: 0 0 15px var(--mantis);
}

.about-text p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--tea-green);
  text-shadow: 0 0 5px var(--fern-green);
}

.about-img img {
  width: 100%;
  border-radius: 25px;
  box-shadow: 0 0 40px var(--mantis);
  border: 3px solid var(--celadon);
  transition: transform 0.3s ease;
}

.about-img img:hover {
  transform: scale(1.02);
}

/* Services Section */
.services {
  background: var(--olivine);
  padding: 5rem 2rem;
  position: relative;
}

.services h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--dark-green);
  font-weight: 800;
  margin-bottom: 3rem;
  text-shadow: 0 0 10px var(--celadon);
}

/* Unique Services: Service Matrix */
.services-unique {
  overflow: hidden;
}
.services-hub {
  position: absolute;
  left: 50%;
  top: -60px;
  transform: translateX(-50%);
  width: 480px;
  height: 480px;
  opacity: 0.45;
  pointer-events: none;
}
.hub-ring {
  filter: drop-shadow(0 0 10px currentColor);
}
.hub-ring.r1 {
  animation: hubPulse 6s ease-in-out infinite;
}
.hub-ring.r2 {
  animation: hubPulse 6s ease-in-out 1.5s infinite;
}
.hub-ring.r3 {
  animation: hubPulse 6s ease-in-out 3s infinite;
}
.hub-spin {
  animation: orbitRotate 18s linear infinite;
  transform-origin: 150px 150px;
}

.matrix {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 1.8rem;
}
.matrix-card {
  background: linear-gradient(145deg, var(--celadon), var(--tea-green));
  color: var(--dark-green);
  border: 2px solid var(--asparagus);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 10px 24px rgba(32, 51, 26, 0.25),
    0 0 22px rgba(171, 206, 161, 0.45);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.matrix-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 18px;
  background: radial-gradient(
      120px 60px at 20% -20%,
      rgba(124, 179, 107, 0.35),
      transparent 60%
    ),
    radial-gradient(
      120px 60px at 120% 120%,
      rgba(171, 206, 161, 0.35),
      transparent 60%
    );
  pointer-events: none;
}
.matrix-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 14px 32px rgba(32, 51, 26, 0.35),
    0 0 36px rgba(171, 206, 161, 0.6);
}
.matrix-card h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
  color: var(--cal-poly-green);
  text-shadow: 0 0 8px var(--mantis);
}
.matrix-card p {
  margin: 0 0 1rem 0;
  color: var(--fern-green);
}
.matrix-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.matrix-card .tags span {
  background: var(--honeydew);
  color: var(--cal-poly-green);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
  border: 1px solid var(--celadon);
  box-shadow: 0 0 10px rgba(171, 206, 161, 0.4);
}

/* Icon styles */
.icon-chip {
  display: grid;
  grid-template-columns: repeat(4, 10px);
  gap: 6px;
  width: max-content;
  margin-bottom: 0.8rem;
}
.icon-chip .i-dot {
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, var(--asparagus), var(--mantis));
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(124, 179, 107, 0.6);
}
.icon-shader svg,
.icon-net svg,
.icon-cloud svg {
  width: 48px;
  height: 48px;
  display: block;
  margin-bottom: 0.8rem;
  filter: drop-shadow(0 0 10px rgba(171, 206, 161, 0.6));
}
.shader-stroke {
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  animation: logoDetailDraw 1.8s ease forwards;
}
.net-line {
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
  animation: dataFlow 3s linear infinite;
}

@media (max-width: 1100px) {
  .matrix {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}
@media (max-width: 600px) {
  .matrix {
    grid-template-columns: 1fr;
  }
  .services-hub {
    width: 360px;
    height: 360px;
    top: -30px;
  }
}

.services-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: linear-gradient(145deg, var(--celadon), var(--tea-green));
  color: var(--dark-green);
  border-radius: 20px;
  box-shadow: 0 0 25px var(--mantis);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  border: 2px solid var(--asparagus);
}

.service-card h3 {
  font-size: 1.4rem;
  color: var(--cal-poly-green);
  font-weight: 700;
  margin-bottom: 1.2rem;
  text-shadow: 0 0 8px var(--mantis);
}

.service-card p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--fern-green);
}

.service-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 0 45px var(--mantis);
  background: linear-gradient(145deg, var(--tea-green), var(--honeydew));
}

/* Portfolio Section */
.portfolio {
  background: linear-gradient(145deg, var(--asparagus), var(--mantis));
  padding: 5rem 2rem;
  position: relative;
}
.portfolio h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--honeydew);
  font-weight: 800;
  margin-bottom: 1.25rem;
  text-shadow: 0 0 15px var(--dark-green);
}

/* Controls */
.folio-controls {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin: 0 auto 1.8rem;
  max-width: 900px;
  flex-wrap: wrap;
}
.folio-controls label {
  cursor: pointer;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(171, 206, 161, 0.35);
  color: var(--honeydew);
  background: rgba(10, 31, 21, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 6px 20px rgba(10, 31, 21, 0.35) inset;
}
.folio-controls label:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(171, 206, 161, 0.25);
  background: rgba(10, 31, 21, 0.35);
}

/* Active tab styles via radio state */
#filter-all:checked ~ .folio-controls label[for="filter-all"],
#filter-games:checked ~ .folio-controls label[for="filter-games"],
#filter-tools:checked ~ .folio-controls label[for="filter-tools"],
#filter-art:checked ~ .folio-controls label[for="filter-art"] {
  background: linear-gradient(135deg, var(--asparagus), var(--mantis));
  color: #0a1f15;
  font-weight: 800;
  box-shadow: 0 8px 26px rgba(124, 179, 107, 0.35);
}

/* Grid */
.folio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.folio-feature {
  grid-column: span 2;
}

/* Cards */
.folio-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #0e261a;
  border: 1px solid rgba(171, 206, 161, 0.25);
  box-shadow: 0 10px 28px rgba(10, 31, 21, 0.45);
}
.folio-thumb {
  width: 100%;
  height: 220px;
  object-fit: cover;
  filter: brightness(0.9) contrast(1.1);
  transition: transform 0.35s ease, filter 0.35s ease;
  display: block;
}
.folio-card:hover .folio-thumb {
  transform: scale(1.05);
  filter: brightness(1.05) contrast(1.2);
}

/* Neon corner frame */
.folio-frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.folio-frame svg {
  width: 100%;
  height: 100%;
}
.frame-line {
  stroke: var(--celadon);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 40 260;
  transition: stroke 0.25s ease;
  filter: drop-shadow(0 0 12px rgba(171, 206, 161, 0.6));
}
.folio-card:hover .frame-line {
  animation: frameDraw 0.8s ease forwards;
}
@keyframes frameDraw {
  0% {
    stroke-dasharray: 40 260;
  }
  100% {
    stroke-dasharray: 160 140;
  }
}

.folio-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.9rem 1rem;
  background: linear-gradient(
    180deg,
    rgba(10, 31, 21, 0) 0%,
    rgba(10, 31, 21, 0.75) 40%,
    rgba(10, 31, 21, 0.92) 100%
  );
}
.folio-meta h3 {
  margin: 0 0 0.2rem;
  color: var(--honeydew);
  text-shadow: 0 0 10px rgba(171, 206, 161, 0.35);
  font-size: 1.05rem;
}
.folio-sub {
  margin: 0 0 0.5rem;
  color: var(--celadon);
  font-size: 0.9rem;
  opacity: 0.95;
}
.folio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.folio-tags span {
  background: rgba(171, 206, 161, 0.12);
  color: var(--honeydew);
  border: 1px solid rgba(171, 206, 161, 0.35);
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  font-size: 0.8rem;
}

/* CSS-only filtering */
#filter-games:checked ~ .folio-grid .folio-item:not([data-type="game"]) {
  display: none;
}
#filter-tools:checked ~ .folio-grid .folio-item:not([data-type="tools"]) {
  display: none;
}
#filter-art:checked ~ .folio-grid .folio-item:not([data-type="art"]) {
  display: none;
}

@media (max-width: 1100px) {
  .folio-grid {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
  }
  .folio-feature {
    grid-column: span 2;
  }
}
@media (max-width: 640px) {
  .folio-grid {
    grid-template-columns: 1fr;
  }
  .folio-feature {
    grid-column: span 1;
  }
}

/* Testimonials Section */
.testimonials {
  background: var(--celadon);
  padding: 5rem 2rem;
  position: relative;
}

.testimonials h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--dark-green);
  font-weight: 800;
  margin-bottom: 3rem;
  text-shadow: 0 0 10px var(--asparagus);
}

.testimonials-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
}

.testimonial {
  background: linear-gradient(145deg, var(--tea-green), var(--honeydew));
  color: var(--fern-green);
  border-radius: 20px;
  box-shadow: 0 0 25px var(--asparagus);
  padding: 2.5rem 2rem;
  min-width: 280px;
  max-width: 350px;
  font-size: 1rem;
  position: relative;
  transition: all 0.4s ease;
  border: 2px solid var(--mantis);
}

.testimonial p {
  font-style: italic;
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.testimonial span {
  font-weight: 700;
  color: var(--asparagus);
  text-shadow: 0 0 5px var(--mantis);
}

.testimonial:hover {
  transform: scale(1.05);
  box-shadow: 0 0 45px var(--asparagus);
  background: linear-gradient(145deg, var(--honeydew), var(--tea-green));
}

/* Contact Section */
.contact {
  background: linear-gradient(145deg, var(--mantis), var(--olivine));
  padding: 5rem 2rem;
  position: relative;
}

.contact h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--honeydew);
  font-weight: 800;
  margin-bottom: 3rem;
  text-shadow: 0 0 15px var(--dark-green);
}

.contact-form {
  .contact-unique {
    overflow: hidden;
  }
  .contact-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
  }
  .contact-grid {
    position: absolute;
    inset: -10% -5% -5% -5%;
    width: 110%;
    height: 110%;
    opacity: 0.5;
    filter: drop-shadow(0 0 10px rgba(171, 206, 161, 0.2));
  }

  .contact-wrap {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 2rem;
    align-items: start;
    position: relative;
    z-index: 1;
  }
  .contact-left {
    color: var(--honeydew);
  }
  .contact-lead {
    color: var(--tea-green);
    margin-top: 0.5rem;
    margin-bottom: 1rem;
  }

  .comms-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
  }
  .comms-card {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1rem;
    border-radius: 14px;
    background: linear-gradient(
      180deg,
      rgba(31, 81, 49, 0.55),
      rgba(25, 66, 41, 0.55)
    );
    border: 1px solid rgba(171, 206, 161, 0.18);
    color: var(--honeydew);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  .comms-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(10, 31, 21, 0.4);
  }
  .comms-card svg {
    width: 22px;
    height: 22px;
    filter: drop-shadow(0 0 10px rgba(171, 206, 161, 0.35));
  }
  .c-meta strong {
    display: block;
    font-weight: 800;
    font-size: 0.95rem;
  }
  .c-meta span {
    display: block;
    font-size: 0.85rem;
    color: var(--celadon);
    opacity: 0.95;
  }

  .contact-panel {
    background: linear-gradient(
      180deg,
      rgba(31, 81, 49, 0.6),
      rgba(21, 56, 35, 0.7)
    );
    border: 1px solid rgba(171, 206, 161, 0.15);
    border-radius: 16px;
    padding: 1.1rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05),
      0 18px 50px rgba(10, 31, 21, 0.6);
  }
  .contact-form {
    display: grid;
    gap: 1rem;
  }
  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .contact-form input,
  .contact-form textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    background: rgba(10, 31, 21, 0.45);
    border: 1px solid rgba(171, 206, 161, 0.15);
    border-radius: 12px;
    color: var(--honeydew);
    font-family: var(--font-main);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease,
      background 0.2s ease;
  }
  .contact-form textarea {
    min-height: 140px;
    resize: vertical;
  }
  .contact-form input:focus,
  .contact-form textarea:focus {
    border-color: var(--mantis);
    box-shadow: 0 0 0 3px rgba(148, 191, 107, 0.15);
    background: rgba(10, 31, 21, 0.6);
  }

  .send-btn {
    position: relative;
    overflow: hidden;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--mantis);
    color: #0a1f15;
    border: none;
    padding: 0.85rem 1.15rem;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 10px 26px rgba(148, 191, 107, 0.32);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  .send-btn .scan {
    position: absolute;
    inset: 0;
    background: linear-gradient(
      120deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.35) 45%,
      rgba(255, 255, 255, 0) 60%
    );
    transform: translateX(-120%);
    animation: scan 2.6s ease-in-out infinite;
  }
  @keyframes scan {
    0% {
      transform: translateX(-120%);
    }
    60% {
      transform: translateX(120%);
    }
    100% {
      transform: translateX(120%);
    }
  }
  .send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(148, 191, 107, 0.4);
  }

  @media (max-width: 900px) {
    .contact-wrap {
      grid-template-columns: 1fr;
    }
    .comms-cards {
      grid-template-columns: 1fr 1fr;
    }
  }
  @media (max-width: 640px) {
    .comms-cards {
      grid-template-columns: 1fr;
    }
    .form-row {
      grid-template-columns: 1fr;
    }
  }
  color: var(--dark-green);
  box-shadow: 0 0 45px var(--dark-green);
  transform: scale(1.06);
}

/* Footer */
.footer {
  background: var(--dark-green);
  padding: 2.5rem 1.5rem 1.5rem 1.5rem;
  text-align: center;
  color: var(--celadon);
  font-size: 1rem;
  position: relative;
  border-top: 3px solid var(--fern-green);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-links a {
  display: inline-block;
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--asparagus), var(--mantis));
  border-radius: 50%;
  box-shadow: 0 0 15px var(--asparagus);
  transition: all 0.3s ease;
  overflow: hidden;
  border: 2px solid var(--celadon);
}

.social-links a:hover {
  box-shadow: 0 0 30px var(--mantis);
  transform: scale(1.15);
  background: linear-gradient(135deg, var(--mantis), var(--olivine));
}

.social-links img {
  width: 100%;
  height: 100%;
  filter: invert(1) brightness(1.5);
}

/* Responsive Styles */
@media (max-width: 1100px) {
  .nav-decor-left,
  .nav-decor-right {
    display: none;
  }

  .logo-svg {
    width: 260px;
    height: 60px;
  }
}

@media (max-width: 900px) {
  .navbar {
    padding: 1rem 1.5rem;
    height: 75px;
  }

  .nav-desktop {
    display: none;
  }

  .hamburger-container {
    display: block;
  }

  .logo-svg {
    width: 220px;
    height: 50px;
  }

  .hero {
    padding-top: 75px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-bottom: 2rem;
  }

  .hero-svg {
    width: 130px;
    height: 130px;
  }

  .svg-neural,
  .svg-datastream {
    top: 8%;
  }

  .svg-fusion,
  .svg-ecosystem {
    bottom: 15%;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .services-cards,
  .portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
  }

  .testimonials-list {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .navbar {
    padding: 0.8rem 1rem;
    height: 70px;
  }

  .navbar.scrolled {
    height: 65px;
  }

  .nav-mobile {
    top: 70px;
    height: calc(100vh - 70px);
  }

  /* Ensure overlay sits under fixed navbar on mobile */
  .nav-overlay {
    top: 70px;
  }

  .logo-svg {
    width: 200px;
    height: 45px;
  }

  .hero {
    padding-top: 70px;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 2rem;
  }

  .hero-svg {
    width: 100px;
    height: 100px;
    opacity: 0.6;
  }

  .hero h1 {
    font-size: 2.5rem;
    letter-spacing: 1px;
  }

  .tagline {
    font-size: 1.2rem;
  }

  .hero-btn {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
  }

  .about-text h2,
  .services h2,
  .portfolio h2,
  .testimonials h2,
  .contact h2 {
    font-size: 2rem;
  }

  .services-cards,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-list {
    gap: 1.5rem;
  }

  .footer-content {
    font-size: 0.9rem;
  }
}

/* Accessibility: focus styles */
a:focus-visible,
button:focus-visible,
label:focus-visible {
  outline: 2px solid var(--celadon);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(171, 206, 161, 0.25);
}

/* Contact Unique — overrides (scoped to #contact only) */
.contact-unique {
  overflow: hidden;
}
.contact-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.contact-grid {
  position: absolute;
  inset: -10% -5% -5% -5%;
  width: 110%;
  height: 110%;
  opacity: 0.5;
  filter: drop-shadow(0 0 10px rgba(171, 206, 161, 0.2));
}
.radar {
  position: absolute;
  right: 5%;
  top: 8%;
  width: 220px;
  height: 220px;
  opacity: 0.6;
  filter: drop-shadow(0 0 12px rgba(171, 206, 161, 0.25));
}
.radar-sweep {
  transform-origin: 100px 100px;
  animation: sweep 6s linear infinite;
}
@keyframes sweep {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.contact-wrap {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: start;
  position: relative;
  z-index: 1;
}
.contact-left {
  color: var(--honeydew);
}
.contact-lead {
  color: var(--tea-green);
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}
.uptime-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--tea-green);
  background: rgba(171, 206, 161, 0.08);
  border: 1px solid rgba(171, 206, 161, 0.18);
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
}
.uptime-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mantis);
  box-shadow: 0 0 10px rgba(148, 191, 107, 0.8);
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

.comms-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}
.comms-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  background: linear-gradient(
    180deg,
    rgba(31, 81, 49, 0.55),
    rgba(25, 66, 41, 0.55)
  );
  border: 1px solid rgba(171, 206, 161, 0.18);
  color: var(--honeydew);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.comms-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(10, 31, 21, 0.4);
}
.comms-card svg {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 0 10px rgba(171, 206, 161, 0.35));
}
.c-meta strong {
  display: block;
  font-weight: 800;
  font-size: 0.95rem;
}
.c-meta span {
  display: block;
  font-size: 0.85rem;
  color: var(--celadon);
  opacity: 0.95;
}

.contact-panel {
  background: linear-gradient(
    180deg,
    rgba(31, 81, 49, 0.6),
    rgba(21, 56, 35, 0.7)
  );
  border: 1px solid rgba(171, 206, 161, 0.15);
  border-radius: 16px;
  padding: 1.1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 50px rgba(10, 31, 21, 0.6);
}
.contact-form {
  display: grid;
  gap: 1rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  background: rgba(10, 31, 21, 0.45);
  border: 1px solid rgba(171, 206, 161, 0.15);
  border-radius: 12px;
  color: var(--honeydew);
  font-family: var(--font-main);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--mantis);
  box-shadow: 0 0 0 3px rgba(148, 191, 107, 0.15);
  background: rgba(10, 31, 21, 0.6);
}
.consent {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--tea-green);
  font-size: 0.9rem;
}
.consent input {
  width: 16px;
  height: 16px;
  accent-color: var(--mantis);
}

.send-btn {
  position: relative;
  overflow: hidden;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--mantis);
  color: #0a1f15;
  border: none;
  padding: 0.85rem 1.15rem;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 26px rgba(148, 191, 107, 0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.send-btn .scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.35) 45%,
    rgba(255, 255, 255, 0) 60%
  );
  transform: translateX(-120%);
  animation: scan 2.6s ease-in-out infinite;
}
@keyframes scan {
  0% {
    transform: translateX(-120%);
  }
  60% {
    transform: translateX(120%);
  }
  100% {
    transform: translateX(120%);
  }
}
.send-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(148, 191, 107, 0.4);
}

@media (max-width: 900px) {
  .contact-wrap {
    grid-template-columns: 1fr;
  }
  .comms-cards {
    grid-template-columns: 1fr 1fr;
  }
  .radar {
    opacity: 0.35;
    right: 2%;
    top: 2%;
    width: 180px;
    height: 180px;
  }
}
@media (max-width: 640px) {
  .comms-cards {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Custom Font Import */
@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;800;900&family=Exo+2:wght@400;500;600;700&display=swap");

/* Footer Unique — appended so it overrides default footer when present */
.footer-unique {
  position: relative;
  background: #0b2318;
  color: var(--tea-green);
  padding: 3rem 1.5rem 1.2rem;
  overflow: hidden;
  border-top: 3px solid var(--fern-green);
}
.footer-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.footer-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
}
.footer-scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(148, 191, 107, 0),
    rgba(148, 191, 107, 0.12),
    rgba(148, 191, 107, 0)
  );
  transform: translateY(100%);
  animation: fscan 6s ease-in-out infinite;
}
@keyframes fscan {
  0% {
    transform: translateY(100%);
  }
  50% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(-100%);
  }
}

.footer-wrap {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 2rem;
  position: relative;
  z-index: 1;
}
.f-brand .brand-mark {
  width: 58px;
  height: 58px;
  filter: drop-shadow(0 0 10px rgba(171, 206, 161, 0.35));
}
.f-brand h3 {
  color: var(--honeydew);
  margin: 0.6rem 0 0.25rem;
  font-size: 1.25rem;
}
.f-brand p {
  color: var(--tea-green);
  opacity: 0.95;
  margin-bottom: 0.75rem;
}
.f-cta {
  display: inline-block;
  color: #0a1f15;
  background: var(--mantis);
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(148, 191, 107, 0.28);
}
.f-cta:hover {
  box-shadow: 0 14px 34px rgba(148, 191, 107, 0.36);
  transform: translateY(-2px);
}

.f-links h4,
.f-social h4 {
  color: var(--honeydew);
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
}
.f-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
}
.f-links a {
  color: var(--tea-green);
  text-decoration: none;
  position: relative;
}
.f-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--celadon);
  transition: width 0.25s ease;
  box-shadow: 0 0 12px rgba(171, 206, 161, 0.5);
}
.f-links a:hover::after {
  width: 100%;
}

.social-row {
  display: flex;
  gap: 0.6rem;
}
.social {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(171, 206, 161, 0.2);
  background: rgba(10, 31, 21, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.social svg {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 0 10px rgba(171, 206, 161, 0.35));
}
.social:hover {
  transform: translateY(-2px);
  border-color: rgba(171, 206, 161, 0.4);
  box-shadow: 0 12px 28px rgba(148, 191, 107, 0.25);
}

.f-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.7rem;
}
.badge {
  font-size: 0.8rem;
  color: var(--tea-green);
  background: rgba(171, 206, 161, 0.08);
  border: 1px solid rgba(171, 206, 161, 0.2);
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
}

.footer-bottom {
  max-width: 1100px;
  margin: 1.6rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(171, 206, 161, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--tea-green);
  position: relative;
  z-index: 1;
}
.footer-bottom .legal {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-bottom a {
  color: var(--celadon);
  text-decoration: none;
}

@media (max-width: 900px) {
  .footer-wrap {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .footer-wrap {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.6rem;
  }
}
