@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@600;700&display=swap');
:root {
  --navy: #1B2340;
  --gold: #B8963E;
  --off-white: #F7F6F2;
  --text-dark: #1C1C1C;
  --text-secondary: #5C5C5C;
  --white: #FFFFFF;
  --transition-fast: 0.3s ease;
  --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  /*zoom: 0.9;*/ /* Forces the browser to scale everything down to 90% rendering */
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--off-white);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}


h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.1; color: inherit; margin-bottom: 1rem; }
a { text-decoration: none; color: inherit; }
ul { list-style-position: inside; }

.container { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 5%; }

/* Utilities */
.text-navy { color: var(--navy); }
.text-gold { color: var(--gold) !important; }
.text-white { color: var(--white); }
.text-dark { color: var(--text-dark); }
.text-secondary { color: var(--text-secondary)!important; }

.bg-navy { background-color: var(--navy) !important; color: var(--white) !important; }
.bg-off-white { background-color: var(--off-white) !important; color: var(--text-dark) !important; }
.bg-white { background-color: var(--white) !important; color: var(--text-dark) !important; }

.headline-xl { font-size: clamp(3rem, 6vw, 5rem); font-weight: 700; letter-spacing: -0.02em; }
.headline-l { font-size: clamp(2.5rem, 4vw, 4rem); font-weight: 700; letter-spacing: -0.01em; }
.headline-m { font-size: clamp(2rem, 3vw, 3rem); font-weight: 600; }
.headline-s { font-size: clamp(1.25rem, 2vw, 1.75rem); font-weight: 600; }
.body-l { font-size: clamp(1.125rem, 1.5vw, 1.35rem); line-height: 1.6; color: var(--text-secondary); }
.bg-navy .body-l { color: rgba(255,255,255,0.8); }
.body-m { font-size: 1.125rem; }

.font-bold { font-weight: 700; }

.text-center { text-align: center; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-gold { background-color: var(--gold); color: var(--white); box-shadow: 0 4px 14px rgba(184, 150, 62, 0.3); }
.btn-gold:hover { background-color: #a38234; transform: translateY(-2px); }
.btn-outline-navy { background-color: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-navy:hover { background-color: var(--navy); color: var(--white); }
.btn-outline-white { background-color: transparent; color: var(--white); border-color: var(--white); }
.btn-outline-white:hover { background-color: var(--white); color: var(--navy); }

/* Nav Bar (Our Style Full Width Mega Menu) */
.navbar {
  position: fixed;
  top: 16px;
  left: 5%;
  width: 90%;
  padding: 12px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  transition: all var(--transition-fast);
  background-color: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 18px; 
  box-shadow: 0 8px 32px rgba(11, 31, 60, 0.06);
  color: var(--navy);
}
.navbar.scrolled {
  top: 10px;
  padding: 8px 32px;
  background-color: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 4px 24px rgba(11, 31, 60, 0.08);
}
.navbar:hover {
  background-color: rgba(255, 255, 255, 0.98) !important;
}

.logo-container { display: flex; align-items: center; gap: 14px; z-index: 101; position: relative; }
.logo-icon { height: 56px; width: auto; border-radius: 4px; }
.logo-text { 
  font-size: 1.75rem; 
  font-weight: 700; 
  letter-spacing: -0.03em; 
  display: flex; 
  background: linear-gradient(to right, #0B1B3D 0%, #A47D1C 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.logo-text span { 
  -webkit-text-fill-color: transparent; 
}

/* Centered Nav Links */
.nav-links-wrapper { flex-grow: 1; display: flex; justify-content: center; position: static; }
.nav-links { display: flex; gap: 36px; align-items: center; position: static; }
.nav-item {
  position: static; /* CRITICAL: Lets dropdown escape to the exact bounds of the navbar */
  font-size: 1.05rem;
  font-weight: 400; /* Lighter weight is more modern */
  letter-spacing: 0.01em; 
  padding: 16px 0; /* Thinner bounding box */
  color: var(--navy);
  cursor: pointer;
}
.nav-item > a {
    position: relative; /* Anchors the hover bridge below */
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}
/* Flawless vertical gap bridge attached directly to the text label */
.nav-item > a::after {
    content: '';
    position: absolute;
    top: 100%;
    left: -40px;
    right: -40px;
    height: 90px; /* Drops firmly through the dead zone into the mega menu */
    z-index: 1; /* Below the actual popup menu options */
    pointer-events: none; /* Only active when hovering! */
}
.nav-item:hover > a::after {
    pointer-events: auto; /* Activates the hitbox bridge only during hover */
}
.nav-item:hover > a { border-color: var(--gold); color: var(--gold); }

/* OUR STYLE SUB DROPDOWN MENU */
.mega-menu {
  position: absolute; 
  top: calc(100% + 15px); /* Crystal clear physical gap below the floating navbar */
  left: 0;
  width: 100%; /* Spans 100% of the entire navbar precisely! */
  background: var(--white);
  color: var(--navy);
  padding: 30px 0; /* Left padding dynamically injected by JS! */
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.08); 
  box-shadow: 0 16px 40px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
  text-align: left;
  z-index: 100;
}

.nav-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mega-menu a {
  display: inline-block;
  font-size: 1.125rem;
  color: var(--navy);
  border-radius: 6px;
  transition: color 0.2s;
  font-weight: 500;
}

.mega-menu a:hover {
  color: var(--gold);
}

/* Sections */
.panel {
  min-height: 100vh;
  width: 100%;
  padding: 120px 0;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Specific Interactive Image Styles */
.interactive-image-container {
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.1);
}
.engaging-image {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
    filter: brightness(0.95);
}
.interactive-image-container:hover {
    box-shadow: 0 30px 60px rgba(184, 150, 62, 0.3); /* Gold glow exactly matching your themes */
    transform: translateY(-8px);
    border-color: var(--gold);
}
.interactive-image-container:hover .engaging-image {
    transform: scale(1.08); /* Engaging zoom effect mimics motion/gif focus */
    filter: brightness(1.1); 
}
.engaging-hover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(184, 150, 62, 0.3) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 2;
    pointer-events: none;
}
.interactive-image-container:hover .engaging-hover-overlay {
    opacity: 1;
}

/* Hero Section */
.hero-section {
  height: 250vh; /* Extremely tall to allow two scroll phases: center, then expand to full. */
  position: relative;
  background: var(--navy);
  margin: 0;
  padding: 0;
}
.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0 5%;
}
.hero-text-container {
  width: 50%;
  position: relative;
  z-index: 20; /* High z-index to stay above video */
  pointer-events: none; /* Let clicks pass to video if necessary */
}
.hero-text-container * {
  pointer-events: auto; /* Re-enable clicks for buttons */
}

/* Horizontal Capsule Video wrapper, positioned lower to avoid navbar */
.video-capsule-wrapper {
  position: absolute;
  top: 60%; /* Brought further down to avoid navbar completely */
  right: -10%; /* Submerged offscreen slightly */
  transform: translateY(-50%);
  width: 68vw; /* 50% larger than 45vw */
  height: 72vh; /* 50% larger than 48vh */
  border-radius: 500px; /* Horizontal capsule shape */
  overflow: hidden;
  z-index: 5; /* Lower z-index so text can sit on top */
  background: rgba(0,0,0,0.8);
  box-shadow: 0 10px 50px rgba(0,0,0,0.3);
  will-change: width, height, inset, transform, border-radius;
}
.video-capsule-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }

/* Interactive WOW Tiles Elements (Model Style) */
.wow-tile {
  padding: 40px 30px;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.bg-navy .wow-tile {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
.wow-tile:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 60px rgba(0,0,0,0.1);
  border-color: var(--gold);
}
.bg-navy .wow-tile:hover {
  background: rgba(255,255,255,0.08);
  box-shadow: 0 25px 60px rgba(0,0,0,0.4);
}

/* DYNAMIC HOVER GIF PLACEHOLDER 
   Simulates playing a high-quality GIF inside a tile when hovered. */
.dynamic-gif-container {
    width: 100%;
    height: 300px;
    border-radius: 12px;
    background-color: var(--navy);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.4s ease;
}

/* The "Static" Layer */
.dynamic-gif-static {
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    background: linear-gradient(45deg, #1A2035, #2B355A);
    z-index: 2;
    transition: opacity 0.5s ease;
    display:flex; align-items:center; justify-content:center;
}

/* The Animated "GIF" Layer */
.dynamic-gif-animated {
    position: absolute;
    top:-50%; left:-50%; width:200%; height:200%;
    background: conic-gradient(from 180deg at 50% 50%, var(--gold) 0deg, var(--navy) 180deg, var(--gold) 360deg);
    z-index: 1;
    animation: rotateGradient 4s linear infinite;
    opacity: 0;
    transition: opacity 0.5s ease;
}

@keyframes rotateGradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hover logic */
.wow-tile:hover .dynamic-gif-static,
.glass-panel:hover .dynamic-gif-static {
    opacity: 0;
}
.wow-tile:hover .dynamic-gif-animated,
.glass-panel:hover .dynamic-gif-animated {
    opacity: 1;
}

/* Small instructions text inside standard placeholders so user knows what's happening */
.gif-overlay-text {
    position: relative; z-index: 3; color: white; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; pointer-events:none;
}
.gif-overlay-text span:first-child { font-weight: bold; margin-bottom: 8px; letter-spacing: 1px; text-transform: uppercase; font-size: 0.85rem;}
.gif-overlay-text span:last-child { font-size: 0.8rem; opacity: 0.7; }

/* Glassmorphism Models */
.glass-panel {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.06);
  color: var(--navy);
  transition: all 0.4s ease;
}
.glass-panel:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.1);
}

.pillar-icon { width: 48px; height: 48px; margin-bottom: 24px; color: var(--gold); }

/* NumHoot Logo integration */
.numhoot-brand-text {
  font-family: 'Fredoka', sans-serif;
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -2px;
  background: linear-gradient(135deg, #FF6B6B 0%, #FFD93D 50%, #6BCB77 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Custom Footer with Tech BG */
.footer {
  position: relative;
  background-color: var(--navy);
  color: var(--white);
  padding: 80px 5% 40px;
  overflow: hidden;
}
.footer-tech-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0.15;
  background-image: url('public/tech_bg.png');
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.footer-overlay-gradient {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(180deg, var(--navy) 0%, rgba(27,35,64,0.8) 50%, var(--navy) 100%);
  z-index: 1;
}
.footer-content { position: relative; z-index: 2; }

/* GSAP Defaults */
.gsap-fade-up { opacity: 0; transform: translateY(40px); }

/* Spacing & Flex */
.mb-2 { margin-bottom: 1rem; } .mb-4 { margin-bottom: 2rem; } .mb-6 { margin-bottom: 4rem; } 
.mt-4 { margin-top: 2rem; } .mt-6 { margin-top: 4rem; }
.flex { display: flex; } .gap-4 { gap: 1rem; } .gap-6 { gap: 2rem; } .items-center { align-items: center; } .flex-col { flex-direction: column; }

/* Business & Investors Specifics */
.content-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 1rem;
    color: var(--text-secondary);
}
.bg-navy .content-list { color: rgba(255,255,255,0.8); }
.content-list li {
    position: relative;
    padding-left: 24px;
}
.content-list li::before {
    content: "■";
    color: var(--gold);
    position: absolute;
    left: 0; top: 0;
    font-size: 0.8rem;
}

@media (max-width: 1024px) {
  .nav-links-wrapper { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 30px; }
  .video-capsule-wrapper { width: 90%; right: 5%; height: 40vh; transform: none; top: 15vh; position: relative; }
  .hero-text-container { width: 100%; top: 5vh; }
}

.hamburger { display: none; }
@media(max-width: 1024px) { .hamburger { display: block; background: none; border:none; cursor:pointer;} .hamburger span {background:var(--navy); display:block; height:2px; margin:5px 0; width:25px;} }

/* 3D Flip Card Component for Interactive Tiles */
.flip-card {
    background-color: transparent;
    perspective: 1000px;
    height: 380px; 
    border-radius: 20px;
    cursor: pointer;
}
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
}
.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}
.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.flip-card-front {
    background-color: var(--navy);
}
.flip-card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.4s ease;
}
.flip-card-front::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    pointer-events: none;
}
.flip-card:hover .flip-card-front img {
    opacity: 0.4;
}
.flip-card-back {
    background: linear-gradient(135deg, var(--navy), #0B1B3D);
    color: white;
    transform: rotateY(180deg);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.1);
}
.flip-card-back .pillar-icon svg { stroke: var(--gold); margin-bottom: 20px; }

/* Contact Form Utilities */
.contact-form { max-width: 600px; margin: 0 auto; background: var(--white); padding: 40px; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.05); }
.form-group { margin-bottom: 24px; text-align: left; }
.form-label { display: block; margin-bottom: 8px; font-weight: 500; color: var(--navy); }
.form-control { width: 100%; padding: 12px 16px; border: 1px solid rgba(27,35,64,0.2); border-radius: 6px; font-family: inherit; font-size: 1rem; box-sizing: border-box; }
.form-control:focus { outline: none; border-color: var(--gold); }
textarea.form-control { resize: vertical; min-height: 120px; }

/* =========================================
   AESTHETIC UPGRADES FOR BUSINESS REDESIGN
   ========================================= */

/* Atmospheric Background Elements */
.business-hero-bg {
    background: radial-gradient(circle at 50% 20%, rgba(184, 150, 62, 0.15) 0%, rgba(11, 27, 61, 1) 60%);
    position: relative;
    overflow: hidden;
}
.glowing-orb-1 {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(184, 150, 62, 0.2) 0%, transparent 70%);
    top: -200px;
    left: -150px;
    z-index: 0;
    pointer-events: none;
}
.glowing-orb-2 {
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
    bottom: -300px;
    right: -200px;
    z-index: 0;
    pointer-events: none;
}

/* Premium Glass & Abstract Cards */
.aesthetic-glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, border-color 0.4s ease;
}
.aesthetic-glass:hover {
    transform: translateY(-5px);
    border-color: rgba(184, 150, 62, 0.3);
}

/* Dark Terminal Style (For Capabilities) */
.data-terminal {
    background: #060e20;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
    font-family: 'Inter', monospace;
    position: relative;
}
.data-terminal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--gold);
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
}

/* Stunning Typography Tricks */
.text-gradient-gold {
    background: linear-gradient(135deg, #FFD93D 0%, #B8963E 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Staggered Vertical Layout */
.staggered-list .stagger-card {
    transition: all 0.3s ease;
    border-left: 4px solid rgba(255,255,255,0.1);
    padding-left: 20px;
    margin-bottom: 30px;
}
.staggered-list .stagger-card:hover {
    border-left-color: var(--gold);
    transform: translateX(10px);
}

/* Full Width Cinematic Split */
.cinematic-split {
    display: flex;
    flex-wrap: wrap;
    min-height: 80vh;
}
.cinematic-split > div {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 8%;
}

/* ------------------------------------------------------------------------
   Network Map Physics - Platform Capabilities
------------------------------------------------------------------------ */
.bg-light-gradient {
    background: linear-gradient(180deg, #F9F9FA 0%, #FFFFFF 100%);
    color: var(--navy);
}

.network-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 550px;
    margin: 0 auto 60px;
    z-index: 5;
}

.network-svg-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.network-line {
    stroke: var(--gold);
    stroke-width: 2px;
    stroke-dasharray: 8 4;
    transition: stroke 0.4s ease, opacity 0.4s ease, filter 0.4s ease;
    filter: drop-shadow(0 0 3px rgba(184,150,62,0.3));
}

.center-node {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFD93D 0%, #B8963E 100%);
    box-shadow: 0 0 30px rgba(184,150,62,0.4), inset 0 0 10px rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    color: var(--navy);
    font-weight: 800;
    font-size: 1.4rem;
    cursor: default;
    animation: centerPulse 3.5s infinite ease-in-out;
}

@keyframes centerPulse {
    0% { box-shadow: 0 0 20px rgba(184,150,62,0.3), inset 0 0 10px rgba(255,255,255,0.5); transform: translate(-50%, -50%) scale(1); }
    50% { box-shadow: 0 0 45px rgba(184,150,62,0.6), inset 0 0 10px rgba(255,255,255,0.5); transform: translate(-50%, -50%) scale(1.02); }
    100% { box-shadow: 0 0 20px rgba(184,150,62,0.3), inset 0 0 10px rgba(255,255,255,0.5); transform: translate(-50%, -50%) scale(1); }
}

.satellite-node {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: #FFFFFF;
    border: 2px solid rgba(11,27,61,0.05);
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(11,27,61,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--navy);
    font-weight: 600;
    font-size: 0.95rem;
    z-index: 3;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, background 0.4s ease, color 0.4s ease, border-color 0.4s ease;
    -webkit-tap-highlight-color: transparent;
    animation: floatNode 4s ease-in-out infinite;
}

@keyframes floatNode {
    0%, 100% { margin-top: 0; }
    50% { margin-top: -8px; }
}

.satellite-node:hover {
    transform: translate(-50%, -50%) scale(1.1);
    border-color: var(--gold);
    box-shadow: 0 15px 30px rgba(184,150,62,0.2);
    z-index: 4;
}

.satellite-node.active {
    background: var(--navy);
    color: var(--gold);
    border-color: var(--gold);
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 15px 30px rgba(11,27,61,0.3), 0 0 20px rgba(184,150,62,0.3);
    z-index: 4;
}

/* Focus Mode Overlay */
.network-overlay {
    position: absolute;
    inset: -50px;
    background: rgba(249, 249, 250, 0.7);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    border-radius: 20px;
}

.network-container.focus-active .network-overlay {
    opacity: 0;
    pointer-events: none;
}

.network-container.focus-active .network-line.active-line {
    opacity: 1;
    stroke: var(--gold);
    stroke-width: 3px;
    stroke-dasharray: 0;
}

/* Typography & Lists for presentation pad */
.capability-presentation-pad p {
    color: var(--navy);
    text-align: justify;
}

.capability-presentation-pad .content-list {
    list-style: none;
    padding-left: 0;
}

.capability-presentation-pad .content-list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 12px;
    color: var(--navy);
    text-align: justify;
    line-height: 1.8;
}

.capability-presentation-pad .content-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23B8963E'%3E%3Cpath d='M12 1L14.5 9.5L23 12L14.5 14.5L12 23L9.5 14.5L1 12L9.5 9.5L12 1Z'/%3E%3C/svg%3E");
    background-size: cover;
}

/* Dynamic Tab Content Box */
.capability-presentation-pad {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(11,27,61,0.06);
    border: 1px solid rgba(11,27,61,0.05);
    min-height: 400px;
    overflow: hidden;
}

.tab-content {
    display: none;
    animation: fadeUpContent 0.5s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    padding: 60px;
}

.tab-content.active {
    display: block;
}

@keyframes fadeUpContent {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media(max-width: 768px) {
    .network-container { height: 450px; max-width: 100%; }
    .center-node { width: 110px; height: 110px; font-size: 1.1rem; }
    .satellite-node { width: 90px; height: 90px; font-size: 0.8rem; line-height: 1.2; padding: 5px; }
    .capability-presentation-pad { margin: 0 20px; }
    .tab-content { padding: 30px; }
}

/* =========================================
   OUR STYLE PEOPLE PAGE HERO (3-PILL VERTICAL STACK)
   ========================================= */
.people-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}
:root {
   --hero-pill-w: 560px;
   --hero-pill-h: 315px;
   --hero-pill-gap: 0px; 
}

.allwyn-pills-carousel-wrapper {
    position: relative;
    width: 100%;
    height: 85vh;
    max-height: 900px;
    overflow: hidden;
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}
.allwyn-pills-track {
    /* Pin absolute anchor layout forcing index 1 visually directly against absolute flexbox coordinates independent of block length */
    --track-target-y: calc( -1 * (1.5 * var(--hero-pill-h) + var(--hero-pill-gap)) );
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, var(--track-target-y));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--hero-pill-gap);
}
.vertical-nav-pill {
    width: var(--hero-pill-w); 
    height: var(--hero-pill-h); 
    border-radius: 300px;
    overflow: hidden;
    flex-shrink: 0;
    transition: all 1.2s cubic-bezier(0.77, 0, 0.175, 1);
    opacity: 0.3;
    background: #0B1F3C;
    border: 1px solid rgba(255, 255, 255, 0.05); /* Scales removed so they physically touch */
}
.vertical-nav-pill.active-pill {
    opacity: 1;
    box-shadow: 0 40px 80px rgba(0,0,0,0.5), inset 0 0 20px rgba(184,150,62,0.15);
}
.vertical-nav-pill video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 1024px) {
    :root {
        --hero-pill-w: 320px;
        --hero-pill-h: 180px;
        --hero-pill-gap: 0px;
    }
    .people-hero-grid { grid-template-columns: 1fr; text-align: center; gap: 20px; padding-top: 40px; }
    .people-hero-text p { margin-left: auto; margin-right: auto; }
    .allwyn-pills-carousel-wrapper { height: 60vh; mask-image: none; -webkit-mask-image: none; }
}

/* =========================================
   NUMHOOT COVERFLOW SLIDER (60-20-20 Layout)
   ========================================= */
.numhoot-horizontal-slider-wrapper {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 450px;
    margin-top: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.numhoot-slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}
.slider-card {
    position: absolute;
    top: 0;
    bottom: 0;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    transition: all 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}
.numhoot-card-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Positioning States --- */
.slider-card[data-position="left"] {
    left: 0;
    width: 25%;
    transform: scale(0.85);
    transform-origin: left center;
    opacity: 0.5;
    z-index: 1;
    cursor: pointer;
}
.slider-card[data-position="center"] {
    left: 20%;
    width: 60%;
    transform: scale(1);
    opacity: 1;
    z-index: 2;
    cursor: default;
    box-shadow: 0 25px 60px rgba(0,0,0,0.6);
}
.slider-card[data-position="right"] {
    left: 75%;
    width: 25%;
    transform: scale(0.85);
    transform-origin: right center;
    opacity: 0.5;
    z-index: 1;
    cursor: pointer;
}

/* --- Hide overlays on left/right edges for focus --- */
.slider-card:not([data-position="center"]) .video-overlay .play-btn,
.slider-card:not([data-position="center"]) .video-overlay .video-title {
    opacity: 0;
    transform: translateY(20px);
}
.slider-card[data-position="center"].is-playing .video-overlay {
    opacity: 0;
    pointer-events: none;
}

/* --- Overlays & Buttons (reused metrics) --- */
.video-overlay {
    position: absolute;
    inset: 0;
    /* Adjust gradient to handle text at the top and play button in the middle */
    background: linear-gradient(to bottom, rgba(11,31,60,0.85) 0%, rgba(11,31,60,0.1) 40%, rgba(11,31,60,0.5) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center the play button vertically */
    align-items: center; /* Center horizontally */
    padding: 40px;
    transition: all 0.5s ease;
    z-index: 10;
}
.video-overlay .video-title {
    position: absolute;
    top: 50px;
    left: 10%;
    right: 10%;
    text-align: center;
    color: var(--white);
    font-size: 1.8rem;
    line-height: 1.3;
    font-weight: 600;
    margin: 0;
    transform: translateY(0);
    transition: all 0.5s ease;
}
.video-overlay .play-btn {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: rgba(184,150,62,0.95);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: transform 0.3s, background 0.3s;
}
.video-overlay .play-btn:hover {
    transform: scale(1.1);
    background: #FFF;
}
.video-overlay .play-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
    margin-left: 4px;
}

/* --- Navigation Arrows --- */
.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}
.slider-nav-btn svg { width: 20px; height: 20px; stroke: currentColor; border: none; }
.slider-nav-btn:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); transform: translateY(-50%) scale(1.1); }
.slider-nav-btn.nav-left { left: 4%; }
.slider-nav-btn.nav-right { right: 4%; }

@media (max-width: 1024px) {
    .video-cards-grid { grid-template-columns: 1fr; gap: 40px; }
    .allwyn-video-card { aspect-ratio: 16 / 9; }
}

/* ========================================================================
   GLOBAL MOBILE NAVIGATION & LAYOUT RESPONSIVENESS
   ======================================================================== */

/* Prevent structural elements from pushing screens sideways */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* Make sure the desktop spacer block vanishes on tablets and phones */
@media (max-width: 1024px) {
    .hide-mobile-spacer {
        display: none !important;
    }
}

/* Navigation Overhaul for Tablets and Mobile Screens */
@media (max-width: 991px) {
    /* Shrink the tiny tagline text so it wraps beautifully without breaking layout */
    .logo-tagline {
        font-size: 0.55rem !important;
        white-space: normal;
        max-width: 180px;
    }

    /* Transform navigation wrapper into a full screen mobile overlay menu */
    .nav-links-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--navy);
        padding-top: 140px;
        transition: right 0.4s ease;
        z-index: 999;
    }

    /* Pull menu out over the screen when active */
    .nav-links-wrapper.active {
        right: 0;
    }

    /* Stack links vertically with beautiful padding */
    .nav-links {
        flex-direction: column !important;
        align-items: center;
        gap: 24px !important;
        display: flex;
    }

    .nav-item a {
        font-size: 1.5rem !important;
        color: var(--white) !important;
    }

    /* Animate the hamburger button into an "X" when clicked */
    .hamburger {
        display: block !important;
        z-index: 1000;
        position: relative;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Global Layout Fixes for internal page components */
    .container {
        padding: 0 6% !important;
    }
    
    /* Switch any layout elements leveraging inline flex rows into single stacked blocks */
    div[style*="display: flex"] {
        flex-wrap: wrap !important;
    }
}

/* Targeted fixes for mobile device aspect ratios */
@media (max-width: 480px) {
    .logo-tagline {
        display: none; /* Hide tagline on ultra small phones to make space for the business title */
    }
    
    .headline-xl { font-size: 2.6rem !important; }
    .headline-l  { font-size: 2.2rem !important; }
    .headline-m  { font-size: 1.8rem !important; }
}
/**/

/* ==========================================================================
   MOBILE NAVIGATION BREAKPOINT (Adjust 991px to your preferred breakpoint)
   ========================================================================== */
@media screen and (max-width: 991px) {
    
    /* 1. Hide the horizontal spacing element on mobile viewports */
    .hide-mobile-spacer {
        display: none !important;
    }

    /* 2. Transform the links wrapper into a fixed full-screen overlay overlaying the page */
    .nav-links-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #1b2340 !important; /* Forces your solid bg-navy overlay */
        
        /* Flexbox handles absolute centering for menu links */
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        
        /* Hidden state by default */
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        
        /* Smooth fade and scale transition logic */
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 998; /* Sits directly beneath the button layer */
    }

    /* 3. Reveal the menu panel when your inline JS adds the 'active' toggle class */
    .nav-links-wrapper.active {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    /* 4. Force links container to stack vertically instead of inline layout */
    .nav-links {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px !important; /* Healthy breathing space between click targets */
        text-align: center !important;
        width: 100%;
    }

    /* 5. Mobile Link Typography Enhancements */
    .nav-item {
        width: 100%;
    }

    .nav-item a {
        color: #ffffff !important; /* Strips any inherited darker layout link styles */
        font-size: 1.75rem !important; /* Easy touch target scaling */
        font-weight: 600 !important;
        letter-spacing: 1px;
        display: inline-block;
        padding: 10px 20px;
        width: auto;
        transition: color 0.2s ease;
    }
    
    .nav-item a:hover,
    .nav-item a:focus {
        color: #f0c45a !important; /* Highlights selection using your brand gold tint */
    }

    /* 6. Push critical controls above the emerging background overlay */
    .hamburger, 
    .logo-container {
        position: relative !important;
        z-index: 999 !important; /* Keeps branding & burger trigger functional and visible */
    }
}

@media screen and (max-width: 991px) {
    
    /* 1. Compact container setup */
    .nav-links-wrapper {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: auto !important;
        background-color: #1b2340 !important;
        padding: 20px 0; /* Reduced top/bottom padding significantly */
        
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: center !important;
        
        /* Animation states */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        pointer-events: none;
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
        z-index: 998;
        
        /* BORDER LINE REMOVED */
        border-bottom: none !important; 
    }

    /* 2. Slide down and fade in when active */
    .nav-links-wrapper.active {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0);
        pointer-events: auto !important;
    }

    /* 3. Significantly smaller gaps between the items */
    .nav-links {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important; /* Brought gaps down from 20px/30px to 12px for a tight, elegant look */
        text-align: center !important;
        width: 100%;
    }

    /* 4. Cleaner, snug text padding */
    .nav-item a {
        color: #ffffff !important;
        font-size: 1.15rem !important; /* Slightly cleaner size for a snug look */
        font-weight: 500 !important;   /* Sleeker weight */
        text-decoration: none;
        padding: 4px 0; /* Minimized item height footprint */
        display: inline-block;
    }

    .navbar {
        position: relative !important;
    }
}