/* ==========================================================================
   DenEB Overhaul - Zetta Joule Theme Overrides (White Glassmorphism)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Montserrat:wght@200;300;400;600;800&display=swap');

body, h1, h2, h3, h4, h5, h6, p, a, span, div, button, 
.subtitle-1, .subtitle-2, .label-style-1, .label-style-2, 
.text-style-wrap-pretty, .text-size-medium {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  letter-spacing: -0.02em; /* Cleaner, modern look */
}

.heading-display-1 {
  font-family: 'Montserrat', sans-serif !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

:root {
  /* DenEB Colors */
  --deneb-bg: #f8fafc;
  --deneb-text: #0f172a;
  --deneb-text-secondary: #475569;
  --deneb-accent-blue: #0A438A;
  --deneb-accent-red: #D93025;

  /* Overriding Zetta Joule Webflow Variables */
  --_color---colors-primary--white: #0f172a !important; /* Force all originally white text to be dark */
  --_color---colors-grey--grey-250: #475569 !important; /* Muted text */
}

/* Force Text Colors */
.text-color-white,
.text-color-black,
.text-color-dark-blue {
  color: var(--deneb-text) !important;
}

.text-color-grey-250,
.text-color-grey-750 {
  color: var(--deneb-text-secondary) !important;
}

/* Force Background Colors */
.section_home-header,
.section_home-about,
.section_cta,
.section_home-sector,
.background-color-dark-blue,
.background-color-dark-grey,
.background-color-duck-egg,
.background-color-light-blue {
  background-color: var(--deneb-bg) !important;
}

body {
  background-color: var(--deneb-bg) !important;
}

.page-loader {
  background-color: var(--deneb-bg) !important;
}

.loader-block {
  background-color: var(--deneb-bg) !important;
  outline: 1px solid rgba(10, 67, 138, 0.05) !important;
}

/* Buttons */
.button_content.is-animated {
  background-color: var(--deneb-accent-blue) !important;
  color: #fff !important;
}

.button_text {
  color: #fff !important;
}

.button_icon-wrapper {
  background-color: var(--deneb-accent-red) !important;
}

/* Pill Labels */
.pill {
  background-color: rgba(10, 67, 138, 0.1) !important;
  border-color: rgba(10, 67, 138, 0.2) !important;
}

.pill .label-style-3 {
  color: var(--deneb-accent-blue) !important;
}

/* Horizontal Lines */
.horizontal-line {
  background-color: rgba(10, 67, 138, 0.1) !important;
}

/* Replace Zetta Joule Logo with DenEB text in the nav */
/* Note: ZJ uses Lottie for logo, we will just tint it or it will be dark due to text color overrides */

/* Navigation Background */
.navbar {
  background-color: rgba(248, 250, 252, 0.65) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border-bottom: 1px solid rgba(10, 67, 138, 0.08) !important;
  box-shadow: 0 4px 40px rgba(10, 67, 138, 0.04) !important;
}



/* ==========================================================================
   DenEB Signature Twists (Red & Blue Glassmorphism)
   ========================================================================== */

/* Logo Sizing */
.deneb-nav-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.deneb-nav-logo:hover {
  transform: scale(1.05);
}

.deneb-footer-logo {
  height: 64px;
  width: auto;
  object-fit: contain;
  margin-bottom: 2rem;
}

/* Page Border Signature Accent */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--deneb-accent-blue), var(--deneb-accent-red));
  z-index: 99999;
  /* Removed heavy infinite animation to fix lag */
}

/* Glassmorphic Navbar Glow */
.navbar {
  will-change: transform, backdrop-filter !important;
  transform: translateZ(0) !important; /* Force hardware acceleration */
}

/* Remove the Ugly Cube */
.home-header_reactor {
  display: none !important;
}

/* Re-center the Hero Section */
.home-header_component {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  padding-top: 22vh !important;
  align-items: center !important;
  text-align: center !important;
  min-height: 85vh !important;
}

.home-header_top-spacing {
  display: none !important;
}

.home-header_bottom-content {
  position: absolute !important;
  bottom: 5vh !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto !important;
}

.home-header_content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100% !important;
  text-align: center !important;
}

.heading-display-1 {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  text-transform: none !important;
  display: block !important;
  text-align: center !important;
  font-size: clamp(2.5rem, 5vw, 4.5rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  white-space: nowrap !important;
  line-height: 1.1 !important;
}

.heading-display-1 span.display-block,
.heading-display-1 .home-header_span-wrapper {
  display: inline-block !important; /* single line */
}

/* Button Elevation */
.button_main_icon {
  border: 1px solid rgba(10, 67, 138, 0.2) !important;
  box-shadow: 0 4px 15px rgba(10, 67, 138, 0.1) !important;
  transition: all 0.3s ease !important;
}

.button_main_icon:hover {
  box-shadow: 0 8px 25px rgba(217, 48, 37, 0.2) !important;
  border-color: rgba(217, 48, 37, 0.4) !important;
}

/* Preloader Twist - Red/Blue pulse instead of plain grid */
.loader-block {
  border: 1px solid rgba(10, 67, 138, 0.08) !important;
  transition: background-color 0.4s ease;
}
.loader-block:nth-child(even) {
  background-color: rgba(10, 67, 138, 0.02) !important;
}
.loader-block:nth-child(odd) {
  background-color: rgba(217, 48, 37, 0.02) !important;
}

/* Heading Gradients for Impact */
h1, h2, h3, h4, h5, h6 {
  color: var(--deneb-text) !important;
}

/* Enhancing the Horizontal Lines */
.horizontal-line {
  background: linear-gradient(90deg, rgba(10, 67, 138, 0.2), transparent) !important;
  height: 1px !important;
}

/* Pill tags pop with red borders */
.pill {
  border: 1px solid rgba(217, 48, 37, 0.3) !important;
  background-color: rgba(217, 48, 37, 0.05) !important;
}
.pill .label-style-3 {
  color: var(--deneb-accent-red) !important;
}


/* Hide leftover Zetta Joule SVG logos */
.navbar_brand svg, .new-footer_logo svg { display: none !important; }

/* ==========================================================================
   DenEB Complete Theme Overhaul
   ========================================================================== */

:root {
  --deneb-red: #c22026;
  --deneb-navy: #193b73;
  --deneb-cyan: #00aeef;
  --deneb-light: #f8fafc;
  --deneb-white: #ffffff;
}

/* 1. Logo Sizing Fixes */

.navbar_brand img, .new-footer_logo img {
  width: auto !important;
  height: 100% !important;
  max-height: 50px !important;
  object-fit: contain !important;
}

/* Hide leftover Lottie/SVG elements just in case */
.navbar_brand svg, .new-footer_logo svg { display: none !important; }

/* 2. Color Palette Shift */
/* Change global backgrounds to pristine white and light gray */
body, .main-wrapper, .section, section {
  background-color: var(--deneb-white) !important;
}

/* Specific sections that were duck-egg or dark-grey */
.background-color-duck-egg, .background-color-light-blue {
  background-color: var(--deneb-light) !important;
}

.background-color-dark-grey, .background-color-dark-blue {
  background-color: var(--deneb-white) !important;
  color: var(--deneb-navy) !important; /* Invert text since background is white */
}

/* Ensure text on these previously dark backgrounds is readable */
.background-color-dark-grey .text-color-white, 
.background-color-dark-blue .text-color-white,
.background-color-dark-grey h2,
.background-color-dark-grey h3,
.background-color-dark-grey p {
  color: var(--deneb-navy) !important;
}

/* 3. Button and Accent Colors */
/* Primary buttons become DenEB Red */
.button_main_icon, .button_content, .clickable_btn {
  background-color: var(--deneb-red) !important;
  color: var(--deneb-white) !important;
  border-color: var(--deneb-red) !important;
}

/* Make sure button text stays white */
.button_text.text-color-white {
  color: var(--deneb-white) !important;
}

/* Hover states for buttons */
.button_main_icon:hover {
  background-color: #a3181f !important; /* Darker red */
}

/* Active tabs and underline highlights */
.tabs_nav-active-line {
  background-color: var(--deneb-red) !important;
}

/* Label pills and dots */
.pill, .label-dot_dot {
  background-color: var(--deneb-red) !important;
}

/* 4. Gradient and Typography Highlights */
/* Make the massive hero text a beautiful DenEB gradient */
.heading-display-1 span {
  background: linear-gradient(135deg, var(--deneb-navy), var(--deneb-red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hide remaining "ZettaJoule" definition block if it still shows */
.home-about_video-detail-wrapper {
  display: none !important;
}

/* Make the footer text match the new light theme */
.section_footer {
  background-color: var(--deneb-light) !important;
  color: var(--deneb-navy) !important;
}

.footer_link, .footer_link-small {
  color: var(--deneb-navy) !important;
}

.footer_link:hover {
  color: var(--deneb-red) !important;
}


/* 5. Minimalistic Whitespace & Contrast Fixes */
/* Ensure text inside the newly lightened sections is dark and readable */
.home-sector_component h3, 
.home-sector_component p,
.label-style-1,
.text-color-grey-250,
.text-color-white-if-broken {
  color: var(--deneb-navy) !important;
}

/* Ensure buttons keep their white text */
.button_text.text-color-white {
  color: white !important;
}

/* Fix the navigation text duplicate bug by hiding the hover stagger */
.navbar_link-text {
  display: block !important;
}
.navbar_link-text[data-hover-stagger] {
  /* Some webflow scripts duplicate the text into characters, let's just force the wrapper to show normally */
}

/* Actually, the duplicate text in the navbar might be because the Webflow script creates clones. 
   We removed the data-hover-stagger attribute, which should stop the JS from doing it. */



/* Typing Animation Styles */
.typing-processed .typing-char {
    opacity: 0;
    transform: translateY(10px);
    display: inline-block;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.is-typing-visible .typing-char {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger the transition delays for characters */
/* A small JS could do this per char, but CSS nth-child works for up to a reasonable number.
   Actually, it's better to stagger them via JS, but if not, we can write a quick loop. 
   Let's do a CSS-only stagger using nth-child for up to 50 chars for simplicity, 
   but wait, CSS nth-child on inline spans is bulky.
   Let's just use CSS custom properties if we set them in JS. */

/* Wait, instead of massive nth-child, let's use a simpler transition for words, or just 
   let the JS set a style="--char-index: N" */

/* Cleaned up redundant sticky cards padding */


/* Aggressive transparent top bar */
.navbar_component, 
.navbar_background,
.navbar_brand-wrapper,
.navbar_link-wrapper,
.w-nav,
[data-w-id] {
    background-color: transparent !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Ensure no white background on scroll */
.is-navbar-scrolled,
.is-navbar-scrolled .navbar_background,
.is-navbar-scrolled .navbar_component {
    background-color: transparent !important;
    background: transparent !important;
    backdrop-filter: none !important;
}

/* Make sure the header section doesn't have a background */
.section_home-header {
    background-color: transparent !important;
}


/* Sticky Massive Cards inspired by Vorszk.com */
.sticky-cards-section {
  padding: 10vh 0 20vh 0;
  background-color: #f8fafc;
  position: relative;
}

.sticky-cards-container {
  display: flex;
  flex-direction: column;
  width: 90vw;
  max-width: 1600px;
  margin: 0 auto;
  position: relative;
}

.sticky-card {
  position: sticky;
  top: 15vh; /* Leaves room for navbar and some top margin */
  height: 75vh;
  border-radius: 40px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 -30px 60px rgba(25, 59, 115, 0.15); /* Upward shadow to visually stack */
  overflow: hidden;
  display: flex;
  align-items: flex-end; /* Push overlay to bottom */
  padding: 60px;
  margin-bottom: 50vh; /* Scroll distance between cards */
  will-change: transform;
}

.sticky-card:last-child {
  margin-bottom: 0;
}

/* Glassmorphism overlay */
.card-overlay {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 48px 64px;
  border-radius: 28px;
  max-width: 800px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.sticky-card:hover .card-overlay {
  transform: translateY(-10px);
}

.card-overlay h2 {
  font-size: 3.5rem;
  color: #193B73; /* DenEB Navy */
  margin-bottom: 24px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.card-overlay p {
  font-size: 1.25rem;
  color: #333;
  line-height: 1.6;
  font-weight: 400;
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
  .sticky-card {
    height: 70vh;
    padding: 24px;
    border-radius: 24px;
    margin-bottom: 30vh;
  }
  .card-overlay {
    padding: 32px 24px;
    border-radius: 20px;
  }
  .card-overlay h2 {
    font-size: 2.25rem;
  }
  .card-overlay p {
    font-size: 1.125rem;
  }
}


/* The Mathematically Perfect Sticky Stack Cover */

/* 1. Stop all cards from having individual margins that push the container */
.sticky-card {
    margin-bottom: 0 !important;
}

/* 2. Use GAP on the container to pace out the cards perfectly */
.sticky-cards-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 75vh !important; /* This is the pacing between cards */
    padding-bottom: 50vh !important; /* Reduced to fix huge white gap */
}

/* 3. Pull the next section up to cover the cards smoothly */
.sticky-cards-section + section {
    position: relative !important;
    z-index: 100 !important;
    background-color: #f8fafc !important; /* Solid background to hide cards */
    margin-top: -70vh !important; /* Exactly cancels 20vh section padding + 50vh container padding */
    box-shadow: 0px -20px 50px rgba(0,0,0,0.1); 
}

/* Ensure all cards stick flush */
.sticky-card:nth-child(1) { top: 15vh !important; z-index: 10 !important; }
.sticky-card:nth-child(2) { top: 15vh !important; z-index: 20 !important; }
.sticky-card:nth-child(3) { top: 15vh !important; z-index: 30 !important; }


.section_home-header {
    background-image: url('assets/skyline_banner_cropped.png') !important;
    background-position: bottom center !important;
    background-size: 100% auto !important;
    background-repeat: no-repeat !important;
    background-color: #ffffff !important;
}

.section_home-header::before {
    display: none !important;
}

/* Clean, minimalist styling for 'Precision meets innovation' */
.section_home-header .heading-display-1,
.section_home-header .heading-display-1 span.display-block,
.section_home-header .heading-display-1 .home-header_span-wrapper span,
.section_home-header .heading-display-1 .typing-char {
    background: none !important;
    -webkit-text-fill-color: #193B73 !important;
    color: #193B73 !important;
    font-weight: 800 !important;
}

/* Update text colors to deep navy blue for contrast, but excluded the main heading to allow its gradient to shine */
.section_home-header .typing-text {
    background-clip: text !important;
}

.section_home-header .heading-display-1 span.meets-highlight,
.section_home-header .heading-display-1 span.meets-highlight .typing-char {
    background: linear-gradient(120deg, #D93025, #0A438A) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    color: transparent !important;
    font-weight: 800 !important;
    font-style: normal !important;
    opacity: 1 !important;
    margin: 0 !important;
    letter-spacing: inherit !important;
}

.section_home-header span:not(.display-block):not(.typing-char):not(.home-header_span-wrapper span) {
    color: #193B73 !important;
}

/* Fix for 'Engineering. Excellence. Delivered.' not showing up at all! */
.section_home-header .heading-style-h6 {
    opacity: 1 !important; /* Force visible */
    visibility: visible !important;
    color: #ffffff !important;
    display: block !important;
    -webkit-text-fill-color: #ffffff !important;
    background: none !important;
    font-size: 1.5rem !important;
    letter-spacing: 0.1em !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    margin-bottom: 2rem !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2) !important;
    white-space: nowrap !important;
    max-width: none !important;
    text-align: center !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.section_home-header .heading-style-h6 .typing-char {
    opacity: 1 !important; /* Force visible */
    visibility: visible !important;
    display: inline-block !important; /* MUST BE INLINE-BLOCK */
    transform: none !important; /* Bypass any stuck translateY from typing js */
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Subtle accent for the typing cursor */
.typing-cursor {
    background-color: #c22026 !important;
}

/* Make sure the bottom line matches */
.home-header_content-line {
    background: linear-gradient(90deg, transparent, #c22026, transparent) !important;
    height: 2px !important;
    margin: 0 auto !important;
    width: 100% !important;
}

/* ==========================================================================
   DenEB Summary Section (Intergest Canada style)
   ========================================================================== */
.section_deneb-summary {
  background-color: var(--deneb-white);
  padding: 10vh 5vw;
  overflow: hidden;
  position: relative;
  z-index: 10;
}

.summary-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 900px;
  margin: 0 auto;
  gap: 4rem;
}

.summary-content {
  flex: 1;
  max-width: 500px;
}

.summary-heading {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: #193B73;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.summary-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.125rem;
  color: #475569;
  line-height: 1.8;
}

.summary-media-wrapper {
  flex: 1.2;
  position: relative;
  height: 60vh;
  min-height: 400px;
  border-radius: 32px 0 0 32px;
  overflow: hidden;
  box-shadow: -20px 20px 60px rgba(25, 59, 115, 0.1);
  margin-right: -5vw;
}



@keyframes slideInOnScroll {
  from {
    transform: translateX(200px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.summary-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: slowPan 20s infinite alternate ease-in-out;
}

@keyframes slowPan {
  from { transform: scale(1.05); }
  to { transform: scale(1.15); }
}

@media screen and (max-width: 991px) {
  .summary-container {
    flex-direction: column;
  }
  .summary-media-wrapper {
    width: 100vw;
    margin-right: -5vw;
    margin-left: -5vw;
    border-radius: 0;
    height: 400px;
  }
}

/* ==========================================================================
   Global Presence Map Section
   ========================================================================== */
.section_global-presence {
  background-color: var(--deneb-white);
  padding: 8vh 0;
  position: relative;
  z-index: 10;
}

.global-presence-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(25, 59, 115, 0.1);
  padding-bottom: 1rem;
}

.global-map-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 2rem auto 0;
}

.global-map-image {
  width: 100%;
  display: block;
  filter: grayscale(1) opacity(0.15) contrast(1.2);
  pointer-events: none;
}

.map-dots-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.map-stats-overlay {
  position: absolute;
  left: 2%;
  bottom: 20%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 10;
}

.map-stats-overlay .stat-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: #c22026; /* DenEB Red */
  margin: 0 0 0.2rem 0;
}

.map-stats-overlay .stat-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #193B73; /* DenEB Navy */
  margin: 0;
}

.map-marker {
  position: absolute;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 5;
}

.map-marker::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 100%; height: 100%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: mapPulse 2.5s infinite cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.map-marker.type-headoffice { width: 16px; height: 16px; background: #193B73; box-shadow: 0 0 0 2px white, 0 0 12px rgba(25,59,115,0.6); }
.map-marker.type-headoffice::before { background: #193B73; animation-duration: 2s; }

.map-marker.type-manufacturing { width: 12px; height: 12px; background: #D93025; box-shadow: 0 0 0 2px white, 0 0 10px rgba(217,48,37,0.6); }
.map-marker.type-manufacturing::before { background: #D93025; animation-delay: 0.5s; }

.map-marker.type-project { width: 8px; height: 8px; background: #0A438A; }
.map-marker.type-project::before { background: #0A438A; animation-delay: 1s; animation-duration: 3s; }

.map-marker.type-office { width: 10px; height: 10px; background: #c22026; }
.map-marker.type-office::before { background: #c22026; animation-delay: 1.5s; }

@keyframes mapPulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(3.5); opacity: 0; }
}

.map-legend {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2rem;
  background: white;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  z-index: 10;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1d1d1f;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.legend-dot.type-headoffice { background: #193B73; box-shadow: 0 0 0 2px white inset; width: 14px; height: 14px;}
.legend-dot.type-manufacturing { background: #D93025; box-shadow: 0 0 0 2px white inset; }
.legend-dot.type-project { background: #0A438A; width: 10px; height: 10px; }
.legend-dot.type-office { background: #c22026; width: 10px; height: 10px;}

/* Tooltip container */
.tooltip { position: relative; display: inline-block; }
.tooltip .tooltiptext {
  visibility: hidden;
  width: max-content;
  background-color: rgba(25, 59, 115, 0.95);
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 6px 12px;
  position: absolute;
  z-index: 20;
  bottom: 150%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%; left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: rgba(25, 59, 115, 0.95) transparent transparent transparent;
}
.tooltip:hover .tooltiptext { 
  visibility: visible; 
  opacity: 1; 
  transform: translateX(-50%) translateY(0);
}

@media screen and (max-width: 991px) {
  .global-map-container { height: 400px; }
  .map-legend {
    flex-wrap: wrap;
    width: 90%;
    border-radius: 20px;
    justify-content: center;
    gap: 1rem;
    bottom: -15%;
  }
  .map-stats-overlay {
    bottom: -50%;
    left: 5%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .section_global-presence {
    padding-bottom: 25vh;
  }
}

/* Business Verticals */
.section_business-verticals {
  padding: 6rem 0;
  background-color: #f8fafc;
  position: relative;
}

.business-verticals-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

@media screen and (min-width: 768px) {
  .business-verticals-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (min-width: 992px) {
  .business-verticals-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.vertical-card {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.vertical-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(31, 38, 135, 0.1);
  background: rgba(255, 255, 255, 0.6);
}

.vertical-image-wrapper {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
}

.vertical-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.vertical-card:hover .vertical-image {
  transform: scale(1.05);
}

.vertical-title-wrapper {
  padding: 1.5rem 1rem;
  text-align: center;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vertical-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--_color---colors-secondary--navy, #0f2b5b);
  margin: 0;
  line-height: 1.4;
  text-transform: uppercase;
}

/* ==========================================================================
   Industries We Serve Section (Premium 3D Tilt Grid)
   ========================================================================== */
.section_industries-we-serve {
  padding: 8rem 0;
  background-color: #fafcff;
  position: relative;
  /* Very subtle dot grid pattern for that premium Vercel/Stripe feel */
  background-image: radial-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
}

.tilt-grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5vw;
  perspective: 1000px; /* Crucial for 3D tilt effect */
}

.tilt-card {
  position: relative;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 1);
  border-radius: 24px;
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03), inset 0 0 0 1px rgba(255,255,255,0.5);
  transform-style: preserve-3d;
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
  cursor: pointer;
  /* Will be manipulated by JS for tilt, but we add a fallback transition for when JS resets it */
  transform: rotateX(0deg) rotateY(0deg) scale(1);
}

.tilt-card:hover {
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.08), inset 0 0 0 1px rgba(255,255,255,1);
  border-color: rgba(194, 32, 38, 0.1);
}

/* Glass Glare Effect */
.tilt-card-glare {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,0.8) 25%, transparent 30%);
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  mix-blend-mode: overlay;
  transition: opacity 0.4s ease;
  /* Background position manipulated by JS based on mouse pos */
  background-size: 200% 200%;
  background-position: 100% 100%;
}

.tilt-card:hover .tilt-card-glare {
  opacity: 1;
}

/* The Glowing Orb behind the icon */
.tilt-icon-orb {
  position: relative;
  width: 100px;
  height: 100px;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.05);
  transform: translateZ(30px); /* Pops out in 3D */
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Pseudo-element for the animated glow using the data-color attribute from HTML */
.tilt-icon-orb::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.5s ease;
}

.tilt-card:hover .tilt-icon-orb {
  transform: translateZ(50px) scale(1.1);
}

.tilt-card:hover .tilt-icon-orb::before {
  opacity: 1;
}

.tilt-icon-orb img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  z-index: 2;
  transition: transform 0.4s ease;
}

.tilt-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  letter-spacing: 0.05em;
  transform: translateZ(20px); /* Text also pops out slightly */
  transition: color 0.4s ease;
}

.tilt-card:hover h3 {
  color: #c22026;
}

@media screen and (max-width: 1100px) {
  .tilt-grid-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 991px) {
  .tilt-grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .tilt-card {
    transform: none !important; /* Disable 3D tilt on mobile/tablet */
  }
}

@media screen and (max-width: 767px) {
  .tilt-grid-container {
    grid-template-columns: 1fr;
  }
}

/* Contact Section CSS */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: flex-start;
}
@media (max-width: 991px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
.contact-info-block {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 3rem;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255, 0.9);
  box-shadow: 0 10px 40px rgba(0,0,0,0.03);
}
.contact-form-block {
  background: #ffffff;
  padding: 3rem;
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  border: 1px solid #f1f5f9;
}
.clean-form .form-group {
  margin-bottom: 1.5rem;
}
.clean-form label {
  display: block;
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.6rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
}
.clean-form input {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  font-size: 1rem;
  color: #0f172a;
}
.clean-form input::placeholder {
  color: #94a3b8;
}
.clean-form input:focus {
  outline: none;
  border-color: #0ea5e9;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}
.clean-form .submit-btn {
  width: 100%;
  padding: 1.1rem;
  background: #0f172a;
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Plus Jakarta Sans', sans-serif;
  margin-top: 1rem;
}
.clean-form .submit-btn:hover {
  background: #1e293b;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
}
.clean-form .form-note {
  font-size: 0.85rem;
  color: #64748b;
  text-align: center;
  margin-top: 1.25rem;
  font-weight: 500;
}

/* Partners Marquee CSS */
.marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  padding: 1rem 0;
  /* Add fade out effect on the left and right edges */
  mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 15%, rgba(0, 0, 0, 1) 85%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 15%, rgba(0, 0, 0, 1) 85%, rgba(0, 0, 0, 0) 100%);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: scroll-left 45s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.partner-logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 280px;
  height: 140px;
  padding: 0.5rem 1rem;
  margin: 0 1.5rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.04);
  border: 1px solid #f8fafc;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-logo-wrapper:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.partner-logo-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  /* The user wants full original colors */
  filter: none;
  opacity: 1;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    /* Translate exactly 50% so it perfectly loops the duplicated content */
    transform: translateX(-50%);
  }
}

/* The Mona Lisa: Bento Grid CSS */
.section_masterpiece-products {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Background Animated Orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 1;
  opacity: 0.6;
  animation: float 20s infinite ease-in-out alternate;
}
.orb-1 {
  width: 500px;
  height: 500px;
  background: #e0f2fe; /* Light Blue */
  top: -100px;
  left: -100px;
}
.orb-2 {
  width: 600px;
  height: 600px;
  background: #cffafe; /* Cyan */
  bottom: -200px;
  right: -100px;
  animation-delay: -5s;
}
.orb-3 {
  width: 400px;
  height: 400px;
  background: #dbeafe; /* Periwinkle */
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -10s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -50px) scale(1.1); }
  100% { transform: translate(-30px, 50px) scale(0.9); }
}

/* Grid Layout */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(240px, auto);
  gap: 1.5rem;
  width: 100%;
}

@media (max-width: 991px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 767px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
}

.bento-span-2 { grid-column: span 2; }
.bento-span-3 { grid-column: span 3; }
.bento-span-col-1 { grid-column: span 1; }
.bento-span-row-2 { grid-row: span 2; }

@media (max-width: 991px) {
  .bento-span-2, .bento-span-3, .bento-span-col-1 { grid-column: span 2; }
  .bento-span-row-2 { grid-row: span 1; }
}
@media (max-width: 767px) {
  .bento-span-2, .bento-span-3, .bento-span-col-1 { grid-column: span 1; }
}

/* Card Styling */
.bento-card {
  perspective: 1000px; /* Required for 3D effect on children */
}

.bento-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  transition: transform 0.1s ease-out, box-shadow 0.3s ease;
  overflow: hidden;
  will-change: transform;
}

.bento-card:hover .bento-card-inner {
  box-shadow: 0 20px 50px rgba(14, 165, 233, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

/* Inner Elements */
.bento-icon {
  width: 48px;
  height: 48px;
  background: #0f172a;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: white;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bento-icon svg {
  width: 24px;
  height: 24px;
}

.bento-card:hover .bento-icon {
  transform: translateY(-5px) scale(1.1);
}

.bento-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.bento-desc {
  font-size: 1rem;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

/* Dynamic Glow */
.bento-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(14,165,233,0.15) 0%, rgba(14,165,233,0) 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

/* Abstract Image for LNG */
.bento-image-abstract {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, #e0f2fe 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  z-index: -2;
  opacity: 0.5;
}

/* The Photorealistic Gallery CSS */
.pg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 1.5rem;
  width: 100%;
}

@media (max-width: 991px) {
  .pg-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 767px) {
  .pg-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }
}

.pg-span-2 { grid-column: span 2; }
.pg-span-3 { grid-column: span 3; }
.pg-span-row-2 { grid-row: span 2; }

@media (max-width: 991px) {
  .pg-span-2, .pg-span-3 { grid-column: span 2; }
  .pg-span-row-2 { grid-row: span 1; }
}
@media (max-width: 767px) {
  .pg-span-2, .pg-span-3 { grid-column: span 1; }
}

.pg-card {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  /* The elegant lift effect on hover */
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.pg-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.pg-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Cinematic zoom on hover */
.pg-card:hover .pg-bg {
  transform: scale(1.08);
}

/* Subtle gradient overlay that gets slightly darker on hover so text pops */
.pg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.1) 60%, rgba(0,0,0,0) 100%);
  opacity: 0.7;
  transition: opacity 0.4s ease;
}

.pg-card:hover .pg-overlay {
  opacity: 0.9;
}

.pg-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  /* Glassmorphism panel that slides up */
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,0.15);
  transform: translateY(calc(100% - 80px)); /* Shows only title initially (adjust based on title height) */
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), background 0.4s ease;
}

.pg-card:hover .pg-content {
  transform: translateY(0);
  background: rgba(15, 23, 42, 0.65);
}

.pg-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: white;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.pg-desc {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #e2e8f0;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
}

.pg-card:hover .pg-desc {
  opacity: 1;
  transform: translateY(0);
}

/* The Editorial Showcase CSS */
.editorial-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6rem;
  margin-bottom: 12rem;
}

.editorial-row.reverse {
  flex-direction: row-reverse;
}

.editorial-image-wrapper {
  flex: 1.2;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
  position: relative;
}

.editorial-image-wrapper::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.02); /* Very subtle overlay */
  pointer-events: none;
}

.editorial-image-wrapper img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.editorial-row:hover .editorial-image-wrapper img {
  transform: scale(1.05);
}

.editorial-content {
  flex: 1;
  padding: 2rem 0;
}

.editorial-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #233276;
  margin-bottom: 1rem;
}

.editorial-title {
  font-size: 3rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.editorial-desc {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #475569;
  margin-bottom: 2.5rem;
}

.editorial-link {
  display: inline-flex;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
  transition: color 0.3s ease;
}

.editorial-link svg {
  width: 20px;
  height: 20px;
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.editorial-link:hover {
  color: #0ea5e9;
}

.editorial-link:hover svg {
  transform: translateX(5px);
}

/* Responsiveness */
@media (max-width: 991px) {
  .editorial-row, .editorial-row.reverse {
    flex-direction: column;
    gap: 3rem;
    margin-bottom: 8rem;
  }
  .editorial-image-wrapper img {
    height: 400px;
  }
  .editorial-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 767px) {
  .editorial-image-wrapper img {
    height: 300px;
  }
  .editorial-title {
    font-size: 2rem;
  }
  .editorial-desc {
    font-size: 1rem;
  }
}

/* Simple Scroll Animation (requires a tiny bit of JS or intersection observer, but we'll use a basic CSS fallback if JS is omitted, but for a masterpiece we should add JS) */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ORBIT GRID LAYOUT FOR INDUSTRIES */
.orbit-grid-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem 0 8rem 0;
  overflow: hidden;
}

.orbit-system {
  position: relative;
  width: 600px;
  height: 600px;
}

.orbit-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150px;
  height: 150px;
  background: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  box-shadow: 0 10px 30px rgba(35, 50, 118, 0.2);
  border: 2px solid rgba(35, 50, 118, 0.1);
}

.orbit-center img {
  width: 70%;
  height: auto;
  object-fit: contain;
}

.orbit-center-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(35,50,118,0.4) 0%, rgba(35,50,118,0) 70%);
  animation: pulseGlow 4s infinite alternate ease-in-out;
  z-index: -1;
}

@keyframes pulseGlow {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  100% { transform: translate(-50%, -50%) scale(1.8); opacity: 1; }
}

.orbit-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px dashed rgba(35, 50, 118, 0.2);
  animation: rotateOrbit 40s linear infinite;
}

@keyframes rotateOrbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.orbit-node {
  position: absolute;
  top: 50%;
  left: 50%;
  /* Move to center, rotate by angle, then move out to ring radius, then counter-rotate so icons stay upright */
  transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-300px) rotate(calc(var(--angle) * -1));
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.orbit-ring:hover {
  animation-play-state: paused;
}

.orbit-node:hover {
  transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-300px) rotate(calc(var(--angle) * -1)) scale(1.15);
  z-index: 20;
}

.orbit-icon-wrapper {
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.05);
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
}

.orbit-node:hover .orbit-icon-wrapper {
  box-shadow: 0 10px 25px rgba(35, 50, 118, 0.3);
  border-color: rgba(35, 50, 118, 0.5);
  background: #f8fafc;
}

.orbit-icon-wrapper img {
  width: 45px;
  height: 45px;
  object-fit: contain;
  transition: all 0.3s ease;
}

.orbit-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1e293b;
  text-align: center;
  max-width: 120px;
  line-height: 1.2;
  opacity: 0.8;
  transition: all 0.3s ease;
  background: rgba(255,255,255,0.7);
  padding: 4px 8px;
  border-radius: 8px;
  backdrop-filter: blur(4px);
}

.orbit-node:hover .orbit-label {
  opacity: 1;
  color: #233276;
}

/* Counter-rotate animation for nodes to keep them upright while ring spins */
.orbit-node {
  animation: counterRotate 40s linear infinite;
}

@keyframes counterRotate {
  from { transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-300px) rotate(calc(-1 * var(--angle) - 0deg)); }
  to { transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-300px) rotate(calc(-1 * var(--angle) - 360deg)); }
}

.orbit-node:hover {
  animation-play-state: paused;
}

@media screen and (max-width: 767px) {
  .orbit-system {
    width: 300px;
    height: 300px;
  }
  .orbit-center {
    width: 100px;
    height: 100px;
  }
  .orbit-node {
    transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-150px) rotate(calc(var(--angle) * -1));
  }
  @keyframes counterRotate {
    from { transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-150px) rotate(calc(-1 * var(--angle) - 0deg)); }
    to { transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-150px) rotate(calc(-1 * var(--angle) - 360deg)); }
  }
  .orbit-node:hover {
    transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-150px) rotate(calc(var(--angle) * -1)) scale(1.1);
  }
  .orbit-icon-wrapper {
    width: 50px;
    height: 50px;
  }
  .orbit-icon-wrapper img {
    width: 25px;
    height: 25px;
  }
  .orbit-label {
    font-size: 0.75rem;
    max-width: 80px;
  }
}
/* THE EXPANDING ACCORDION */
.accordion-section {
  width: 100%;
  background: #ffffff;
  padding: 4rem 0 6rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.accordion-container {
  display: flex;
  width: 95%;
  max-width: 1300px;
  height: 500px;
  gap: 15px;
}

.accordion-panel {
  position: relative;
  border: 1px solid rgba(35, 50, 118, 0.15); /* Theme navy border */
  border-radius: 20px;
  cursor: pointer;
  flex: 1; /* Resting state */
  margin: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 4px 15px rgba(35, 50, 118, 0.05);
  
  /* THEME PICTURE FOR ALL CARDS */
  background-image: url('assets/denebairgases/accordion-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Subtle overlay so text is perfectly readable */
.accordion-panel::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(236, 248, 255, 0.95) 0%, rgba(236, 248, 255, 0.6) 100%);
  z-index: 1;
  transition: all 0.6s ease;
}

/* Hover/Active Expansion */
.accordion-panel.active {
  flex: 5;
  border-color: #0ea5e9; /* Theme Cyan */
  box-shadow: 0 15px 40px rgba(35, 50, 118, 0.15);
}

.accordion-panel.active::before {
  background: linear-gradient(to top, rgba(236, 248, 255, 0.98) 0%, rgba(236, 248, 255, 0.2) 100%);
}

/* Individual Card Colors */
/* Card 1: Industrial Gas (Light Blue) */
.accordion-panel:nth-child(1)::before { background: linear-gradient(to top, rgba(236, 248, 255, 0.95) 0%, rgba(236, 248, 255, 0.6) 100%); }
.accordion-panel:nth-child(1).active::before { background: linear-gradient(to top, rgba(236, 248, 255, 0.98) 0%, rgba(236, 248, 255, 0.2) 100%); }

/* Card 2: Power (Light Yellow) */
.accordion-panel:nth-child(2)::before { background: linear-gradient(to top, rgba(255, 249, 235, 0.95) 0%, rgba(255, 249, 235, 0.6) 100%); }
.accordion-panel:nth-child(2).active::before { background: linear-gradient(to top, rgba(255, 249, 235, 0.98) 0%, rgba(255, 249, 235, 0.2) 100%); }

/* Card 3: Pharma (Light Teal) */
.accordion-panel:nth-child(3)::before { background: linear-gradient(to top, rgba(235, 252, 245, 0.95) 0%, rgba(235, 252, 245, 0.6) 100%); }
.accordion-panel:nth-child(3).active::before { background: linear-gradient(to top, rgba(235, 252, 245, 0.98) 0%, rgba(235, 252, 245, 0.2) 100%); }

/* Card 4: Steel (Light Gray) */
.accordion-panel:nth-child(4)::before { background: linear-gradient(to top, rgba(240, 244, 248, 0.95) 0%, rgba(240, 244, 248, 0.6) 100%); }
.accordion-panel:nth-child(4).active::before { background: linear-gradient(to top, rgba(240, 244, 248, 0.98) 0%, rgba(240, 244, 248, 0.2) 100%); }

/* Card 5: Chemicals (Light Purple) */
.accordion-panel:nth-child(5)::before { background: linear-gradient(to top, rgba(245, 240, 255, 0.95) 0%, rgba(245, 240, 255, 0.6) 100%); }
.accordion-panel:nth-child(5).active::before { background: linear-gradient(to top, rgba(245, 240, 255, 0.98) 0%, rgba(245, 240, 255, 0.2) 100%); }

/* Card 6: City Gas (Light Cyan) */
.accordion-panel:nth-child(6)::before { background: linear-gradient(to top, rgba(225, 250, 255, 0.95) 0%, rgba(225, 250, 255, 0.6) 100%); }
.accordion-panel:nth-child(6).active::before { background: linear-gradient(to top, rgba(225, 250, 255, 0.98) 0%, rgba(225, 250, 255, 0.2) 100%); }

/* Card 7: Petro-chem (Light Coral) */
.accordion-panel:nth-child(7)::before { background: linear-gradient(to top, rgba(255, 242, 242, 0.95) 0%, rgba(255, 242, 242, 0.6) 100%); }
.accordion-panel:nth-child(7).active::before { background: linear-gradient(to top, rgba(255, 242, 242, 0.98) 0%, rgba(255, 242, 242, 0.2) 100%); }

/* Card 8: Mfg Unit (Light Green) */
.accordion-panel:nth-child(8)::before { background: linear-gradient(to top, rgba(240, 255, 240, 0.95) 0%, rgba(240, 255, 240, 0.6) 100%); }
.accordion-panel:nth-child(8).active::before { background: linear-gradient(to top, rgba(240, 255, 240, 0.98) 0%, rgba(240, 255, 240, 0.2) 100%); }

.accordion-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  z-index: 2;
  background: #ffffff;
  border-radius: 50%;
  padding: 12px;
  box-shadow: 0 5px 15px rgba(35, 50, 118, 0.1);
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.accordion-panel.active .accordion-icon {
  top: 40px;
  left: 40px;
  transform: translate(0, 0) scale(1.1);
  box-shadow: 0 10px 25px rgba(35, 50, 118, 0.15);
}

.accordion-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* FIX TEXT VISIBILITY (PREVENT SQUISHING) */
.accordion-content {
  position: relative;
  z-index: 3;
  padding: 40px;
  min-width: 350px; /* Forces content to stay wide and not break */
  
  /* Hide perfectly when collapsed */
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out, visibility 0s 0.4s;
}

.accordion-panel.active .accordion-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.5s ease-out 0.2s, transform 0.5s ease-out 0.2s, visibility 0s 0s;
}

.accordion-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: #233276; /* Theme Navy */
  margin-bottom: 15px;
  line-height: 1.1;
  white-space: nowrap;
}

.accordion-desc {
  font-size: 1.1rem;
  color: #524f4b; /* Theme Dark Grey */
  max-width: 320px;
  line-height: 1.6;
  font-weight: 500;
}

@media (max-width: 991px) {
  .accordion-container {
    flex-direction: column;
    height: 800px;
  }
  .accordion-icon {
    width: 50px;
    height: 50px;
  }
  .accordion-panel.active .accordion-icon {
    top: 20px; left: 20px;
  }
  .accordion-content {
    padding: 20px;
  }
}

/* Mobile specific styling */
@media (max-width: 767px) {
  .accordion-container {
    height: 700px;
    width: 100%;
  }
  .accordion-panel.active {
    flex: 8; /* Give active card much more vertical space */
  }
  .accordion-content {
    min-width: 100%; /* Prevent horizontal overflow */
    padding: 15px;
  }
  .accordion-title {
    font-size: 1.4rem;
    white-space: normal; /* Let long words wrap */
    margin-bottom: 5px;
  }
  .accordion-icon {
    width: 40px;
    height: 40px;
  }
  .accordion-panel.active .accordion-icon {
    top: 10px; left: 10px;
    transform: scale(0.9);
  }
  /* Center icon for inactive panels */
  .accordion-panel:not(.active) .accordion-icon {
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
  }
}

.brand-logo-img {
    height: 180px;
    width: auto;
    margin-left: -20px;
    max-height: none;
    max-width: none;
    transform: scale(2.5);
    transform-origin: left center;
}

/* ========================================================= */
/* COMPREHENSIVE MOBILE RESPONSIVENESS OVERRIDES */
/* ========================================================= */
@media (max-width: 767px) {
  /* Global Typography */
  .brand-logo-img {
      height: 60px !important;
      width: auto !important;
      margin-left: 0 !important;
      transform: scale(1.5) !important;
      transform-origin: left center;
  }
  
  .heading-display-1, .heading-style-h1, h1 { font-size: 2.2rem !important; line-height: 1.2 !important; white-space: normal !important; word-break: break-word !important; }
  .heading-style-h2, h2 { font-size: 2.2rem !important; line-height: 1.2 !important; }
  .heading-style-h3, h3 { font-size: 1.8rem !important; line-height: 1.3 !important; }
  .heading-style-h4, h4 { font-size: 1.5rem !important; line-height: 1.3 !important; }
  .heading-style-h5, h5 { font-size: 1.25rem !important; }
  .heading-style-h6, h6 { font-size: 1.1rem !important; }
  p, .text-size-large { font-size: 1rem !important; }
  
  /* Global Spacing */
  .padding-global { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
  .spacer[sp-d="240"] { height: 80px !important; }
  .spacer[sp-d="16"] { height: 16px !important; }
  .spacer[sp-d="64"] { height: 32px !important; }
  .spacer[sp-d="48"] { height: 24px !important; }
  .spacer[sp-d="80"] { height: 40px !important; }
  
  /* Hero / Video Section */
  .typing-text { white-space: normal !important; text-align: left !important; font-size: 2.2rem !important; line-height: 1.2 !important; }
  .home-header_content .typing-text,
  .home-header_content .typing-char {
    color: #193B73 !important;
    -webkit-text-fill-color: #193B73 !important;
    text-shadow: none !important;
    background: none !important;
    background-clip: unset !important;
    -webkit-background-clip: unset !important;
  }
  .section_deneb-summary { padding-top: 60px !important; }
  .fullscreen-video-overlay {
    position: relative !important;
    width: 100% !important;
    height: 350px !important;
    clip-path: none !important;
    border-radius: 16px !important;
    margin-top: 2rem !important;
  }
  
  /* Sticky Cards Section - Disable sticky behavior */
  .sticky-cards-container {
    gap: 2rem !important;
    padding-bottom: 2rem !important;
  }
  .sticky-card {
    position: relative !important;
    top: 0 !important;
    margin-bottom: 0 !important;
    height: auto !important;
    min-height: 400px !important;
  }
  .sticky-cards-section + section {
    margin-top: 0 !important;
  }
  .card-overlay {
    padding: 1.5rem !important;
  }
  .card-overlay h2 {
    font-size: 1.8rem !important;
  }
  
  /* Products Section */
  .editorial-row, .editorial-row.reverse {
    gap: 1.5rem !important;
    margin-bottom: 4rem !important;
  }
  .editorial-image-wrapper img {
    height: 250px !important;
  }
  .editorial-header {
    margin-bottom: 4rem !important;
  }
  
  /* Partners Marquee */
  .section_partners { padding: 2rem 0 !important; }
  .marquee-track { animation-duration: 20s !important; }
  .partner-logo-wrapper { padding: 0 1rem !important; width: 120px !important; }
  
  /* Contact Form */
  .contact-info-block { padding: 1.5rem !important; }
  .contact-form-block { padding: 1.5rem !important; }
  .section_contact-us { padding: 3rem 0 !important; }
}
