/* ============================================================
   Bluepineapple — styles.css
   Extracted from inline <style> block in index.html
   ============================================================ */

/* ===== CUSTOM DESIGN TOKENS ===== */
:root {
  --bg-base: #050d1e;
  --bg-surface: #071428;
  --bg-card: #0a1c38;
  --bg-glass: rgba(10, 28, 60, 0.55);
  --blue-900: #0D1F4E;
  --blue-700: #0A3AA0;
  --blue-500: #0A4FDB;
  --blue-400: #2D6FFF;
  --blue-300: #5A90FF;
  --green-500: #00F5C4;
  --green-400: #00D9AD;
  --green-200: #A0FDE8;
  --white: #f8fafc;
  --gray-100: #e8edf8;
  --gray-300: #8fa3c8;
  --gray-500: #4a5f82;
  --gray-700: #222e45;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-base);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
  background: var(--blue-500);
  border-radius: 3px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--blue-400) 0%, var(--green-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-blue-green {
  background: linear-gradient(135deg, var(--blue-400), var(--green-500));
}

/* Section tag pill */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-500);
  border: 1px solid rgba(0, 245, 196, 0.3);
  background: rgba(0, 245, 196, 0.08);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

/* Glass navbar */
.navbar.scrolled {
  background: rgba(5, 13, 30, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Scroll animations */
[data-animate="fadeUp"] {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s var(--ease-out);
}
[data-animate="fadeUp"].visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero grid overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(45, 111, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 111, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 100%);
  pointer-events: none;
}

/* Glow orbs */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  opacity: 0.3;
}

/* Card hover lift */
.card-lift {
  transition: all 0.4s var(--ease-out);
}
.card-lift:hover {
  transform: translateY(-6px);
}

/* Service card */
.service-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 36px 28px;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-400), var(--green-500));
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}
.service-card:hover::before {
  opacity: 1;
}
.service-card:hover {
  border-color: rgba(45, 111, 255, 0.25);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* Product card Z-pattern */
.product-section {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.4s var(--ease-out);
}
.product-section:hover {
  border-color: rgba(45, 111, 255, 0.2);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.impact-badge {
  background: linear-gradient(135deg, rgba(0, 245, 196, 0.15), rgba(45, 111, 255, 0.15));
  border: 1px solid rgba(0, 245, 196, 0.25);
  border-radius: 12px;
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Case study card */
.case-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.4s var(--ease-out);
}
.case-card:hover {
  border-color: rgba(45, 111, 255, 0.25);
  transform: translateY(-4px);
}

.metric-number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--blue-400), var(--green-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Badge / cert */
.cert-badge {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s var(--ease-out);
}
.cert-badge:hover {
  border-color: var(--blue-400);
  background: rgba(45, 111, 255, 0.08);
}

/* Form inputs */
.form-input {
  width: 100%;
  background: rgba(5, 13, 30, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 0.95rem;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  transition: border-color 0.25s;
  outline: none;
}
.form-input:focus {
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(45, 111, 255, 0.15);
}
.form-input::placeholder {
  color: var(--gray-500);
}
textarea.form-input {
  resize: vertical;
  min-height: 110px;
}

/* Trust bar infinite scroll */
@keyframes scrollLogos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.trust-track {
  animation: scrollLogos 40s linear infinite;
}
.trust-track:hover {
  animation-play-state: paused;
}

/* Hamburger */
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
  border-radius: 2px;
}
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: rgba(5, 13, 30, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  padding: 100px 32px 32px;
  transition: right 0.4s var(--ease-out);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}
.mobile-menu.open {
  right: 0;
}
.mobile-menu a {
  display: block;
  padding: 14px 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--gray-300);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: color 0.2s;
}
.mobile-menu a:hover {
  color: var(--green-500);
}

/* Video placeholder */
.video-placeholder {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}
.video-placeholder:hover {
  border-color: var(--blue-400);
  transform: scale(1.01);
}

/* Newsletter */
.newsletter-input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 16px;
  color: var(--white);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.25s;
  width: 100%;
  font-family: 'Inter', sans-serif;
}
.newsletter-input:focus {
  border-color: var(--blue-400);
}

/* Scroll indicator */
@keyframes scrollWheel {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(8px);
    opacity: 0;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
}
.float-anim {
  animation: float 6s var(--ease-out) infinite;
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--green-500);
  color: #000;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s var(--ease-out);
  z-index: 9999;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ===== PARALLAX DECORATIVE ELEMENTS ===== */

/* Section divider — animated horizontal rule */
.section-divider {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(45, 111, 255, 0.15) 20%,
    rgba(0, 245, 196, 0.25) 50%,
    rgba(45, 111, 255, 0.15) 80%,
    transparent 100%);
  transform: scaleX(0);
  transition: transform 1.2s var(--ease-out);
  will-change: transform;
  z-index: 1;
}
.section-divider.visible {
  transform: scaleX(1);
}
.section-divider.top {
  top: 0;
}
.section-divider.bottom {
  bottom: 0;
}

/* Parallax floating accent lines */
.parallax-line {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.12;
  transition: opacity 1s var(--ease-out);
}
.parallax-line.visible {
  opacity: 0.25;
}

.pline-1 {
  top: 15%;
  left: -5%;
  width: 40%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue-400), transparent);
}
.pline-2 {
  bottom: 20%;
  right: -8%;
  width: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green-500), transparent);
}
.pline-3 {
  top: 40%;
  right: 2%;
  width: 30%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue-300), transparent);
}
.pline-4 {
  top: 60%;
  left: 5%;
  width: 35%;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(0, 245, 196, 0.3), transparent);
}
.pline-5 {
  top: 30%;
  left: -10%;
  width: 55%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45, 111, 255, 0.2), transparent);
}
.pline-6 {
  bottom: 35%;
  right: 0;
  width: 25%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green-400), transparent);
}

/* Diagonal parallax accent stripes */
.parallax-stripe {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.8s var(--ease-out);
}
.parallax-stripe.visible {
  opacity: 0.06;
}

.stripe-1 {
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(ellipse at top right, var(--blue-400), transparent 70%);
  transform: translateY(var(--parallax-offset, 0px));
}
.stripe-2 {
  bottom: 0;
  left: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(ellipse at bottom left, var(--green-500), transparent 70%);
  transform: translateY(var(--parallax-offset, 0px));
}

/* Section entrance reveal — horizontal line draws across */
.reveal-line {
  display: block;
  width: 80px;
  height: 3px;
  margin: 16px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue-400), var(--green-500));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.8s var(--ease-out) 0.3s;
}
.reveal-line.revealed {
  transform: scaleX(1);
}

/* Pulsing glow rings behind content */
@keyframes pulseGlow {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50% { opacity: 0.25; transform: scale(1.05); }
}
.pulse-glow {
  animation: pulseGlow 4s ease-in-out infinite;
}

/* ===== FOOTER ===== */
.footer {
  padding: 60px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #000;
}

.footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 30px;
}

.footer-brand .nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 16px;
}

.footer-brand .nav-logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-top: 12px;
  max-width: 320px;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  transition: all 0.25s;
}

.footer-social a:hover {
  background: rgba(45, 111, 255, 0.15);
  color: var(--blue-400);
}

.footer-col h5 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-500);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.footer-col a {
  color: var(--gray-500);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--green-500);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--gray-500);
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--gray-500);
  margin: 0;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* Scroll progress bar at top of page */
#scrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-400), var(--green-500));
  z-index: 10000;
  width: 0%;
  transition: width 0.1s linear;
}