/* ===============================
   RESET AND BASE
=============================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

/* ===============================
   VIDEO BACKGROUND
=============================== */
#background-video {
  position: fixed;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.6);
}

/* ===============================
   HEADER
=============================== */

/* ===============================
   HEADER SCROLL HIDE + FADE EFFECT
=============================== */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  padding: 10px 20px;
  z-index: 20;
  display: flex;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.site-header.hidden {
  transform: translateY(-100%);
  opacity: 0;
}


.header-content {
  display: flex;
  align-items: center;
  max-width: 900px;
  width: 100%;
}

.logo {
  height: 40px;
  width: auto;
  margin-right: 12px;
}

.brand-name {
  font-size: 1.2rem;
  color: white;
  font-weight: bold;
}

/* ===============================
   HAMBURGER MENU — FULL-WIDTH DROPDOWN
=============================== */

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  margin-right: 12px;
  z-index: 25;
}

.menu-toggle .bar {
  height: 3px;
  width: 100%;
  background-color: #00bcd4;
  border-radius: 5px;
  transition: all 0.3s ease;
}

/* Hamburger active animation (X shape) */
.menu-toggle.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Desktop Navigation */
.nav-menu {
  display: flex;
  gap: 20px;
  margin-left: auto;
}

.nav-menu a {
  color: #00bcd4;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a:focus {
  color: white;
}

/* =========================================
   MOBILE MENU — SLIDE DOWN FROM TOP
========================================= */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    align-items: center;
    justify-content: start;
    overflow: hidden;
    gap: 25px;
    padding-top: 80px;
    transition: height 0.4s ease;
    z-index: 15;
  }

  .nav-menu.open {
    height: 100vh; /* expands full height */
  }

  .nav-menu a {
    font-size: 1.3rem;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }

  .nav-menu.open a {
    opacity: 1;
    transform: translateY(0);
  }
}



/* ===============================
   CONTACT FORM CONTAINER
=============================== */
.contact-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 60px 20px 60px;
  color: white;
  text-align: center;
  animation: fadeInUp 1.2s ease-out both;
  overflow-y: auto;
}

/* Fade-in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===============================
   FORM STYLES
=============================== */
.contact-form h1 {
  margin-bottom: 30px;
  font-size: 2rem;
}

.contact-form form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
  width: 100%;
  max-width: 750px; /* wider form */
  background: rgba(0, 0, 0, 0.6);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,188,212,0.6);
}

/* Make textareas or full-width fields span both columns */
.contact-form textarea,
.contact-form .full-width {
  grid-column: 1 / -1;
}

.contact-form label {
  font-weight: 600;
  text-align: left;
  color: #00bcd4;
  margin-bottom: 3px;
  display: block;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 5px;
  font-size: 0.95rem;
  background: #222;
  color: white;
  font-family: inherit;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #bbb;
}

/* Auto-expand Textarea */
.contact-form textarea {
  min-height: 100px;
  max-height: 200px;
  resize: none;
  overflow: hidden;
  transition: height 0.2s ease;
}

/* CAPTCHA AREA */
label {
  color: #00bcd4;
  display: block;
  margin-top: 15px;
  font-weight: bold;
}

input[type="text"]#captcha {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  font-size: 1rem;
  border-radius: 5px;
  border: none;
}

/* ===============================
   SUBMIT BUTTON
=============================== */
.contact-form button {
  grid-column: 1 / -1;
  padding: 12px;
  background-color: #00bcd4;
  border: none;
  border-radius: 5px;
  color: white;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover,
.contact-form button:focus {
  background-color: #0097a7;
  outline: none;
}

/* ===============================
   HONEYPOT FIELD (HIDDEN)
=============================== */
.honeypot {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ===============================
   FOOTER
=============================== */
.site-footer {
  text-align: center;
  color: white;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 15px 20px;
  font-size: 0.9rem;
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: 10;
  user-select: none;
}

.site-footer a {
  color: #00bcd4;
  text-decoration: none;
  margin: 0 8px;
  transition: color 0.3s ease;
}

.site-footer a:hover,
.site-footer a:focus {
  color: white;
  outline: none;
}

/* ===============================
   ACCESSIBILITY FOCUS STYLES
=============================== */
input:focus,
textarea:focus,
button:focus {
  outline: 2px solid #00bcd4;
  outline-offset: 2px;
}


/* ===============================
   RESPONSIVE DESIGN (UPDATED)
=============================== */
@media (max-width: 700px) {
  .contact-form {
    padding: 100px 20px 60px; /* more space under header */
  }

  .contact-form form {
    grid-template-columns: 1fr;
    padding: 25px 18px;
    max-height: none;
  }

  .site-header .header-content {
    justify-content: center;
  }

  .contact-form h1 {
    margin-top: 20px; /* adds extra spacing before the form title */
  }
}


/* ===============================
   POPUP MODAL (THANK YOU)
=============================== */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.4s ease-in-out;
}

.popup.hidden {
  display: none;
}

.popup.show {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.popup-content {
  background: #111;
  color: white;
  padding: 30px 40px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 0 15px rgba(0, 188, 212, 0.7);
  max-width: 400px;
  width: 90%;
  animation: fadeInUp 0.5s ease-out;
}

.popup-content h2 {
  color: #00bcd4;
  margin-bottom: 10px;
}

.popup-content p {
  margin-bottom: 10px;
}

.popup-content button {
  background: #00bcd4;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.popup-content button:hover {
  background: #0097a7;
}

@keyframes fadeOut {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.95); }
}

/* ===== PRIVACY POPUP ===== */
.privacy-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  overflow-y: auto; /* allow popup scrolling */
  -webkit-overflow-scrolling: touch;
}

.privacy-popup.show {
  display: flex;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.privacy-content {
  position: relative; /* enables the X button’s absolute position inside it */
  background: rgba(15, 17, 18, 0.95);
  color: #fff;
  padding: 40px 25px 25px; /* extra top padding for spacing under X */
  border-radius: 12px;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
  line-height: 1.6;
}

.close-privacy {
  position: absolute;
  top: 25px; /* move down from the top */
  right: 25px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  transition: color 0.3s ease;
}

.close-privacy:hover {
  color: #00bcd4;
}

.privacy-content h2,
.privacy-content h3 {
  color: #00bcd4;
  margin-top: 15px;
}

.privacy-content a {
  color: #00bcd4;
}

.privacy-content ul {
  padding-left: 20px;
}

/* Move close X lower on mobile */
@media (max-width: 768px) {
  .close-privacy {
    top: 55px; /* increased distance from top */
    right: 20px;
    font-size: 2.2rem; /* slightly larger for touch targets */
  }

  .privacy-content {
    padding-top: 70px; /* ensures text doesn’t overlap the X */
  }
}


/* ===============================
   RESPONSIVE + NO SIDE SCROLL FIXES
=============================== */

/* Global protection */
html, body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
  overscroll-behavior-x: none;
}

/* Prevent horizontal scroll only on small screens */
@media (max-width: 768px) {
  * {
    max-width: 100%;
    box-sizing: border-box;
  }

  .contact-form,
  .contact-form form {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .site-header,
  .site-footer {
    left: 0;
    right: 0;
    overflow-x: hidden;
  }

  /* Add breathing space below header on mobile */
  .contact-form {
    padding-top: 100px;
  }

  /* Single column form for phones */
  .contact-form form {
    grid-template-columns: 1fr;
    padding: 25px 18px;
    max-height: none;
  }
}

/* Tablet layout (769px–1023px) — balanced two-column grid */
@media (min-width: 769px) and (max-width: 1023px) {
  .contact-form form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 25px;
    max-width: 700px;
    margin: 0 auto;
  }

  .contact-form label {
    font-size: 0.95rem;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    font-size: 0.95rem;
  }
}

/* Desktop layout — wider form centered */
@media (min-width: 1024px) {
  .contact-form form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 30px;
    max-width: 900px;
    margin: 0 auto;
  }

  .contact-form h1 {
    font-size: 2.2rem;
  }
}
/* -----------------------------
  FINAL HEADER FIX — Transparent, centered brand, left menu
-------------------------------*/
:root {
  --header-h: 64px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: transparent; /* remove black bar */
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: background 0.3s ease;
}

/* Keep the centered layout */
.header-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 900px;
  width: 100%;
  padding: 0 16px;
}

/* Brand centered */
.brand-name {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.1rem;
  color: #fff;
  font-weight: bold;
  white-space: nowrap;
  z-index: 10000;
  pointer-events: none;
}

/* Move hamburger to the far left */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10001;
}

.menu-toggle .bar {
  height: 3px;
  width: 100%;
  background-color: #00bcd4;
  border-radius: 5px;
  transition: all 0.3s ease;
}

/* Animated X effect */
.menu-toggle.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Hide logo on mobile for cleaner header */
.logo {
  display: none;
}

/* Mobile menu slides from top, below transparent header */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    width: 100%;
    height: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    align-items: center;
    justify-content: start;
    gap: 25px;
    padding-top: 60px;
    transition: height 0.4s ease;
    z-index: 9000;
  }

  .nav-menu.open {
    height: calc(100vh - var(--header-h));
  }

  .nav-menu a {
    font-size: 1.3rem;
    color: white;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }

  .nav-menu.open a {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Desktop — keep normal look */
@media (min-width: 769px) {
  .logo {
    display: inline;
    height: 40px;
    margin-right: 10px;
  }

  .menu-toggle {
    display: none;
  }

  .nav-menu {
    position: static;
    display: flex;
    gap: 20px;
    background: none;
  }

  .site-header {
    background: rgba(0, 0, 0, 0.6); /* keep slight tint for desktop readability */
  }
}

/* ===============================
   UNIFORM FORM FIELD HEIGHT FIX
=============================== */
.contact-form input,
.contact-form select,
.contact-form textarea {
  min-height: 44px; /* ensures consistent visual height */
  line-height: 1.2;
  appearance: none; /* remove default OS styling */
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* Add padding and caret spacing for dropdowns */
.contact-form select {
  padding-right: 34px;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23ffffff' height='12' width='12' xmlns='http://www.w3.org/2000/svg'><path d='M0 0 L12 0 L6 7z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
}

/* Fix alignment on mobile */
@media (max-width: 768px) {
  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    font-size: 1rem;
    min-height: 46px;
  }
}


/* ===============================
   MOBILE HEADER GAP FIX + SEMI-TRANSPARENT MENU
=============================== */
@media (max-width: 768px) {
  .nav-menu {
    top: 0; /* cover the full top */
    padding-top: calc(var(--header-h) + 20px);
    background: rgba(0, 0, 0, 0.8); /* <-- semi-transparent background */
    backdrop-filter: blur(6px); /* softens the video behind it */
  }

  .nav-menu.open {
    height: 100vh;
  }

  .site-header {
    background: transparent !important;
    z-index: 10000;
  }
}
