/* ── Reset & Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --teal: #40e0d0;
  --teal-dim: rgba(64, 224, 208, 0.5);
  --teal-faint: rgba(64, 224, 208, 0.15);
  --teal-ghost: rgba(64, 224, 208, 0.06);
  --bg: #030810;
  --bg-card: #0d1117;
  --bg-card2: #111820;
  --font-mono: arial, Helvetica, sans-serif;
  --font-body: Arial, Helvetica, sans-serif;
  --font-logo: "Courier New", Courier, monospace;
}

body {
  margin: 0;
  font-family: var(--font-body);
  line-height: 1.6;
  background-color: var(--bg);
  color: var(--teal);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-wrapper {
  overflow-x: hidden;
}

h1 {
  font-size: 34px;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 20px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 6px;
  color: #000;
  -webkit-text-stroke: 1.5px var(--teal);
  text-shadow: 0 0 20px rgba(64, 224, 208, 0.45);
  font-weight: 900;
}

p {
  font-size: 16px;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ── Header / Nav ── */
header {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(3, 8, 16, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  height: 70px;
  padding: 0 2rem;
  position: sticky !important;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--teal-ghost);
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  /* margin-right: auto; */
  transition: opacity 0.3s ease;
  text-decoration: none;
  color: var(--teal);
  font-family: var(--font-logo);
}

.logo:hover {
  opacity: 0.75;
}

.logo-image {
  max-height: 120px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(64, 224, 208, 0.5));
}

nav {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
}

/* The three bars */
.hamburger {
  background: none;
  border: 2px solid var(--teal-dim);
  border-radius: 6px;
  padding: 6px 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-left: auto;
}
.bar {
  width: 20px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Animate bars into an X when open */
.hamburger.open .bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.hamburger.open .bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.open .bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Dropdown — hidden by default */
.dropdown {
  position: absolute;
  top: 100%;
  right: 1rem;
  background: var(--bg-card);
  border: 2px solid var(--teal-ghost);
  border-radius: 8px;
  min-width: 160px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition:
    max-height 0.3s ease,
    opacity 0.2s ease;
}

/* Revealed when JS adds .open */
.dropdown.open {
  max-height: 400px;
  opacity: 1;
  pointer-events: all;
}

.dropdown a {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 14px;
  color: var(--teal);
  text-decoration: none;
}
.dropdown a:hover {
  background: var(--teal-ghost);
}

/* ── Section shared ── */
.section-heading {
  padding: 3.5rem 2rem 1rem;
  text-align: center;
}

.section-title {
  margin: 0;
  color: #000;
  -webkit-text-stroke: 1.5px var(--teal);
  text-shadow: 0 0 20px rgba(64, 224, 208, 0.45);
  font-size: 40px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 6px;
  font-family: var(--font-mono);
  font-weight: 900;
}

/* ── Welcome / Hero ── */
.hero-container {
  position: relative;
  width: 100%;
  height: 420px;
  background: #030810;
  overflow: hidden;
  border-radius: 12px;
}

.welcome-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
}

.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.radial-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 60% at 50% 50%,
    rgba(64, 224, 208, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.scanline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(64, 224, 208, 0.6),
    transparent
  );
  animation: scanline 4s linear infinite;
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 2rem;
}

.welcome-text {
  font-size: 11px;
  letter-spacing: 4px;
  color: rgba(64, 224, 208, 0.5);
  text-transform: uppercase;
  animation: flicker 6s ease-in-out infinite;
}

.welcome-wrapper {
  position: relative;
  display: inline-block;
}

.welcome-logo {
  font-size: 88px;
  font-weight: 900;
  letter-spacing: 12px;
  color: #000;
  -webkit-text-stroke: 2px #40e0d0;
  text-shadow:
    0 0 30px rgba(64, 224, 208, 0.7),
    0 0 60px rgba(64, 224, 208, 0.3),
    0 0 100px rgba(64, 224, 208, 0.15);
  animation: pulse 3s ease-in-out infinite;
  line-height: 1;
}

.subtitle {
  font-size: 12px;
  letter-spacing: 6px;
  color: rgba(64, 224, 208, 0.5);
  text-transform: uppercase;
  animation: flicker 8s ease-in-out infinite 2s;
}

.tags {
  margin-top: 24px;
  display: flex;
  gap: 32px;
}

.tag {
  font-size: 10px;
  color: rgba(64, 224, 208, 0.35);
  letter-spacing: 2px;
  border: 1px solid rgba(64, 224, 208, 0.15);
  padding: 6px 14px;
  border-radius: 4px;
}

.system-text {
  margin-top: 16px;
  font-size: 10px;
  color: rgba(64, 224, 208, 0.25);
  letter-spacing: 1px;
}

.cursor {
  animation: blink 1s step-end infinite;
}

.version {
  position: absolute;
  bottom: 12px;
  right: 16px;
  font-size: 9px;
  color: rgba(64, 224, 208, 0.15);
  letter-spacing: 2px;
}

/* ── Success / Fail bars ── */
.success-bar {
  position: fixed;
  top: 100px;
  left: 0;
  width: 100%;
  background: rgba(76, 175, 80, 0.9);
  color: #fff;
  text-align: center;
  padding: 14px 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2000;
  pointer-events: none;
}

.fail-bar {
  position: fixed;
  top: 100px;
  left: 0;
  width: 100%;
  background: rgba(220, 50, 50, 0.9);
  color: #fff;
  text-align: center;
  padding: 14px 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2000;
  pointer-events: none;
}

.success-bar.show,
.fail-bar.show {
  opacity: 1;
}

/* dividers between sections */
.our-services-section,
.who-we-are-section,
.portfolio-section,
.quote-section {
  border-top: 1px solid rgba(64, 224, 208, 0.08);
  padding-bottom: 4rem;
}

/* ── What We Do ── */
.our-services-content {
  padding: 1rem 2rem 2rem;
  text-align: center;
}

.our-services-content p {
  margin: 1rem auto;
  max-width: 800px;
  color: rgba(64, 224, 208, 0.5);
  font-size: 20px;
  line-height: 2;
  letter-spacing: 0.5px;
  text-align: center;
}

.our-services-content h2 {
  color: var(--teal);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  font-size: 24px;
  letter-spacing: 4px;
  text-transform: uppercase;
}

/* Services-section */
.services-content {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  padding: 0.2rem;
  margin: 0 auto;
  width: 90%;
  box-sizing: border-box;
  grid-template-columns: repeat(3, 1fr);
}

.service-card {
  background: var(--bg-card);
  border: 1px solid rgba(64, 224, 208, 0.15);
  padding: 2rem;
  text-align: center;
  transition:
    border-color 0.3s,
    background 0.3s,
    transform 0.3s;
  color: var(--teal);
  min-height: 400px;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  cursor: pointer;
}

.service-card-image {
  max-width: 400px;
  height: auto;
  margin: 0 auto;
}

/* ── Who We Are ── */
.who-we-are-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  padding: 2rem;
  margin: 0 auto;
  width: 90%;
  max-width: 370px;
}

.person-card {
  background: var(--bg-card);
  border: 1px solid rgba(64, 224, 208, 0.15);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition:
    border-color 0.3s,
    background 0.3s,
    transform 0.3s;
  color: var(--teal);
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.person-card:hover,
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(64, 224, 208, 0.5);
  background: rgba(64, 224, 208, 0.03);
  box-shadow: 0 0 24px rgba(64, 224, 208, 0.08);
}

.person-card,
.service-card h3 {
  margin: 0 0 0.5rem;
  font-size: 18px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--teal);
}

.person-card,
.service-card p {
  margin: 0;
  font-size: 14px;
  letter-spacing: 2px;
  color: rgba(64, 224, 208, 0.35);
  text-transform: uppercase;
}

.person-card-image {
  max-width: 160px;
  height: auto;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: block;
  border: 1px solid rgba(64, 224, 208, 0.2);
  filter: drop-shadow(0 0 12px rgba(64, 224, 208, 0.2));
}

/* ── Modal Popups ── */
.modal-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 8, 16, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 1;
  transition: opacity 0.3s;
  backdrop-filter: blur(4px);
}

.modal-popup.hidden {
  display: none;
  opacity: 0;
}

.modal-popup-content {
  background: var(--bg-card2);
  color: var(--teal);
  border: 1px solid rgba(64, 224, 208, 0.25);
  padding: 2.5rem;
  max-width: 700px;
  width: 90%;
  position: relative;
  font-family: var(--font-mono);
}

.modal-popup-content h2 {
  font-size: 24px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: #000;
  -webkit-text-stroke: 1px var(--teal);
  text-shadow: 0 0 16px rgba(64, 224, 208, 0.5);
  margin-bottom: 4px;
}

.modal-popup-content h3 {
  font-size: 20px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(64, 224, 208, 0.45);
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.modal-popup-content h4 {
  font-size: 16px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(64, 224, 208, 0.35);
  font-weight: 400;
  margin: 1.25rem 0 0.5rem;
}

.modal-popup-content ul {
  padding-left: 1.25rem;
  margin: 0;
}

.modal-popup-content ul li {
  font-size: 18px;
  color: rgba(64, 224, 208, 0.6);
  letter-spacing: 0.5px;
  line-height: 2;
}

.modal-popup-content p {
  font-size: 18px;
  color: rgba(64, 224, 208, 0.5);
  line-height: 1.9;
  letter-spacing: 0.5px;
  margin-top: 0.5rem;
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: 1px solid rgba(64, 224, 208, 0.2);
  border-radius: 0;
  font-size: 1.2rem;
  cursor: pointer;
  color: rgba(64, 224, 208, 0.5);
  padding: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    color 0.2s,
    border-color 0.2s;
  font-family: var(--font-mono);
}

.modal-close-btn:hover {
  color: var(--teal);
  border-color: var(--teal);
}

/* ── Portfolio / Marquee ── */
.portfolio-section {
  padding: 4rem 0;
}

.marquee-section {
  overflow: hidden;
  width: 100%;
  padding: 2rem 0;
  /* border-bottom: 1px solid var(--teal-ghost); */
}

.marquee-track {
  display: flex;
  width: max-content;
}

.marquee-content {
  display: flex;
  gap: 1.5rem;
  padding-right: 1.5rem;
  animation: marquee 20s linear infinite;
  flex-shrink: 0;
}

.marquee-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--teal-ghost);
  border-radius: 10px;
  padding: 1.25rem 2rem;
  min-width: 200px;
  min-height: 120px;
  transition: border-color 0.2s ease;
  text-decoration: none;
}

.marquee-card:hover {
  border-color: var(--teal-dim);
}

.marquee-card img {
  height: 150px;
  width: auto;
  opacity: 0.1;
  transition: opacity 0.2s ease;
}

.marquee-card:hover img {
  opacity: 1;
}

.quote-section {
  text-align: center;
  padding: 3rem 0;
}

.quote-button {
  display: inline-block;
  padding: 10px 20px;
  border: solid 2px var(--teal-dim);
  border-radius: 50px;
  text-align: center;
  font-family: var(--font-body);
  color: var(--teal-dim);
  font-size: 20px;
  text-transform: uppercase;
}

.quote-button:hover {
  color: var(--teal);
  border-color: var(--teal);
}

/* Pause on hover */
.marquee-track:hover .marquee-content {
  animation-play-state: paused;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

/* ── Contact form ── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 360px;
  margin: 0 auto;
}

.contact-form label {
  font-size: 20px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(64, 224, 208, 0.4);
  font-weight: 400;
}

.contact-form input[type="text"],
.contact-form textarea {
  padding: 0.75rem;
  border: 1px solid rgba(64, 224, 208, 0.2);
  border-radius: 0;
  font-size: 14px;
  font-family: var(--font-mono);
  width: 100%;
  box-sizing: border-box;
  height: 2.5rem;
  background: var(--bg-card);
  color: var(--teal);
  outline: none;
  transition: border-color 0.2s;
  letter-spacing: 1px;
}

.contact-form input[type="text"]:focus,
.contact-form textarea:focus {
  border-color: var(--teal);
}

.select {
  padding: 0.75rem;
  border: 1px solid rgba(64, 224, 208, 0.2);
  border-radius: 0;
  font-size: 12px;
  font-family: var(--font-mono);
  width: 100%;
  box-sizing: border-box;
  min-height: 2.5rem;
  background: var(--bg-card);
  color: rgba(64, 224, 208, 0.6);
  outline: none;
  transition: border-color 0.2s;
}

.select:focus {
  border-color: var(--teal);
}

.contact-form textarea {
  min-height: 200px;
  height: auto;
  resize: vertical;
}

.send-btn {
  align-self: flex-end;
  padding: 0.6rem 1.5rem;
  background: transparent;
  color: var(--teal);
  border: 1px solid rgba(64, 224, 208, 0.4);
  border-radius: 0;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition:
    background 0.25s,
    border-color 0.25s;
}

.send-btn:hover {
  background: rgba(64, 224, 208, 0.08);
  border-color: var(--teal);
}

/* ── Footer ── */
footer {
  text-align: center;
  padding: 1.5rem 1rem;
  background: rgba(3, 8, 16, 0.95);
  border-top: 1px solid rgba(64, 224, 208, 0.08);
  margin-top: auto;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.footer-content p {
  margin: 0;
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(64, 224, 208, 0.2);
}

.social-icons {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  background: transparent;
  border: 1px solid rgba(64, 224, 208, 0.2);
  border-radius: 50%;
  color: rgba(64, 224, 208, 0.4);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.social-link:hover {
  background: rgba(64, 224, 208, 0.08);
  color: var(--teal);
  border-color: var(--teal);
  transform: scale(1.1);
}

.ip-button {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 500;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  padding: 15px 20px !important;
  border: solid 2px var(--teal-ghost) !important;
  border-radius: 50px !important;
  color: var(--teal-dim);
  font-family: var(--font-body);
  text-transform: uppercase;
  background: var(--bg-card);
  cursor: pointer;
  transition:
    color 0.2s,
    border-color 0.2s;
  height: 60px;
}

.ip-button:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* ── Generic buttons ── */
button {
  padding: 0.6rem 1.5rem;
  cursor: pointer;
  background: transparent;
  border: 1px solid rgba(64, 224, 208, 0.3);
  color: var(--teal);
  font-family: var(--font-mono);
  letter-spacing: 2px;
}

.close-btn {
  background: none;
  border: 1px solid rgba(64, 224, 208, 0.2);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(64, 224, 208, 0.5);
  transition:
    color 0.2s,
    border-color 0.2s;
}

.close-btn:hover {
  color: var(--teal);
  border-color: var(--teal);
}

.transition {
  opacity: 0;
  transform: translateX(var(--offset));
  transition: all 3s ease-in;
}

.transition.show {
  opacity: 1;
  transform: translateX(0);
}

/* ── Keyframes ── */
@keyframes drift {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(-400px);
    opacity: 0;
  }
}

@keyframes scanline {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(420px);
  }
}

@keyframes flicker {
  0%,
  100% {
    opacity: 0.9;
  }
  45% {
    opacity: 0.4;
  }
  55% {
    opacity: 0.7;
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

@keyframes blink {
  0%,
  49%,
  100% {
    opacity: 1;
  }
  50%,
  99% {
    opacity: 0;
  }
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Scaling */
/* ── Mobile (max 768px) ── */
@media (max-width: 768px) {
  /* Hero */
  .welcome-logo {
    font-size: 48px;
    letter-spacing: 6px;
  }

  .tags {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .section-title {
    font-size: 24px;
    letter-spacing: 3px;
  }

  /* Services cards — stack vertically */
  .services-content {
    flex-direction: column;
    width: 90%;
  }

  .service-card {
    min-height: 250px;
  }

  /* Who we are — already stacks, just fix width */
  .who-we-are-content {
    max-width: 100%;
  }

  .person-card {
    min-height: 250px;
  }

  /* Modal */
  .modal-popup-content {
    padding: 1.5rem 1rem;
    max-width: 80%;
    padding: 1rem;
  }

  .modal-popup-content h2 {
    font-size: 16px;
    letter-spacing: 2px;
  }

  .modal-popup-content h3 {
    font-size: 14px;
  }

  .modal-popup-content p,
  .modal-popup-content li {
    font-size: 14px;
    line-height: 1.6;
  }

  /* Marquee */
  .marquee-card {
    min-width: 140px;
    min-height: 80px;
    padding: 0.75rem 1rem;
  }

  .marquee-card img {
    height: 60px;
  }

  /* Quote button */
  .quote-button {
    font-size: 14px;
    padding: 8px 16px;
  }

  /* IP button */
  .ip-button {
    bottom: 1rem;
    right: 1rem;
    font-size: 11px;
    padding: 10px 14px;
    height: auto;
  }

  /* Contact form — already handles this but tighten it */
  .contact-form {
    width: 90%;
  }

  .contact-form label {
    font-size: 14px;
  }

  /* Footer */
  .footer-content {
    gap: 0.75rem;
  }
}

/* ── Tablet (768px - 1200px) ── */
@media (min-width: 768px) and (max-width: 1199px) {
  .welcome-logo {
    font-size: 64px;
  }

  .section-title {
    font-size: 32px;
  }

  /* Services — 2 columns on tablet, wrap third below */
  .services-content {
    flex-wrap: wrap;
    width: 90%;
  }

  .service-card {
    flex: 1 1 calc(50% - 1rem); /* two per row */
    min-height: 300px;
  }

  /* Who we are — 2 columns on tablet */
  .who-we-are-content {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
  }

  /* Modal */
  .modal-popup-content {
    width: 80%;
    padding: 2rem;
  }

  /* IP button */
  .ip-button {
    font-size: 12px;
    padding: 12px 16px;
    height: auto;
  }
}

@media (min-width: 768px) {
  .contact-form {
    width: 700px;
  }
}

@media (min-width: 1200px) {
  .contact-form {
    width: 750px;
    max-width: 90%;
  }
}

@media (min-width: 1200px) {
  .who-we-are-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 1100px;
    margin: 0 auto;
  }
}
