/* ==========================================================================
   Anama Systems — Webscroll (Alternating Half-Screen & Embed Engine)
   Ultra-compatible with modern and legacy browsers.
   ========================================================================== */

:root {
  --anama-cyan: #009fe3;
  --anama-blue: #0199ff;
  --anama-electric: #00e6fe;
  --anama-navy: #010c36;
  --anama-navy-deep: #000818;
  --anama-card-bg: rgba(4, 13, 31, 0.88);
  --anama-border: rgba(0, 230, 254, 0.2);
  --anama-border-glow: rgba(0, 230, 254, 0.45);
  --anama-text: #e8f1f8;
  --anama-muted: #9bb0c4;
  --anama-white: #ffffff;
  --gradient-brand: linear-gradient(135deg, #00e6fe 0%, #0199ff 50%, #009fe3 100%);
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --header-height: 72px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--anama-navy-deep);
  color: var(--anama-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  background-color: var(--anama-navy-deep);
  min-height: 100vh;
}

/* --------------------------------------------------------------------------
   SITE HEADER & BILINGUAL TOGGLE
   -------------------------------------------------------------------------- */
.scroll-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(0, 8, 24, 0.8);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 230, 254, 0.12);
  display: flex;
  align-items: center;
}

.header-container {
  width: min(100% - 2.5rem, 1320px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo img {
  height: 34px;
  width: auto;
  display: block;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Language switch button - Top Right */
.lang-btn {
  background: rgba(0, 230, 254, 0.08);
  border: 1px solid rgba(0, 230, 254, 0.35);
  color: var(--anama-electric);
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.25s ease;
}

.lang-btn:hover {
  background: rgba(0, 230, 254, 0.2);
  border-color: var(--anama-electric);
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(0, 230, 254, 0.25);
}

.lang-btn .globe-icon {
  width: 14px;
  height: 14px;
  display: inline-block;
}

/* Header WhatsApp Button: only says 'Whatsapp' as requested */
.btn-whatsapp-header {
  color: #25d366;
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.3);
  padding: 0.45rem 1rem;
  border-radius: 4px;
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.25s ease;
}

.btn-whatsapp-header:hover {
  background: rgba(37, 211, 102, 0.2);
  border-color: #25d366;
  transform: translateY(-1px);
}

.btn-schedule-header {
  background: var(--gradient-brand);
  color: var(--anama-navy-deep);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.55rem 1.15rem;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.25s ease;
  letter-spacing: 0.02em;
}

.btn-schedule-header:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 230, 254, 0.3);
}

/* --------------------------------------------------------------------------
   WEBSCROLL WRAPPER & STICKY VIDEO BACKGROUND
   -------------------------------------------------------------------------- */
.webscroll-track {
  position: relative;
  width: 100%;
}

/* Sticky video background canvas */
.webscroll-stage {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.webscroll-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
}

/* Subtle scrim so background video is visible on the open half */
.webscroll-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(0, 8, 24, 0.4) 0%,
    rgba(0, 8, 24, 0.5) 50%,
    rgba(0, 8, 24, 0.7) 100%
  );
}

.webscroll-vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.8);
}

/* --------------------------------------------------------------------------
   SCROLLYTELLING STEPS (ALTERNATING HALF-SCREEN)
   -------------------------------------------------------------------------- */
.scrolly-content {
  position: relative;
  z-index: 10;
  width: 100%;
  margin-top: -100vh; /* Sits naturally on top of the sticky video stage */
}

.scrolly-step {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 2rem) 4% 3rem;
  position: relative;
  box-sizing: border-box;
}

/* Alternating placement: Left vs Right */
.scrolly-step.align-left {
  justify-content: flex-start;
}

.scrolly-step.align-right {
  justify-content: flex-end;
}

.scrolly-step.align-center {
  justify-content: center;
}

/* The card occupying ~half of the screen */
.story-card {
  width: 100%;
  max-width: 580px;
  background: var(--anama-card-bg);
  border: 1px solid var(--anama-border);
  border-radius: 10px;
  padding: 2.25rem 2.4rem;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.7), 0 0 35px rgba(0, 230, 254, 0.08);
  transition: transform 0.4s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  pointer-events: auto;
}

.story-card:hover {
  border-color: var(--anama-border-glow);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.8), 0 0 45px rgba(0, 230, 254, 0.15);
}

/* Typography Inside Cards */
.card-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--anama-electric);
  margin-bottom: 0.75rem;
}

.card-eyebrow .dot {
  width: 6px;
  height: 6px;
  background: var(--anama-electric);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--anama-electric);
}

.card-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--anama-white);
  margin-bottom: 1rem;
}

.card-title .text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card-desc {
  font-size: 0.98rem;
  color: var(--anama-muted);
  line-height: 1.65;
  margin-bottom: 1.4rem;
}

/* Feature mini-cards inside story-cards */
.card-feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.15rem;
}

.feature-pill {
  background: rgba(1, 12, 54, 0.6);
  border: 1px solid rgba(0, 230, 254, 0.12);
  border-radius: 6px;
  padding: 0.85rem 1.1rem;
  transition: all 0.25s ease;
}

.feature-pill:hover {
  border-color: var(--anama-border-glow);
  background: rgba(1, 12, 54, 0.85);
  transform: translateX(3px);
}

.feature-pill-title {
  font-size: 0.95rem;
  color: var(--anama-white);
  font-weight: 500;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.feature-pill-title .pill-bullet {
  color: var(--anama-electric);
  font-size: 0.8rem;
}

.feature-pill-desc {
  font-size: 0.84rem;
  color: var(--anama-muted);
  line-height: 1.45;
}

/* Buttons inside story cards */
.card-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.btn-primary {
  background: var(--gradient-brand);
  color: var(--anama-navy-deep);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 1.45rem;
  border-radius: 4px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn-primary:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 230, 254, 0.35);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(0, 230, 254, 0.35);
  color: var(--anama-electric);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.75rem 1.35rem;
  border-radius: 4px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-outline:hover {
  background: rgba(0, 230, 254, 0.12);
  border-color: var(--anama-electric);
  transform: translateY(-2px);
}

.btn-whatsapp-large {
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.45);
  color: #25d366;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.75rem 1.45rem;
  border-radius: 4px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
}

.btn-whatsapp-large:hover {
  background: rgba(37, 211, 102, 0.22);
  border-color: #25d366;
  transform: translateY(-2px);
}

/* Founders Card */
.founders-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.25rem;
}

.founder-box {
  background: rgba(1, 12, 54, 0.65);
  border: 1px solid rgba(0, 230, 254, 0.15);
  border-radius: 6px;
  padding: 1.15rem;
}

.founder-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--anama-white);
  margin-bottom: 0.2rem;
}

.founder-role {
  color: var(--anama-electric);
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 0.45rem;
}

.founder-bio {
  font-size: 0.85rem;
  color: var(--anama-muted);
  line-height: 1.5;
}

/* Direct Contact Bar */
.direct-contact-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 1.5rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(0, 230, 254, 0.15);
  font-size: 0.88rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--anama-text);
  text-decoration: none;
}

.contact-item svg {
  color: var(--anama-electric);
  flex-shrink: 0;
}

.contact-item a {
  color: var(--anama-electric);
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   FINAL EMBED SECTION (AFTER SCROLL)
   -------------------------------------------------------------------------- */
.embed-section {
  position: relative;
  z-index: 20;
  background: var(--anama-navy-deep);
  border-top: 1px solid rgba(0, 230, 254, 0.2);
  padding: 6rem 1.5rem 4rem;
}

.embed-container {
  width: min(100% - 2rem, 1180px);
  margin: 0 auto;
}

.embed-header {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto 3rem;
}

.embed-frame-wrapper {
  width: 100%;
  background: rgba(1, 12, 54, 0.7);
  border: 1px solid rgba(0, 230, 254, 0.25);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 50px rgba(0, 230, 254, 0.1);
}

.embed-iframe {
  width: 100%;
  height: 980px;
  border: none;
  display: block;
  background: #ffffff;
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  z-index: 20;
  background: #000511;
  border-top: 1px solid rgba(0, 230, 254, 0.12);
  padding: 3.5rem 1.5rem 2.5rem;
}

.footer-container {
  width: min(100% - 2.5rem, 1280px);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--anama-white);
}

.footer-brand span {
  color: var(--anama-electric);
}

.footer-meta {
  color: var(--anama-muted);
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   RESPONSIVENESS
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .scrolly-step {
    padding: calc(var(--header-height) + 1.5rem) 1.5rem 2rem;
    justify-content: center !important;
  }
  .story-card {
    max-width: 100%;
  }
  .card-title {
    font-size: 1.85rem;
  }
  .embed-iframe {
    height: 1100px;
  }
}

@media (max-width: 600px) {
  .header-container {
    width: min(100% - 1.5rem, 1280px);
  }
  .header-logo img {
    height: 26px;
  }
  .btn-schedule-header {
    padding: 0.45rem 0.8rem;
    font-size: 0.78rem;
  }
  .lang-btn {
    padding: 0.38rem 0.7rem;
    font-size: 0.75rem;
  }
  .btn-whatsapp-header {
    padding: 0.38rem 0.65rem;
    font-size: 0.75rem;
  }
  .story-card {
    padding: 1.6rem 1.35rem;
  }
  .embed-iframe {
    height: 1200px;
  }
}
