/* 
   ==========================================================================
   goodlabel Design System & Styling
   ========================================================================== 
*/



/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

:root {
  /* Font Family */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Theme Tokens (Premium Navy & Gold/Orange Accent) */
  --bg-primary: #ffffff; /* Crisp white background */
  --bg-secondary: #ffffff;
  --bg-tertiary: #F7F8FA; /* Clean light gray section background */
  --text-primary: #1B1B1B; /* High-contrast text */
  --text-secondary: #474747; /* Mid-tone gray body text */
  --text-muted: #737373; /* Muted text */
  
  /* Brand Colors (Deep Navy + Warm Gold/Orange Accent) */
  --primary-hue: 215;
  --primary: #123A6F; /* Deep Navy */
  --primary-hover: #1E4E8C; /* Navy Hover */
  --primary-glow: rgba(18, 58, 111, 0.12);
  
  --accent-cyan: #3E6DA6;
  --accent-pink: #F5A623; 
  --accent-orange: #F5A623; /* Warm Gold Accent */
  --accent-orange-hover: #E0921B; /* Darker Gold Accent Hover */
  --accent-orange-glow: rgba(245, 166, 35, 0.15);
  --accent-green: hsl(142, 75%, 40%);
  
  /* Gradients */
  --gradient-rainbow: linear-gradient(90deg, #123A6F, #3E6DA6, #F5A623, #E0921B, #123A6F);
  --gradient-holo: linear-gradient(135deg, #f9a8d4 0%, #a5f3fc 50%, #c084fc 100%);
  --gradient-metallic: linear-gradient(135deg, #f8fafc 0%, #cbd5e1 50%, #94a3b8 100%);
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, #1E4E8C 100%);
  --gradient-orange: linear-gradient(135deg, var(--accent-orange) 0%, #E0921B 100%);
  --gradient-theme: linear-gradient(135deg, var(--primary) 0%, #3E6DA6 50%, var(--accent-orange) 100%);
  --gradient-dark: linear-gradient(135deg, #0A1424 0%, #123A6F 100%);
  
  /* Section Rhythm */
  --section-blue: #F7F8FA; /* Light gray section background */
  --section-orange: #FAF8F5; /* Warm off-white background */
  --footer-bg: #123A6F; /* Deep Navy footer background */
  --card-bg: #ffffff;
  
  /* UI Constants */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 4px 12px rgba(18, 58, 111, 0.06);
  --shadow-md: 0 12px 36px rgba(18, 58, 111, 0.1);
  --shadow-lg: 0 24px 48px rgba(18, 58, 111, 0.15);
  --shadow-primary: 0 8px 24px rgba(18, 58, 111, 0.25);
  
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(18, 58, 111, 0.12);
  --glass-blur: 16px;
  --glass-highlight: inset 0 1.5px 0 rgba(255, 255, 255, 0.45);
  
  --container-width: 1200px;
  
  /* Logo Theme Variables */
  --logo-blue: #123A6F;
  --logo-orange: #F5A623;
  --logo-red: #C1272D;
  --logo-peach: #FFBE85;
}


/* Dark Mode Variables (Tuned for premium desaturated dark contrast) */
html.dark-theme,
body.dark-theme {
  --bg-primary: #0A1424; /* Very dark navy */
  --bg-secondary: #122138; /* Dark navy card background */
  --bg-tertiary: #1B2D4A;
  --text-primary: #FFFFFF;
  --text-secondary: #D1D8E0;
  --text-muted: #8F9EAF;
  
  --section-blue: #0A1424;
  --section-orange: #122138;
  --card-bg: #122138;
  
  --glass-bg: rgba(18, 33, 56, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-highlight: inset 0 1.5px 0 rgba(255, 255, 255, 0.1);
  
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 12px 36px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.65);
  
  --bg-dark-only: #0A1424;
  
  /* Logo Theme Variables (Dark Mode) */
  --logo-blue: #7FB2FF;
  --logo-orange: #F5A623;
  --logo-red: #EF4444;
  --logo-peach: #FED7AA;
}


html,
body,
#root {
  width: 100%;
  max-width: 100vw;
  min-height: 100%;
  margin: 0;
  padding: 0;
  /* Prevent Safari from auto-inflating font sizes on mobile.
     Without this, iOS Safari makes text bigger than Chrome/Android,
     causing the visual difference between browsers. */
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Nuclear option: kill horizontal scroll at root level */
html {
  overflow-x: clip;
}
body {
  position: relative;
  overflow-x: visible;
  overflow-y: visible;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  /* Cross-browser font rendering consistency */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-primary);
  /* Ultimate Saturated Multi-Layered Mesh Gradient (Blue & Orange themed) + Tech Grid */
  background-image: 
    radial-gradient(circle at 15% 20%, hsla(24, 70%, 55%, 0.08) 0%, transparent 55%),
    radial-gradient(circle at 85% 80%, hsla(217, 36%, 35%, 0.1) 0%, transparent 55%),
    radial-gradient(circle at 50% 50%, hsla(217, 36%, 26%, 0.06) 0%, transparent 60%),
    radial-gradient(circle at 80% 10%, hsla(24, 70%, 55%, 0.06) 0%, transparent 50%),
    radial-gradient(rgba(43, 62, 92, 0.05) 1.5px, transparent 1.5px),
    linear-gradient(135deg, #F0F3F6 0%, #FAF9F6 50%, #ECEFF2 100%);
  background-attachment: scroll;
  background-size: 160% 160%, 160% 160%, 160% 160%, 160% 160%, 36px 36px, 160% 160%;
  animation: mesh-drift 20s ease-in-out infinite alternate;
  color: var(--text-primary);
  line-height: 1.6;
}

html.dark-theme body,
body.dark-theme {
  background-image: 
    radial-gradient(circle at 15% 20%, hsla(217, 36%, 26%, 0.15) 0%, transparent 55%),
    radial-gradient(circle at 85% 80%, hsla(24, 70%, 55%, 0.12) 0%, transparent 55%),
    radial-gradient(circle at 50% 50%, hsla(217, 36%, 26%, 0.1) 0%, transparent 60%),
    radial-gradient(circle at 80% 10%, hsla(24, 70%, 55%, 0.1) 0%, transparent 50%),
    radial-gradient(rgba(226, 125, 47, 0.08) 1.5px, transparent 1.5px),
    linear-gradient(135deg, #090E17 0%, #0D131F 50%, #151E2E 100%);
}

@keyframes mesh-drift {
  0% { background-position: 0% 0%; }
  50% { background-position: 50% 100%; }
  100% { background-position: 100% 0%; }
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Base Layout Container */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  height: 52px;
  padding: 0 28px;
  border-radius: 14px !important;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 1rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: var(--primary) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.25) 50%, transparent 100%);
  transition: all 0.6s ease;
  z-index: -1;
}
.btn-primary:hover::before {
  left: 100%;
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  background: var(--primary-hover) !important;
  box-shadow: 0 4px 12px var(--primary-glow) !important;
}
.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-secondary {
  background: var(--bg-primary) !important;
  color: var(--primary) !important;
  border: 2px solid var(--primary) !important;
  box-shadow: none !important;
}
.btn-secondary:hover {
  background: var(--bg-tertiary) !important;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 12px var(--primary-glow) !important;
}

.btn-accent {
  background: var(--accent-orange) !important;
  color: #123A6F !important;
  box-shadow: none !important;
}
.btn-accent:hover {
  background: var(--accent-orange-hover) !important;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 12px var(--accent-orange-glow) !important;
}

/* Glass Card */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md), var(--glass-highlight);
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.glass-card:not(.header):hover {
  border-color: var(--accent-orange);
  box-shadow: 0 20px 48px rgba(37, 99, 235, 0.18), 0 0 30px rgba(249, 115, 22, 0.15), var(--glass-highlight);
  transform: translateY(-6px) scale(1.005);
}

/* Enhanced Vibrant Glass Card Styling for non-customizer elements */
.glass-card:not(.studio-panel):not(.studio-tabs-bar) {
  background: linear-gradient(var(--glass-bg), var(--glass-bg)) padding-box,
              var(--gradient-theme) border-box;
  border: 1.5px solid transparent;
}
.glass-card:not(.studio-panel):not(.studio-tabs-bar):hover {
  box-shadow: 0 24px 56px rgba(37, 99, 235, 0.28), 0 0 36px rgba(249, 115, 22, 0.22), var(--glass-highlight);
  background: linear-gradient(var(--glass-bg), var(--glass-bg)) padding-box,
              linear-gradient(90deg, #f97316, #2563eb, #f97316) border-box;
}

/* Tinted Glass Card Variations based on page theme or IDs */
.page-theme-primary .glass-card:not(.header),
#beverages.glass-card,
#food-dairy.glass-card,
#personal-care.glass-card {
  --glass-bg: rgba(12, 68, 124, 0.12);
  --glass-border: rgba(12, 68, 124, 0.25);
}
body.dark-theme .page-theme-primary .glass-card:not(.header),
body.dark-theme #beverages.glass-card,
body.dark-theme #food-dairy.glass-card,
body.dark-theme #personal-care.glass-card {
  --glass-bg: rgba(8, 32, 72, 0.7);
  --glass-border: rgba(12, 68, 124, 0.4);
}

.page-theme-orange .glass-card:not(.header),
#holographic.glass-card,
#lubricants.glass-card,
#home-care.glass-card {
  --glass-bg: rgba(239, 159, 39, 0.1);
  --glass-border: rgba(239, 159, 39, 0.25);
}
body.dark-theme .page-theme-orange .glass-card:not(.header),
body.dark-theme #holographic.glass-card,
body.dark-theme #lubricants.glass-card,
body.dark-theme #home-care.glass-card {
  --glass-bg: rgba(30, 20, 8, 0.7);
  --glass-border: rgba(239, 159, 39, 0.4);
}

/* Cyberpunk decorative elements */
.cyber-corners {
  position: relative;
}
.cyber-corners::before, .cyber-corners::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--accent-orange);
  border-style: solid;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}
.cyber-corners::before {
  top: -1.5px;
  left: -1.5px;
  border-width: 3px 0 0 3px;
  border-top-left-radius: 4px;
}
.cyber-corners::after {
  bottom: -1.5px;
  right: -1.5px;
  border-width: 0 3px 3px 0;
  border-bottom-right-radius: 4px;
}
.glass-card:hover.cyber-corners::before {
  width: 24px;
  height: 24px;
  border-color: var(--primary);
}
.glass-card:hover.cyber-corners::after {
  width: 24px;
  height: 24px;
  border-color: var(--primary);
}

/* Background Blur Circle blobs */
.blur-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.32; /* Saturated, flashy look */
  pointer-events: none;
  z-index: 0;
  animation: float-slow 16s infinite alternate ease-in-out;
}
body.dark-theme .blur-circle {
  opacity: 0.45; /* Saturated dark mode glow */
  filter: blur(120px);
}
.blur-blue {
  width: clamp(200px, 30vw, 350px);
  height: clamp(200px, 30vw, 350px);
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}
.blur-orange {
  width: clamp(180px, 25vw, 300px);
  height: clamp(180px, 25vw, 300px);
  background: radial-gradient(circle, var(--accent-orange) 0%, transparent 70%);
}
@keyframes float-slow {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  50% { transform: translate(60px, 30px) scale(1.1) rotate(180deg); }
  100% { transform: translate(-30px, 60px) scale(1.2) rotate(360deg); }
}

/* Section Header Styling */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--primary-glow);
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  border: 1px solid hsla(var(--primary-hue), 85%, 58%, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.section-title {
  font-size: 2.5rem;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.section-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================================================
   Header / Navbar
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  transform: none;
  width: 100%;
  max-width: 100%;
  z-index: 2000; /* above nav overlay (1500) */
  padding: 0;
  border-radius: 0;
  border: none !important;
  background: #123A6F !important; /* Solid Brand Deep Navy Blue */
  box-shadow: 0 10px 30px rgba(18, 58, 111, 0.25);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.header:hover {
  border: none !important;
  box-shadow: 0 12px 35px rgba(18, 58, 111, 0.35);
  transform: none;
}
.header.scrolled {
  top: 0;
  left: 0;
  transform: none;
  width: 100%;
  max-width: 100%;
  border-radius: 0;
  border-left: none !important;
  border-right: none !important;
  border-top: none !important;
  border-bottom: none !important;
  background: #123A6F !important; /* Solid Brand Deep Navy Blue */
  box-shadow: 0 4px 20px rgba(18, 58, 111, 0.25);
}
.header.scrolled:hover {
  border: none !important;
  box-shadow: 0 6px 24px rgba(18, 58, 111, 0.3);
  transform: none;
}
/* Ensure logo and controls look perfect on the dark navy header background in all themes */
.header .logo .logo-dark {
  display: block !important;
}
.header .logo .logo-light {
  display: none !important;
}
.header .theme-toggle {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}
.header .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.18);
  color: var(--accent-orange);
}
.header .mobile-nav-toggle {
  color: #ffffff;
}
.header .mobile-nav-toggle:hover {
  color: var(--accent-orange);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: normal;
  text-transform: none;
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
}

.logo i {
  background: var(--gradient-theme);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.6rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--accent-orange); /* Golden orange text */
  position: relative;
  transition: color 0.3s ease;
}
.nav-link:hover,
.nav-link.active {
  color: #ffffff; /* Brighter white for high contrast hover */
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-orange); /* Golden orange underline */
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Theme Toggle Button */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  background: var(--bg-tertiary);
}
.theme-toggle:hover {
  background: var(--glass-border);
  transform: rotate(15deg);
}
.theme-toggle .fa-sun {
  display: none;
}
body.dark-theme .theme-toggle .fa-moon {
  display: none;
}
body.dark-theme .theme-toggle .fa-sun {
  display: block;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
  z-index: 200;
  position: relative;
}
.mobile-nav-toggle:hover {
  background: var(--glass-bg);
}

/* Mobile nav open overlay */
.nav-links.nav-open {
  display: flex !important;
  flex-direction: column;
  position: fixed;
  /* top is set dynamically by JS to match header bottom */
  top: 70px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #123A6F !important; /* Solid Brand Deep Navy Blue */
  z-index: 1500; /* above hero content, below header (2000) */
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  animation: nav-slide-in 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
  padding: 32px 24px;
  /* Dark backdrop tint in dark mode */
  box-shadow: none;
}
.nav-links.nav-open .nav-link {
  font-size: 1.6rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(20px);
  animation: nav-link-reveal 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.nav-links.nav-open .nav-link:nth-child(1) { animation-delay: 0.05s; }
.nav-links.nav-open .nav-link:nth-child(2) { animation-delay: 0.10s; }
.nav-links.nav-open .nav-link:nth-child(3) { animation-delay: 0.15s; }
.nav-links.nav-open .nav-link:nth-child(4) { animation-delay: 0.20s; }
.nav-links.nav-open .nav-link:nth-child(5) { animation-delay: 0.25s; }
.nav-links.nav-open .nav-link:nth-child(6) { animation-delay: 0.30s; }
@keyframes nav-slide-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes nav-link-reveal {
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  padding: 180px 0 100px;
  overflow: hidden;
  max-width: 100%;
  background: radial-gradient(circle at 10% 20%, hsla(var(--primary-hue), 95%, 52%, 0.08) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, hsla(24, 95%, 50%, 0.08) 0%, transparent 40%);
}

.hero-motto {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  padding: 15px 24px 10px 16px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-orange) 100%);
  color: #ffffff;
  font-family: 'Syncopate', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 10px 25px rgba(249, 115, 22, 0.25), 0 0 15px rgba(37, 99, 235, 0.2);
  animation: pulse-glow 3s infinite alternate;
}

.hero-motto i {
  color: #ffffff;
  font-size: 1.1rem;
}

@keyframes pulse-glow {
  0% {
    transform: scale(1);
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.25), 0 0 10px rgba(37, 99, 235, 0.2);
    border-color: rgba(255, 255, 255, 0.45);
  }
  100% {
    transform: scale(1.03);
    box-shadow: 0 12px 35px rgba(249, 115, 22, 0.5), 0 0 25px rgba(37, 99, 235, 0.4);
    border-color: rgba(255, 255, 255, 0.85);
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
}
.hero-title {
  font-size: clamp(2rem, 4.5vw, 4rem);
  margin-bottom: 24px;
}
.hero-title span.accent-text {
  background: var(--gradient-theme);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-desc {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 540px;
}
.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

/* Floating labels background animation */
.hero-visual {
  position: relative;
  min-height: 420px;
  height: clamp(380px, 45vw, 520px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.drag-hint-badge {
  position: absolute;
  top: -20px;
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  color: var(--primary);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  z-index: 10;
  pointer-events: none;
  animation: hint-bounce 2.5s infinite alternate ease-in-out;
}

@keyframes hint-bounce {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

.floating-card.dragging {
  cursor: grabbing !important;
  box-shadow: 0 25px 50px rgba(139, 92, 246, 0.4), 0 0 25px var(--primary-glow) !important;
  border-color: var(--primary) !important;
  opacity: 0.95;
  user-select: none;
}

.floating-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.floating-card {
  position: absolute;
  width: 180px;
  height: 120px;
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-lg), var(--glass-highlight);
  border: 1px solid rgba(255, 255, 255, 0.22);
  animation: float-around infinite ease-in-out;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.floating-card-1 {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.65) 0%, rgba(59, 130, 246, 0.65) 100%);
  color: white;
  top: 10%;
  left: 2%;
  transform: rotate(-10deg);
  animation-duration: 16s;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3), var(--glass-highlight);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.floating-card-2 {
  background: linear-gradient(135deg, rgba(194, 65, 12, 0.65) 0%, rgba(249, 115, 22, 0.65) 100%);
  color: white;
  bottom: 12%;
  left: 2%;
  transform: rotate(5deg);
  animation-duration: 22s;
  animation-delay: -6s;
  box-shadow: 0 10px 30px rgba(249, 115, 22, 0.3), var(--glass-highlight);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.floating-card-3 {
  background: linear-gradient(135deg, rgba(12, 68, 124, 0.5) 0%, rgba(152, 86, 204, 0.5) 50%, rgba(239, 159, 39, 0.5) 100%);
  color: white;
  top: 44%;
  right: 2%;
  transform: rotate(10deg);
  animation: float-around 18s infinite ease-in-out -3s, rainbow-glow 12s infinite linear;
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3), var(--glass-highlight);
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.floating-card-4 {
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.65) 0%, rgba(249, 115, 22, 0.65) 100%);
  color: white;
  bottom: 14%;
  right: 2%;
  transform: rotate(-6deg);
  animation-duration: 20s;
  animation-delay: -10s;
  box-shadow: 0 10px 30px rgba(249, 115, 22, 0.25), var(--glass-highlight);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.floating-card-5 {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.75), rgba(30, 41, 59, 0.75));
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.4);
  top: 8%;
  right: 2%;
  transform: rotate(6deg);
  animation-duration: 24s;
  animation-delay: -2s;
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.2), var(--glass-highlight);
}
.floating-card-6 {
  background: linear-gradient(135deg, rgba(154, 52, 18, 0.65) 0%, rgba(234, 88, 12, 0.65) 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  top: 42%;
  left: 2%;
  transform: rotate(-3deg);
  animation-duration: 19s;
  animation-delay: -5s;
  box-shadow: 0 10px 30px rgba(234, 88, 12, 0.3), var(--glass-highlight);
}

.floating-card .card-logo {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.floating-card .card-name {
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.1;
  margin-top: 10px;
}
.floating-card .card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  opacity: 0.9;
}
.floating-card .barcode-line {
  height: 20px;
  width: 60px;
  background: currentColor;
  mask: repeating-linear-gradient(90deg, #000 0px, #000 2px, transparent 2px, transparent 5px);
  -webkit-mask: repeating-linear-gradient(90deg, #000 0px, #000 2px, transparent 2px, transparent 5px);
}

@keyframes float-around {
  0%, 100% {
    transform: translateY(0) rotate(var(--angle, 0deg));
  }
  50% {
    transform: translateY(-10px) rotate(calc(var(--angle, 0deg) + 1.5deg));
  }
}
.floating-card-1 { --angle: -10deg; }
.floating-card-2 { --angle: 5deg; }
.floating-card-3 { --angle: 15deg; }
.floating-card-4 { --angle: -6deg; }
.floating-card-5 { --angle: 8deg; }
.floating-card-6 { --angle: -3deg; }

/* ==========================================================================
   About Us Section
   ========================================================================== */
.about {
  padding: 100px 0;
  position: relative;
  background-color: var(--bg-secondary);
  overflow: hidden;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}
.about-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.about-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.stat-card {
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(37, 99, 235, 0.08);
  border-color: var(--primary);
}
.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--primary-glow);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.stat-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.25rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.stat-label {
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 8px;
}
.stat-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   goodlabel Studio (Interactive Customizer)
   ========================================================================== */
.studio {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.studio-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}

/* Control Panel */
.studio-panel {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.studio-panel:hover {
  transform: none !important;
  box-shadow: var(--shadow-md), var(--glass-highlight) !important;
  border-color: var(--glass-border) !important;
}
.studio-section-title {
  font-size: 1.5rem;
  margin-bottom: 8px;
  border-bottom: 2px solid var(--bg-tertiary);
  padding-bottom: 12px;
}
.studio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.studio-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.studio-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.studio-input:focus {
  outline: 2px solid var(--primary);
}

/* Shapes Grid & Options */
.options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.option-card {
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--glass-border);
  background: var(--bg-primary);
  text-align: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}
.option-card i {
  font-size: 1.25rem;
}
.option-card:hover {
  border-color: var(--text-muted);
}
.option-card.active {
  border-color: var(--primary);
  background: var(--primary-glow);
  color: var(--primary);
}

/* Finish Details */
.finish-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Color Palette Selector */
.color-swatches {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.swatch {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: 3px solid var(--bg-secondary);
  box-shadow: 0 0 0 1px var(--text-muted);
  transition: transform 0.2s ease;
}
.swatch.active {
  transform: scale(1.15);
  box-shadow: 0 0 0 2px var(--primary);
}

/* Switch Toggle Component */
.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-tertiary);
  border: 1.5px solid var(--glass-border);
  border-radius: 34px;
  transition: 0.3s;
}
.switch-slider::before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3.5px;
  bottom: 3.5px;
  background-color: #ffffff;
  border-radius: 50%;
  transition: 0.3s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
}
input:checked + .switch-slider {
  background-color: var(--primary) !important;
  border-color: var(--primary);
  box-shadow: 0 0 8px hsla(var(--primary-hue), 85%, 58%, 0.45);
}
input:checked + .switch-slider::before {
  transform: translateX(24px);
}


/* Viewport (3D Bottle Rendering) */
.studio-viewport-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.studio-viewport {
  height: clamp(480px, 65vh, 750px);
  border-radius: var(--radius-md);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
  overflow: hidden;
  background: linear-gradient(135deg, #cbd5e1 0%, #64748b 50%, #475569 100%);
  border: 1px solid var(--glass-border);
}
body.dark-theme .studio-viewport {
  background: linear-gradient(135deg, #13121d 0%, #1a1735 50%, #07070a 100%);
}

/* Viewport Floating Zoom & Reset Toolbar */
.viewport-controls {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  display: flex;
  gap: 8px;
  background: rgba(30, 27, 75, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-md);
}

.viewport-ctrl-btn {
  background: none;
  border: none;
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.viewport-ctrl-btn:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-2px) scale(1.05);
}

.viewport-ctrl-btn:active {
  transform: translateY(0) scale(0.95);
}

/* Backdrop glow element behind container */
.viewport-glow {
  position: absolute;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  opacity: 0.25;
  filter: blur(40px);
  pointer-events: none;
  transition: background 0.5s ease;
}


/* Viewport Reflection Overlay */
.viewport-reflection {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 50%, rgba(0,0,0,0.05) 100%);
  pointer-events: none;
}

/* Bottom studio CTA bar */
.studio-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  margin-top: 10px;
}
.studio-bar-info {
  display: flex;
  flex-direction: column;
}
.studio-bar-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

/* ==========================================================================
   Product Catalog
   ========================================================================== */
.products {
  padding: 100px 0;
  background-color: var(--bg-secondary);
  overflow: hidden;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}
.product-card {
  border-radius: var(--radius-md);
  padding: 32px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 420px;
  z-index: 1;
  text-decoration: none;
  color: inherit;
}
.product-bg-gradient {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  z-index: -1;
  transition: opacity 0.3s ease;
}
.product-card:hover .product-bg-gradient {
  opacity: 0.08;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--card-color, var(--primary));
}
.product-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  color: var(--card-color, var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 24px;
  border: 1px solid var(--glass-border);
}
.product-image-container {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 24px;
  border: 1.5px solid var(--glass-border);
  position: relative;
  background-color: #ffffff;
}
.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover .product-image {
  transform: scale(1.08);
}
.product-title {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.product-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
}
.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}
.product-tag {
  padding: 4px 12px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.product-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0 24px;
}
.product-method-link {
  font-size: 0.85rem;
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
}
.product-method-link:hover {
  color: var(--accent-orange);
  transform: translateX(4px);
}
.product-method-link i {
  font-size: 0.75rem;
}
.product-card .btn-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--card-color, var(--primary));
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.product-card .btn-text i {
  transition: transform 0.3s ease;
}
.product-card:hover .btn-text i {
  transform: translateX(4px);
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.08), 0 0 24px var(--card-color);
  border-color: var(--card-color);
}



/* ==========================================================================
   Material Finish Explorer
   ========================================================================== */
.materials {
  padding: 100px 0;
  background-color: var(--bg-secondary);
}
.materials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.material-card {
  padding: 24px;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--glass-border);
}
.material-sample {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

/* Gloss sample */
.sample-gloss {
  background: linear-gradient(135deg, var(--primary) 0%, hsl(280, 85%, 50%) 100%);
}
.sample-gloss::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 50%);
}

/* Matte sample */
.sample-matte {
  background: linear-gradient(135deg, var(--primary) 0%, hsl(280, 85%, 50%) 100%);
  box-shadow: inset 0 0 20px rgba(0,0,0,0.1);
}

/* Metallic sample */
.sample-metallic {
  background: var(--gradient-metallic);
}
.sample-metallic::after {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  transform: skewX(-20deg);
  animation: metallic-sweep 3s infinite linear;
}
@keyframes metallic-sweep {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Holographic sample */
.sample-holographic {
  background: var(--gradient-holo);
}
.sample-holographic::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(255,0,0,0.2) 0%, rgba(0,255,0,0.2) 25%, rgba(0,0,255,0.2) 50%, rgba(255,0,255,0.2) 75%, rgba(255,0,0,0.2) 100%);
  background-size: 300% 300%;
  mix-blend-mode: overlay;
  animation: holo-flow 4s infinite linear;
}

.material-card-title {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.material-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Highlight material cards when selected */
.material-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

/* ==========================================================================
   Quote Estimator & Sample Request Form
   ========================================================================== */
.contact-calculator {
  padding: 100px 0;
  position: relative;
  background: radial-gradient(circle at 50% 50%, hsla(var(--primary-hue), 85%, 58%, 0.12) 0%, transparent 60%);
  overflow: hidden;
}
body.dark-theme .contact-calculator {
  background: radial-gradient(circle at 50% 50%, hsla(280, 85%, 58%, 0.18) 0%, transparent 65%);
}
.calc-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 800px;
  margin: 0 auto;
  gap: 40px;
}

/* Calculator Card */
.calc-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.calc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.calc-price-box {
  margin-top: 10px;
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  border: 1px solid var(--glass-border);
}
.calc-price-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.calc-final-price {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
}
.calc-price-unit {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Request Form */
.form-card {
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: linear-gradient(#ffffff, #ffffff) padding-box,
              var(--gradient-theme) border-box !important;
  border: 1.5px solid transparent !important;
  box-shadow: var(--shadow-md), var(--glass-highlight), 0 0 30px rgba(37, 99, 235, 0.08);
}
body.dark-theme .form-card {
  background: linear-gradient(#061122, #061122) padding-box,
              var(--gradient-theme) border-box !important;
  border: 1.5px solid transparent !important;
  box-shadow: var(--shadow-lg), var(--glass-highlight), 0 0 40px rgba(249, 115, 22, 0.15) !important;
}
body.dark-theme .form-card .btn-primary {
  box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4) !important;
}
body.dark-theme .form-card .btn-primary:hover {
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.55) !important;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group-full {
  grid-column: span 2;
}
.form-input {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: #ffffff;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}
body.dark-theme .form-input {
  background: var(--bg-primary) !important;
  border-color: var(--glass-border) !important;
  color: var(--text-primary) !important;
}
.form-input::placeholder {
  color: rgba(37, 99, 235, 0.4);
}
body.dark-theme .form-input::placeholder {
  color: rgba(249, 115, 22, 0.45) !important;
}
.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow), 0 0 15px rgba(37, 99, 235, 0.2);
  background: #ffffff;
}
body.dark-theme .form-input:focus {
  border-color: var(--accent-orange) !important;
  box-shadow: 0 0 0 3px var(--accent-orange-glow), 0 0 20px rgba(249, 115, 22, 0.3) !important;
  background: var(--bg-secondary) !important;
}
textarea.form-input {
  min-height: 120px;
  resize: vertical;
}

/* Success Banner State */
.success-banner {
  display: none;
  padding: 24px;
  text-align: center;
  background: hsla(142, 70%, 45%, 0.1);
  border: 1px solid hsla(142, 70%, 45%, 0.25);
  border-radius: var(--radius-sm);
  color: var(--accent-green);
  font-weight: 600;
  margin-top: 20px;
  animation: slide-up 0.4s ease-out;
}
.success-banner i {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Footer Section
   ========================================================================== */
.footer {
  background: rgba(4, 44, 83, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #f8fafc;
  padding: 120px 0 40px;
  border-top: 1.5px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1), inset 0 1.5px 0 rgba(255, 255, 255, 0.15);
}
/* Ensure clean text variables in footer for light/dark safety */
.footer p, .footer a {
  color: #94a3b8;
}
.footer a:hover {
  color: #ffffff;
}
.footer-logo {
  font-family: inherit;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: normal;
  text-transform: none;
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-logo i {
  background: var(--gradient-theme);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-col-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  position: relative;
  padding-bottom: 8px;
}
.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary);
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a i {
  margin-right: 8px;
  font-size: 0.72rem;
  color: var(--accent-orange);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
}
.footer-links a:hover i {
  transform: translateX(4px);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.footer-contact-item i {
  color: var(--primary);
  margin-top: 4px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-socials {
  display: flex;
  gap: 16px;
}
.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}
.social-icon:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-3px);
}

/* Studio Tabs & Studio Toggle Layout */
.studio-tabs-bar .btn {
  border: none !important;
}
.studio-tabs-bar .btn:not(.active-tab-btn) {
  background: transparent !important;
  color: var(--text-secondary) !important;
  box-shadow: none !important;
}
.studio-tabs-bar .btn.active-tab-btn {
  background: var(--primary) !important;
  color: #ffffff !important;
  box-shadow: var(--shadow-primary) !important;
}
body.dark-theme .studio-tabs-bar .btn.active-tab-btn {
  background: var(--primary) !important;
  color: #ffffff !important;
}

.hidden-studio {
  display: none !important;
}

/* ==========================================================================
   BLUE AND ORANGE REDESIGN OVERRIDES & SCROLL ANIMATIONS
   ========================================================================== */

/* 1. SECTION BACKGROUNDS & COLOR RULES */

/* Hero Section */
.hero {
  background: var(--bg-primary) !important;
  color: var(--text-primary) !important;
  transition: background-color 0.5s ease, color 0.5s ease;
}
.hero .hero-title {
  color: var(--text-primary) !important;
}
.hero .hero-desc {
  color: var(--text-secondary) !important;
}
.hero .hero-title span.accent-text {
  color: var(--accent-orange) !important;
  background: none !important;
  -webkit-text-fill-color: initial !important;
}
.hero-motto {
  background: var(--accent-orange) !important;
  color: #123A6F !important;
  border: 2px solid rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 4px 15px rgba(245, 166, 35, 0.2) !important;
}
.hero-motto i {
  color: #123A6F !important;
}

/* Alternate rhythm sections */
.about {
  background: var(--section-blue) !important;
}
.studio {
  background: var(--section-orange) !important;
}
.products {
  background: var(--section-blue) !important;
}
.simulator-sec {
  background: var(--primary-hover) !important;
  color: #ffffff !important;
}
.simulator-sec .simulator-title {
  color: #ffffff !important;
}
.simulator-sec p, .simulator-sec strong {
  color: rgba(255, 255, 255, 0.9) !important;
}
.simulator-sec .section-badge {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}
.contact-calculator {
  background: var(--section-orange) !important;
}

/* Footer Section */
.footer {
  background: rgba(4, 44, 83, 0.75) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  color: #ffffff !important;
  border-top: 1.5px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1), inset 0 1.5px 0 rgba(255, 255, 255, 0.15) !important;
}
body.dark-theme .footer {
  background: rgba(2, 9, 20, 0.75) !important;
  border-top: 1.5px solid rgba(239, 159, 39, 0.25) !important;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2), inset 0 1.5px 0 rgba(255, 255, 255, 0.1) !important;
}
.footer p, .footer a {
  color: #dbeafe !important;
}
.footer a:hover {
  color: var(--accent-orange) !important;
}
.footer-col-title {
  color: #ffffff !important;
}
.footer-col-title::after {
  background: var(--accent-orange) !important;
}
.footer-logo {
  background: none !important;
  -webkit-text-fill-color: initial !important;
  color: initial !important;
  display: inline-flex;
  align-items: center;
  margin-bottom: 20px;
}
.footer-col-title {
  color: #ffffff !important;
}
.footer-col-title::after {
  background: var(--accent-orange) !important;
}

/* Nav Logo Override */
.logo {
  background: none !important;
  -webkit-text-fill-color: initial !important;
  color: initial !important;
  display: inline-flex;
  align-items: center;
}
body.dark-theme .logo {
  -webkit-text-fill-color: initial !important;
  color: initial !important;
}

.logo-light, .logo-dark {
  height: 38px;
  width: auto;
  display: block;
  transition: transform 0.3s ease;
}
.logo:hover .logo-light,
.logo:hover .logo-dark,
.footer-logo:hover .logo-dark-always {
  transform: scale(1.05);
}

.logo .logo-dark {
  display: none !important;
}
.logo .logo-light {
  display: block !important;
}
body.dark-theme .logo .logo-light {
  display: none !important;
}
body.dark-theme .logo .logo-dark {
  display: block !important;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
}
.logo-dark-always {
  height: 48px;
  width: auto;
  display: block;
  transition: transform 0.3s ease;
}


.hero-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  z-index: 0;
  pointer-events: none;
  opacity: 0.18;
  transition: opacity 0.5s ease;
}
body.dark-theme .hero-bg-video {
  opacity: 0.28;
}


/* 2. BUTTONS (CTAs) & ICONS */

/* CTA Buttons Styling */
.btn-primary, .btn-accent, .hero-ctas .btn-primary, .hero-ctas .btn-accent, .form-card button[type="submit"], .about .btn {
  background-color: var(--accent-orange) !important;
  background-image: none !important;
  color: #412402 !important;
  border: none !important;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(239, 159, 39, 0.25) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.btn-primary:hover, .btn-accent:hover, .hero-ctas .btn-primary:hover, .hero-ctas .btn-accent:hover, .form-card button[type="submit"]:hover, .about .btn:hover {
  background-color: var(--accent-orange-hover) !important;
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 8px 20px rgba(239, 159, 39, 0.4) !important;
}

/* Icons Fill Rule */
i, .stat-icon i, .product-icon i, .logo i, .hero-motto i {
  color: var(--accent-orange) !important;
  background: none !important;
  -webkit-text-fill-color: initial !important;
  -webkit-background-clip: initial !important;
}

/* 3. PRODUCT CARDS & HOVER LIFT */
.product-card {
  position: relative;
  background: var(--card-bg) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: var(--radius-md) !important;
  padding: 32px !important;
  overflow: hidden !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-decoration: none !important;
  color: inherit !important;
}
.product-card::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 4px !important;
  background-color: var(--accent-orange) !important; /* orange top border accent */
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  z-index: 5 !important;
}
.product-card:nth-child(even)::before {
  background-color: var(--primary) !important; /* alternating blue top border accent */
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(12, 68, 124, 0.15) !important;
}
.product-card:hover::before {
  height: 8px !important; /* top-border grows */
  background-color: var(--primary) !important; /* grows into blue border */
}

/* Simulator Container spin overlay */
.simulator-visual {
  background: var(--primary) !important;
  border: 2px solid var(--accent-orange) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 0 40px rgba(255, 255, 255, 0.05) !important;
}

/* Form inputs orange focus rings */
.form-input:focus {
  outline: 2px solid var(--accent-orange) !important;
  border-color: var(--accent-orange) !important;
  box-shadow: 0 0 0 3px rgba(239, 159, 39, 0.25), 0 0 15px rgba(239, 159, 39, 0.2) !important;
}

/* Nav Link Underline Hover Slide-in-Left */
.nav-links .nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-orange) !important;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-links .nav-link:hover::after,
.nav-links .nav-link.active::after {
  transform: scaleX(1);
}

/* 4. SCROLL REVEAL ANIMATIONS */

/* Slide Left */
.reveal-left {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* Slide Right */
.reveal-right {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* Slide Up */
.reveal-up {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* Scale Up */
.reveal-scale {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* Reveal Active State */
.reveal-active {
  opacity: 1 !important;
  transform: none !important;
}

/* Hero Staggered Words */
.word-span {
  display: inline-block;
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
.word-span.reveal-active {
  opacity: 1 !important;
  transform: none !important;
}

/* Simulator Spin animation */
@keyframes spin-360 {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.spin-loop {
  animation: spin-360 25s linear infinite !important;
}

/* Card custom spring for hero labels floating in from right */
@keyframes spring-in {
  0% {
    opacity: 0;
    transform: translateX(200px) rotate(15deg);
  }
  60% {
    transform: translateX(-15px) rotate(-2deg);
  }
  80% {
    transform: translateX(8px) rotate(1deg);
  }
  100% {
    opacity: 1;
    transform: translateX(0) rotate(var(--angle, 0deg));
  }
}

.hero-visual-revealed .floating-card-1 {
  animation: spring-in 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) both 0.1s,
             float-around 16s ease-in-out infinite 1.3s !important;
  --angle: -10deg;
}
.hero-visual-revealed .floating-card-2 {
  animation: spring-in 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) both 0.25s,
             float-around 22s ease-in-out infinite 1.45s !important;
  --angle: 5deg;
}
.hero-visual-revealed .floating-card-3 {
  animation: spring-in 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) both 0.4s,
             float-around 18s ease-in-out infinite 1.6s !important,
             rainbow-glow 12s infinite linear !important;
  --angle: 15deg;
}
.hero-visual-revealed .floating-card-4 {
  animation: spring-in 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) both 0.55s,
             float-around 20s ease-in-out infinite 1.75s !important;
  --angle: -6deg;
}
.hero-visual-revealed .floating-card-5 {
  animation: spring-in 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) both 0.7s,
             float-around 24s ease-in-out infinite 1.9s !important;
  --angle: 8deg;
}
.hero-visual-revealed .floating-card-6 {
  animation: spring-in 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) both 0.85s,
             float-around 19s ease-in-out infinite 2.05s !important;
  --angle: -3deg;
}

/* Homepage 3D Scroll Container */
#hero-3d-scroll-container {
  position: absolute;
  top: -50px;
  left: 0;
  width: 100%;
  height: calc(100% + 100px);
  min-height: 380px;
  z-index: 1;
  pointer-events: none;
}

#hero-3d-scroll-container canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* Layering for cards and guides to hover over the 3D canvas */
.drag-hint-badge {
  z-index: 10 !important;
}
.floating-container {
  z-index: 5 !important;
}

/* Sub-page Specific Utilities */
.subpage-content {
  padding: 160px 0 100px;
  position: relative;
}

/* ==========================================================================
   Infinite Scrolling Marquee Showcase
   ========================================================================== */
.marquee-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
  padding: 20px 0;
}

.marquee-track {
  display: flex;
  gap: 24px;
  width: max-content;
  will-change: transform;
}

.customers-track {
  animation: scroll-left-fast 32s linear infinite;
}

.labels-track {
  animation: scroll-left-slow 40s linear infinite;
}

@keyframes scroll-left-fast {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 12px)); }
}

@keyframes scroll-left-slow {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 12px)); }
}

.marquee-container:hover .marquee-track {
  animation-play-state: paused !important;
}

.marquee-card {
  flex-shrink: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  border-radius: var(--radius-md) !important;
  border: 1.5px solid var(--glass-border) !important;
  background: var(--glass-bg) !important;
  backdrop-filter: blur(var(--glass-blur)) !important;
  -webkit-backdrop-filter: blur(var(--glass-blur)) !important;
}

.customer-card {
  width: 230px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm) !important;
}

.customer-card i {
  font-size: 1.5rem !important;
  color: var(--accent-orange) !important;
}

.customer-card span {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.label-card {
  width: 280px;
  height: 160px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md) !important;
}

.label-card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.label-badge {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.label-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  color: #ffffff;
  margin-top: 8px;
  letter-spacing: -0.01em;
}

.label-details {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.label-icon {
  position: absolute;
  bottom: -5px;
  right: -5px;
  opacity: 0.15;
  font-size: 4rem !important;
  transform: rotate(-10deg);
  pointer-events: none;
}

.label-icon i {
  color: #ffffff !important;
  background: none !important;
  -webkit-text-fill-color: initial !important;
}

/* Specific Label Gradients */
.prod-aquaglow {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%) !important;
}
.prod-citrus {
  background: linear-gradient(135deg, #c2410c 0%, #f97316 100%) !important;
}
.prod-glacier {
  background: var(--gradient-holo) !important;
}
.prod-glacier .label-name, .prod-glacier .label-details, .prod-glacier .label-badge {
  color: #1e1b4b !important;
}
.prod-glacier .label-icon i {
  color: #1e1b4b !important;
}
.prod-glacier .label-badge {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.12);
}
.prod-mangorush {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%) !important;
}
.prod-colablast {
  background: linear-gradient(135deg, #7f1d1d 0%, #1e1b4b 100%) !important;
}
.prod-ketchup {
  background: linear-gradient(135deg, #991b1b 0%, #dc2626 100%) !important;
}
.prod-mint {
  background: linear-gradient(135deg, #065f46 0%, #10b981 100%) !important;
}
.prod-slate {
  background: linear-gradient(135deg, #1e293b 0%, #475569 100%) !important;
}

.marquee-card:hover {
  transform: scale(1.05) translateY(-4px) !important;
  border-color: var(--accent-orange) !important;
  box-shadow: 0 15px 30px rgba(12, 68, 124, 0.2), 0 0 15px rgba(239, 159, 39, 0.15) !important;
  z-index: 10;
}

/* Scroll reveal helper animations */
.reveal-up {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
.reveal-active.reveal-up,
.reveal-active .reveal-up {
  opacity: 1 !important;
  transform: none !important;
}

/* ==========================================================================
   NEW ANIMATIONS: Scroll Progress Bar, Typewriter, Animated Gradient Text,
   Button Ripple, Product Card Tilt
   ========================================================================== */

/* 1. Scroll Progress Bar (Blue -> Orange gradient) */
#scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-hover) 50%, var(--accent-orange) 100%);
  z-index: 3000; /* above header (2000) */
  box-shadow: 0 0 12px rgba(239, 159, 39, 0.5);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.1s ease-out;
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
}

/* 2. Typewriter Effect for Hero Accent Text */
.hero-title .accent-text.typewriter-active {
  display: inline;
  position: relative;
  white-space: normal;
  word-break: break-word;
  border-right: 3px solid var(--accent-orange);
  animation: typewriter-cursor 0.75s step-end infinite;
}
@keyframes typewriter-cursor {
  0%, 100% { border-color: var(--accent-orange); }
  50% { border-color: transparent; }
}

/* 3. Animated Gradient Text Sweep on Accent Text */
.hero-title span.accent-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  text-transform: none;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-hover) 25%, var(--accent-orange) 50%, var(--primary-hover) 75%, var(--primary) 100%) !important;
  background-size: 300% auto !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  animation: gradient-text-sweep 6s linear infinite !important;
}
@keyframes gradient-text-sweep {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

/* 4. Button Ripple Effect */
.btn {
  position: relative;
  overflow: hidden;
}
.btn .ripple-effect {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple-anim 0.6s linear;
  background: rgba(255, 255, 255, 0.45);
  pointer-events: none;
  z-index: 5;
}
body.dark-theme .btn .ripple-effect {
  background: rgba(255, 255, 255, 0.3);
}
@keyframes ripple-anim {
  to {
    transform: scale(3.5);
    opacity: 0;
  }
}

/* 5. Product Card 3D Tilt-on-Hover */
.product-card {
  transform-style: preserve-3d;
  will-change: transform;
}
.product-card .product-tilt-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: var(--radius-md);
  background: radial-gradient(circle at var(--glare-x, 50%) var(--glare-y, 50%), rgba(255, 255, 255, 0.25), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 6;
}
.product-card:hover .product-tilt-glare {
  opacity: 1;
}
body.dark-theme .product-card .product-tilt-glare {
  background: radial-gradient(circle at var(--glare-x, 50%) var(--glare-y, 50%), rgba(255, 159, 39, 0.18), transparent 60%);
}

/* ==========================================================================
   ABOUT PAGE — KINETIC HERO BAND (Bold editorial / "racing telemetry" style)
   ========================================================================== */
.about-hero-band {
  position: relative;
  background: var(--footer-bg);
  color: #ffffff;
  overflow: hidden;
  padding: 0;
  border-bottom: 4px solid var(--accent-orange);
}
/* 3D canvas injected by JS */
#about-3d-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}
#about-3d-bg canvas {
  width: 100% !important;
  height: 100% !important;
}
.about-hero-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(239, 159, 39, 0.25) 0%, transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(24, 95, 165, 0.45) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
  animation: about-glow-shift 8s ease-in-out infinite alternate;
}
@keyframes about-glow-shift {
  0% { opacity: 1; }
  100% { opacity: 0.6; background-position: 100% 50%; }
}
.about-hero-band .container {
  position: relative;
  z-index: 1;
  padding-top: 90px;
  padding-bottom: 60px;
}
.about-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Syncopate', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-orange);
  margin-bottom: 24px;
}
.about-hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 40px;
  height: 2px;
  background: var(--accent-orange);
}
.about-hero-headline {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.75rem, 7vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  text-transform: uppercase;
}
.about-hero-headline .line {
  display: block;
  overflow: hidden;
}
.about-hero-headline .line span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.about-hero-band.kinetic-active .about-hero-headline .line span {
  transform: translateY(0);
}
.about-hero-headline .line:nth-child(1) span { transition-delay: 0.05s; }
.about-hero-headline .line:nth-child(2) span { transition-delay: 0.18s; }
.about-hero-headline .line:nth-child(3) span { transition-delay: 0.31s; color: var(--accent-orange); }

.about-hero-sub {
  max-width: 520px;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
  margin-bottom: 0;
}

/* Giant kinetic stat ticker row */
.kinetic-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 60px;
}
.kinetic-stat {
  padding: 28px 20px 8px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
}
.kinetic-stat:last-child {
  border-right: none;
}
.kinetic-stat-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.kinetic-stat:nth-child(odd) .kinetic-stat-number {
  background: linear-gradient(180deg, var(--accent-orange) 0%, var(--accent-orange-hover) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.kinetic-stat-label {
  margin-top: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.55);
}
.kinetic-stat::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.about-hero-band.kinetic-active .kinetic-stat::after {
  transform: scaleX(1);
}
.about-hero-band.kinetic-active .kinetic-stat:nth-child(1)::after { transition-delay: 0.4s; }
.about-hero-band.kinetic-active .kinetic-stat:nth-child(2)::after { transition-delay: 0.55s; }
.about-hero-band.kinetic-active .kinetic-stat:nth-child(3)::after { transition-delay: 0.7s; }
.about-hero-band.kinetic-active .kinetic-stat:nth-child(4)::after { transition-delay: 0.85s; }

@media (max-width: 768px) {
  .kinetic-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .kinetic-stat:nth-child(2) { border-right: none; }
  .kinetic-stat:nth-child(1), .kinetic-stat:nth-child(2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
}

/* ==========================================================================
   LIVE MARQUEE UPGRADE — depth, glow-scan, hover scale, smoother motion
   ========================================================================== */
.marquee-container {
  perspective: 800px;
}
.marquee-container.live-marquee {
  position: relative;
}
.marquee-container.live-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  left: -10%;
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(239, 159, 39, 0.12), transparent);
  pointer-events: none;
  z-index: 5;
  animation: marquee-scanlight 7s ease-in-out infinite;
  mix-blend-mode: screen;
}
@keyframes marquee-scanlight {
  0% { left: -30%; }
  50% { left: 100%; }
  100% { left: -30%; }
}

.marquee-track {
  transform-style: preserve-3d;
}
.marquee-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease !important;
}
.marquee-card:hover {
  transform: scale(1.08) translateY(-6px) rotateX(4deg) !important;
  box-shadow: 0 20px 40px rgba(12, 68, 124, 0.25), 0 0 25px rgba(239, 159, 39, 0.3) !important;
  z-index: 20;
}

/* Live status pill on the showcase header */
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-left: 12px;
  vertical-align: middle;
}
.live-pill .live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  animation: live-dot-pulse 1.5s ease-in-out infinite;
}
@keyframes live-dot-pulse {
  0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(239,68,68,0.5); }
  50% { transform: scale(1.2); opacity: 0.7; box-shadow: 0 0 0 6px rgba(239,68,68,0); }
}

/* ==========================================================================
   STUDIO PAGE — Selection pop, swatch glow, viewport scan, price flash
   ========================================================================== */

/* Option card selection pop */
.option-card {
  transition: all 0.2s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
.option-card.option-pop {
  animation: option-pop-anim 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes option-pop-anim {
  0% { transform: scale(1); }
  40% { transform: scale(1.08); }
  100% { transform: scale(1); }
}
.option-card.active i {
  animation: icon-bounce-once 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes icon-bounce-once {
  0% { transform: scale(1) translateY(0); }
  40% { transform: scale(1.3) translateY(-4px); }
  100% { transform: scale(1) translateY(0); }
}

/* Color swatch glow pulse on hover/active */
.swatch {
  position: relative;
}
.swatch::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: inherit;
  opacity: 0;
  filter: blur(8px);
  transition: opacity 0.3s ease;
  z-index: -1;
}
.swatch:hover::before,
.swatch.active::before {
  opacity: 0.65;
  animation: swatch-glow-pulse 1.8s ease-in-out infinite;
}
@keyframes swatch-glow-pulse {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 0.75; transform: scale(1.15); }
}

/* 3D Viewport scanning border */
.studio-viewport {
  position: relative;
}
.studio-viewport::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  pointer-events: none;
  background: linear-gradient(120deg, transparent 30%, rgba(239, 159, 39, 0.18) 50%, transparent 70%);
  background-size: 250% 250%;
  animation: viewport-scan 5s ease-in-out infinite;
  mix-blend-mode: overlay;
  z-index: 2;
}
@keyframes viewport-scan {
  0% { background-position: 200% 200%; }
  50% { background-position: 0% 0%; }
  100% { background-position: 200% 200%; }
}

/* Live customizer badge pulse */
.section-badge.live-badge {
  position: relative;
  padding-left: 28px;
}
.section-badge.live-badge::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-orange);
  animation: live-dot-pulse 1.5s ease-in-out infinite;
}

/* Price flash effect when value updates */
.price-flash {
  animation: price-flash-anim 0.5s ease;
}
@keyframes price-flash-anim {
  0% { transform: scale(1); }
  30% { transform: scale(1.12); color: var(--accent-orange) !important; text-shadow: 0 0 16px rgba(239, 159, 39, 0.5); }
  100% { transform: scale(1); }
}

/* ==========================================================================
   PRODUCTS PAGE — Icon entrance pop & rotate, tag shimmer
   ========================================================================== */
.product-icon {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease;
}
.product-card:hover .product-icon {
  transform: scale(1.12) rotate(-8deg);
  background: var(--card-color, var(--primary));
  color: #ffffff !important;
}
.product-card:hover .product-icon i {
  color: #ffffff !important;
}

.product-tag {
  position: relative;
  overflow: hidden;
}
.product-tag::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transition: none;
}
.product-card:hover .product-tag::after {
  animation: tag-shimmer 1.2s ease-in-out;
}
.product-card:hover .product-tag:nth-child(2)::after {
  animation-delay: 0.15s;
}
@keyframes tag-shimmer {
  0% { left: -100%; }
  100% { left: 150%; }
}

/* ==========================================================================
   SIMULATOR PAGE — Steam particles, live shrink readout glow
   ========================================================================== */
.sim-container {
  position: relative;
}
.steam-particle {
  position: absolute;
  bottom: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
  opacity: 0;
  z-index: 5;
  filter: blur(1px);
}
.sim-container.steaming .steam-particle {
  animation: steam-rise 1.8s ease-out infinite;
}
.steam-particle:nth-child(1) { left: 28%; animation-delay: 0s; width: 7px; height: 7px; }
.steam-particle:nth-child(2) { left: 48%; animation-delay: 0.35s; width: 5px; height: 5px; }
.steam-particle:nth-child(3) { left: 62%; animation-delay: 0.7s; width: 8px; height: 8px; }
.steam-particle:nth-child(4) { left: 38%; animation-delay: 1.1s; width: 10px; height: 10px; }
.steam-particle:nth-child(5) { left: 55%; animation-delay: 0.55s; width: 6px; height: 6px; }
.steam-particle:nth-child(6) { left: 20%; animation-delay: 1.4s; width: 9px; height: 9px; }
@keyframes steam-rise {
  0% { transform: translateY(0) scale(0.5) translateX(0); opacity: 0; }
  15% { opacity: 0.95; }
  50% { transform: translateY(-90px) scale(1.2) translateX(8px); opacity: 0.4; }
  100% { transform: translateY(-200px) scale(1.8) translateX(-5px); opacity: 0; }
}

/* Ketchup mode — extra heat particles are red/orange */
.sim-container.ketchup-mode.steaming .steam-particle {
  background: radial-gradient(circle, rgba(252, 165, 165, 0.9) 0%, rgba(239, 68, 68, 0) 70%);
}

/* Shrink slider live glow track fill */
#shrink-slider {
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary) var(--fill, 0%), var(--bg-tertiary) var(--fill, 0%), var(--bg-tertiary) 100%) !important;
}
body.dark-theme #shrink-slider {
  background: linear-gradient(90deg, var(--accent-orange) 0%, var(--accent-orange) var(--fill, 0%), var(--bg-tertiary) var(--fill, 0%), var(--bg-tertiary) 100%) !important;
}

/* Heat glow effect on sleeve when actively shrinking */
.sim-sleeve.heat-glow {
  box-shadow: 0 0 30px rgba(239, 159, 39, 0.6), 0 8px 25px rgba(0,0,0,0.15) !important;
  animation: heat-pulse 1.5s ease-in-out infinite;
}
.sim-container.ketchup-mode .sim-sleeve.heat-glow {
  box-shadow: 0 0 35px rgba(220, 38, 38, 0.7), 0 8px 25px rgba(220, 38, 38, 0.3) !important;
}
@keyframes heat-pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.12); }
}

#shrink-value-display {
  transition: color 0.3s ease;
}
#shrink-value-display.value-pulse {
  animation: value-pulse-anim 0.4s ease;
}
@keyframes value-pulse-anim {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); color: var(--accent-orange); }
  100% { transform: scale(1); }
}

/* ==========================================================================
   QUOTE PAGE — Estimator price morph, success checkmark draw
   ========================================================================== */
#calc-total-display {
  transition: transform 0.2s ease;
  display: inline-block;
}
.calc-price-flash {
  animation: calc-price-flash-anim 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes calc-price-flash-anim {
  0% { transform: scale(1); }
  35% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* Success banner checkmark draw-in */
.success-banner i.fa-circle-check {
  display: inline-block;
  animation: check-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}
@keyframes check-pop {
  0% { transform: scale(0) rotate(-45deg); opacity: 0; }
  60% { transform: scale(1.25) rotate(8deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* Submit button loading pulse */
.btn.btn-loading {
  pointer-events: none;
  opacity: 0.85;
}
.btn.btn-loading i {
  animation: spin-360 0.8s linear infinite;
}

/* Estimated cost box ambient glow pulse */
.contact-calculator [style*="Estimated Cost"],
.calculator-card > div[style*="border: 1px dashed"] {
  position: relative;
}
.calculator-card > div[style*="border: 1px dashed"]::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, var(--primary), var(--accent-orange), var(--primary));
  background-size: 200% auto;
  opacity: 0.15;
  z-index: -1;
  animation: gradient-shift 4s ease infinite;
}

/* ==========================================================================
   Responsive Breakpoints (Appended for clean cascade)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-desc {
    margin: 0 auto 30px;
  }
  .hero-ctas {
    justify-content: center;
  }
  .hero-visual {
    height: 380px;
  }
  .studio-grid {
    display: flex;
    flex-direction: column;
  }
  .studio-viewport-container {
    order: -1;
  }
  .studio-viewport {
    height: 480px;
  }
  .studio-panel {
    max-height: none;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .calc-grid {
    grid-template-columns: 1fr;
  }
  .materials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  html {
    max-width: 100%;
    overflow-x: clip;
  }
  body {
    max-width: 100%;
    overflow: visible;
  }
  .header {
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
  }
  .hero {
    padding: 120px 0 60px !important;
  }
  .hero .hero-title {
    font-size: 2.25rem !important;
    line-height: 1.25 !important;
    letter-spacing: -0.02em !important;
  }
  .hero-desc {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    padding: 0 10px !important;
  }
  .hero-motto {
    font-size: 0.75rem !important;
    padding: 8px 16px !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 16px !important;
  }
  h1 { font-size: 2.25rem; }
  .section-title { font-size: 2rem; }
  .studio-viewport { height: 350px; }
  
  .navbar {
    padding: 12px 16px;
  }
  .nav-links {
    display: none; /* Mobile menu toggled by JS later if needed */
  }
  .mobile-nav-toggle {
    display: block;
  }
  .simulator-card {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 30px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group-full {
    grid-column: span 1;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Hero visual on mobile: fixed height container, JS positions cards inside */
  .hero-visual {
    height: 340px !important;
    min-height: 340px !important;
    overflow: hidden !important;
  }
  /* Remove the scroll-row approach — JS now keeps cards floating around the bottle */
  .floating-container {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: visible !important;
  }
  /* Cards: JS sets individual positions, CSS just ensures animation keyframe works */
  .floating-card-1, .floating-card-2, .floating-card-3,
  .floating-card-4, .floating-card-5, .floating-card-6 {
    cursor: default !important;
  }
  .floating-container::-webkit-scrollbar {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .hero .hero-title {
    font-size: 1.85rem !important;
  }
  .hero-motto {
    font-size: 0.7rem !important;
    padding: 6px 12px !important;
  }
  h1 { font-size: 1.85rem; }
  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }
  .hero-ctas .btn {
    width: 100%;
  }
  .materials-grid {
    grid-template-columns: 1fr;
  }
  .studio-panel {
    padding: 16px;
  }
  .form-card {
    padding: 24px;
  }
  .about-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Additional Responsive Fixes — Fluid Typography & Layout Safety
   ========================================================================== */

/* Fluid section title scaling */
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
}
h1 {
  font-size: clamp(1.85rem, 5vw, 4rem);
}

/* Prevent any element from causing horizontal scroll */
section, .container, header, footer, nav {
  max-width: 100%;
}

/* Safe image defaults */
img, video, canvas, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Simulator card mobile padding fix */
@media (max-width: 768px) {
  .simulator-card {
    padding: 24px 16px;
  }
  .simulator-visual {
    height: clamp(250px, 55vw, 340px);
  }
  .glass-card[style*="padding: 50px"] {
    padding: 28px 20px !important;
  }
  .section-title {
    font-size: clamp(1.4rem, 6vw, 2rem);
  }
}

@media (max-width: 480px) {
  .simulator-title {
    font-size: 1.5rem;
  }
  .simulator-visual {
    height: 240px;
  }
  .container {
    padding: 0 16px;
  }
}

/* 1440px and up — cap content width gracefully */
@media (min-width: 1440px) {
  .hero-title {
    font-size: clamp(3.5rem, 3.5vw, 4.5rem);
  }
}

/* Prevent Three.js canvas overflow */
canvas {
  max-width: 100%;
  display: block;
}

/* ==========================================================================
   OVERFLOW FIX — Prevent horizontal scroll from blur circles & absolute elements
   ========================================================================== */
section {
  overflow-x: clip !important;
  overflow-y: visible !important;
  max-width: 100%;
  position: relative;
}

/* Ensure blur circles never cause scrollbar */
.blur-circle {
  max-width: 40vw;
  max-height: 40vw;
  pointer-events: none;
}

/* Ensure hero visual never overflows page */
.floating-container {
  overflow: hidden;
  max-width: 100%;
}

/* Prevent any absolutely positioned element from causing horizontal scroll */
.hero > *,
.about > *,
.about-showcase > *,
.studio > *,
.products > *,
.simulator-sec > *,
.contact-calculator > * {
  max-width: 100%;
}

/* ==========================================================================
   DATA-LAYOUT MOBILE OVERRIDE
   JS sets data-layout="mobile" on .hero-visual when isMobileDevice() is true.
   Cards remain floating/animated — JS just repositions them smaller.
   These rules beat .hero-visual-revealed rules via higher specificity.
   ========================================================================== */
.hero-visual[data-layout="mobile"] {
  position: relative !important;
  height: 340px !important;
  min-height: 340px !important;
  overflow: hidden !important;
  display: block !important;
}

.hero-visual[data-layout="mobile"] .floating-container {
  position: absolute !important;
  top: 0 !important; left: 0 !important;
  width: 100% !important; height: 100% !important;
  overflow: visible !important;
}

/* Keep cards absolutely positioned — JS sets top/left/right inline */
.hero-visual[data-layout="mobile"] .floating-card {
  position: absolute !important;
}

/* Override the spring-in animation on mobile — use simple float-around instead
   so the JS-set positions are respected from the start */
.hero-visual[data-layout="mobile"].hero-visual-revealed .floating-card,
.hero-visual[data-layout="mobile"].hero-visual-revealed .floating-card-1,
.hero-visual[data-layout="mobile"].hero-visual-revealed .floating-card-2,
.hero-visual[data-layout="mobile"].hero-visual-revealed .floating-card-3,
.hero-visual[data-layout="mobile"].hero-visual-revealed .floating-card-4,
.hero-visual[data-layout="mobile"].hero-visual-revealed .floating-card-5,
.hero-visual[data-layout="mobile"].hero-visual-revealed .floating-card-6 {
  /* JS inline style sets animation: float-around — we just ensure position stays absolute */
  position: absolute !important;
}


/* Beverage Types Grid Responsiveness */
@media (max-width: 768px) {
  .beverage-types-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   Design Studio Realism & Category Nav Bar Upgrades
   ========================================================================== */
.studio-tabs-bar {
  /* Make sure horizontal scroll bar is hidden but scroll works */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.studio-tabs-bar::-webkit-scrollbar {
  display: none;
}

.studio-tabs-bar .btn {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.studio-tabs-bar .btn:hover {
  background: var(--bg-tertiary);
  color: var(--primary);
}

.studio-tabs-bar .btn.active-tab-btn {
  background: var(--gradient-primary);
  color: #ffffff !important;
  box-shadow: 0 4px 12px var(--primary-glow);
  border-color: var(--primary);
}

/* Liquid Color Selection Swatches */
.liquid-swatch {
  border: 2px solid var(--bg-secondary) !important;
  box-shadow: 0 0 0 1px var(--text-muted) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.liquid-swatch:hover {
  transform: scale(1.1);
}

.liquid-swatch.active {
  transform: scale(1.2);
  box-shadow: 0 0 0 2.5px var(--accent-orange) !important;
}

/* Hidden studio container class */
.hidden-studio {
  display: none !important;
}

/* Droplet elements transition styling */
#droplets-toggle-chk, #liquid-toggle-chk {
  cursor: pointer;
}



/* ==========================================================================
   COMPREHENSIVE MOBILE RESPONSIVENESS OVERHAUL
   All fixes for phone screens (320px - 480px) and small tablets (481px - 768px)
   ========================================================================== */

/* ── GLOBAL SAFE ZONE ─────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  overflow-x: clip !important;
  width: 100% !important;
  max-width: 100vw !important;
}
body {
  width: 100% !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
}

/* ── NAVBAR / HEADER ──────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    border-bottom: 1.5px solid var(--glass-border) !important;
    padding: 0 !important;
    z-index: 2000 !important;
  }

  .navbar {
    padding: 10px 16px !important;
    gap: 8px;
  }

  .logo {
    font-size: 1.05rem !important;
    letter-spacing: 0.04em !important;
    gap: 6px;
  }

  .logo i {
    font-size: 1.2rem !important;
  }

  .nav-links {
    display: none !important;
  }

  .nav-links.nav-open {
    display: flex !important;
    position: fixed !important;
    top: 56px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    background: #123A6F !important; /* Solid Brand Deep Navy Blue */
    z-index: 1500 !important;
    gap: 2rem !important;
    padding: 40px 24px !important;
  }

  .nav-links.nav-open .nav-link {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
  }

  .mobile-nav-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
  }

  .nav-actions {
    gap: 16px !important;
    padding-right: 8px !important;
  }

  .theme-toggle {
    width: 36px !important;
    height: 36px !important;
  }
}

/* ── HERO SECTION ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero {
    padding: 80px 0 48px !important;
  }

  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    text-align: center !important;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero .hero-title {
    font-size: clamp(1.75rem, 7vw, 2.25rem) !important;
    line-height: 1.2 !important;
    margin-bottom: 16px !important;
    text-align: center !important;
  }

  .hero-desc {
    font-size: 0.95rem !important;
    line-height: 1.65 !important;
    max-width: 100% !important;
    padding: 0 4px !important;
    margin-bottom: 28px !important;
    text-align: center !important;
  }

  .hero-motto {
    font-size: 0.7rem !important;
    padding: 7px 14px !important;
    letter-spacing: 0.04em !important;
    margin-bottom: 18px !important;
    max-width: 100%;
    text-align: center;
  }

  .hero-ctas {
    flex-direction: column !important;
    width: 100% !important;
    gap: 12px !important;
    align-items: stretch !important;
    margin-bottom: 32px !important;
  }

  .hero-ctas .btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 13px 20px !important;
    font-size: 0.95rem !important;
  }

  .hero-visual {
    height: 300px !important;
    min-height: 300px !important;
    width: 100% !important;
    overflow: hidden !important;
    position: relative !important;
  }

  .drag-hint-badge {
    font-size: 0.72rem !important;
    padding: 6px 14px !important;
    top: -12px !important;
  }

  .floating-card {
    width: 140px !important;
    height: 96px !important;
    padding: 10px !important;
    font-size: 0.8rem !important;
  }

  .floating-card .card-name {
    font-size: 0.95rem !important;
    margin-top: 6px !important;
  }

  .floating-card .card-bottom {
    font-size: 0.65rem !important;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 72px 0 40px !important;
  }

  .hero .hero-title {
    font-size: clamp(1.55rem, 8vw, 1.85rem) !important;
  }

  .hero-visual {
    height: 260px !important;
    min-height: 260px !important;
  }

  .floating-card {
    width: 120px !important;
    height: 84px !important;
    padding: 8px !important;
  }
}

/* ── ABOUT SECTION ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .about {
    padding: 60px 0 !important;
  }

  .about-grid {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
    text-align: center !important;
  }

  .about-content {
    align-items: center !important;
  }

  .about-desc {
    font-size: 0.98rem !important;
    line-height: 1.7 !important;
    text-align: left !important;
  }

  .about-stats-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
  }

  .stat-card {
    padding: 18px 14px !important;
  }

  .stat-number {
    font-size: 1.75rem !important;
  }

  .stat-label {
    font-size: 0.88rem !important;
  }

  .stat-text {
    font-size: 0.78rem !important;
  }
}

@media (max-width: 480px) {
  .about-stats-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ── SHOWCASE / MARQUEE SECTION ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .about-showcase {
    padding: 48px 0 !important;
  }

  .showcase-header {
    margin-bottom: 36px !important;
  }

  .showcase-header .section-title {
    font-size: clamp(1.3rem, 5vw, 1.75rem) !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .live-pill {
    margin-left: 0 !important;
  }

  .subsection-title {
    font-size: 1.15rem !important;
    flex-wrap: wrap;
  }

  .customer-card {
    width: 180px !important;
    padding: 14px 16px !important;
  }

  .label-card {
    width: 220px !important;
    height: 140px !important;
    padding: 18px !important;
  }

  .label-name {
    font-size: 1.1rem !important;
  }
}

/* ── STUDIO SECTION ───────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .studio {
    padding: 60px 0 !important;
  }

  .studio .glass-card[style*="padding: 50px"],
  .studio .glass-card {
    padding: 28px 18px !important;
    margin: 0 !important;
  }

  .studio .section-title {
    font-size: clamp(1.4rem, 5.5vw, 1.9rem) !important;
    margin-top: 8px !important;
  }

  .studio .section-desc {
    font-size: 0.92rem !important;
    margin-bottom: 22px !important;
  }

  .studio-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
  }

  .studio-panel {
    padding: 18px !important;
    max-height: none !important;
  }

  .studio-viewport {
    height: 300px !important;
  }

  .studio-section-title {
    font-size: 1.2rem !important;
  }

  .options-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }

  .option-card {
    padding: 8px 6px !important;
    font-size: 0.78rem !important;
    gap: 5px;
  }

  .option-card i {
    font-size: 1rem !important;
  }

  /* Studio page CTA buttons stacked */
  .studio > .container > div > div[style*="display: flex"] {
    flex-direction: column !important;
    width: 100% !important;
  }

  .studio > .container > div > div[style*="display: flex"] .btn {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* ── PRODUCTS SECTION ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .products {
    padding: 60px 0 !important;
  }

  .section-header {
    margin-bottom: 36px !important;
  }

  .section-title {
    font-size: clamp(1.4rem, 5.5vw, 2rem) !important;
  }

  .section-desc {
    font-size: 0.95rem !important;
  }

  .product-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
  }

  .product-card {
    padding: 20px 16px !important;
    min-height: 340px !important;
  }

  .product-image-container {
    margin-bottom: 14px !important;
  }

  .product-title {
    font-size: 1.15rem !important;
    margin-bottom: 8px !important;
  }

  .product-desc {
    font-size: 0.85rem !important;
    margin-bottom: 16px !important;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .product-card {
    min-height: auto !important;
  }
}

/* ── SIMULATOR SECTION ────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .simulator-sec {
    padding: 60px 0 !important;
  }

  .simulator-card {
    grid-template-columns: 1fr !important;
    padding: 24px 18px !important;
    gap: 28px !important;
  }

  .simulator-content {
    gap: 14px !important;
  }

  .simulator-title {
    font-size: clamp(1.4rem, 5vw, 1.85rem) !important;
  }

  .simulator-visual {
    height: clamp(240px, 55vw, 320px) !important;
    order: -1 !important;
  }

  .sim-container {
    width: 110px !important;
    height: 240px !important;
  }

  .sim-sleeve {
    width: var(--sleeve-width, 130px) !important;
    height: 190px !important;
    font-size: 0.9rem !important;
  }
}

@media (max-width: 480px) {
  .simulator-title {
    font-size: 1.35rem !important;
  }

  .sim-container {
    width: 95px !important;
    height: 200px !important;
  }
}

/* ── QUOTE / CONTACT SECTION ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .contact-calculator {
    padding: 60px 0 !important;
  }

  .contact-calculator .glass-card,
  .contact-calculator .glass-card[style*="padding: 50px"] {
    padding: 28px 18px !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  .contact-calculator .section-title {
    font-size: clamp(1.35rem, 5.5vw, 1.85rem) !important;
  }

  .contact-calculator .section-desc {
    font-size: 0.92rem !important;
    margin-bottom: 24px !important;
  }

  /* CTA row wraps properly */
  .contact-calculator div[style*="display: flex"],
  .contact-calculator div[style*="justify-content: center"] {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .contact-calculator .btn {
    width: 100% !important;
    justify-content: center !important;
  }

  .form-card {
    padding: 24px 18px !important;
  }

  .form-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .form-group-full {
    grid-column: span 1 !important;
  }

  .calc-row {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
}

/* ── FOOTER ───────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .footer {
    padding: 56px 0 32px !important;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 32px !important;
    margin-bottom: 40px !important;
  }

  .footer-logo {
    font-size: 1.05rem !important;
  }

  .footer-col-title {
    font-size: 1rem !important;
  }

  .footer-bottom {
    flex-direction: column !important;
    text-align: center !important;
    gap: 16px !important;
    padding-top: 24px !important;
  }

  .footer-socials {
    justify-content: center !important;
    gap: 12px !important;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  .footer {
    padding: 48px 0 28px !important;
  }
}

/* ── CONTAINER PADDING ON MOBILE ──────────────────────────────────────────── */
@media (max-width: 480px) {
  .container {
    padding: 0 14px !important;
  }
}

/* ── SECTION BADGE ON MOBILE ──────────────────────────────────────────────── */
@media (max-width: 480px) {
  .section-badge {
    font-size: 0.75rem !important;
    padding: 5px 12px !important;
  }
}

/* ── ABOUT PAGE HERO BAND ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .about-hero-band .container {
    padding-top: 70px !important;
    padding-bottom: 40px !important;
  }

  .about-hero-headline {
    font-size: clamp(2rem, 9vw, 3rem) !important;
    letter-spacing: -0.02em !important;
  }

  .about-hero-sub {
    font-size: 0.95rem !important;
  }

  .kinetic-stats-row {
    grid-template-columns: repeat(2, 1fr) !important;
    margin-top: 36px !important;
  }

  .kinetic-stat {
    padding: 20px 14px 10px !important;
  }

  .kinetic-stat-number {
    font-size: clamp(1.75rem, 6vw, 2.5rem) !important;
  }

  .kinetic-stat-label {
    font-size: 0.72rem !important;
  }
}

@media (max-width: 480px) {
  .about-hero-headline {
    font-size: clamp(1.75rem, 9vw, 2.5rem) !important;
  }

  .about-hero-eyebrow {
    font-size: 0.7rem !important;
  }
}

/* ── SUBPAGE CONTENT PADDING (about, products, etc.) ─────────────────────── */
@media (max-width: 768px) {
  .subpage-content {
    padding: 90px 0 60px !important;
  }
}

@media (max-width: 480px) {
  .subpage-content {
    padding: 78px 0 48px !important;
  }
}

/* ── GLASS CARD GENERIC MOBILE FIX ───────────────────────────────────────── */
@media (max-width: 480px) {
  .glass-card {
    border-radius: var(--radius-sm) !important;
  }
}

/* ── BUTTON SIZES ON SMALL PHONES ─────────────────────────────────────────── */
@media (max-width: 380px) {
  .btn {
    padding: 11px 18px !important;
    font-size: 0.88rem !important;
  }

  .hero .hero-title {
    font-size: 1.45rem !important;
  }

  .floating-card {
    width: 110px !important;
    height: 78px !important;
    padding: 7px !important;
  }
}

/* ── PREVENT INLINE STYLE PADDING FROM BREAKING MOBILE ───────────────────── */
@media (max-width: 768px) {
  /* Overrides any section using inline style="padding: 50px" etc */
  section .glass-card[style*="padding"] {
    padding: 24px 16px !important;
  }

  section div[style*="gap: 20px"][style*="justify-content"] {
    flex-wrap: wrap !important;
  }
}

/* ── MATERIALS GRID (4-col → 2-col → 1-col) ──────────────────────────────── */
@media (max-width: 768px) {
  .materials-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }

  .material-sample {
    width: 72px !important;
    height: 72px !important;
  }

  .material-card {
    padding: 18px 14px !important;
  }

  .material-card-title {
    font-size: 1rem !important;
  }
}

@media (max-width: 480px) {
  .materials-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ── SCROLL PROGRESS BAR (Keep always on top) ────────────────────────────── */
#scroll-progress-bar {
  z-index: 9999 !important;
}

/* ── TAP HIGHLIGHT & TOUCH OPTIMIZATION ──────────────────────────────────── */
@media (max-width: 768px) {
  .btn, a, button {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  /* Larger touch targets for nav links */
  .footer-links a {
    padding: 4px 0 !important;
    display: inline-block;
  }

  .social-icon {
    width: 44px !important;
    height: 44px !important;
  }

  /* Prevent text overflow in cards */
  .product-title,
  .simulator-title,
  .section-title {
    word-break: break-word;
    overflow-wrap: break-word;
  }
}

/* ── ABOUT PAGE STATS GRID ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .about-stats-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 480px) {
  .about-stats-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ── STUDIO PAGE FULL RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .studio-grid {
    grid-template-columns: 1fr !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .studio-viewport-container {
    order: -1;
  }

  .studio-bar {
    flex-direction: column !important;
    gap: 16px !important;
    align-items: stretch !important;
  }

  .studio-bar .btn {
    width: 100% !important;
    justify-content: center !important;
  }

  .studio-bar-price {
    font-size: 1.25rem !important;
    text-align: center;
  }

  .studio-tabs-bar {
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    display: flex !important;
  }

  .studio-tabs-bar .btn {
    flex-shrink: 0 !important;
    min-width: 130px !important;
    padding: 10px 16px !important;
    font-size: 0.85rem !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    border-radius: var(--radius-full) !important;
  }
}

/* ── HERO 3D CANVAS MOBILE ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  #hero-3d-scroll-container {
    top: 0 !important;
    height: 100% !important;
  }
}


/* ==========================================================================
   goodlabel RESPONSIVE OVERHAUL v2 — Full Cross-Device Fix
   Appended after all existing rules. Fixes all identified issues.
   ========================================================================== */

/* ── 1. PERFORMANCE: Disable heavy body animation on mobile ──────────────── */
@media (max-width: 768px) {
  body {
    animation: none !important;
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 36px 36px, 100% 100% !important;
    background-attachment: scroll !important;
  }
}

/* ── 2. ACCESSIBILITY: Respect prefers-reduced-motion ────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .floating-card,
  .blur-circle,
  .hero-motto,
  .spin-loop,
  body {
    animation: none !important;
  }
  /* Exception: Keep marquee tracks auto-moving */
  .customers-track {
    animation: scroll-left-fast 32s linear infinite !important;
  }
  .labels-track {
    animation: scroll-left-slow 40s linear infinite !important;
  }
}

/* ── 3. IMAGES: Universal lazy-load performance defaults ─────────────────── */
img {
  max-width: 100%;
  height: auto;
  display: block;
}
.product-image {
  will-change: transform;
}

/* ── 4. SUBPAGE: Fix about.html's inline padding-top: 100px on <main> ──── */
/* The about page has main style="padding-top:100px" which stacks under the 
   hero band — correct this with the CSS class override */
main.subpage-content[style*="padding-top: 100px"] {
  padding-top: 0 !important;
}

/* ── 5. CONTAINER: Safe padding at every breakpoint ─────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding-left: clamp(14px, 4vw, 40px);
  padding-right: clamp(14px, 4vw, 40px);
}

/* ── 6. HEADER / NAVBAR: Proper floating pill → flat strip transition ────── */
/* On tablet and below, the floating pill navbar creates left/right gaps 
   and z-index clipping issues on narrow viewports */
@media (max-width: 1024px) {
  .header {
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 0 !important;
    transform: none !important;
  }
}
@media (max-width: 768px) {
  .header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    transform: none !important;
    z-index: 2000 !important;
  }
  .header.scrolled {
    top: 0 !important;
  }
  .navbar {
    padding: 10px 16px !important;
    min-height: 56px;
  }
  .logo {
    font-size: clamp(0.9rem, 4vw, 1.1rem) !important;
  }
  .logo i {
    font-size: clamp(1rem, 4.5vw, 1.3rem) !important;
  }
  .nav-actions {
    gap: 16px !important;
    padding-right: 8px !important;
  }
  .theme-toggle {
    min-width: 44px !important;
    min-height: 44px !important;
    width: 44px !important;
    height: 44px !important;
  }
  .mobile-nav-toggle {
    min-width: 44px !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  /* Full-screen mobile menu */
  .nav-links.nav-open {
    top: 56px !important;
    padding: 48px 24px !important;
    gap: 2.5rem !important;
  }
  .nav-links.nav-open .nav-link {
    font-size: clamp(1.35rem, 6vw, 1.75rem) !important;
    padding: 8px 0 !important;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* ── 7. HERO SECTION: Padding and layout fixes ───────────────────────────── */
.hero {
  /* Accounts for flat navbar height (≈54px) with premium balanced breathing room */
  padding-top: clamp(80px, 8vw, 110px) !important;
  padding-bottom: clamp(60px, 6vw, 100px) !important;
}

@media (max-width: 1024px) {
  .hero {
    padding-top: 100px !important;
    padding-bottom: 70px !important;
  }
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: clamp(28px, 5vw, 48px) !important;
    text-align: center;
  }
  .hero-content {
    align-items: center;
    display: flex;
    flex-direction: column;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-ctas {
    justify-content: center;
  }
  .hero-visual {
    height: clamp(300px, 45vw, 420px) !important;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: 80px !important;
    padding-bottom: 50px !important;
  }
  .hero-title {
    font-size: clamp(1.75rem, 7.5vw, 2.35rem) !important;
    line-height: 1.2 !important;
  }
  .hero-desc {
    font-size: clamp(0.9rem, 3.5vw, 1rem) !important;
    padding: 0 !important;
  }
  .hero-ctas {
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px !important;
    align-items: stretch !important;
  }
  .hero-ctas .btn {
    width: 100% !important;
    justify-content: center !important;
    min-height: 48px !important;
  }
  .hero-visual {
    height: 300px !important;
    min-height: 300px !important;
    width: 100% !important;
  }
  .drag-hint-badge {
    font-size: 0.7rem !important;
    padding: 6px 12px !important;
    top: -10px !important;
    white-space: normal !important;
    text-align: center !important;
    max-width: calc(100% - 20px) !important;
    width: auto !important;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 72px !important;
    padding-bottom: 40px !important;
  }
  .hero-title {
    font-size: clamp(1.55rem, 8vw, 1.9rem) !important;
  }
  .hero-visual {
    height: 265px !important;
    min-height: 265px !important;
  }
  .floating-card {
    width: 130px !important;
    height: 90px !important;
    padding: 9px !important;
  }
  .floating-card .card-logo {
    font-size: 0.8rem !important;
  }
  .floating-card .card-name {
    font-size: 0.9rem !important;
  }
}

@media (max-width: 380px) {
  .hero-title {
    font-size: 1.45rem !important;
  }
  .hero-visual {
    height: 240px !important;
    min-height: 240px !important;
  }
  .floating-card {
    width: 112px !important;
    height: 80px !important;
    padding: 8px !important;
  }
}

/* iPhone SE (320px) */
@media (max-width: 320px) {
  .hero-title {
    font-size: 1.35rem !important;
  }
  .hero-motto {
    font-size: 0.65rem !important;
    padding: 5px 10px !important;
    letter-spacing: 0.02em !important;
  }
  .hero-ctas .btn {
    font-size: 0.85rem !important;
    padding: 10px 16px !important;
  }
  .floating-card {
    width: 100px !important;
    height: 72px !important;
  }
  .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

/* ── 8. HERO 3D CANVAS: keep inside bounds ────────────────────────────────── */
#hero-3d-scroll-container {
  overflow: hidden;
}
@media (max-width: 768px) {
  #hero-3d-scroll-container {
    top: 0 !important;
    height: 100% !important;
    min-height: 0 !important;
  }
}

/* ── 9. ABOUT SECTION ────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }
  .about-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 768px) {
  .about {
    padding: 60px 0 !important;
  }
  .about-grid {
    text-align: center !important;
  }
  .about-content {
    align-items: center !important;
  }
  .about-desc {
    text-align: left !important;
  }
  .stat-card {
    padding: 18px 16px !important;
  }
  .stat-number {
    font-size: 1.8rem !important;
  }
}
@media (max-width: 480px) {
  .about-stats-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ── 10. ABOUT HERO BAND (About page) ────────────────────────────────────── */
@media (max-width: 1024px) {
  .kinetic-stats-row {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 768px) {
  .about-hero-band .container {
    padding-top: 80px !important;
    padding-bottom: 44px !important;
  }
  .about-hero-headline {
    font-size: clamp(1.9rem, 9vw, 3.25rem) !important;
    letter-spacing: -0.025em !important;
  }
  .about-hero-sub {
    font-size: clamp(0.9rem, 3.5vw, 1rem) !important;
    max-width: 100% !important;
  }
  .kinetic-stats-row {
    grid-template-columns: repeat(2, 1fr) !important;
    margin-top: 36px !important;
  }
  .kinetic-stat {
    padding: 20px 14px 12px !important;
  }
  .kinetic-stat-number {
    font-size: clamp(1.75rem, 6vw, 2.5rem) !important;
  }
  .kinetic-stat-label {
    font-size: 0.7rem !important;
  }
}
@media (max-width: 480px) {
  .about-hero-headline {
    font-size: clamp(1.65rem, 9vw, 2.4rem) !important;
  }
  .about-hero-eyebrow {
    font-size: 0.68rem !important;
    letter-spacing: 0.18em !important;
  }
  .about-hero-eyebrow::before {
    width: 24px !important;
  }
}

/* ── 11. ABOUT SHOWCASE / MARQUEE ────────────────────────────────────────── */
@media (max-width: 768px) {
  .about-showcase {
    padding: 50px 0 !important;
  }
  .showcase-header {
    margin-bottom: 36px !important;
  }
  /* Title wraps onto its own line, live-pill drops below */
  .showcase-header .section-title {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: clamp(1.25rem, 5.5vw, 1.75rem) !important;
  }
  .live-pill {
    margin-left: 0 !important;
    align-self: center;
  }
  .subsection-title {
    font-size: 1.1rem !important;
    flex-wrap: wrap;
  }
  .customer-card {
    width: 180px !important;
    padding: 14px 16px !important;
  }
  .label-card {
    width: 215px !important;
    height: 140px !important;
    padding: 16px !important;
  }
  .label-name {
    font-size: 1.05rem !important;
  }
  /* Reduce marquee mask to avoid clipping on narrow screens */
  .marquee-container {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%) !important;
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%) !important;
  }
}
@media (max-width: 480px) {
  .customer-card {
    width: 155px !important;
    padding: 12px !important;
  }
  .label-card {
    width: 190px !important;
    height: 130px !important;
    padding: 14px !important;
  }
}

/* ── 12. STUDIO SECTION (homepage teaser) ────────────────────────────────── */
@media (max-width: 768px) {
  .studio {
    padding: 60px 0 !important;
  }
  /* Override the inline style="padding: clamp(20px, 5vw, 50px)" glass-card */
  .studio .glass-card {
    padding: clamp(20px, 5vw, 36px) !important;
  }
  .studio .section-title {
    font-size: clamp(1.35rem, 5.5vw, 1.85rem) !important;
  }
  .studio .section-desc {
    font-size: 0.92rem !important;
  }
  /* CTA button group inside inline flex div */
  .studio .glass-card > div[style*="flex"] {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .studio .glass-card .btn {
    width: 100% !important;
    justify-content: center !important;
    min-height: 48px !important;
  }
}

/* ── 13. STUDIO PAGE (studio.html full customizer) ───────────────────────── */
@media (max-width: 1024px) {
  .studio-grid {
    flex-direction: column !important;
    display: flex !important;
  }
  .studio-viewport-container {
    order: -1 !important;
  }
  .studio-panel {
    max-height: none !important;
  }
  .studio-viewport {
    height: clamp(360px, 55vw, 520px) !important;
  }
}
@media (max-width: 768px) {
  .studio-grid {
    gap: 20px !important;
  }
  .studio-panel {
    padding: 18px 14px !important;
  }
  .studio-viewport {
    height: clamp(280px, 60vw, 380px) !important;
  }
  .studio-section-title {
    font-size: 1.1rem !important;
  }
  .options-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }
  .option-card {
    padding: 8px 4px !important;
    font-size: 0.75rem !important;
    gap: 4px;
  }
  .option-card i {
    font-size: 1rem !important;
  }
  .studio-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
  }
  .studio-bar .btn {
    width: 100% !important;
    justify-content: center !important;
    min-height: 48px !important;
  }
  .studio-bar-price {
    font-size: 1.2rem !important;
    text-align: center;
  }
  /* Studio tabs horizontal scroll */
  .studio-tabs-bar {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding: 6px 4px !important;
    gap: 4px !important;
    justify-content: flex-start !important;
  }
  .studio-tabs-bar::-webkit-scrollbar {
    display: none !important;
  }
  .studio-tabs-bar .btn {
    flex-shrink: 0 !important;
    min-width: 130px !important;
    padding: 10px 16px !important;
    font-size: 0.85rem !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    border-radius: var(--radius-full) !important;
  }
}
@media (max-width: 480px) {
  .studio-viewport {
    height: 260px !important;
  }
  .options-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .option-card {
    font-size: 0.7rem !important;
  }
}

/* ── 14. PRODUCT GRID & CARDS ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }
}
@media (max-width: 768px) {
  .products {
    padding: 60px 0 !important;
  }
  .section-header {
    margin-bottom: 36px !important;
  }
  /* 2-col on phones ≥ 420px for a pleasant grid */
  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }
  .product-card {
    padding: 18px 14px !important;
    min-height: auto !important;
  }
  .product-image-container {
    margin-bottom: 12px !important;
  }
  .product-title {
    font-size: 1.05rem !important;
    margin-bottom: 8px !important;
  }
  .product-desc {
    font-size: 0.82rem !important;
    margin-bottom: 14px !important;
  }
  .product-card .btn-text {
    font-size: 0.85rem !important;
  }
}
@media (max-width: 480px) {
  /* Single column on small phones */
  .product-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
}

/* ── 15. SIMULATOR SECTION ────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .simulator-card {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    padding: 32px 24px !important;
  }
  .simulator-visual {
    height: clamp(260px, 45vw, 360px) !important;
    order: -1 !important;
  }
}
@media (max-width: 768px) {
  .simulator-sec {
    padding: 60px 0 !important;
  }
  .simulator-card {
    padding: 24px 16px !important;
    gap: 24px !important;
  }
  .simulator-content {
    gap: 12px !important;
  }
  .simulator-title {
    font-size: clamp(1.35rem, 5.5vw, 1.9rem) !important;
  }
  .simulator-visual {
    height: clamp(230px, 55vw, 320px) !important;
  }
  .sim-container {
    width: 105px !important;
    height: 230px !important;
  }
  .sim-sleeve {
    height: 185px !important;
  }
}
@media (max-width: 480px) {
  .sim-container {
    width: 90px !important;
    height: 200px !important;
  }
  .sim-sleeve {
    height: 160px !important;
  }
}

/* ── 16. QUOTE / CONTACT SECTION ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .contact-calculator {
    padding: 60px 0 !important;
  }
  /* Override inline style="padding: clamp(20px, 5vw, 50px)" */
  .contact-calculator .glass-card {
    padding: clamp(20px, 5.5vw, 36px) !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
  .contact-calculator .section-title {
    font-size: clamp(1.3rem, 5.5vw, 1.75rem) !important;
  }
  /* CTA buttons in inline flex */
  .contact-calculator div[style*="display: flex"] {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .contact-calculator .btn {
    width: 100% !important;
    justify-content: center !important;
    min-height: 48px !important;
  }
  .form-card {
    padding: 24px 16px !important;
  }
  .form-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .form-group-full {
    grid-column: span 1 !important;
  }
  .calc-row {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .form-input {
    padding: 12px 14px !important;
    font-size: 16px !important; /* Prevents iOS zoom-on-focus */
  }
  select.form-input {
    font-size: 16px !important;
  }
  textarea.form-input {
    font-size: 16px !important;
  }
}
@media (max-width: 480px) {
  .form-card {
    padding: 20px 14px !important;
  }
}

/* ── 17. FOOTER ───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 36px !important;
  }
}
@media (max-width: 768px) {
  .footer {
    padding: 56px 0 28px !important;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 28px !important;
    margin-bottom: 40px !important;
  }
  .footer-col-title {
    font-size: 0.95rem !important;
  }
  .footer-links a {
    padding: 5px 0 !important;
    display: inline-block;
    min-height: 32px;
    line-height: 1.4;
  }
  .footer-bottom {
    flex-direction: column !important;
    text-align: center !important;
    gap: 14px !important;
    padding-top: 20px !important;
  }
  .footer-socials {
    justify-content: center !important;
    gap: 10px !important;
  }
  .social-icon {
    width: 44px !important;
    height: 44px !important;
  }
}
@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .footer {
    padding: 44px 0 24px !important;
  }
  .footer-logo {
    font-size: 0.95rem !important;
  }
}

/* ── 18. SECTION TYPOGRAPHY: Single fluid scale, no conflicts ─────────────── */
.section-title {
  font-size: clamp(1.45rem, 3.5vw, 2.5rem) !important;
  word-break: break-word;
  overflow-wrap: break-word;
}
.section-desc {
  font-size: clamp(0.9rem, 2vw, 1.125rem) !important;
}
h1 {
  font-size: clamp(1.75rem, 5vw, 4rem) !important;
}
h2 {
  font-size: clamp(1.45rem, 3.5vw, 2.5rem);
  word-break: break-word;
  overflow-wrap: break-word;
}
h3 {
  word-break: break-word;
  overflow-wrap: break-word;
}
p, li {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ── 19. GLOBAL TOUCH TARGET & BUTTON MINIMUMS ───────────────────────────── */
.btn {
  min-height: 44px !important;
  touch-action: manipulation !important;
  -webkit-tap-highlight-color: transparent !important;
}
a, button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.nav-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* ── 20. INLINE STYLE OVERRIDES: Fix glass-card padding used via style= ──── */
/* Some sections use style="padding: clamp(20px, 5vw, 50px)" which breaks 
   mobile. We use a media query to cap it. */
@media (max-width: 768px) {
  section .glass-card[style*="padding"] {
    padding: clamp(18px, 5vw, 32px) !important;
  }
  /* Fix quote page calc-grid max-width to not cut off */
  .calc-grid {
    max-width: 100% !important;
    padding: 0 !important;
  }
}

/* ── 21. SUBPAGE MAIN PADDING: Accounts for navbar height ────────────────── */
.subpage-content {
  padding-top: clamp(80px, 8vw, 110px) !important;
  padding-bottom: clamp(60px, 6vw, 90px) !important;
}
/* About page has hero band immediately after header — no extra pad needed */
.about-hero-band + .subpage-content,
.about-hero-band ~ * .subpage-content {
  padding-top: 0 !important;
}
@media (max-width: 768px) {
  .subpage-content {
    padding-top: 72px !important;
    padding-bottom: 56px !important;
  }
}
@media (max-width: 480px) {
  .subpage-content {
    padding-top: 64px !important;
    padding-bottom: 44px !important;
  }
}

/* ── 22. MATERIALS GRID ────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .materials-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 768px) {
  .materials {
    padding: 60px 0 !important;
  }
  .materials-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
  .material-card {
    padding: 18px 12px !important;
  }
  .material-sample {
    width: 72px !important;
    height: 72px !important;
    margin-bottom: 14px !important;
  }
  .material-card-title {
    font-size: 0.95rem !important;
  }
  .material-card-desc {
    font-size: 0.78rem !important;
  }
}

/* ── 23. OVERFLOW HARDENING: Nothing should cause horizontal scroll ─────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  overflow-x: clip !important;
  width: 100% !important;
}
body {
  width: 100% !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
}
section,
.container,
header,
footer,
nav {
  max-width: 100%;
  overflow-x: clip !important;
  overflow-y: visible !important;
}
.blur-circle {
  max-width: min(40vw, 350px) !important;
  max-height: min(40vw, 350px) !important;
}
canvas,
video,
iframe,
embed {
  max-width: 100%;
}

/* ── 24. PRODUCT DETAIL PAGES (beverages.html, food-dairy.html, etc.) ──────── */
/* These pages use about-grid with inline minmax - fix on mobile */
@media (max-width: 768px) {
  .about-grid[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  /* Table overflow for tech specs */
  .glass-card[style*="overflow-x: auto"] table {
    min-width: 500px;
  }
  /* Increase product detail padding */
  .product-details-sec {
    padding-top: 24px !important;
    padding-bottom: 60px !important;
  }
}
@media (max-width: 480px) {
  .glass-card[style*="margin-top: 60px"] {
    margin-top: 36px !important;
    padding: 20px 14px !important;
  }
}

/* ── 25. BEVERAGE TYPES GRID ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .beverage-types-grid,
  [class*="types-grid"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

/* ── 26. STAT CARD NUMBERS: don't overflow their containers ──────────────── */
.stat-number,
.kinetic-stat-number {
  word-break: break-word;
  overflow-wrap: break-word;
}

/* ── 27. SCROLL PROGRESS BAR: always above everything ───────────────────── */
#scroll-progress-bar {
  z-index: 9999 !important;
}

/* ── 28. SECTION SPACING RHYTHM: consistent vertical cadence ─────────────── */
@media (max-width: 768px) {
  .hero, .about, .about-showcase, .studio, .products,
  .simulator-sec, .contact-calculator {
    padding-top: clamp(48px, 10vw, 80px) !important;
    padding-bottom: clamp(48px, 10vw, 80px) !important;
  }
  .hero {
    padding-top: clamp(82px, 14vw, 110px) !important;
  }
}

/* ── 29. GLASS-CARD HOVER: disable on touch devices to prevent sticky hover */
@media (hover: none) {
  .glass-card:not(.header):hover {
    transform: none !important;
    box-shadow: var(--shadow-md) !important;
    border-color: var(--glass-border) !important;
  }
  .product-card:hover {
    transform: none !important;
  }
  .product-card:hover .product-image {
    transform: none !important;
  }
  .marquee-card:hover {
    transform: none !important;
  }
}

/* ── 30. LARGE DESKTOP CAPPING (1440px+) ─────────────────────────────────── */
@media (min-width: 1440px) {
  .hero {
    padding-top: 200px !important;
    padding-bottom: 120px !important;
  }
  .hero-title {
    font-size: clamp(3.5rem, 3.5vw, 4.5rem) !important;
  }
  .about,
  .studio,
  .products,
  .simulator-sec,
  .contact-calculator {
    padding-top: 120px !important;
    padding-bottom: 120px !important;
  }
  .footer {
    padding-top: 100px !important;
  }
}

/* ── 31. SECTION BADGE MOBILE ────────────────────────────────────────────── */
@media (max-width: 480px) {
  .section-badge {
    font-size: 0.72rem !important;
    padding: 5px 12px !important;
  }
}

/* ── 32. FORM INPUT: Prevent iOS 16+ zoom on focus ─────────────────────────── */
@media (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="password"],
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* About page: hero band sits at top, main content immediately follows */
.about-subpage-content {
  padding-top: 0 !important;
}

/* ── ADDITIONAL PERFORMANCE: Disable mesh animation on low-power / reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  body {
    animation: none !important;
    background-image: 
      radial-gradient(circle at 15% 20%, hsla(24, 95%, 50%, 0.15) 0%, transparent 55%),
      radial-gradient(circle at 85% 80%, hsla(220, 95%, 52%, 0.15) 0%, transparent 55%),
      linear-gradient(135deg, #e5f0ff 0%, #fff6eb 50%, #f6eeff 100%);
    background-size: auto !important;
  }
  html.dark-theme body,
  body.dark-theme {
    background-image: 
      radial-gradient(circle at 15% 20%, hsla(220, 95%, 52%, 0.2) 0%, transparent 55%),
      radial-gradient(circle at 85% 80%, hsla(24, 95%, 50%, 0.2) 0%, transparent 55%),
      linear-gradient(135deg, #01040f 0%, #030612 50%, #080c16 100%);
  }
}

/* ── TABLET (768–1024px) layout checks ────────────────────────────────────── */
@media (min-width: 769px) and (max-width: 1024px) {
  /* Ensure hero grid doesn't overflow — one column is fine here */
  .hero-grid {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }
  /* Products: 2-col is already applied but ensure equal heights */
  .product-grid {
    align-items: stretch;
  }
  .product-card {
    min-height: 380px;
  }
  /* Footer 2-col */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  /* Studio grid single column with wider viewport */
  .studio-grid {
    gap: 28px;
  }
}

/* ── Fix: Floating card clipping in hero visual ────────────────────────────── */
.hero-visual {
  overflow: hidden !important;
}
.floating-container {
  overflow: hidden !important;
  max-width: 100% !important;
}

/* ── Fix: Section inline style padding override ─────────────────────────── */
/* Section children that use style="padding: Xpx 0" can bypass our section rules */
section[style*="padding: 80px 0"] {
  padding: clamp(48px, 10vw, 80px) 0 !important;
}
@media (max-width: 768px) {
  section[style*="padding: 80px 0"],
  section[style*="padding: 100px 0"] {
    padding: clamp(44px, 9vw, 72px) 0 !important;
  }
}

/* Make all glass cards on product detail pages have a solid white background with high contrast dark text */
.product-details-sec .glass-card {
  background: #ffffff !important;
  color: #0f172a !important;
}

.product-details-sec .glass-card h1,
.product-details-sec .glass-card h2,
.product-details-sec .glass-card h3,
.product-details-sec .glass-card h4,
.product-details-sec .glass-card h5,
.product-details-sec .glass-card h6 {
  color: #0f172a !important;
}

.product-details-sec .glass-card p,
.product-details-sec .glass-card span:not(.section-badge),
.product-details-sec .glass-card td,
.product-details-sec .glass-card th,
.product-details-sec .glass-card li {
  color: #334155 !important;
}

.product-details-sec .glass-card th {
  color: var(--primary) !important;
}

/* ==========================================================================
   Awwwards & Orisa Inspired Premium Contact Page and Footer Customizations
   ========================================================================== */

/* Split layout for contact page */
.contact-page-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: start;
  margin-top: 40px;
}

@media (max-width: 992px) {
  .contact-page-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Mega typography heading */
.contact-mega-title {
  font-family: 'Syncopate', sans-serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 24px;
  color: var(--text-primary);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.5s ease;
}

body.dark-theme .contact-mega-title {
  background: linear-gradient(135deg, var(--accent-orange) 0%, #ffbd59 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-mega-subtitle {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 540px;
}

/* Timezone clock widget */
.timezone-widget {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(12, 68, 124, 0.05);
  border: 1px solid rgba(12, 68, 124, 0.1);
  padding: 10px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 30px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  transition: all 0.3s ease;
}

body.dark-theme .timezone-widget {
  background: rgba(239, 159, 39, 0.05);
  border-color: rgba(239, 159, 39, 0.15);
  color: var(--accent-orange);
}

.timezone-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-green 1.8s infinite;
}

@keyframes pulse-green {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Modern Details Card */
.contact-details-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.contact-detail-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 16px;
  border-radius: var(--radius-md);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
}

.contact-detail-row:hover {
  background: rgba(12, 68, 124, 0.03);
  border-color: rgba(12, 68, 124, 0.05);
  transform: translateX(5px);
}

body.dark-theme .contact-detail-row:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.04);
}

.contact-detail-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  color: #ffffff;
  font-size: 1.15rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

body.dark-theme .contact-detail-icon {
  background: linear-gradient(135deg, var(--accent-orange) 0%, #d97706 100%);
}

.contact-detail-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-detail-content p, 
.contact-detail-content a {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  transition: color 0.3s ease;
}

.contact-detail-content a:hover {
  color: var(--primary);
}

body.dark-theme .contact-detail-content a:hover {
  color: var(--accent-orange);
}

/* Modern minimalist form inputs with floating effect */
.studio-group {
  position: relative;
  margin-bottom: 24px;
}

.studio-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  display: block;
}

.form-input {
  width: 100%;
  background: transparent !important;
  border: none !important;
  border-bottom: 1.5px solid var(--glass-border) !important;
  border-radius: 0 !important;
  padding: 12px 4px !important;
  color: var(--text-primary) !important;
  font-family: inherit;
  font-size: 1rem !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: none !important;
}

.form-input:focus {
  border-bottom-color: var(--primary) !important;
  padding-left: 8px !important;
}

body.dark-theme .form-input:focus {
  border-bottom-color: var(--accent-orange) !important;
}

textarea.form-input {
  min-height: 90px;
  resize: vertical;
}

/* Finishes checkbox selection tags */
.finishes-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.finishes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}

.finish-checkbox-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.finish-checkbox-label:hover {
  border-color: var(--primary);
  color: var(--primary);
}

body.dark-theme .finish-checkbox-label:hover {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

.finish-checkbox-input {
  display: none;
}

.finish-checkbox-input:checked + .finish-checkbox-label {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: var(--shadow-primary);
}

body.dark-theme .finish-checkbox-input:checked + .finish-checkbox-label {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  box-shadow: 0 4px 14px rgba(239, 159, 39, 0.3);
}

/* Awwwards link sliding underline in footer */
.footer-links a,
.footer-contact-item a {
  position: relative;
  text-decoration: none;
  display: inline-block;
}

.footer-links a::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 1.5px;
  bottom: -2px;
  left: 0;
  background-color: var(--accent-orange);
  transform-origin: bottom right;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-links a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Huge outline brand watermark at bottom of footer */
.footer-huge-watermark {
  font-family: 'Syncopate', sans-serif;
  font-weight: 900;
  font-size: clamp(3rem, 12vw, 9.5rem);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.9;
  user-select: none;
  pointer-events: none;
  margin-top: 40px;
  width: 100%;
  color: rgba(255, 255, 255, 0.03);
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

body.dark-theme .footer-huge-watermark {
  background: linear-gradient(180deg, rgba(239,159,39,0.05) 0%, rgba(239,159,39,0.01) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Premium Orisa/Awwwards Footer Overrides */
.footer {
  background: var(--primary) !important; /* solid brand blue */
  color: #ffffff !important;
  padding: 140px 0 40px !important;
  border-top: 1.5px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15) !important;
  position: relative;
  overflow: hidden;
}

body.dark-theme .footer {
  background: #09335d !important; /* slightly darker navy for dark theme */
  border-top: 1.5px solid rgba(239, 159, 39, 0.25) !important;
}

.footer p {
  color: #cbd5e1 !important; /* brighter text for high contrast on blue */
  line-height: 1.7;
}

.footer-links a {
  color: #cbd5e1 !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-links a:hover {
  color: var(--accent-orange) !important;
}

.footer-col-title {
  font-family: 'Syncopate', sans-serif !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: #ffffff !important;
  position: relative;
  padding-bottom: 18px;
  margin-bottom: 8px;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 20px;
  height: 1.5px;
  background: var(--accent-orange) !important;
}

/* Huge CTA Header in Footer */
.footer-cta-section {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 40px;
  margin-bottom: 90px;
}

.footer-cta-title {
  font-family: 'Syncopate', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 5.5vw, 4rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #ffffff;
}

.footer-cta-title a {
  color: var(--accent-orange) !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-cta-title a i {
  font-size: 0.8em;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-cta-title a:hover {
  color: #ffffff !important;
}

.footer-cta-title a:hover i {
  transform: translate(8px, -8px);
}

/* Make footer logo larger and high-contrast (bold + boundary stroke) */
.footer-logo {
  font-size: 1.6rem !important;
}

.footer-logo .logo-svg {
  height: 48px !important;
}

.footer-logo .logo-svg .logo-text-blue {
  fill: #ffffff !important;
  stroke: #0a2d54 !important;
  stroke-width: 2px !important;
  paint-order: stroke fill !important;
  font-weight: 900 !important;
}

.footer-logo .logo-svg .logo-text-orange {
  fill: var(--accent-orange) !important;
  stroke: #0a2d54 !important;
  stroke-width: 2px !important;
  paint-order: stroke fill !important;
  font-weight: 900 !important;
}

.footer-logo .logo-svg .logo-fill-orange {
  fill: var(--accent-orange) !important;
  stroke: #0a2d54 !important;
  stroke-width: 2px !important;
  paint-order: stroke fill !important;
}


/* Ensure all horizontal scrolling panels or tabs have scrollbars visually hidden while retaining scroll functionality */
.studio-tabs-bar,
.glass-card[style*="overflow-x: auto"],
[style*="overflow-x: auto"],
.table-responsive {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
.studio-tabs-bar::-webkit-scrollbar,
.glass-card[style*="overflow-x: auto"]::-webkit-scrollbar,
[style*="overflow-x: auto"]::-webkit-scrollbar,
.table-responsive::-webkit-scrollbar {
  display: none !important;
}

/* ── STUDIO TEASER SPLIT LAYOUT ────────────────────────────────────────────── */
.studio-teaser-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
  text-align: left;
}
.studio-teaser-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.studio-teaser-buttons {
  display: flex;
  gap: 14px;
  justify-content: flex-start;
  flex-wrap: wrap;
  width: 100%;
}
.studio-teaser-visual {
  position: relative;
  width: 100%;
  height: 380px;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--glass-border);
  box-shadow: var(--shadow-sm), inset 0 0 30px rgba(0, 0, 0, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
body.dark-theme .studio-teaser-visual {
  background: #020914; /* solid dark background for dark mode */
  border-color: var(--glass-border);
}
@media (max-width: 768px) {
  .studio-teaser-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  .studio-teaser-content {
    align-items: center;
  }
  .studio-teaser-buttons {
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: center !important;
  }
  .studio-teaser-buttons .btn {
    width: 100% !important;
    justify-content: center !important;
  }
  .studio-teaser-visual {
    height: 300px;
  }
}
