@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700&family=Share+Tech+Mono&display=swap');

/* ==== CSS VARIABLES ==== */
:root {
  --footer-height: 6rem; /* adjust if footer height changes */
}

.site-wrapper {
  padding-bottom: var(--footer-height);
}

/* ==== RESET & LAYOUT ==== */
html {
  height: 100%;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;    /* fallback */
  min-height: 100dvh;   /* dynamic viewport for mobile */
  height: 100%;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #10001f 0%, #2e004f 100%);
  color: #e0e0ff;
  font-family: 'Share Tech Mono', 'Orbitron', Arial, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

main, .panels {
  flex: 1 0 auto;
}

.site-wrapper {
  flex: 1 0 auto;          /* grow to push footer down */
  min-height: 0;           /* allow inner overflow */
  padding-bottom: var(--footer-height);
}

/* ==== NAVIGATION ==== */
.main-nav, .cyberpunk-nav {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1999;
  background: linear-gradient(90deg, #1b002a 60%, #38006e 100%);
  box-shadow: 0 2px 24px #ff00ff44, 0 1px 0 #00ffe7a0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.3em 2vw 0.3em 1vw;
}

.nav-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 42px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1200;
  margin-left: 1em;
}

.hamburger span {
  display: block;
  width: 30px;
  height: 4px;
  margin: 4px 0;
  background: linear-gradient(90deg, #00ffe7 0%, #ff00ff 100%);
  border-radius: 3px;
  transition: 0.3s;
}

.hamburger.open span:nth-child(1) { transform: rotate(43deg) translateY(10px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-43deg) translateY(-10px); }

.nav-links, .cyberpunk-nav ul {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  transition: max-height 0.28s cubic-bezier(.51,.92,.24,1.18), opacity 0.2s;
}

.nav-links li, .cyberpunk-nav li {
  margin: 0;
  padding: 0;
}

.nav-links li a, .cyberpunk-nav a {
  display: inline-block;
  font-family: 'Orbitron', 'Share Tech Mono', Arial, sans-serif;
  font-size: 1.14rem;
  text-decoration: none;
  color: #00ffe7;
  text-shadow: 0 0 10px #ff00ff99, 0 0 2px #00ffe7a5;
  letter-spacing: 0.09em;
  padding: 0.38em 1.3em;
  border-radius: 0.9em;
  border: 2px solid transparent;
  background: none;
  transition: color 0.15s, background 0.18s, border-color 0.17s, box-shadow 0.18s;
}

.nav-links li a:hover,
.nav-links li a:focus,
.cyberpunk-nav a:hover,
.cyberpunk-nav a:focus {
  color: #191940;
  background: linear-gradient(90deg, #00ffe7 10%, #ff00ff 90%);
  border-color: #ff00ff;
  box-shadow: 0 0 16px #00ffe7bb, 0 0 24px #ff00ff99;
  outline: none;
}

.nav-links li a.active,
.cyberpunk-nav a.active {
  color: #191940;
  background: linear-gradient(90deg, #00ffe7 10%, #ff00ff 90%);
  border-color: #ff00ff;
  box-shadow: 0 0 16px #00ffe7bb, 0 0 24px #ff00ff99;
}

.footer.cyberpunk-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 3000; /* your original depth above the modals */
  flex-shrink: 0;
  background: linear-gradient(90deg, #160026 65%, #300044 100%);
  color: #00ffe7;
  text-align: center;
  padding: 2rem 1rem 1rem 1rem;
  font-family: 'Orbitron', Arial, sans-serif;
  font-size: 1.04rem;
  border-top: 2px solid #ff00ff44;
  box-shadow: 0 -2px 24px #00ffe744;
}

/* ==== FOOTER CONTACT ==== */
.footer-contact {
  margin-top: 0.6em; /* same spacing as .footer-copy */
}

.footer-contact a {
  color: #ff69ff;
  margin: 0 0.5em;
  text-decoration: none;
  font-family: 'Share Tech Mono', Arial, sans-serif;
  transition: color 0.17s;
}

.footer-contact a:hover,
.footer-contact a:focus {
  color: #00ffe7;
  outline: none;
}

/* ==== NAV: Tablet breakpoint ==== */
@media (max-width: 900px) {
  .main-nav, .cyberpunk-nav { padding: 0.15em 1vw; }
  .nav-links, .cyberpunk-nav ul { gap: 0.9rem; }
  .nav-brand { font-size: 1.12rem; }
  .nav-links li a, .cyberpunk-nav a { font-size: 1rem; padding: 0.3em 0.7em; }
}

/* ==== NAV + FOOTER: Mobile breakpoint ==== */
@media (max-width: 700px) {
  /* Footer adjustments */
  .footer.cyberpunk-footer {
    /*font-size: 0.97rem;
    padding: 1.3rem 0.7rem 0.7rem 0.7rem;*/
    padding: 1rem 0.5rem;      /* reduce overall padding */
    font-size: 0.9rem;         /* smaller text */
  }

  /* Nav adjustments */
  .main-nav, .cyberpunk-nav { flex-wrap: wrap; padding: 0.09em 1vw; }
  .nav-brand { font-size: 1.05rem; max-width: 58vw; }
  .hamburger { display: flex; }

  .nav-links, .cyberpunk-nav ul {
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 1vw;
    right: 1vw;
    background: #140034e0;
    border-radius: 1em;
    padding: 1em 0.8em;
    margin-top: 0.2em;
    box-shadow: 0 8px 26px #00ffe7cc, 0 0 20px #ff00ff99;
    display: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s;
  }
  .nav-links.show, .cyberpunk-nav ul.open {
    display: flex;
    opacity: 1;
    pointer-events: auto;
    animation: fadeIn 0.22s;
  }
  .nav-links li, .cyberpunk-nav li { width: 100%; }
  .nav-links li a, .cyberpunk-nav a {
    width: 100%;
    text-align: left;
    padding: 0.67em 1.2em;
  }

  /* Panels & banner tweaks */
  .panels { grid-template-columns: 1fr; padding: 1rem; }
  .banner-overlay h1 {
    font-size: 1.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .banner-overlay .subtitle { font-size: 1.01rem; display: block; }
}

/* ==== BANNER ==== */
.cyberpunk-banner {
  position: relative;
  width: 100%;
  background: #12003a;
  height: 220px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 64px #00f6ff44, 0 0 0 #ff00ff00;
}

.cyberpunk-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  filter: blur(1px) brightness(0.9) saturate(1.5);
}

.banner-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  text-align: center;
}

.banner-overlay h1 {
  font-size: 2.8rem;
  color: #00ffe7;
  text-shadow: 0 0 12px #00ffe7, 0 0 32px #ff00ff;
  letter-spacing: 0.12em;
  font-family: 'Orbitron', 'Share Tech Mono', Arial, sans-serif;
  margin-bottom: 0.2em;
}

.banner-overlay .subtitle {
  font-size: 1.2rem;
  color: #ff69ff;
  text-shadow: 0 0 4px #fff, 0 0 12px #ff69ff, 0 0 20px #00ffe7;
  font-family: 'Share Tech Mono', Arial, sans-serif;
}

/* ==== PANELS ==== */
.panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
  padding: 2rem 2vw;
}

.panel {
  background: rgba(20,10,38,0.96);
  border-radius: 1.2rem;
  box-shadow: 0 0 18px #00ffe777, 0 0 4px #ff00ff44;
  padding: 2rem 1.5rem 1rem 1.5rem;
  min-height: 220px;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 2px solid transparent;
  border-image: linear-gradient(120deg, #00ffe7 30%, #ff00ff 90%) 1;
}
.panel:hover {
  transform: translateY(-6px) scale(1.025);
  box-shadow: 0 0 48px #ff00ffbb, 0 0 12px #00ffe7aa;
  border-color: #00ffe7;
}
.panel h2 {
  color: #00ffe7;
  font-size: 1.4rem;
  margin-top: 0;
  font-family: 'Orbitron', Arial, sans-serif;
  letter-spacing: 0.08em;
}
.panel ul {
  margin: 1rem 0 0 1.2rem;
}
.panel button {
  background: linear-gradient(90deg, #00ffe7 10%, #ff00ff 90%);
  color: #191940;
  border: none;
  border-radius: 1rem;
  padding: 0.7em 1.3em;
  margin-top: 1rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 0 10px #00ffe7aa, 0 0 8px #ff00ff99;
  text-shadow: 0 0 4px #fff;
  font-family: 'Orbitron', Arial, sans-serif;
  letter-spacing: 0.08em;
  font-size: 1em;
  transition: background 0.18s, color 0.18s;
}
.panel button:hover {
  background: linear-gradient(90deg, #ff00ff 10%, #00ffe7 90%);
  color: #fff;
}

/* ==== MODALS ==== */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,40,0.92);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.4s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-content {
  background: #18182a;
  border-radius: 1.3rem;
  padding: 2rem;
  min-width: 320px;
  box-shadow: 0 0 40px #00ffe7aa, 0 0 20px #ff00ff88;
  color: #fff;
  position: relative;
  border: 2px solid #ff00ff;
}
.close {
  position: absolute;
  top: 1rem; right: 1rem;
  font-size: 2.2rem;
  cursor: pointer;
  color: #ff00ff;
  font-weight: bold;
}

/* ==== FORMS ==== */
input, select, textarea {
  background: #130022;
  color: #00ffe7;
  border: 1.2px solid #ff00ff99;
  border-radius: 0.7em;
  padding: 0.7em;
  font-size: 1em;
  margin: 0.3em 0 0.9em;
  width: 100%;
  font-family: 'Share Tech Mono', 'Orbitron', Arial, sans-serif;
}
input[type="checkbox"] {
  width: auto;
  accent-color: #ff00ff;
}
label {
  color: #e0e0ff;
  font-size: 1em;
  margin-bottom: 0.4em;
  display: block;
}
form button[type="submit"] {
  background: linear-gradient(90deg, #ff00ff 0%, #00ffe7 100%);
  color: #111;
  border: none;
  border-radius: 1em;
  padding: 0.6em 2em;
  margin-top: 1em;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 0 10px #00ffe7aa;
  letter-spacing: 0.09em;
  transition: background 0.22s, color 0.12s;
}
form button[type="submit"]:hover {
  background: linear-gradient(90deg, #00ffe7 0%, #ff00ff 100%);
  color: #fff;
}

/* ==== FOOTER LINKS ==== */
.footer-links a {
  color: #ff69ff;
  margin: 0 0.5em;
  text-decoration: none;
  font-family: 'Share Tech Mono', Arial, sans-serif;
  transition: color 0.17s;
}
.footer-links a:hover {
  color: #00ffe7;
}
.footer-copy {
  margin-top: 0.6em;
  color: #b3ffe7;
  font-size: 0.98rem;
}
