/* -------------------------------------------------------------
 * Kingshark Energy & Kingshark Energy (Shanghai) Co., Ltd.
 * Apple-Aesthetic Design System & Core Stylesheet
 * ------------------------------------------------------------- */

/* ==================== LOCAL MONTSERRAT FONT STACK ==================== */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat/Montserrat-VariableFont_wght.ttf") format("truetype-variations"),
       url("../fonts/montserrat/Montserrat-Regular.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat/Montserrat-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat/Montserrat-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat/Montserrat-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat/Montserrat-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat/Montserrat-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat/Montserrat-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat/Montserrat-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,700&family=JetBrains+Mono:wght@400;500&display=swap");


:root {
  /* Color Palette */
  --bg-main: #FFFFFF;
  --bg-subtle: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-sky-top: #D8EAFC;
  --bg-sky-mid: #EBF4FD;
  --bg-sky-bot: #FFFFFF;
  
  --primary-blue: #0284C7;
  --primary-blue-dark: #0369A1;
  --primary-blue-glow: rgba(2, 132, 199, 0.25);
  
  --brand-green: #10B981;
  --brand-green-dark: #059669;
  --brand-green-glow: rgba(16, 185, 129, 0.2);
  
  --brand-gold: #D97706;
  --brand-gold-glow: rgba(217, 119, 6, 0.3);
  --brand-gold-foil: linear-gradient(135deg, #F59E0B 0%, #D97706 50%, #B45309 100%);
  
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-subtle: #94A3B8;
  
  --border-light: rgba(0, 0, 0, 0.06);
  --border-focus: rgba(2, 132, 199, 0.4);
  --border-card: rgba(226, 232, 240, 0.8);
  
  /* Shadows */
  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 10px 20px -3px rgba(0, 0, 0, 0.04), 0 20px 30px -10px rgba(0, 0, 0, 0.03);
  --shadow-card-hover: 0 20px 35px -5px rgba(2, 132, 199, 0.08), 0 10px 15px -3px rgba(0, 0, 0, 0.04);
  --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
  --shadow-modal: 0 25px 60px -15px rgba(15, 23, 42, 0.25);

  /* Font Stack */
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  
  /* Radii */
  --radius-pill: 9999px;
  --radius-card: 24px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Modern Web Guidance: Typographic Legibility & Balance */
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.025em;
}

p, blockquote, li {
  text-wrap: pretty;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

/* Glassmorphism & Translucent Layers */
.glass-nav {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}



.glass-pill {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

/* Layout Containers - Full Width with 3% Left/Right Padding */
.container {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: auto;
  margin-right: auto;
  padding-left: 3% !important;
  padding-right: 3% !important;
}

.section-spacing {
  padding-top: 96px;
  padding-bottom: 96px;
}

/* Section Header Styles (Apple Style) */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-blue);
  background: rgba(2, 132, 199, 0.08);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.75rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin-bottom: 48px;
  line-height: 1.6;
}

/* Apple Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #0F172A;
  color: #FFFFFF;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.btn-primary:hover {
  background: #1E293B;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #FFFFFF;
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 0.9375rem;
  font-weight: 600;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-secondary:hover {
  background: #F8FAFC;
  border-color: rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
  color: #FFFFFF;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  font-size: 0.9375rem;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(2, 132, 199, 0.5);
}

/* Bento Card System */
.bento-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-card);
  padding: 36px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(2, 132, 199, 0.25);
  box-shadow: var(--shadow-card-hover);
}

.bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(2, 132, 199, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bento-card:hover::before {
  opacity: 1;
}

/* Hero Section (Matching Uploaded Sky Reference) */
.hero-wrapper {
  background: linear-gradient(180deg, #D4E8FC 0%, #E7F2FD 45%, #FFFFFF 100%);
  padding-top: 130px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, rgba(2, 132, 199, 0.15) 35%, transparent 70%);
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(2, 132, 199, 0.2);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary-blue-dark);
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
  color: #0B132B;
}

.hero-description {
  font-size: 1.25rem;
  line-height: 1.6;
  color: #334155;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 36px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

/* Interactive Grid Topology Stage */
.grid-stage-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 28px;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.9) inset;
  padding: 32px;
  position: relative;
  z-index: 1;
}

.stage-nodes-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  position: relative;
  margin-bottom: 24px;
}

.stage-node {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.stage-node:hover, .stage-node.active {
  border-color: var(--primary-blue);
  box-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.2);
  transform: translateY(-3px);
}

.stage-node.active {
  background: linear-gradient(180deg, #FFFFFF 0%, #F0F7FF 100%);
}

.stage-node-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 132, 199, 0.08);
  color: var(--primary-blue);
  font-size: 1.25rem;
  transition: all 0.2s ease;
}

.stage-node.active .stage-node-icon {
  background: var(--primary-blue);
  color: #FFFFFF;
}

.stage-node-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.stage-node-sub {
  font-size: 0.6875rem;
  color: var(--text-muted);
}

/* Active Stage Inspector Drawer */
.stage-inspector {
  background: #0F172A;
  color: #F8FAFC;
  border-radius: 18px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.inspector-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.inspector-badge {
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-mono);
}

/* 3D Holographic Flip Business Card (Dean, Chairman) */
.card-3d-wrapper {
  perspective: 1200px;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

.card-3d-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 1.7 / 1;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.card-3d-wrapper:hover .card-3d-inner,
.card-3d-wrapper.is-flipped .card-3d-inner {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.card-front {
  background: #FCFCFD;
  background-image: 
    radial-gradient(at 0% 0%, rgba(2, 132, 199, 0.05) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(217, 119, 6, 0.06) 0px, transparent 50%);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-front::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  transform: skewX(-25deg);
  transition: left 0.75s ease;
}

.card-3d-wrapper:hover .card-front::after {
  left: 200%;
}

.card-back {
  background: #0F172A;
  color: #F8FAFC;
  transform: rotateY(180deg);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.foil-gold-text {
  background: linear-gradient(135deg, #D97706 0%, #B45309 50%, #92400E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* Comparison Matrix Table */
.comparison-table-wrapper {
  background: #FFFFFF;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th {
  padding: 20px 24px;
  background: #F8FAFC;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-card);
}

.comparison-table th.highlight-col {
  background: #F0F7FF;
  color: var(--primary-blue-dark);
  border-bottom: 2px solid var(--primary-blue);
}

.comparison-table td {
  padding: 20px 24px;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table td.highlight-cell {
  background: #F0F7FF;
  font-weight: 600;
  color: #0369A1;
}

/* Modal Specs System */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.modal-backdrop.is-active {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: #FFFFFF;
  border-radius: 28px;
  box-shadow: var(--shadow-modal);
  width: 100%;
  max-width: 840px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 40px;
  position: relative;
}

.modal-backdrop.is-active .modal-dialog {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: #E2E8F0;
  color: var(--text-primary);
}

/* Specs Parameter Table inside Modal */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.specs-table tr:nth-child(even) {
  background-color: #F8FAFC;
}

.specs-table td {
  padding: 12px 16px;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border-light);
}

.specs-table td:first-child {
  font-weight: 600;
  color: var(--text-secondary);
  width: 35%;
}

.specs-table td:last-child {
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

/* Floating Quick Action Bar */
.floating-dock {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.dock-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.dock-btn:hover {
  transform: scale(1.1);
}

.dock-btn-whatsapp {
  background: #25D366;
}

.dock-btn-email {
  background: #0284C7;
}

.dock-btn-top {
  background: #0F172A;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.dock-btn-top.is-visible {
  opacity: 1;
  visibility: visible;
}

/* Tooltip for dock */
.dock-btn[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  right: 64px;
  background: #0F172A;
  color: #FFFFFF;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.dock-btn:hover[data-tip]::after {
  opacity: 1;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.75rem;
  }
  .stage-nodes-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .section-spacing {
    padding-top: 64px;
    padding-bottom: 64px;
  }
  .hero-title {
    font-size: 2.15rem;
  }
  .hero-description {
    font-size: 1.05rem;
  }
  .stage-nodes-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .section-title {
    font-size: 2rem;
  }
  .bento-card {
    padding: 24px;
  }
  .modal-dialog {
    padding: 24px;
  }
}


/* ==================== Master Persistent Header ==================== */
#mainNav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transform: translateY(0) !important;
  transition: background 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              backdrop-filter 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-bottom: 1px solid transparent;
}

/* 1. At the very top (over hero image): subtle luxury dark glass */
#mainNav:not(.is-scrolled) {
  background: rgba(10, 15, 28, 0.32);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.nav-logo-white, .nav-logo-dark {
  height: 38px !important;
  width: auto !important;
  max-height: 40px !important;
  object-fit: contain !important;
}
#mainNav:not(.is-scrolled) .nav-logo-white { display: block !important; }
#mainNav:not(.is-scrolled) .nav-logo-dark { display: none !important; }
#mainNav:not(.is-scrolled) .nav-burger-bar {
  background: #ffffff;
}

/* 2. When scrolled past 40px: PURE CRISP WHITE BACKGROUND */
#mainNav.is-scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}
#mainNav.is-scrolled .nav-logo-white { display: none !important; }
#mainNav.is-scrolled .nav-logo-dark { display: block !important; }
#mainNav.is-scrolled .nav-burger-bar {
  background: #0F172A !important;
}

/* 3. For pages with pure white backgrounds (e.g. clean-energy-anatomy.html) */
body.anatomy-page #mainNav {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}
body.anatomy-page #mainNav .nav-logo-white { display: none !important; }
body.anatomy-page #mainNav .nav-logo-dark { display: block !important; }
body.anatomy-page #mainNav .nav-burger-bar { background: #0F172A !important; }

/* ==================== THE BIG CAPSULE NAVIGATION MENU ==================== */
/* The entire navigation menu as a single large unified capsule dock (Desktop only) */
@media (min-width: 1280px) {
  #mainNav nav,
  .nav-menu-capsule {
    display: inline-flex !important;
    align-items: center !important;
    gap: 2px !important;
    padding: 4px !important;
    border-radius: 9999px !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }
}

@media (max-width: 1279.98px) {
  #mainNav nav,
  .nav-menu-capsule {
    display: none !important;
  }
}

/* Un-scrolled Big Capsule (over dark hero) */
#mainNav:not(.is-scrolled) nav,
#mainNav:not(.is-scrolled) .nav-menu-capsule {
  background: rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.15) !important;
}

/* Scrolled Big Capsule (over white navbar) & on pure white pages */
#mainNav.is-scrolled nav,
#mainNav.is-scrolled .nav-menu-capsule,
body.anatomy-page #mainNav nav,
body.anatomy-page #mainNav .nav-menu-capsule {
  background: #F1F5F9 !important;
  border: 1px solid #E2E8F0 !important;
  box-shadow: 0 2px 10px -1px rgba(0, 0, 0, 0.04), inset 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}

/* Menu Items inside the Big Capsule: NO individual outer capsule borders/backgrounds */
#mainNav nav .nav-link-pill,
.nav-menu-capsule .nav-link-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  height: 34px !important;
  padding: 0 14px !important;
  border-radius: 9999px !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Links in Un-scrolled Big Capsule */
#mainNav:not(.is-scrolled) nav .nav-link-pill,
#mainNav:not(.is-scrolled) .nav-menu-capsule .nav-link-pill {
  color: rgba(255, 255, 255, 0.85) !important;
}
#mainNav:not(.is-scrolled) nav .nav-link-pill:hover,
#mainNav:not(.is-scrolled) .nav-menu-capsule .nav-link-pill:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.18) !important;
}
#mainNav:not(.is-scrolled) nav .nav-link-pill.active,
#mainNav:not(.is-scrolled) .nav-menu-capsule .nav-link-pill.active {
  background: #0284C7 !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 12px rgba(2, 132, 199, 0.45) !important;
}

/* Links in Scrolled Big Capsule & on pure white pages (Apple Dock Segment Style) */
#mainNav.is-scrolled nav .nav-link-pill,
#mainNav.is-scrolled .nav-menu-capsule .nav-link-pill,
body.anatomy-page #mainNav nav .nav-link-pill,
body.anatomy-page #mainNav .nav-menu-capsule .nav-link-pill {
  color: #475569 !important;
}
#mainNav.is-scrolled nav .nav-link-pill:hover,
#mainNav.is-scrolled .nav-menu-capsule .nav-link-pill:hover,
body.anatomy-page #mainNav nav .nav-link-pill:hover,
body.anatomy-page #mainNav .nav-menu-capsule .nav-link-pill:hover {
  color: #0F172A !important;
  background: rgba(255, 255, 255, 0.7) !important;
}
#mainNav.is-scrolled nav .nav-link-pill.active,
#mainNav.is-scrolled .nav-menu-capsule .nav-link-pill.active,
body.anatomy-page #mainNav nav .nav-link-pill.active,
body.anatomy-page #mainNav .nav-menu-capsule .nav-link-pill.active {
  background: #ffffff !important;
  color: #0284C7 !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 8px -1px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

/* Action items outside nav (Language Switcher, Tel) */
#langToggleBtn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  height: 38px !important;
  padding: 0 16px !important;
  border-radius: 9999px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: all 0.25s ease !important;
}

@media (min-width: 1536px) {
  #mainNav a[href^="tel:"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    height: 38px !important;
    padding: 0 16px !important;
    border-radius: 9999px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: all 0.25s ease !important;
  }
}

@media (max-width: 1535.98px) {
  #mainNav a[href^="tel:"] {
    display: none !important;
  }
}
#mainNav:not(.is-scrolled) #langToggleBtn,
#mainNav:not(.is-scrolled) a[href^="tel:"] {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
}
#mainNav:not(.is-scrolled) #langToggleBtn:hover,
#mainNav:not(.is-scrolled) a[href^="tel:"]:hover {
  background: rgba(255, 255, 255, 0.24) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
}
#mainNav.is-scrolled #langToggleBtn,
#mainNav.is-scrolled a[href^="tel:"],
body.anatomy-page #mainNav #langToggleBtn,
body.anatomy-page #mainNav a[href^="tel:"] {
  color: #0F172A !important;
  background: #F1F5F9 !important;
  border: 1px solid #E2E8F0 !important;
}
#mainNav.is-scrolled #langToggleBtn:hover,
#mainNav.is-scrolled a[href^="tel:"]:hover,
body.anatomy-page #mainNav #langToggleBtn:hover,
body.anatomy-page #mainNav a[href^="tel:"]:hover {
  background: #E2E8F0 !important;
  color: #0284C7 !important;
  border-color: #CBD5E1 !important;
}

/* ==================== PRODUCT CATEGORY CARDS (GPU-OPTIMIZED GLASS SPEC) ==================== */
.category-card {
  position: relative !important;
  aspect-ratio: 3 / 4 !important;
  min-height: 440px !important;
  border-radius: 24px !important;
  -webkit-border-radius: 24px !important;
  overflow: hidden !important;
  background-color: #0b0f19 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.16) !important;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease !important;
  user-select: none !important;
  transform: translateZ(0); /* Hardware accelerated */
  contain: layout paint;    /* Isolate reflow strictly inside card */
}

.category-card:hover {
  transform: translateY(-6px) translateZ(0) !important;
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.35) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
}

.category-card img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 24px !important;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.category-card:hover img {
  transform: scale(1.06) !important;
}

/* Light Frosted Glass (High-Performance Frosted Panel) */
.glass-panel-light {
  background: rgba(15, 23, 42, 0.72) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-radius: 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.32) !important;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
  transform: translateZ(0);
}

.glass-panel-light:hover,
.category-card:hover .glass-panel-light {
  background: rgba(15, 23, 42, 0.85) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 16px 40px 0 rgba(0, 0, 0, 0.45) !important;
}

/* Capsule Buttons (Optimized Translucent Accents: No Redundant Nested Blur) */
.glass-btn-capsule {
  border-radius: 9999px !important;
  background: rgba(255, 255, 255, 0.14) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  transition: all 0.25s ease !important;
}

.glass-btn-capsule:hover {
  background: rgba(255, 255, 255, 0.28) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  transform: translateY(-1px) !important;
}

.category-arrow-btn {
  width: 44px;
  height: 44px;
  border-radius: 9999px !important;
  border: 1.5px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
  flex-shrink: 0;
}

.category-card:hover .category-arrow-btn {
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: #0b0f19 !important;
  transform: scale(1.08) !important;
  box-shadow: 0 8px 24px -4px rgba(255, 255, 255, 0.45) !important;
}

/* Notched Concave Card for Renewable Services Module */
.card-concave-mask {
  border-radius: 2rem;
  mask-image: radial-gradient(circle 48px at 40px 40px, transparent 47px, black 48px);
  -webkit-mask-image: radial-gradient(circle 48px at 40px 40px, transparent 47px, black 48px);
}

/* Inverted Tab Notch Spacers for Project Module */
.proj-tab-fillet-top {
  width: 24px;
  height: 24px;
  border-top-left-radius: 14px;
  box-shadow: -8px -8px 0px 0px #f8fafc;
}
.proj-tab-fillet-left {
  width: 24px;
  height: 24px;
  border-top-left-radius: 14px;
  box-shadow: -8px -8px 0px 0px #f8fafc;
}

/* ==================== HIGH-DESIGN RFQ SUBMISSION MODULE ==================== */
.rfq-chip {
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.95rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(51, 65, 85, 0.8);
  background: rgba(15, 23, 42, 0.6);
  color: #94a3b8;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 640px) {
  .rfq-chip {
    font-size: 0.8125rem;
    padding: 0.6rem 1.05rem;
  }
}

.rfq-chip:hover {
  border-color: rgba(56, 189, 248, 0.6);
  color: #ffffff;
  transform: translateY(-1px);
}

.rfq-chip.active {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.18) 0%, rgba(16, 185, 129, 0.18) 100%);
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 0 16px -2px rgba(14, 165, 233, 0.35);
}

.rfq-chip.active .rfq-chip-check {
  background: #38bdf8;
  color: #040914;
}

.rfq-chip-check {
  width: 1rem;
  height: 1rem;
  border-radius: 9999px;
  background: rgba(51, 65, 85, 0.6);
  color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 900;
  transition: all 0.2s ease;
}

.rfq-input {
  width: 100%;
  background: rgba(2, 6, 23, 0.75);
  border: 1px solid rgba(51, 65, 85, 0.8);
  border-radius: 0.875rem;
  padding: 0.8rem 1rem;
  font-size: 0.8125rem;
  color: #ffffff;
  transition: all 0.2s ease;
}

.rfq-input:focus {
  outline: none;
  border-color: #38bdf8;
  background: rgba(2, 6, 23, 0.95);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.rfq-input::placeholder {
  color: #64748b;
}

.rfq-dropzone {
  border: 1.5px dashed rgba(51, 65, 85, 0.9);
  background: rgba(2, 6, 23, 0.5);
  border-radius: 1rem;
  transition: all 0.25s ease;
}

.rfq-dropzone:hover, .rfq-dropzone.dragover {
  border-color: #38bdf8;
  background: rgba(14, 165, 233, 0.08);
}




