/* -----------------------------------
   Mac Imaana — Contact Page (Signal Motion)
------------------------------------ */

:root {
  --bg-dark: #0b0b0f;
  --bg-deep: #111522;
  --accent: #33b1ff;
  --accent2: #9ae6ff;
  --text: #f2f4f8;
  --muted: #8a93a6;
}

/* ===== Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text);
  overflow-x: hidden;
  background: var(--bg-dark);
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  
}

/* ===== Signal Background ===== */
.signal-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -2;
  background: radial-gradient(circle at center, #0b0b0f 20%, #111522 100%);
}

/* Animated light waves */
.wave {
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background: radial-gradient(circle, rgba(51, 177, 255, 0.1) 0%, transparent 70%);
  animation: pulse 8s infinite ease-in-out;
  opacity: 0.4;
  mix-blend-mode: screen;
  transform-origin: center;
}

.wave1 {
  animation-delay: 0s;
}
.wave2 {
  animation-delay: 3s;
  background: radial-gradient(circle, rgba(154, 230, 255, 0.08) 0%, transparent 70%);
}
.wave3 {
  animation-delay: 6s;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.5;
  }
}

/* ===== Hero ===== */
.contact-hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 2em;
  position: relative;
  z-index: 2;
}

.contact-hero h1 {
  font-size: 3.5rem;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  animation: fadeIn 2s ease;
}

.contact-hero h1::after {
  content: "";
  display: block;
  width: 120px;
  height: 2px;
  margin: 1.5rem auto 0;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: pulseLine 4s infinite ease-in-out;
}

@keyframes pulseLine {
  0%, 100% { opacity: 0.3; width: 100px; }
  50% { opacity: 1; width: 160px; }
}

.contact-hero p {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.7;
  animation: fadeIn 2.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Contact Form ===== */
.contact-form {
  width: 100%;
  max-width: 600px;
  margin: 0 auto; /* centers horizontally */
  padding: 4em 2em;
  display: flex;
  flex-direction: column;
  gap: 1.5em;
  text-align: left; /* keep field labels left-aligned for readability */
  z-index: 2;
  position: relative;
}


.contact-form::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(51,177,255,0.08), transparent 70%);
  animation: floatGlow 10s ease-in-out infinite alternate;
  z-index: -1;
  filter: blur(60px);
}

@keyframes floatGlow {
  0% { transform: translate(-5%, -5%) scale(1); opacity: 0.7; }
  100% { transform: translate(5%, 5%) scale(1.1); opacity: 0.4; }
}

.form-group label {
  display: block;
  color: var(--muted);
  margin-bottom: 0.5em;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  padding: 0.9em 1em;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 10px rgba(51, 177, 255, 0.3);
}

/* ===== Button ===== */
.transmit-btn {
  margin-top: 1em;
  padding: 0.9em 2em;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  letter-spacing: 1px;
}

.transmit-btn:hover {
  background: var(--accent);
  color: #0b0b0f;
  box-shadow: 0 0 25px rgba(51, 177, 255, 0.4);
}

/* ===== Footer ===== */
.contact-footer {
  text-align: center;
  padding: 4em 2em;
  color: var(--muted);
  font-size: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  width: 100%;
  z-index: 2;
  position: relative;
}

.contact-footer a {
  color: var(--accent);
  text-decoration: none;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .contact-hero h1 {
    font-size: 2.5rem;
  }
  .contact-hero p {
    font-size: 1rem;
  }
}


/* ===== Signal Command Bar ===== */
.signal-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 3em;
  background: rgba(15, 18, 25, 0.45);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 100;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.signal-nav:hover {
  background: rgba(18, 21, 29, 0.7);
  box-shadow: 0 8px 30px rgba(77, 181, 255, 0.1);
}

/* ===== Left Side ===== */
.nav-left {
  display: flex;
  align-items: center;
  gap: 0.7em;
}

.brand {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.brand:hover {
  color: var(--accent);
  text-shadow: 0 0 6px var(--accent);
}

/* ===== Signal Dot ===== */
.signal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulseDot 3s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.5); opacity: 1; }
}

/* ===== Hamburger ===== */
.hamburger {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 32px;
  height: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 3000;
  transition: transform 0.4s ease;
}

.hamburger span {
  height: 3px;
  width: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: all 0.4s ease;
  transform-origin: center;
}



/* Morph when active */
.hamburger.active span:nth-child(1) {
  transform: translateY(13px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-13px) rotate(-45deg);
}

/* Hover glow */
.hamburger:hover span {
  background:  var(--accent);
  box-shadow: 0 0 8px var(--accent);
  transition: all 0.25s ease;
}

/* Optional: slight shrink while active */
.hamburger.active {
  transform: scale(0.95);
}

/* ===== Full-Screen Menu Overlay ===== */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 16, 0.93);
  backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1050;
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ===== Menu Content ===== */
.menu-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8em;
}

.menu-content a {
  color: #bfc3c8;
  font-size: 1.5rem;
  text-decoration: none;
  letter-spacing: 0.8px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease forwards;
}

.menu-overlay.active .menu-content a {
  animation: fadeUp 0.6s ease forwards;
}

.menu-overlay.active .menu-content a:nth-child(1) { animation-delay: 0.15s; }
.menu-overlay.active .menu-content a:nth-child(2) { animation-delay: 0.3s; }
.menu-overlay.active .menu-content a:nth-child(3) { animation-delay: 0.45s; }
.menu-overlay.active .menu-content a:nth-child(4) { animation-delay: 0.6s; }
.menu-overlay.active .menu-content a:nth-child(5) { animation-delay: 0.75s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.menu-content a:hover {
  color: var(--accent);
  text-shadow: 0 0 8px var(--accent);
}

/* ===== Responsive ===== */
@media (max-width: 700px) {
  .signal-nav {
    width: 92%;
    height: 56px;
    padding: 0 1.4em;
  }
  .brand {
    font-size: 0.95rem;
  }
}
/* FOOTER */
.site-footer {
  background: #0b0d10;
  padding: 60px 0 30px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: #ccc;
  font-family: 'Inter', sans-serif;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
}

.footer-brand h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.footer-tagline {
  color: var(--accent, #64aaff);
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.footer-desc {
  font-size: 14px;
  color: #999;
  line-height: 1.6;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 12px;
}

.footer-links nav a {
  display: block;
  color: #999;
  font-size: 14px;
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.footer-links nav a:hover {
  color: var(--accent, #64aaff);
}

.footer-contact p a {
  color: #ccc;
  font-size: 14px;
  text-decoration: none;
}

.footer-contact p a:hover {
  color: var(--accent, #64aaff);
}

.socials {
  margin-top: 12px;
}

.socials a {
  display: inline-block;
  margin-right: 10px;
  font-size: 16px;
  color: #999;
  transition: color 0.3s ease, transform 0.3s ease;
}

.socials a:hover {
  color: var(--accent, #64aaff);
  transform: translateY(-2px);
}

/* Bottom Bar */
.footer-bottom {
  text-align: center;
  margin-top: 50px;
  font-size: 13px;
  color: #777;
  border-top: 1px solid rgba(255,255,255,0.03);
  padding-top: 15px;
}

/* Responsive */
@media (max-width: 600px) {
  .footer-grid {
    text-align: center;
  }

  .socials a {
    margin: 0 6px;
  }
}


/* ============================================
   MOBILE OPTIMIZATION — Contact Page
   ============================================ */
@media (max-width: 768px) {

  /* Hero adjustments */
  .contact-hero {
    height: auto;
    padding: 7em 1.5em 4em;
  }

  .contact-hero h1 {
    font-size: 2.2rem;
    line-height: 1.2;
  }

  .contact-hero p {
    font-size: 1rem;
    line-height: 1.6;
    margin-top: 0.8rem;
  }

  /* Contact form layout */
  .contact-form {
    padding: 3em 1.5em;
    max-width: 95%;
    gap: 1.2em;
  }

  .form-group label {
    font-size: 0.9rem;
  }

  .form-group input,
  .form-group textarea {
    font-size: 0.95rem;
    padding: 0.85em 1em;
  }

  .transmit-btn {
    width: 100%;
    padding: 1em;
    font-size: 1rem;
  }

  /* Navbar adjustments */
  .signal-nav {
    padding: 0 1.4em;
    height: 60px;
  }

  .brand {
    font-size: 0.95rem;
  }

  /* Prevent background waves from causing scroll on mobile */
.signal-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -2;
  background: radial-gradient(circle at center, #0b0b0f 20%, #111522 100%);
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100vh;
}

.wave {
  position: absolute;
  width: 150%;
  height: 150%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(51, 177, 255, 0.1) 0%, transparent 70%);
  animation: pulse 8s infinite ease-in-out;
  opacity: 0.4;
  mix-blend-mode: screen;
  transform-origin: center;
}

  /* Menu overlay links larger and clearer */
  .menu-content a {
    font-size: 1.3rem;
  }

  /* Footer layout stacking */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .footer-brand h2 {
    font-size: 1.3rem;
  }

  .footer-desc {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .footer-links nav a,
  .footer-contact p a {
    font-size: 0.9rem;
  }

  .footer-bottom {
    font-size: 0.8rem;
  }
}

@media (max-width: 420px) {
  .contact-hero h1 {
    font-size: 1.8rem;
  }

  .contact-hero p {
    font-size: 0.9rem;
  }

  .transmit-btn {
    font-size: 0.9rem;
  }

  .footer-grid {
    gap: 20px;
  }
}
/* --- Navbar Mobile Drift Fix --- */
@supports (-webkit-touch-callout: none) {
  body {
    position: relative;
    overflow-x: hidden;
  }

  .signal-nav {
    position: sticky; /* stays in place but scrolls naturally */
    top: 0;
    left: 0;
    transform: translate3d(0, 0, 0); /* fixes GPU shift */
    will-change: transform;
    backface-visibility: hidden;
  }

  .hamburger {
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
  }
}
/* === Stop page from moving when menu or nav is active === */
body.menu-open {
  position: fixed;
  width: 100%;
  overflow: hidden;
  touch-action: none;
}
