/* ------------------------------
   styles.css — cleaned & consolidated
   ------------------------------ */

/* Global variables */
:root{
  --navy-900: #061028;
  --navy-800: #071633;
  --accent: #6C63FF;
  --accent-2: #3B82F6;
  --muted: #94a3b8;
  --site-header-h: 72px; /* default header height (can be adjusted) */
}

/* ---------------------------------
   Hero / header helpers
   --------------------------------- */
.hero-wrap { position: relative; overflow: hidden; border-radius: 14px; }
#starfield { position: absolute; inset: 0; width:100%; height:100%; display:block; z-index:0; }
.hero-gradient { position:absolute; inset:0; background: linear-gradient(180deg, rgba(9,20,40,0.66), rgba(4,8,22,0.78)); z-index:1; }
.hero-overlay { position: relative; z-index:2; }

/* hero card */
.hero-card {
  z-index:3;
  background: linear-gradient(135deg, rgba(255,255,255,0.02), rgba(255,255,255,0.015));
  border-radius: 12px;
  padding: 2.25rem;
  box-shadow: 0 18px 50px rgba(2,6,23,0.6), inset 0 -1px 0 rgba(255,255,255,0.02);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.035);
}

/* headings & text */
h1.hero-title { font-weight: 800; letter-spacing: -0.02em; line-height: 1.02; }
p.lead { color: rgba(226,232,240,0.88); }

/* buttons */
a.cta, button.cta {
  display:inline-block;
  background: linear-gradient(90deg,var(--accent), var(--accent-2));
  color: white;
  padding: 0.85rem 1.4rem;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: 0 8px 30px rgba(60,50,120,0.25);
  transition: transform .18s ease, box-shadow .18s ease;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
a.cta.secondary {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.08);
  color: #e6eefc;
}
a.cta:hover, button.cta:hover { transform: translateY(-3px); }

/* features grid */
.feature {
  background: linear-gradient(180deg, rgba(255,255,255,0.018), rgba(255,255,255,0.01));
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid rgba(255,255,255,0.03);
  transition: transform .18s ease, box-shadow .18s ease;
}
.feature:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(2,6,23,0.45); }

/* contact form card */
.form-card { max-width:520px; }

/* small logo */
.logo-small { height:72px; width:auto;object-fit:contain; display:block; }

/* responsive tweaks */
@media (min-width: 768px) {
  .hero-wrap { height:420px; }
}
@media (max-width: 767px) {
  .hero-wrap { height:360px; }
  .hero-card { padding:1.25rem; }
}

/* inputs / dark form styles */
input[type="text"],
input[type="email"],
textarea,
select,
textarea.form-control, input.form-control {
  background: rgba(255,255,255,0.06);     /* subtle translucent light */
  border: 1px solid rgba(255,255,255,0.08);
  color: #e6eefc;
  padding: 0.5rem 0.6rem;
  border-radius: 6px;
  width: 100%;
  box-sizing: border-box;
  transition: box-shadow .15s ease, border-color .12s ease;
  outline: none;
  font-size: 0.95rem;
}

/* textarea sizing */
textarea { min-height: 140px; resize: vertical; }

/* placeholder and labels */
input::placeholder, textarea::placeholder { color: rgba(230,238,252,0.35); }
label, .form-label { color: rgba(230,238,252,0.85); font-size: 0.95rem; }

/* focus */
input:focus, textarea:focus, select:focus {
  border-color: rgba(99,102,241,0.9); /* indigo-ish */
  box-shadow: 0 6px 20px rgba(99,102,241,0.08);
  background: rgba(255,255,255,0.03);
}

/* Ensure the modal's white default doesn't override */
#contact-modal .bg-gradient-to-b form { color: #e6eefc; }

/* Make the 'form-card' dark (in case used) */
.form-card {
  background: linear-gradient(180deg, rgba(21,30,45,0.95), rgba(10,16,28,0.95));
  border: 1px solid rgba(255,255,255,0.04);
  color: #e6eefc;
}
.form-card label { display:block; margin-bottom: .25rem; color: rgba(230,238,252,0.85); }

/* ---------- Header / safe top padding ---------- */

/* Ensure header has fixed height and sits above content */
header {
  height: var(--site-header-h);
  line-height: var(--site-header-h);
  z-index: 9999; /* ensure header is always above page */
}

/* Transparent / translucent header look (you can change opacity here) */
header {
  background: rgba(6, 10, 20, 0.0); /* fully transparent by default; set to 0.6 for blurred ribbon */
  backdrop-filter: none;           /* keep background showing through */
  -webkit-backdrop-filter: none;
  border-bottom: none;
}

/* If you ever want a subtle translucent ribbon, switch to the rules below:
header {
  background: rgba(6, 10, 20, 0.46);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
*/

/* Give main a safe top padding equal to header height + small gap */
main {
  padding-top: calc(var(--site-header-h) + 1rem); /* 1rem gap so content isn't flush to header */
}

/* Keep logo sizing reasonable inside header */
.logo-small { height: 40px; width: auto; }

/* Small responsive tweak: slightly bigger header on larger screens */
@media(min-width: 1024px) {
  :root { --site-header-h: 80px; }
  .logo-small { height: 44px; }
}

/* VIDEO: always cover viewport and never tile */
#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;           /* full viewport width */
  height: 100vh;          /* full viewport height */
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;      /* important: cover and crop as needed */
  object-position: center center;
  z-index: -9999;         /* keep it behind everything */
  pointer-events: none;   /* clicks pass through */
  backface-visibility: hidden;
  transform: translateZ(0); /* force GPU compositing (smoother) */
}

/* poster / fallback area must not repeat */
.bg-video-fallback {
  position: fixed;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  z-index: -10000;
}

/* overlay must be above video but below UI — by default set transparent; JS toggles opacity if desired */
.bg-video-overlay {
  position: fixed;
  inset: 0;
  z-index: -9998;
  pointer-events: none;
  background: rgba(0,0,0,0); /* change to rgba(...) if you want consistent darkness */
}

/* ---------------------------------
   Modal: single consolidated block
   --------------------------------- */

/* keep modal hidden by default: start display none */
#contact-modal {
  display: none;
  pointer-events: auto;
  z-index: 99999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;                 /* cover full viewport for backdrop */
}

/* visible states: .show class OR aria-hidden="false" OR not .hidden */
#contact-modal.show,
#contact-modal[aria-hidden="false"],
#contact-modal:not(.hidden) {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* inner panel animation (target the element used for modal panel: .bg-gradient-to-b) */
#contact-modal .bg-gradient-to-b {
  transform: translateY(10px);
  opacity: 0;
  transition: transform .22s ease, opacity .22s ease;
  max-width: 100%;
  margin: 1rem;
}
#contact-modal.show .bg-gradient-to-b,
#contact-modal[aria-hidden="false"] .bg-gradient-to-b,
#contact-modal:not(.hidden) .bg-gradient-to-b {
  transform: translateY(0);
  opacity: 1;
}

/* Backdrop styling if you use #modal-backdrop element inside the modal */
#modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7); /* darkens behind the modal */
  backdrop-filter: blur(4px);
  z-index: 0;
}

/* modal inner panel should sit above backdrop */
#contact-modal > [role="dialog"], #contact-modal .bg-gradient-to-b {
  position: relative;
  z-index: 10;
}

/* ensure modal form color is readable */
#contact-modal .bg-gradient-to-b form { color: #e6eefc; }

/* safety: prevent accidental hidden rules elsewhere overriding modal visibility */
html body #contact-modal[aria-hidden="false"],
html body #contact-modal:not(.hidden) {
  display: flex !important;
}

/* END OF FILE */