/* =========================================================
   Simbiose.AI — Design tokens
   Palette lifted from the logotype: black base, human-side
   silver/white ridges, AI-side cyan→blue circuit gradient.
========================================================= */
:root {
  --bg: #050709;
  --bg-alt: #090c11;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-strong: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --white: #f4f6f8;
  --silver: #aab1ba;
  --muted: #7c8390;

  --cyan: #5bd8ff;
  --blue: #3a8fe0;
  --blue-deep: #163a63;

  --grad-accent: linear-gradient(120deg, #ffffff 0%, #a9e9ff 35%, #4fc9ff 65%, #2f7fd6 100%);
  --grad-line: linear-gradient(90deg, transparent, var(--cyan), transparent);

  --shadow-glow: 0 0 60px rgba(79, 201, 255, 0.12);
  --radius: 18px;
  --radius-sm: 10px;

  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-hero: "Audiowide", "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;

  --container: 1180px;
  --header-h: 82px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

::selection { background: var(--blue); color: #fff; }

/* subtle film-grain overlay for texture */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =========================================================
   Headings / helpers
========================================================= */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.grad-text {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-title-live {
  display: inline-block;
  background-image: linear-gradient(100deg,
    #6fdcff 0%, #2fb2ff 22%, #1a6fe0 42%, #0e4fb0 50%, #1a6fe0 58%,
    #2fb2ff 78%, #6fdcff 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transform-origin: center;
  animation: heroGradientFlow 7s ease-in-out infinite, heroBreathe 3.4s ease-in-out infinite;
}

@keyframes heroGradientFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes heroBreathe {
  0%, 100% {
    transform: scale(1);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85), 0 10px 34px rgba(0, 0, 0, 0.6),
      0 0 3px rgba(47, 178, 255, 0.45);
  }
  50% {
    transform: scale(1.018);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85), 0 10px 34px rgba(0, 0, 0, 0.6),
      0 0 6px rgba(47, 178, 255, 0.85);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-title-live { animation: none; }
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
  display: inline-block;
}

.section-head {
  max-width: 680px;
  margin: 0 auto 60px;
  text-align: center;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 18px;
}

.section-lead {
  color: var(--silver);
  font-size: 17px;
  font-weight: 300;
}

/* reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Buttons
========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(120deg, #4fc9ff, #2f7fd6);
  color: #04121f;
  box-shadow: 0 8px 24px rgba(58, 159, 224, 0.35);
}
.btn-primary:hover { box-shadow: 0 10px 30px rgba(58, 159, 224, 0.5); }

.btn-outline {
  border-color: var(--border-strong);
  color: var(--white);
  background: var(--surface);
  backdrop-filter: blur(6px);
}
.btn-outline:hover { border-color: var(--cyan); box-shadow: var(--shadow-glow); }

.btn-ghost {
  color: var(--silver);
}
.btn-ghost:hover { color: var(--white); }

.icon-wa { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }

.nav-cta { padding: 10px 20px; font-size: 13px; }
.nav-cta .icon-wa { width: 16px; height: 16px; }
.icon-ig { width: 18px; height: 18px; color: currentColor; flex-shrink: 0; }

/* =========================================================
   Header
========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}
.site-header.scrolled {
  background: rgba(5, 7, 9, 0.75);
  border-color: var(--border);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.brand-logo { height: 34px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-left: auto;
  margin-right: 30px;
}
.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--silver);
  position: relative;
  padding: 6px 0;
  transition: color 0.25s ease;
}
.main-nav a:hover { color: var(--white); }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--cyan);
  transition: width 0.25s ease;
}
.main-nav a:hover::after { width: 100%; }

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  cursor: pointer;
  flex-shrink: 0;
}
.lang-option {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  transition: color 0.25s ease, background 0.25s ease;
}
.lang-option.is-active {
  color: #04121f;
  background: linear-gradient(120deg, #4fc9ff, #2f7fd6);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* =========================================================
   Hero
========================================================= */
.hero {
  --stage: clamp(215px, 33vh, 400px);
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + var(--stage)) 0 80px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(58, 143, 224, 0.16), transparent 60%),
    var(--bg);
}

/* The logo animation lives in its own "stage" at the top of the hero, and
   the copy sits below it, so the two never fight for the same pixels. */
.hero-video-wrap {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: calc(var(--header-h) + var(--stage) + 60px);
  z-index: 0;
  overflow: hidden;
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 72%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 72%, transparent 100%);
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 54%;
  transform: scale(1.3);
  filter: brightness(1.45) contrast(1.1);
}
@media (max-width: 760px) {
  .hero { --stage: clamp(190px, 28vh, 260px); }
  .hero-video { object-fit: cover; transform-origin: 50% 55%; }
}

.hero-glow {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  pointer-events: none;
}
.hero-glow--left {
  top: 10%; left: -10%;
  background: rgba(170, 177, 186, 0.10);
}
.hero-glow--right {
  bottom: -10%; right: -8%;
  background: rgba(58, 143, 224, 0.22);
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 860px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85), 0 10px 34px rgba(0, 0, 0, 0.6);
}

.hero-title {
  font-family: var(--font-hero);
  font-size: clamp(26px, 4.4vw, 52px);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.3;
  margin-bottom: 22px;
}
.hero-title .dash { color: var(--muted); }

.hero-lead {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 28px);
  color: var(--white);
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 16px;
  color: var(--silver);
  max-width: 560px;
  margin: 0 auto 10px;
}

.hero-tagline {
  font-size: 18px;
  color: var(--white);
  margin-bottom: 42px;
}

.hero-actions {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-cue {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 36px;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  z-index: 1;
}
.scroll-cue span {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  border-radius: 2px;
  background: var(--cyan);
  animation: scrollCue 1.8s ease-in-out infinite;
}
@keyframes scrollCue {
  0% { opacity: 1; top: 7px; }
  70% { opacity: 0; top: 18px; }
  100% { opacity: 0; top: 18px; }
}

/* =========================================================
   Showreel
========================================================= */
.reel-section {
  padding: 40px 0 120px;
  background: var(--bg);
}

.reel-frame {
  border-radius: var(--radius);
  padding: 10px;
  background: linear-gradient(160deg, rgba(255,255,255,0.08), rgba(79,201,255,0.08));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-glow);
}

.video-wrap {
  position: relative;
  width: 100%;
  border-radius: calc(var(--radius) - 6px);
  overflow: hidden;
  background: #000;
}
.video-wrap.ratio-16-9 { aspect-ratio: 16 / 9; }
.video-wrap.ratio-9-16 { aspect-ratio: 9 / 16; }
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* =========================================================
   Services
========================================================= */
.services {
  padding: 120px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}
.service-card:hover {
  border-color: rgba(91, 216, 255, 0.4);
  transform: translateY(-4px);
  background: var(--surface-strong);
}

.service-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}
.service-card p {
  color: var(--muted);
  font-size: 15px;
}

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin-bottom: 22px;
  background: linear-gradient(140deg, rgba(255,255,255,0.9), rgba(79,201,255,0.9));
  position: relative;
}
.service-icon::before {
  content: "";
  position: absolute;
  inset: 12px;
  background: var(--bg-alt);
  border-radius: 6px;
}

/* =========================================================
   Portfolio
========================================================= */
.work {
  padding: 120px 0;
  background: var(--bg);
}

.portfolio-featured {
  max-width: 1040px;
  margin: 0 auto 64px;
}
.portfolio-featured .reel-frame {
  box-shadow: 0 0 90px rgba(79, 201, 255, 0.16);
}
.featured-caption {
  text-align: center;
  padding-top: 22px;
}
.featured-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(91, 216, 255, 0.4);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 12px;
}
.featured-caption h3 {
  font-size: clamp(22px, 3vw, 30px);
  margin-bottom: 6px;
}
.featured-caption p {
  color: var(--silver);
  font-size: 16px;
}

.portfolio-grid {
  columns: 3 320px;
  column-gap: 24px;
}

.portfolio-item {
  break-inside: avoid;
  margin-bottom: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.portfolio-item:hover {
  border-color: rgba(91, 216, 255, 0.4);
  transform: translateY(-4px);
}

.portfolio-caption {
  padding: 18px 20px 22px;
}
.portfolio-caption h3 {
  font-size: 17px;
  margin-bottom: 4px;
}
.portfolio-caption p {
  color: var(--muted);
  font-size: 14px;
}

/* =========================================================
   About / Team
========================================================= */
.about {
  padding: 120px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 920px;
  margin: 0 auto;
}

.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.team-card:hover {
  border-color: rgba(91, 216, 255, 0.4);
  transform: translateY(-4px);
}

.team-photo {
  width: 116px;
  height: 116px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.12), rgba(79,201,255,0.08));
  border: 1px solid var(--border-strong);
  box-shadow: 0 0 0 4px rgba(79, 201, 255, 0.06), 0 8px 24px rgba(0, 0, 0, 0.4);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

.team-card h3 { font-size: 20px; margin-bottom: 6px; }

.team-role {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
}

.team-bio {
  color: var(--silver);
  font-size: 15px;
  text-align: left;
}

.team-actions {
  margin-top: auto;
  padding-top: 26px;
  text-align: center;
}
.team-email { padding: 11px 22px; font-size: 13px; }
.team-email svg { width: 16px; height: 16px; flex-shrink: 0; }
.team-email { font-family: var(--font-body, inherit); letter-spacing: 0; text-transform: none; }
.team-email.is-copied { border-color: var(--cyan); box-shadow: var(--shadow-glow); }
.team-email-text { user-select: all; }

.team-bio--placeholder {
  text-align: center;
  color: var(--muted);
  font-style: italic;
}

/* =========================================================
   CTA / Contact
========================================================= */
.cta {
  position: relative;
  padding: 130px 0;
  background: var(--bg);
  overflow: hidden;
  text-align: center;
}

.cta-glow {
  position: absolute;
  top: 50%; left: 50%;
  width: 900px;
  height: 500px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(58, 143, 224, 0.18), transparent 65%);
  pointer-events: none;
}

.cta-inner { position: relative; z-index: 1; }

.cta-title {
  font-size: clamp(28px, 4.4vw, 46px);
  max-width: 760px;
  margin: 0 auto 52px;
}

.contact-grid {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  min-width: 240px;
  text-align: left;
  transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}
.contact-card:hover {
  border-color: rgba(91, 216, 255, 0.5);
  background: var(--surface-strong);
  transform: translateY(-3px);
}
.contact-card svg { color: var(--cyan); }
.contact-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
}
.contact-card em {
  display: block;
  font-style: normal;
  font-size: 13px;
  color: var(--muted);
}

/* =========================================================
   Footer
========================================================= */
.site-footer {
  padding: 40px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo { height: 26px; width: auto; opacity: 0.85; }
.footer-inner p { color: var(--muted); font-size: 13px; }

/* =========================================================
   Floating WhatsApp button
========================================================= */
.float-wa {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, #4fc9ff, #2f7fd6);
  color: #04121f;
  box-shadow: 0 10px 30px rgba(58, 159, 224, 0.45);
  z-index: 90;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.float-wa:hover { transform: scale(1.08); box-shadow: 0 14px 36px rgba(58, 159, 224, 0.6); }
.float-wa .icon-wa { width: 21px; height: 21px; }

/* =========================================================
   Responsive
========================================================= */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr; }
  .portfolio-grid { columns: 2 260px; }
}

@media (max-width: 760px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: rgba(5, 7, 9, 0.97);
    border-bottom: 1px solid var(--border);
    padding: 24px 28px 30px;
    gap: 20px;
  }

  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { columns: 1; }
  .contact-grid { flex-direction: column; align-items: stretch; }
  .hero-actions { flex-direction: column; align-items: center; }
}
