/* ==========================================================================
   GACHSARAN GLASS COMPLEX - CORE DESIGN SYSTEM & RESPONSIVE ARCHITECTURE
   Theme: Precision Industrial & Architectural Glass
   Design System Standard: UI/UX Pro Max Architecture
   No Neon Colors | High Contrast | WCAG 2.1 AA Compliant | Pure LTR & RTL
   Zero-Horizontal-Scroll Guarantee | Mobile First & Responsive Grid
   ========================================================================== */

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

:root {
  /* Architectural & Industrial Color Palette */
  --bg-primary: #070D18;
  --bg-surface: #0E1726;
  --bg-surface-elevated: #152238;
  --bg-surface-light: #F8FAFC;
  --bg-card: #111C2E;
  --bg-card-hover: #17263F;
  --bg-glass: rgba(14, 23, 38, 0.75);
  --bg-glass-card: rgba(21, 34, 56, 0.65);
  
  /* Precision Borders & Hairlines */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glass: rgba(126, 167, 224, 0.22);
  --border-active: #7ea7e0;
  --border-light: #E2E8F0;
  
  /* Text & Typographic Colors */
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-inverse: #0B1320;
  
  /* Refined Glass & Steel Accents - Primary #7ea7e0 */
  --accent-cyan: #7ea7e0;        /* Primary Gachsaran Glass Blue */
  --accent-cyan-light: #a3c4f7;  /* Soft Ice Highlight */
  --accent-cyan-dark: #5c88c7;   /* Deep Architectural Slate Blue */
  --accent-teal: #0D9488;        /* Natural glass edge green/teal */
  --accent-steel: #475569;       /* Industrial steel */
  --accent-gold: #D97706;        /* Subtle industrial warmth */
  
  /* Functional Colors */
  --success: #059669;
  --warning: #D97706;
  --error: #DC2626;
  --info: #7ea7e0;
  
  /* Shadows & Elevations */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  --shadow-glass: 0 8px 32px 0 rgba(126, 167, 224, 0.16);
  
  /* Typography Variables */
  --font-sans-en: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-sans-fa: 'IranSansX', Tahoma, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Layout Dimensions */
  --header-height: 80px;
  --max-width: 1320px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Base & Global Zero-Overflow Architecture
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  font-family: var(--font-sans-en);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video, canvas, audio, iframe, embed, object {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Responsive safety on flex & grid children */
.container,
.grid,
[class*="-grid"],
[class*="-container"],
[class*="-col"],
.glass-card,
.metric-card,
.product-card,
.intro-text-col,
.why-text-col,
.contact-info-col,
.form-card,
.calculator-card {
  min-width: 0;
}

/* ==========================================================================
   Persian / RTL Language Support - Native IranSansX & Persian Numerals
   ========================================================================== */
[dir="rtl"],
[dir="rtl"] body,
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6,
[dir="rtl"] p, [dir="rtl"] span, [dir="rtl"] a, [dir="rtl"] button, [dir="rtl"] input,
[dir="rtl"] select, [dir="rtl"] textarea, [dir="rtl"] table, [dir="rtl"] td, [dir="rtl"] th,
[dir="rtl"] .metric-value, [dir="rtl"] .spec-val, [dir="rtl"] .font-mono, [dir="rtl"] .badge,
[dir="rtl"] .calc-metric-item, [dir="rtl"] .nav-drawer-link, [dir="rtl"] .tab-btn, [dir="rtl"] .form-tab-btn {
  font-family: var(--font-sans-fa) !important;
  letter-spacing: 0;
  word-break: normal;
  overflow-wrap: break-word;
}

[dir="rtl"] .font-mono {
  direction: ltr;
  display: inline-block;
}

/* Background Patterns */
.bg-grid-pattern {
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}

.bg-radial-gradient {
  background: radial-gradient(circle at 50% 20%, rgba(2, 132, 199, 0.15) 0%, rgba(7, 13, 24, 0) 70%);
}

/* ==========================================================================
   Container & Layout Sizing
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  box-sizing: border-box;
}

/* ==========================================================================
   Typography Hierarchy & Fluid Sizing
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 {
  letter-spacing: 0;
  line-height: 1.4;
}

h1 { font-size: clamp(1.85rem, 5vw, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.5rem); }
h4 { font-size: clamp(1rem, 1.8vw, 1.2rem); }

p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

a {
  color: var(--accent-cyan-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: #FFFFFF;
}

/* Badges & Micro-elements */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-full);
  background: rgba(126, 167, 224, 0.12);
  color: var(--accent-cyan-light);
  border: 1px solid rgba(126, 167, 224, 0.25);
  max-width: 100%;
  white-space: normal;
  line-height: 1.4;
  text-align: center;
}

[dir="rtl"] .badge {
  letter-spacing: 0;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-cyan-light);
  flex-shrink: 0;
}

/* Section Header Component */
.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3.5rem auto;
}

.section-header .section-subtitle {
  color: var(--accent-cyan-light);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  display: inline-block;
}

[dir="rtl"] .section-header .section-subtitle {
  letter-spacing: 0;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  min-height: 48px; /* 44px+ touch target */
  box-sizing: border-box;
}

.btn-primary {
  background-color: var(--accent-cyan);
  color: #070D18;
  font-weight: 700;
  border-color: var(--accent-cyan-light);
  box-shadow: 0 4px 14px 0 rgba(126, 167, 224, 0.35);
}

.btn-primary:hover {
  background-color: var(--accent-cyan-light);
  color: #070D18;
  box-shadow: 0 6px 20px 0 rgba(126, 167, 224, 0.5);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: var(--border-subtle);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  color: var(--accent-cyan);
  border-color: rgba(126, 167, 224, 0.4);
}

.btn-outline:hover {
  background-color: rgba(126, 167, 224, 0.15);
  border-color: var(--accent-cyan-light);
  color: #FFFFFF;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  min-height: 38px;
}

/* Glass Card */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(126, 167, 224, 0.3), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.glass-card:hover {
  border-color: rgba(126, 167, 224, 0.3);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), var(--shadow-glass);
}

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

/* ==========================================================================
   Header & Sticky Navbar
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(7, 13, 24, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  background: rgba(7, 13, 24, 0.96);
  border-bottom-color: rgba(126, 167, 224, 0.25);
  box-shadow: var(--shadow-lg);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  min-width: 0;
  flex-shrink: 1;
}

.logo-symbol {
  width: 44px;
  height: 44px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
}

.logo-symbol img,
.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.logo-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.01em;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logo-subtitle {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--accent-cyan-light);
  letter-spacing: 0.12em;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[dir="rtl"] .logo-subtitle {
  letter-spacing: 0;
}

/* Header Actions & Language Switcher */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.lang-switch-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  min-height: 40px;
}

.lang-switch-btn:hover {
  background: rgba(126, 167, 224, 0.2);
  border-color: var(--accent-cyan);
}

.lang-switch-btn span.active-lang {
  color: var(--accent-cyan);
}

.lang-opt {
  display: inline-flex;
  align-items: center;
}

.lang-sep {
  color: var(--text-muted);
  font-size: 0.75rem;
  user-select: none;
}

.lang-fa {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.lang-en {
  font-size: 0.825rem;
  font-weight: 700;
}

/* Universal Hamburger Toggle Button */
.hamburger-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(126, 167, 224, 0.35);
  border-radius: var(--radius-full);
  color: #FFFFFF;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  backdrop-filter: blur(8px);
  min-height: 44px;
  white-space: nowrap;
  flex-shrink: 0;
}

.hamburger-btn:hover {
  background: rgba(126, 167, 224, 0.22);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 16px rgba(126, 167, 224, 0.35);
  transform: translateY(-1px);
}

.hamburger-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 20px;
  flex-shrink: 0;
}

.hamburger-lines .line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--accent-cyan);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.hamburger-label {
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.825rem;
}

[dir="rtl"] .hamburger-label {
  letter-spacing: 0;
}

/* ==========================================================================
   Off-Canvas Luxury Architectural Drawer
   ========================================================================== */
.nav-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2500;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s;
}

.nav-drawer-overlay.active {
  visibility: visible;
  opacity: 1;
}

.nav-drawer-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 8, 16, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-drawer-container {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: min(440px, 100vw);
  background: rgba(7, 13, 24, 0.98);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border-left: 1px solid rgba(126, 167, 224, 0.25);
  box-shadow: -15px 0 50px rgba(0, 0, 0, 0.9);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 2;
  box-sizing: border-box;
}

[dir="rtl"] .nav-drawer-container {
  border-left: none;
  border-right: 1px solid rgba(126, 167, 224, 0.25);
}

.nav-drawer-overlay.active .nav-drawer-container {
  transform: translateX(0);
}

.nav-drawer-header {
  padding: 1.25rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(14, 23, 38, 0.6);
  flex-shrink: 0;
}

.nav-drawer-close-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.nav-drawer-close-btn:hover {
  background: rgba(220, 38, 38, 0.2);
  border-color: var(--error);
  color: #FFFFFF;
  transform: rotate(90deg);
}

.nav-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  -webkit-overflow-scrolling: touch;
}

.nav-drawer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-drawer-item {
  position: relative;
}

.nav-drawer-link {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  padding: 0.75rem 1.15rem;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 700;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 2px solid transparent;
  min-height: 48px;
}

[dir="rtl"] .nav-drawer-link {
  border-left: none;
  border-right: 2px solid transparent;
}

.nav-drawer-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan-light);
  opacity: 0.75;
  width: 24px;
  flex-shrink: 0;
}

.nav-drawer-text {
  transition: color 0.2s;
}

.nav-drawer-link:hover, .nav-drawer-link.active {
  color: #FFFFFF;
  background: rgba(126, 167, 224, 0.16);
  border-left-color: var(--accent-cyan);
  padding-left: 1.5rem;
}

[dir="rtl"] .nav-drawer-link:hover, [dir="rtl"] .nav-drawer-link.active {
  border-left-color: transparent;
  border-right-color: var(--accent-cyan);
  padding-left: 1.15rem;
  padding-right: 1.5rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: 5rem;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 50% 30%, rgba(126, 167, 224, 0.16) 0%, rgba(7, 13, 24, 0.95) 75%);
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge-wrap {
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(1.75rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: #FFFFFF;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.hero-title span.highlight {
  color: transparent;
  background: linear-gradient(135deg, #FFFFFF 0%, #a3c4f7 50%, #7ea7e0 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 760px;
  margin: 0 auto 2.5rem auto;
  line-height: 1.65;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

/* Hero Metrics Strip */
.hero-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: 1080px;
  margin: 0 auto;
}

.metric-card {
  background: rgba(14, 23, 38, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: all var(--transition-normal);
}

.metric-card:hover {
  border-color: rgba(126, 167, 224, 0.4);
  background: rgba(21, 34, 56, 0.85);
  transform: translateY(-2px);
}

.metric-value {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  color: #FFFFFF;
  font-family: var(--font-mono);
  margin-bottom: 0.25rem;
}

.metric-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ==========================================================================
   Multi-Page Inner Hero Banner
   ========================================================================== */
.page-hero-banner {
  position: relative;
  padding-top: calc(var(--header-height) + 3.5rem);
  padding-bottom: 3.5rem;
  background: radial-gradient(circle at 50% 0%, rgba(126, 167, 224, 0.18) 0%, rgba(7, 13, 24, 0.98) 75%);
  border-bottom: 1px solid var(--border-glass);
  text-align: center;
  overflow: hidden;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
}

.breadcrumb-trail {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

.breadcrumb-trail a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumb-trail a:hover {
  color: #FFFFFF;
}

.breadcrumb-separator {
  color: var(--text-muted);
  opacity: 0.6;
}

.page-hero-title {
  font-size: clamp(1.5rem, 4.5vw, 3rem);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
  margin-bottom: 1rem;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.page-hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Common Section Spacing & Alternating Themes
   ========================================================================== */
.section-py {
  padding-top: clamp(3.5rem, 6vw, 6rem);
  padding-bottom: clamp(3.5rem, 6vw, 6rem);
  position: relative;
}

.section-alt {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Company Intro Section
   ========================================================================== */
.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.intro-text-col h3 {
  color: var(--accent-cyan-light);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

[dir="rtl"] .intro-text-col h3 {
  letter-spacing: 0;
}

.intro-text-col h2 {
  margin-bottom: 1.5rem;
}

.intro-text-col p {
  margin-bottom: 1.25rem;
}

.intro-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.pillar-item {
  border-left: 2px solid var(--accent-cyan);
  padding-left: 1rem;
}

[dir="rtl"] .pillar-item {
  border-left: none;
  border-right: 2px solid var(--accent-cyan);
  padding-left: 0;
  padding-right: 1rem;
}

.pillar-title {
  font-size: 1rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.25rem;
}

.pillar-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.intro-visual-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-xl);
}

.intro-visual-card .badge-top {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
}

[dir="rtl"] .intro-visual-card .badge-top {
  right: auto;
  left: 1.5rem;
}

/* ==========================================================================
   Product Cards & Grid
   ========================================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(126, 167, 224, 0.12);
  border: 1px solid rgba(126, 167, 224, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan-light);
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}

.product-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.75rem;
}

.product-desc {
  color: var(--text-secondary);
  font-size: 0.925rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.product-specs-list {
  list-style: none;
  margin-bottom: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

.product-spec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  padding: 0.4rem 0;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  flex-wrap: wrap;
}

.product-spec-item span.spec-val {
  color: #FFFFFF;
  font-weight: 600;
  font-family: var(--font-mono);
}

.product-action-btn {
  margin-top: auto;
  width: 100%;
}

/* ==========================================================================
   Why Ultra-Clear Section & Visual Comparison Cards
   ========================================================================== */
.why-ultraclear-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.why-text-col, .why-visual-col {
  min-width: 0;
}

.glass-comparison-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.glass-sample {
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  transition: all var(--transition-normal);
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 180px;
}

.glass-sample-standard {
  background: rgba(14, 23, 38, 0.6);
  border-color: rgba(255, 255, 255, 0.08);
}

.glass-sample-ultraclear {
  background: rgba(21, 34, 56, 0.9);
  border-color: rgba(126, 167, 224, 0.45);
  box-shadow: 0 0 25px rgba(126, 167, 224, 0.18);
}

.sample-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  max-width: 100%;
}

.glass-sample-ultraclear .sample-badge {
  background: var(--accent-cyan);
  color: #070D18;
  font-weight: 800;
}

/* ==========================================================================
   Interactive Glass Performance Calculator Engine
   ========================================================================== */
.calculator-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: clamp(1.25rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-xl);
  max-width: 1080px;
  margin: 0 auto;
}

.calculator-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.calc-inputs-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.calc-outputs-col {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: rgba(14, 23, 38, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.calc-metric-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(21, 34, 56, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.calc-metric-item:hover {
  border-color: var(--accent-cyan);
  background: rgba(21, 34, 56, 1);
}

.metric-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.metric-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #FFFFFF;
  word-wrap: break-word;
}

.metric-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.metric-value-display {
  font-size: 1.35rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  white-space: nowrap;
  flex-shrink: 0;
  text-align: end;
}

/* ==========================================================================
   Technology & Digital Manufacturing Tabs
   ========================================================================== */
.tech-tabs-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 1080px;
  margin: 0 auto 2.5rem auto;
  width: 100%;
}

.tab-btn {
  padding: 1rem 1.15rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  font-size: 0.925rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 76px;
  text-align: center;
  line-height: 1.35;
  box-sizing: border-box;
}

.tab-btn i {
  font-size: 1.25rem;
  margin-bottom: 0.15rem;
  color: var(--accent-cyan);
  transition: color var(--transition-fast);
}

.tab-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(126, 167, 224, 0.35);
  transform: translateY(-2px);
}

.tab-btn.active {
  background: var(--accent-cyan);
  color: #070D18;
  font-weight: 700;
  border-color: var(--accent-cyan-light);
  box-shadow: 0 4px 14px rgba(126, 167, 224, 0.4);
}

.tab-btn.active i {
  color: #070D18;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

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

.tech-card-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2.5rem;
  align-items: stretch;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.feature-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.feature-check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.925rem;
  color: var(--text-secondary);
}

.check-icon {
  color: var(--accent-cyan);
  flex-shrink: 0;
  margin-top: 0.25rem;
  font-size: 0.95rem;
}

/* ==========================================================================
   Applications Gallery
   ========================================================================== */
.applications-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.app-card:hover {
  transform: translateY(-4px);
  border-color: rgba(126, 167, 224, 0.35);
  box-shadow: var(--shadow-xl);
}

.app-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(126, 167, 224, 0.12);
  border: 1px solid rgba(126, 167, 224, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

/* ==========================================================================
   Quality Assurance & Control Points
   ========================================================================== */
.qa-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.qa-point-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: all var(--transition-fast);
}

.qa-point-card:hover {
  border-color: var(--accent-cyan);
  background: var(--bg-surface-elevated);
}

.qa-point-num {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  background: rgba(126, 167, 224, 0.14);
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  flex-shrink: 0;
}

.qa-point-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.4;
  word-wrap: break-word;
}

/* ==========================================================================
   Sustainability, Investment & Careers
   ========================================================================== */
.sustainability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.sus-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}

.sus-icon, .sus-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(13, 148, 136, 0.15);
  border: 1px solid rgba(13, 148, 136, 0.3);
  color: #2DD4BF;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  flex-shrink: 0;
}

.sus-card h3 {
  margin-bottom: 0.75rem;
  color: #FFFFFF;
}

.investment-banner {
  background: linear-gradient(135deg, rgba(21, 34, 56, 0.9) 0%, rgba(14, 23, 38, 0.95) 100%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 4vw, 3.5rem);
  box-shadow: var(--shadow-xl);
}

.investment-banner-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.investment-models-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin: 2.5rem 0;
}

.model-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.model-pill:hover {
  border-color: var(--accent-cyan);
  background: rgba(126, 167, 224, 0.15);
}

.raw-materials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.material-card, .raw-mat-card {
  background: rgba(14, 23, 38, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.material-card h4 {
  color: var(--accent-cyan-light);
  margin-bottom: 0.5rem;
}

.careers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.discipline-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.825rem;
  color: var(--text-secondary);
  display: inline-block;
}

/* ==========================================================================
   Contact Center & Interactive Forms System
   ========================================================================== */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-info-icon {
  color: var(--accent-cyan);
  flex-shrink: 0;
  margin-top: 0.25rem;
  font-size: 1.1rem;
}

.contact-dept-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}

.dept-badge {
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding: 0.45rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  text-align: center;
}

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: clamp(1.25rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-xl);
}

.form-tabs-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.25rem;
  margin-bottom: 1.75rem;
  width: 100%;
}

.form-tab-btn {
  padding: 0.75rem 0.65rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-md);
  text-align: center;
  transition: all var(--transition-fast);
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.35;
  box-sizing: border-box;
}

.form-tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(126, 167, 224, 0.3);
  color: #FFFFFF;
}

.form-tab-btn.active {
  background: var(--accent-cyan);
  color: #070D18;
  font-weight: 700;
  border-color: var(--accent-cyan-light);
  box-shadow: 0 4px 12px rgba(126, 167, 224, 0.35);
}

.form-group {
  margin-bottom: 1.25rem;
  min-width: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  min-width: 0;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(14, 23, 38, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: #FFFFFF;
  font-size: 16px; /* 16px prevents iOS Safari auto-zoom */
  font-family: inherit;
  transition: all var(--transition-fast);
  box-sizing: border-box;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(126, 167, 224, 0.25);
  background: rgba(21, 34, 56, 0.95);
}

.form-textarea {
  min-height: 110px;
  resize: vertical;
}

.file-upload-box, .file-upload-wrap {
  border: 2px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: rgba(255, 255, 255, 0.02);
}

.file-upload-box:hover, .file-upload-wrap:hover {
  border-color: var(--accent-cyan);
  background: rgba(126, 167, 224, 0.08);
}

.file-name-display {
  font-size: 0.8rem;
  color: var(--accent-cyan-light);
  margin-top: 0.5rem;
  font-family: var(--font-mono);
}

.interactive-form, .contact-form-panel {
  display: block;
  width: 100%;
  animation: fadeIn 0.25s ease;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #040810;
  border-top: 1px solid var(--border-subtle);
  padding-top: clamp(3rem, 5vw, 5rem);
  padding-bottom: 2rem;
  position: relative;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 3.5rem;
  margin-bottom: 3.5rem;
}

.footer-brand-col p {
  font-size: 0.9rem;
  margin: 1rem 0 1.5rem 0;
  max-width: 340px;
}

.footer-col-title {
  font-size: 0.925rem;
  font-weight: 700;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

[dir="rtl"] .footer-col-title {
  letter-spacing: 0;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-link {
  color: var(--text-secondary);
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: #FFFFFF;
}

.footer-phone {
  display: inline-block;
  direction: ltr !important;
  unicode-bidi: isolate;
  font-family: var(--font-mono);
  white-space: nowrap;
  letter-spacing: 0.03em;
}

.footer-bottom-bar {
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.825rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
}

/* ==========================================================================
   Modal System & Technical Data Tables
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 8, 16, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  padding: 1rem;
}

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

.modal-container {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  max-width: 760px;
  width: calc(100% - 2rem);
  max-height: 90vh;
  overflow-y: auto;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-xl);
  transform: scale(0.95);
  transition: transform var(--transition-normal);
  position: relative;
  -webkit-overflow-scrolling: touch;
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 10;
}

[dir="rtl"] .modal-close-btn {
  right: auto;
  left: 1.25rem;
}

.modal-close-btn:hover {
  background: rgba(220, 38, 38, 0.2);
  border-color: var(--error);
  color: #FFFFFF;
}

/* Technical Data Table */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1rem 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.875rem;
}

.data-table th, .data-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  word-break: break-word;
}

[dir="rtl"] .data-table th, [dir="rtl"] .data-table td {
  text-align: right;
}

.data-table th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.data-table td {
  color: var(--text-primary);
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* ==========================================================================
   Toast Notifications & Floating UI Elements
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 3500;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: calc(100vw - 2rem);
}

[dir="rtl"] .toast-container {
  right: auto;
  left: 2rem;
}

.toast {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  color: #FFFFFF;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  animation: slideIn 0.3s ease;
  min-width: 280px;
  max-width: 100%;
  box-sizing: border-box;
}

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

.cms-trigger-floating {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  background: rgba(14, 23, 38, 0.9);
  border: 1px solid var(--border-glass);
  color: var(--accent-cyan-light);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(8px);
  transition: all var(--transition-fast);
}

[dir="rtl"] .cms-trigger-floating {
  right: auto;
  left: 1.5rem;
}

.cms-trigger-floating:hover {
  background: var(--accent-cyan-dark);
  color: #FFFFFF;
  border-color: var(--accent-cyan-light);
}

/* ==========================================================================
   Comprehensive Responsive Media Queries
   ========================================================================== */

/* Large Tablets & Small Desktops (<= 1200px) */
@media (max-width: 1200px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .applications-grid { grid-template-columns: repeat(2, 1fr); }
  .value-chain-grid { grid-template-columns: repeat(3, 1fr); }
  .qa-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top-grid { grid-template-columns: 1fr 1fr 1fr; gap: 2.5rem; }
  .investment-models-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Tablets (<= 992px) */
@media (max-width: 992px) {
  .intro-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .why-ultraclear-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-container { grid-template-columns: 1fr; gap: 2.5rem; }
  .calculator-grid { grid-template-columns: 1fr; gap: 2rem; }
  .tech-card-grid { grid-template-columns: 1fr; gap: 2rem; }
  .careers-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .sustainability-grid { grid-template-columns: repeat(2, 1fr); }
  .raw-materials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

/* Small Tablets & Large Mobiles (<= 768px) */
@media (max-width: 768px) {
  :root { --header-height: 68px; }
  .header-rfq-btn { display: none; }
  .intro-pillars { grid-template-columns: 1fr; gap: 1rem; }
  .glass-comparison-box { grid-template-columns: 1fr; gap: 1rem; }
  .qa-grid { grid-template-columns: repeat(2, 1fr); }
  
  /* Grid Cards for Tech Tabs on Tablet & Mobile (No Scroll) */
  .tech-tabs-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    width: 100%;
    margin-bottom: 2rem;
    overflow: visible;
  }
  
  .tab-btn {
    width: 100%;
    padding: 0.85rem 0.65rem;
    font-size: 0.825rem;
    min-height: 68px;
    border-radius: var(--radius-md);
  }

  .tab-btn i {
    font-size: 1.15rem;
    margin-bottom: 0.15rem;
  }
}

/* Standard Mobile Viewports (<= 576px) */
@media (max-width: 576px) {
  :root { --header-height: 64px; }
  
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Compact Mobile Header */
  .brand-logo { gap: 0.6rem; }
  .logo-symbol { width: 34px; height: 34px; }
  .logo-symbol i { font-size: 1.35rem !important; }
  .logo-title { font-size: 0.95rem; }
  .logo-subtitle { display: none; }
  
  .header-actions { gap: 0.5rem; }
  .lang-switch-btn {
    padding: 0.35rem 0.6rem;
    font-size: 0.775rem;
    gap: 0.3rem;
    min-height: 36px;
  }
  
  .hamburger-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    min-height: 38px;
    gap: 0.45rem;
  }
  .hamburger-lines { width: 18px; }
  
  /* Mobile Hero & Call to Actions */
  .hero-section {
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: 3.5rem;
    min-height: auto;
  }
  .hero-subtitle { margin-bottom: 2rem; }
  
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
  }
  .hero-cta-group .btn {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }
  
  .hero-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .metric-card {
    padding: 0.85rem 0.65rem;
  }
  .metric-value {
    font-size: 1.3rem;
  }
  .metric-label {
    font-size: 0.75rem;
  }
  
  /* Single-Column Content Grids on Mobile */
  .products-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .applications-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .qa-grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .sustainability-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .raw-materials-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .value-chain-grid { grid-template-columns: 1fr; gap: 1rem; }
  .investment-models-grid { grid-template-columns: 1fr; gap: 0.75rem; }
  
  /* Card Padding Reduction */
  .glass-card { padding: 1.35rem; }
  .intro-visual-card { padding: 1.5rem 1rem; }
  .investment-banner { padding: 1.75rem 1.25rem; }
  .form-card { padding: 1.35rem 1rem; }
  .calculator-card { padding: 1.35rem 1rem; }
  .calc-outputs-col { padding: 1rem; }
  
  /* Calculator Live Display Stacking on Mobile */
  .calc-metric-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .metric-value-display {
    align-self: flex-end;
    font-size: 1.2rem;
  }
  
  /* Forms & Inputs */
  .form-tabs-nav {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
  }
  .form-tab-btn {
    padding: 0.65rem 0.4rem;
    font-size: 0.8rem;
    min-height: 44px;
    border-radius: var(--radius-sm);
  }
  .form-row { grid-template-columns: 1fr; gap: 0.85rem; }
  .contact-dept-list { grid-template-columns: 1fr; gap: 0.5rem; }
  
  /* Footer Stacking */
  .footer-top-grid { grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2.5rem; }
  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  .footer-legal-links {
    justify-content: center;
    gap: 1rem;
  }
  
  /* Modal & Drawer Mobile Sizing */
  .modal-overlay { padding: 0.75rem; }
  .modal-container {
    padding: 1.25rem 1rem;
    width: calc(100% - 1rem);
  }
  .nav-drawer-header { padding: 1rem 1.25rem; }
  .nav-drawer-body { padding: 1.25rem 1rem; }
  
  /* Toasts & Floating Triggers */
  .toast-container {
    right: 1rem;
    left: 1rem;
    bottom: 1rem;
    max-width: calc(100vw - 2rem);
  }
  [dir="rtl"] .toast-container {
    right: 1rem;
    left: 1rem;
  }
  .toast {
    min-width: 0;
    width: 100%;
    font-size: 0.825rem;
    padding: 0.75rem 1rem;
  }
  .cms-trigger-floating {
    bottom: 1rem;
    right: 1rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.7rem;
  }
  [dir="rtl"] .cms-trigger-floating {
    right: auto;
    left: 1rem;
  }
}

/* Extra Small Phones (<= 380px, e.g. iPhone SE) */
@media (max-width: 380px) {
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  .brand-logo { gap: 0.45rem; }
  .logo-title { font-size: 0.85rem; }
  .hamburger-label { display: none; }
  .hamburger-btn { padding: 0.4rem 0.6rem; }
  .hero-metrics-grid { grid-template-columns: 1fr; }
  .tech-tabs-nav { gap: 0.5rem; }
  .tab-btn { padding: 0.75rem 0.35rem; font-size: 0.75rem; min-height: 62px; }
  .tab-btn i { font-size: 1rem; }
  .form-tabs-nav { gap: 0.4rem; }
  .form-tab-btn { padding: 0.55rem 0.25rem; font-size: 0.725rem; min-height: 42px; }
}
