/* ================================================================
   SYNERGY VENTURES — styles.css
   ================================================================ */

/* ── Reset & Base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: #050a14;
  color: rgba(255,255,255,.92);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── @keyframes ────────────────────────────────────────────────── */

/* Breathing background orbs */
@keyframes bgPulse1 {
  from { transform: scale(.9) translate(0,0);     opacity: .45; }
  to   { transform: scale(1.12) translate(5vw,4vh); opacity: .85; }
}
@keyframes bgPulse2 {
  from { transform: scale(1.1) translate(0,0);       opacity: .35; }
  to   { transform: scale(.88) translate(-4vw,-4vh); opacity: .7;  }
}

/* Logo glow pulse */
@keyframes logoPulse {
  0%,100% { opacity: .45; transform: scale(.88); }
  50%      { opacity: 1;   transform: scale(1.08); }
}

/* Floating WA ring */
@keyframes waPing {
  0%   { transform: scale(1);   opacity: .7; }
  70%  { transform: scale(1.6); opacity: 0;  }
  100% { transform: scale(1.6); opacity: 0;  }
}

/* Dot pulse in card header */
@keyframes dotBlink {
  0%,100% { opacity: 1; }
  50%      { opacity: .3; }
}

/* Typewriter cursor blink */
@keyframes cursorBlink { 50% { opacity: 0; } }

/* Card one-time shimmer on load */
@keyframes cardShimmer {
  0%   { left: -60%; opacity: 0; }
  10%  { opacity: 1; }
  100% { left: 160%; opacity: 0; }
}

/* Send Request button auto-sweep */
@keyframes btnSweepAuto {
  0%, 12%  { left: -80%; opacity: 0; }
  14%      { opacity: 1; }
  48%      { left: 140%; opacity: 1; }
  49%, 100%{ left: -80%; opacity: 0; }
}


/* ── Background Layers ─────────────────────────────────────────── */
.bg-layer {
  position: fixed;
  inset: 0;
  background: #050a14;
  z-index: -2;
  overflow: hidden;
}
.bg-layer::before,
.bg-layer::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}
.bg-layer::before {
  width: 70vw; height: 65vh;
  top: -15vh; left: -10vw;
  background: radial-gradient(circle, rgba(13,27,68,.85), transparent 68%);
  animation-name: bgPulse1;
  animation-duration: 11s;
}
.bg-layer::after {
  width: 55vw; height: 55vh;
  bottom: -15vh; right: -8vw;
  background: radial-gradient(circle, rgba(6,18,52,.7), transparent 68%);
  animation-name: bgPulse2;
  animation-duration: 14s;
}

.glow-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 25% at 50% 0%,   rgba(74,158,255,.05) 0%, transparent 100%),
    radial-gradient(ellipse 25% 20% at 85% 85%,  rgba(74,100,255,.04) 0%, transparent 100%);
}


/* ── Fade-in utility ───────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-in.in {
  opacity: 1;
  transform: translateY(0);
}


/* ── Layout ────────────────────────────────────────────────────── */
.wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 56px 32px;
}
.shell {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.hero {
  display: flex;
  align-items: center;
  gap: 64px;
}
.hero-left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 44px;
  align-items: center;
  text-align: center;
}
.hero-right {
  flex: 0 0 500px;
  width: 500px;
}


/* ── Logo + Constellation ─────────────────────────────────────── */
.logo-wrap {
  position: relative;
  width: 270px;
  height: 270px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

/* Glow halo behind logo */
.logo-glow::before {
  content: '';
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle, rgba(74,158,255,.14) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  animation: logoPulse 3.5s ease-in-out infinite;
}

/* Constellation canvas fills a 2× area centred on the logo */
.particles {
  position: absolute;
  top: 50%; left: 50%;
  width: 200%; height: 200%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

.logo {
  width: 200px;
  height: auto;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 18px rgba(74,158,255,.28));
  transition: filter .4s ease;
}
.logo:hover {
  filter: drop-shadow(0 0 30px rgba(74,158,255,.5));
}


/* ── Brand Text ────────────────────────────────────────────────── */
.h1 {
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.15;
  color: #fff;
  margin-top: 6px;
}
.h1 span {
  font-size: clamp(13px, 1.6vw, 19px);
  font-weight: 300;
  letter-spacing: .18em;
  display: block;
  margin-top: 2px;
}

.sub {
  font-size: 10.5px;
  letter-spacing: .26em;
  color: rgba(255,255,255,.4);
  font-weight: 500;
  margin-top: 4px;
  text-transform: uppercase;
}

.tagline {
  font-size: clamp(17px, 2.2vw, 24px);
  font-weight: 600;
  color: rgba(255,255,255,.92);
  margin-top: 10px;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}
/* Animated underline — draws itself once .in is applied */
.tagline::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, rgba(74,158,255,0), rgba(74,158,255,.9), rgba(74,158,255,0));
  transition: width 1.5s cubic-bezier(.4,0,.2,1) .25s;
}
.tagline.typed::after { width: 100%; }

/* Typewriter cursor */
.tl-cursor {
  display: inline-block;
  width: 2px;
  height: .82em;
  background: rgba(74,158,255,.75);
  margin-left: 2px;
  vertical-align: middle;
  animation: cursorBlink .65s step-end infinite;
}
.tl-cursor.done {
  animation: none;           /* stop blinking immediately */
  opacity: 0;
  transition: opacity .9s ease .1s;
}
/* Screen-reader only text (hides the visible typing span from AT) */
.tl-sr {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

.bullets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 10px;
  font-size: 12.5px;
  color: rgba(255,255,255,.55);
  letter-spacing: .03em;
  margin-top: 2px;
}
.bullets .dot { color: rgba(74,158,255,.45); }


/* ── Hero Left Bottom ──────────────────────────────────────────── */
.hero-left-bottom {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.social-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Social buttons */
.btn-social {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
  text-decoration: none;
  transition: all .3s ease;
  white-space: nowrap;
}
.btn-wa {
  background: rgba(37,211,102,.1);
  border: 1px solid rgba(37,211,102,.28);
  color: #3bd47a;
}
.btn-wa:hover {
  background: rgba(37,211,102,.18);
  box-shadow: 0 0 22px rgba(37,211,102,.22);
  transform: translateY(-1px);
}
.btn-li {
  background: rgba(0,119,181,.1);
  border: 1px solid rgba(0,119,181,.3);
  color: #4da8d8;
}
.btn-li:hover {
  background: rgba(0,119,181,.18);
  box-shadow: 0 0 22px rgba(0,119,181,.22);
  transform: translateY(-1px);
}

/* CONTACT US pill button */
.cta {
  display: inline-flex;
  align-items: center;
  padding: 13px 30px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50px;
  color: rgba(255,255,255,.75);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .2em;
  text-decoration: none;
  transition: all .3s ease;
  white-space: nowrap;
}
.cta:hover {
  border-color: rgba(74,158,255,.65);
  color: #6cb8ff;
  box-shadow: 0 0 22px rgba(74,158,255,.18);
}

/* Sweep-light effect on hover */
.btn-sweep {
  position: relative;
  overflow: hidden;
}
.btn-sweep::after {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 55%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.13), transparent);
  transition: left .55s ease;
  pointer-events: none;
}
.btn-sweep:hover::after { left: 140%; }

/* Auto-running sweep on Send Request button every ~7s */
.btnPrimary.btn-sweep::after {
  animation: btnSweepAuto 7s ease-in-out infinite 3s;
  transition: none;
}
.btnPrimary.btn-sweep:hover::after {
  animation: none;
  transition: left .4s ease;
  left: 140%;
}


/* ── Card (Glassmorphism) ──────────────────────────────────────── */
.card {
  background: rgba(8,16,44,.68);
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 22px;
  padding: 26px 28px 22px;
  box-shadow:
    0 28px 64px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.11);
  position: relative;
  overflow: hidden;
}

/* One-time shimmer sweep when card fades in */
.card::after {
  content: '';
  position: absolute;
  top: -10%; left: 0;
  width: 45%; height: 120%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.07), transparent);
  border-radius: inherit;
  animation: cardShimmer 1.8s ease-out 1.4s both;
  pointer-events: none;
  z-index: 1;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.card-title {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .22em;
  color: rgba(255,255,255,.4);
}
.card-resp {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  color: rgba(74,200,120,.7);
}
.resp-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #3bdc80;
  animation: dotBlink 2s ease-in-out infinite;
}


/* ── Form ──────────────────────────────────────────────────────── */
.field { margin-bottom: 13px; }

.field label {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .11em;
  color: rgba(255,255,255,.45);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.req { color: rgba(74,158,255,.7); margin-left: 1px; }

.field input,
.field select,
.field textarea {
  width: 100%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 12px;
  padding: 11px 13px;
  color: rgba(255,255,255,.9);
  font-family: Montserrat, sans-serif;
  font-size: 13.5px;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(255,255,255,.22);
}

.field select option {
  background: #0b1a3f;
  color: rgba(255,255,255,.88);
}

/* Glow on focus */
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(74,158,255,.6);
  background: rgba(255,255,255,.09);
  box-shadow: 0 0 0 3px rgba(74,158,255,.12), 0 0 18px rgba(74,158,255,.07);
}

/* Validation error highlight */
.field input.err,
.field select.err,
.field textarea.err {
  border-color: rgba(255,90,90,.65) !important;
  box-shadow: 0 0 0 3px rgba(255,90,90,.1) !important;
}
.field-error {
  display: block;
  font-size: 10.5px;
  color: rgba(255,110,110,.88);
  margin-top: 4px;
  letter-spacing: .02em;
}

/* Phone row */
.phone-row {
  display: flex;
  gap: 8px;
}
.phone-row select:first-child  { flex: 0 0 115px; min-width: 0; }
.phone-row select:nth-child(2) { flex: 0 0 76px;  min-width: 0; }
.phone-row input[type="tel"]   { flex: 1; min-width: 90px; }

/* Submit button */
.btnPrimary {
  width: 100%;
  margin-top: 6px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #18347a 0%, #0b1a3f 100%);
  border: 1px solid rgba(74,158,255,.22);
  border-radius: 14px;
  color: rgba(255,255,255,.9);
  font-family: Montserrat, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .19em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: box-shadow .3s ease, transform .3s ease, border-color .3s ease;
  box-shadow: 0 4px 22px rgba(0,0,0,.35);
  position: relative;
  overflow: hidden;
}
.btnPrimary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(74,158,255,.14), transparent);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.btnPrimary:hover {
  box-shadow: 0 6px 32px rgba(74,158,255,.28);
  transform: translateY(-1px);
  border-color: rgba(74,158,255,.45);
}
.btnPrimary:hover::before { opacity: 1; }
.btnPrimary:active { transform: translateY(0); }

.consent {
  font-size: 10.5px;
  color: rgba(255,255,255,.28);
  text-align: center;
  margin-top: 10px;
  line-height: 1.5;
}

/* Honeypot — invisible to real users */
.hp {
  position: absolute;
  left: -9999px; top: -9999px;
  width: 0; height: 0;
  opacity: 0;
  pointer-events: none;
  tabindex: -1;
}


/* ── Floating WhatsApp ─────────────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 26px; right: 26px;
  width: 56px; height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 22px rgba(37,211,102,.45);
  transition: transform .3s ease, box-shadow .3s ease;
  z-index: 200;
}
/* Animated ping ring */
.wa-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37,211,102,.45);
  animation: waPing 2.5s ease-out infinite;
}
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 32px rgba(37,211,102,.65);
}


/* ── Responsive ────────────────────────────────────────────────── */

/* Tablet / narrow desktop → stack columns */
@media (max-width: 980px) {
  .wrap      { padding: 40px 20px 52px; align-items: flex-start; }
  .hero      { flex-direction: column; gap: 36px; }
  .hero-right { flex: none; width: 100%; }
  .hero-left  { gap: 26px; }

  /* Form is right below on mobile — hide the scroll button */
  .hero-left-bottom .cta { display: none; }
}

/* Large phones (≤600px) */
@media (max-width: 600px) {
  .logo-wrap { width: 192px; height: 192px; }
  .logo      { width: 138px; }
  .h1        { font-size: 22px; }
  .tagline   { font-size: 16px; }
  .card      { padding: 20px 16px; }

  .phone-row { flex-wrap: wrap; gap: 6px; }
  .phone-row select:first-child  { flex: 1 0 calc(60% - 3px); }
  .phone-row select:nth-child(2) { flex: 0 0 calc(40% - 3px); }
  .phone-row input[type="tel"]   { flex: 1 0 100%; }

  .wa-float { bottom: 18px; right: 18px; width: 50px; height: 50px; }
}

/* Small phones (≤400px — iPhone SE, Galaxy A, etc.) */
@media (max-width: 400px) {
  .wrap      { padding: 28px 14px 48px; }
  .logo-wrap { width: 156px; height: 156px; }
  .logo      { width: 114px; }
  .h1        { font-size: 19px; }
  .tagline   { font-size: 15px; }
  .sub       { font-size: 9.5px; }
  .bullets   { font-size: 11.5px; gap: 6px 8px; }
  .card      { padding: 18px 14px; border-radius: 16px; }
  .field     { margin-bottom: 11px; }
  .field input,
  .field select,
  .field textarea { font-size: 13px; padding: 10px 11px; }
  .wa-float  { bottom: 14px; right: 14px; width: 46px; height: 46px; }
}

/* Tiny phones (≤360px — Galaxy S5, older Androids) */
@media (max-width: 360px) {
  .wrap   { padding: 22px 12px 44px; }
  .h1     { font-size: 17px; letter-spacing: .05em; }
  .tagline { font-size: 14px; }
  .bullets { font-size: 10.5px; }
  .card   { padding: 16px 12px; }
  .phone-row select:first-child { flex: 1 0 55%; }
  .phone-row select:nth-child(2){ flex: 0 0 calc(45% - 6px); }
}
