/* ==========================================================================
   Wayne E Solutions — style.css
   Theme: Red / White base + Navy (depth) + Gold (accent)
   ========================================================================== */

:root {
  --red: #D62839;
  --red-dark: #A81E2C;
  --red-light: #FF5C6C;
  --gold: #F2A93B;
  --navy: #0F1B2D;
  --navy-soft: #1B2A44;
  --white: #FFFFFF;
  --off-white: #FAF8F6;
  --gray: #6B7280;
  --gray-light: #E7E5E2;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius: 18px;
  --shadow-soft: 0 10px 30px rgba(15, 27, 45, 0.08);
  --shadow-hover: 0 20px 45px rgba(214, 40, 57, 0.25);
  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--off-white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, .display-font {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a { text-decoration: none; }

::selection { background: var(--red); color: var(--white); }

/* Focus visibility (accessibility) */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Utility text styles
   ========================================================================== */

.gradient-text {
  background: linear-gradient(100deg, var(--red) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.4em;
  position: relative;
}

.section-sub {
  color: var(--gray);
  font-size: 1.05rem;
  max-width: 620px;
}

.section-pad { padding: 110px 0; }
@media (max-width: 768px) { .section-pad { padding: 70px 0; } }

/* ==========================================================================
   Navbar
   ========================================================================== */

.wes-navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  padding: 22px 0;
  background: transparent;
  transition: var(--transition);
}

.wes-navbar.scrolled {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 14px 0;
  box-shadow: 0 4px 24px rgba(15,27,45,0.06);
}

/* Navbar sitting on top of a full-bleed video — keep text readable */
.wes-navbar.on-video:not(.scrolled) .wes-logo,
.wes-navbar.on-video:not(.scrolled) .wes-nav-link {
  color: var(--white);
}
.wes-navbar.on-video:not(.scrolled) .wes-nav-link::after {
  background: linear-gradient(90deg, var(--gold), var(--white));
}
.wes-navbar.on-video:not(.scrolled) .navbar-toggler {
  color: var(--white);
}

.wes-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 10px;
}

.wes-logo .dot { color: var(--red); }

.wes-nav-link {
  position: relative;
  color: var(--navy);
  font-weight: 500;
  font-size: 0.95rem;
  margin: 0 14px;
  padding: 6px 0;
}

.wes-nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  transition: width var(--transition);
}

.wes-nav-link:hover::after,
.wes-nav-link.active::after { width: 100%; }

.wes-nav-link:hover, .wes-nav-link.active { color: var(--red); }

.btn-wes-primary {
  background: linear-gradient(100deg, var(--red), var(--red-dark));
  color: var(--white);
  border: none;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  box-shadow: 0 8px 20px rgba(214, 40, 57, 0.25);
}

.btn-wes-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: var(--shadow-hover);
  color: var(--white);
}

.btn-wes-outline {
  border: 2px solid var(--navy);
  color: var(--navy);
  background: transparent;
  padding: 10px 26px;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-wes-outline:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-3px);
}

/* ==========================================================================
   Hero (Home) — full viewport, video bg, 3D orbs, slide animation
   ========================================================================== */

/* ---- Full-bleed video section (sits above the content hero) ---- */
.hero-video-section {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  background: var(--navy);
}

.hero-video-section video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-video-section .fallback-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(214,40,57,0.35), transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(242,169,59,0.3), transparent 50%),
    var(--navy);
}

/* Just enough scrim at top for nav legibility, and bottom for a smooth
   hand-off into the content section below — the video itself stays clear */
.hero-video-section .top-scrim {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 220px;
  background: linear-gradient(180deg, rgba(15,27,45,0.55) 0%, rgba(15,27,45,0) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-video-section .bottom-scrim {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 180px;
  background: linear-gradient(0deg, var(--off-white) 0%, rgba(250,248,246,0) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-video-caption {
  position: absolute;
  left: 0; right: 0; bottom: 150px;
  z-index: 2;
  text-align: center;
  color: var(--white);
}
.hero-video-caption .eyebrow { color: var(--gold); }
.hero-video-caption .eyebrow::before { background: var(--white); }

.hero-sound-toggle {
  position: absolute;
  left: 50%;
  bottom: 90px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 50px;
  border: 1.5px solid rgba(255,255,255,0.6);
  background: rgba(15,27,45,0.55);
  backdrop-filter: blur(6px);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  animation: soundPulse 2.4s infinite;
}
.hero-sound-toggle:hover {
  background: var(--red);
  border-color: var(--red);
  transform: translateX(-50%) scale(1.05);
}
.hero-sound-toggle.is-muted-off { animation: none; }
@keyframes soundPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.25); }
  50% { box-shadow: 0 0 0 12px rgba(255,255,255,0); }
}
@media (max-width: 768px) {
  .hero-sound-toggle { bottom: 70px; padding: 11px 20px; font-size: 0.85rem; }
}

/* ---- Content hero (headline / CTA / 3D orbs) — sits below the video ---- */
.hero {
  position: relative;
  padding: 120px 0 100px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, #FFFDFB 0%, #FBEFEE 100%);
}

/* Floating 3D orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  z-index: 1;
  will-change: transform;
  animation: float 9s ease-in-out infinite;
}

.orb-1 {
  width: 260px; height: 260px;
  top: 8%; left: 6%;
  background: radial-gradient(circle at 35% 30%, var(--red-light), var(--red-dark) 75%);
  opacity: 0.35;
  animation-duration: 11s;
}

.orb-2 {
  width: 160px; height: 160px;
  top: 62%; left: 12%;
  background: radial-gradient(circle at 35% 30%, var(--gold), #C97D10 75%);
  opacity: 0.3;
  animation-duration: 8s;
  animation-delay: -2s;
}

.orb-3 {
  width: 320px; height: 320px;
  top: 15%; right: 5%;
  background: radial-gradient(circle at 35% 30%, var(--red), var(--navy-soft) 85%);
  opacity: 0.25;
  animation-duration: 13s;
  animation-delay: -4s;
}

.orb-4 {
  width: 130px; height: 130px;
  bottom: 8%; right: 18%;
  background: radial-gradient(circle at 35% 30%, var(--gold), var(--red) 80%);
  opacity: 0.3;
  animation-duration: 7s;
  animation-delay: -1s;
}

@keyframes float {
  0%, 100% { transform: translate3d(0,0,0) rotate(0deg); }
  50% { transform: translate3d(0,-30px,0) rotate(8deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.hero-content h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.05;
  margin-bottom: 0.3em;
}

.hero-content p.lead {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--gray);
  max-width: 640px;
  margin: 0 auto 2.2em;
}

.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.slide-in-up {
  opacity: 0;
  transform: translateY(36px);
  animation: slideInUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }

@keyframes slideInUp {
  to { opacity: 1; transform: translateY(0); }
}

.scroll-cue {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--gray);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scroll-cue .line {
  width: 1px; height: 34px;
  background: linear-gradient(180deg, var(--red), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ==========================================================================
   3D Tilt Cards (used across pages: pillars, products, team, industries)
   ========================================================================== */

.tilt-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition);
  transform-style: preserve-3d;
  perspective: 800px;
  height: 100%;
  border: 1px solid rgba(15,27,45,0.05);
}

.tilt-card:hover {
  transform: translateY(-10px) rotateX(4deg) rotateY(-4deg);
  box-shadow: var(--shadow-hover);
}

.tilt-icon {
  width: 62px; height: 62px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 22px;
  transition: var(--transition);
  box-shadow: 0 10px 20px rgba(214,40,57,0.25);
}

.tilt-card:hover .tilt-icon {
  transform: rotate(-8deg) scale(1.08);
}

.tilt-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.tilt-card p { color: var(--gray); font-size: 0.96rem; margin-bottom: 0; }

/* Alternate icon color for variety */
.tilt-icon.gold { background: linear-gradient(135deg, var(--gold), #C97D10); box-shadow: 0 10px 20px rgba(242,169,59,0.3); }
.tilt-icon.navy { background: linear-gradient(135deg, var(--navy-soft), var(--navy)); box-shadow: 0 10px 20px rgba(15,27,45,0.3); }

/* ==========================================================================
   Product cards (glass + gradient border)
   ========================================================================== */

.product-card {
  position: relative;
  border-radius: 22px;
  padding: 2px;
  background: linear-gradient(135deg, var(--red), var(--gold));
  height: 100%;
  transition: var(--transition);
}

.product-card:hover { transform: translateY(-8px); }

.product-card-inner {
  background: var(--white);
  border-radius: 20px;
  padding: 40px 34px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  background: rgba(214,40,57,0.08);
  color: var(--red);
  margin-bottom: 18px;
  width: fit-content;
}

.product-card-inner h3 { font-size: 1.5rem; margin-bottom: 10px; }
.product-card-inner p { color: var(--gray); }

.product-features {
  list-style: none;
  padding: 0;
  margin: 20px 0 26px;
}
.product-features li {
  padding: 6px 0;
  font-size: 0.92rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 10px;
}
.product-features li i { color: var(--red); }

.product-link {
  margin-top: auto;
  color: var(--navy);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}
.product-link i { transition: var(--transition); }
.product-card:hover .product-link { color: var(--red); }
.product-card:hover .product-link i { transform: translateX(6px); }

/* ==========================================================================
   Stats / Bands
   ========================================================================== */

.stat-band {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: var(--white);
  border-radius: 26px;
  padding: 60px 40px;
  position: relative;
  overflow: hidden;
}

.stat-band::before {
  content: "";
  position: absolute;
  width: 340px; height: 340px;
  background: radial-gradient(circle, var(--red) 0%, transparent 70%);
  opacity: 0.35;
  top: -120px; right: -100px;
  border-radius: 50%;
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--gold);
}
.stat-label { color: rgba(255,255,255,0.7); font-size: 0.9rem; }

/* ==========================================================================
   Timeline (Custom Software process)
   ========================================================================== */

.wes-timeline { position: relative; padding-left: 0; }

.timeline-item {
  position: relative;
  padding: 0 0 46px 60px;
  border-left: 2px dashed rgba(214,40,57,0.25);
  margin-left: 24px;
}
.timeline-item:last-child { border-left: 2px dashed transparent; padding-bottom: 0; }

.timeline-marker {
  position: absolute;
  left: -25px; top: 0;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(214,40,57,0.3);
}

.timeline-item h4 { margin-bottom: 6px; }
.timeline-item p { color: var(--gray); max-width: 520px; margin-bottom: 0; }

/* ==========================================================================
   Tech stack strip
   ========================================================================== */

.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--gray-light);
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
  margin: 6px;
}
.tech-pill:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(214,40,57,0.12);
}
.tech-pill i { color: var(--gold); }

/* ==========================================================================
   Team cards
   ========================================================================== */

.team-card { text-align: center; }
.team-photo {
  width: 130px; height: 130px;
  border-radius: 50%;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--red), var(--gold));
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}
.team-card:hover .team-photo { transform: scale(1.06) rotate(-3deg); }
.team-role { color: var(--red); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }

/* ==========================================================================
   Contact page
   ========================================================================== */

.contact-form .form-control,
.contact-form .form-select {
  border: 1.5px solid var(--gray-light);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 0.95rem;
  transition: var(--transition);
  background: var(--white);
}
.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(214,40,57,0.1);
}
.contact-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.contact-info-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  height: 100%;
}
.contact-info-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-item i {
  color: var(--gold);
  font-size: 1.2rem;
  margin-top: 3px;
}

.whatsapp-float {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 60px; height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 1.6rem;
  box-shadow: 0 10px 30px rgba(37,211,102,0.4);
  z-index: 998;
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.55); }
  70% { box-shadow: 0 0 0 18px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ==========================================================================
   Page header banner (About / Products / Custom Software / Contact)
   ========================================================================== */

.page-header {
  padding: 170px 0 90px;
  background: linear-gradient(180deg, #FFFDFB 0%, #FBEFEE 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.page-header .orb { opacity: 0.2; }

/* ==========================================================================
   Footer
   ========================================================================== */

.wes-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 70px 0 30px;
}
.wes-footer h5 { color: var(--white); font-size: 1.05rem; margin-bottom: 18px; }
.wes-footer a { color: rgba(255,255,255,0.65); transition: var(--transition); }
.wes-footer a:hover { color: var(--gold); }
.wes-footer .wes-logo { color: var(--white); }
.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  margin-right: 10px;
  transition: var(--transition);
}
.footer-social:hover {
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-4px);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 40px;
  padding-top: 24px;
  font-size: 0.85rem;
  text-align: center;
  color: rgba(255,255,255,0.45);
}

/* ==========================================================================
   Fade-up scroll animation (used with .reveal class + IntersectionObserver)
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22,1,0.36,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
