
/*
Theme Name: IdeasPro - Custom Theme
Theme URI: https://ideaspro.tech
Author: Bilal Zahoor
Description: Custom WordPress theme built for heating, infrared, and heat loss calculation services.
Version: 1.8.0
*/

/* ==========================================================================
   1. DESIGN TOKENS & CSS VARIABLES
   ========================================================================== */

:root {
  --primary-color: #f97316;
  --primary-dark: #c2410c;
  --primary-light: #fdba74;
  --accent-glow: rgba(249, 115, 22, 0.3);

  --bg-dark: #070a12;
  --bg-card: #0f172a;

  --border-glass: rgba(255, 255, 255, 0.1);

  --text-dark: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  --white: #ffffff;
}


/* ==========================================================================
   2. GLOBAL RESETS & BASE STYLES
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text-dark);
  background-color: #f8fafc;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 4px;
}


/* ==========================================================================
   3. SCROLL REVEAL ANIMATIONS
   ========================================================================== */

.scroll-reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition:
    opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}


/* ==========================================================================
   4. HEADER & NAVIGATION
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  background: transparent;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);

  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: none;

  transition:
    background 0.4s ease,
    backdrop-filter 0.4s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}

.site-header.scrolled {
  background: rgba(7, 10, 18, 0.95);

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  border-bottom: 1px solid rgba(255, 255, 255, 0.12);

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.site-header .header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px !important;
  height: 80px !important;

  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}


/* IdeasPro Site Logo */

.site-header .logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-header .logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-header .logo a::before,
.site-header .logo a::after,
.site-header .logo::before,
.site-header .logo::after {
    content: none !important;
    display: none !important;
}

.site-header .logo img {
    display: block;
    width: 230px;
    height: auto;
    max-height: 80px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .site-header .logo img {
        width: 180px;
        max-height: 60px;
    }
}

/* Desktop Navigation */

.site-header nav ul,
.site-header .nav-menu,
.site-header .menu {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;

  gap: 36px !important;

  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.site-header nav ul li,
.site-header .nav-menu li,
.site-header .menu li {
  display: inline-block !important;

  margin: 0 !important;
  padding: 0 !important;

  float: none !important;
  list-style: none !important;
}

.site-header nav ul li a,
.site-header .nav-menu li a,
.site-header .menu li a {
  text-decoration: none !important;

  color: #ffffff !important;

  font-weight: 600 !important;
  font-size: 0.95rem !important;

  letter-spacing: 0.3px;

  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);

  position: relative;

  transition:
    color 0.2s ease,
    text-shadow 0.2s ease !important;
}

.site-header nav ul li a::after {
  content: '';

  position: absolute;
  bottom: -4px;
  left: 0;

  width: 0;
  height: 2px;

  background-color: var(--primary-color);

  transition: width 0.3s ease;
}

.site-header nav ul li a:hover::after {
  width: 100%;
}

.site-header nav ul li a:hover,
.site-header .nav-menu li a:hover,
.site-header .menu li a:hover {
  color: var(--primary-light) !important;
}


/* ==========================================================================
   5. HERO SECTION
   ========================================================================== */

.hero-section {
  position: relative;

  background-color: var(--bg-dark) !important;

  background-size: cover !important;

  /* Intentionally no !important: allows JS parallax movement */

  background-position: center center;

  background-repeat: no-repeat !important;

  padding: 160px 0 120px 0;

  overflow: hidden;

  color: #ffffff;
}

#hero-particle-canvas {
  position: absolute;

  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  z-index: 1;

  pointer-events: none;

  will-change: transform;
}

#hero-particle-canvas canvas {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-radial-overlay {
  position: absolute;

  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  background: radial-gradient(
    circle at 70% 25%,
    rgba(249, 115, 22, 0.18) 0%,
    transparent 65%
  );

  z-index: 2;

  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 3;

  display: grid;

  grid-template-columns: 1.15fr 0.85fr;

  gap: 50px;

  align-items: center;
}

.hero-content-left,
.hero-right-visual {
  will-change: transform, opacity;
  transition: transform 0.1s linear;
}


/* Hero Badge */

.hero-tech-badge {
  display: inline-flex;
  align-items: center;

  gap: 10px;

  background: rgba(249, 115, 22, 0.12);

  border: 1px solid rgba(249, 115, 22, 0.35);

  color: var(--primary-light);

  padding: 7px 18px;

  border-radius: 30px;

  font-size: 0.8rem;
  font-weight: 700;

  text-transform: uppercase;
  letter-spacing: 1.2px;

  margin-bottom: 24px;

  box-shadow: 0 0 20px rgba(249, 115, 22, 0.15);
}

.pulse-ring {
  width: 8px;
  height: 8px;

  background-color: var(--primary-color);

  border-radius: 50%;

  box-shadow: 0 0 12px var(--primary-color);

  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(249, 115, 22, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0);
  }
}


/* Hero Typography */

.hero-title {
  font-size: 3.4rem;
  font-weight: 800;

  line-height: 1.12;

  margin-bottom: 22px;

  letter-spacing: -1.2px;

  color: var(--white);
}

.hero-title span {
  background: linear-gradient(
    135deg,
    #ffffff 30%,
    var(--primary-light) 100%
  );

  -webkit-background-clip: text;
  background-clip: text;

  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  color: #f1f5f9 !important;

  font-size: 1.15rem;

  line-height: 1.75;

  margin-bottom: 38px;

  max-width: 580px;

  text-shadow:
    0 2px 10px rgba(0, 0, 0, 0.8),
    0 1px 3px rgba(0, 0, 0, 0.9);

  font-weight: 400;
}


/* Hero CTA Buttons */

.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 15px 34px;

  border-radius: 10px;

  font-weight: 600;
  font-size: 1rem;

  text-decoration: none;

  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  cursor: pointer;
}

.btn-glow {
  background: linear-gradient(
    135deg,
    #f97316 0%,
    #ea580c 100%
  ) !important;

  color: #ffffff !important;

  box-shadow: 0 4px 25px rgba(249, 115, 22, 0.45);

  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.btn-glow:hover {
  transform: translateY(-3px);

  box-shadow: 0 8px 35px rgba(249, 115, 22, 0.65);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05) !important;

  border: 1px solid rgba(255, 255, 255, 0.15) !important;

  color: #ffffff !important;

  backdrop-filter: blur(12px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1) !important;

  border-color: rgba(255, 255, 255, 0.3) !important;

  transform: translateY(-3px);
}


/* ==========================================================================
   6. HEATING ESTIMATOR & GLASS TELEMETRY CARD
   ========================================================================== */

.glass-telemetry-card {
  background: rgba(11, 17, 32, 0.85);

  border: 1px solid rgba(249, 115, 22, 0.35);

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  border-radius: 24px;

  padding: 32px;

  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.7),
    0 0 40px rgba(249, 115, 22, 0.15);

  position: relative;

  transition:
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.glass-telemetry-card:hover {
  border-color: rgba(249, 115, 22, 0.6);

  box-shadow:
    0 35px 70px rgba(0, 0, 0, 0.8),
    0 0 50px rgba(249, 115, 22, 0.25);
}

.glass-telemetry-card::before {
  content: '';

  position: absolute;

  top: 0;
  left: 0;
  right: 0;

  height: 2px;

  background: linear-gradient(
    90deg,
    transparent,
    var(--primary-color),
    transparent
  );

  border-radius: 24px 24px 0 0;

  pointer-events: none;
}

.card-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;

  border-bottom: 1px solid rgba(255, 255, 255, 0.08);

  padding-bottom: 16px;
  margin-bottom: 18px;
}

.live-dot {
  width: 9px;
  height: 9px;

  background: #22c55e;

  border-radius: 50%;

  box-shadow: 0 0 10px #22c55e;
}

.card-title {
  font-size: 0.78rem;
  font-weight: 700;

  color: #cbd5e1;

  letter-spacing: 1.2px;
}

.hud-status-badge {
  font-size: 0.65rem;

  background: rgba(34, 197, 94, 0.15);

  color: #4ade80;

  border: 1px solid rgba(34, 197, 94, 0.3);

  padding: 4px 10px;

  border-radius: 12px;

  font-weight: 700;

  letter-spacing: 1px;
}

.configurator-intro {
  margin-bottom: 4px;
}

.config-label {
  font-size: 0.85rem;

  color: var(--text-light);

  font-weight: 500;

  margin: 0;
}

.telemetry-grid {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 16px;
}

.telemetry-item {
  background: rgba(255, 255, 255, 0.025);

  padding: 18px;

  border-radius: 14px;

  border: 1px solid rgba(255, 255, 255, 0.05);

  transition: all 0.3s ease;
}

.telemetry-item:hover {
  border-color: rgba(249, 115, 22, 0.4);

  background: rgba(249, 115, 22, 0.03);

  transform: translateY(-2px);
}

.telemetry-value {
  display: block;

  font-size: 1.9rem;

  font-weight: 800;

  color: var(--primary-light);

  letter-spacing: -0.5px;

  transition: transform 0.2s ease;
}

.telemetry-label {
  font-size: 0.73rem;

  color: var(--text-light);

  text-transform: uppercase;

  letter-spacing: 0.5px;

  margin-top: 4px;
}

.hud-mode-selector {
  display: flex;

  gap: 8px;

  margin-top: 16px;

  background: rgba(255, 255, 255, 0.03);

  padding: 5px;

  border-radius: 12px;

  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hud-btn {
  flex: 1;

  background: transparent;

  border: none;

  color: var(--text-light);

  padding: 9px;

  font-size: 0.8rem;

  font-weight: 600;

  border-radius: 9px;

  cursor: pointer;

  transition: all 0.2s ease;
}

.hud-btn:hover {
  color: #ffffff;
}

.hud-btn.active {
  background: var(--primary-color);

  color: #ffffff;

  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.45);
}

.telemetry-status-footer {
  margin-top: 20px;

  padding-top: 14px;

  border-top: 1px solid rgba(255, 255, 255, 0.08);

  font-size: 0.78rem;

  color: #22c55e;

  font-weight: 500;
}


/* ==========================================================================
   7. SECTION HEADERS
   ========================================================================== */

.section-header {
  text-align: center;

  max-width: 700px;

  margin: 0 auto 60px auto;
}

.section-header h2 {
  font-size: 2.6rem;

  color: var(--text-dark);

  margin-bottom: 12px;

  letter-spacing: -0.8px;

  font-weight: 700;
}

.section-header p {
  font-size: 1.1rem;

  color: var(--text-muted);

  margin: 0;

  line-height: 1.6;
}

.sub-badge {
  display: inline-block;

  color: var(--primary-color);

  font-weight: 700;

  text-transform: uppercase;

  font-size: 0.8rem;

  letter-spacing: 1.2px;

  margin-bottom: 12px;
}


/* ==========================================================================
   8. CORE SERVICES & 3D CARDS
   ========================================================================== */

.services-section {
  padding: 110px 0;

  background: #f8fafc;
}

.services-3d-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 30px;
}

.card-3d {
  position: relative;

  background: #ffffff;

  border-radius: 20px;

  padding: 40px 30px;

  border: 1px solid #e2e8f0;

  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.4s ease;

  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);

  overflow: hidden;
}

.card-3d::before {
  content: '';

  position: absolute;

  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  background: radial-gradient(
    600px circle at var(--mouse-x, 0) var(--mouse-y, 0),
    rgba(249, 115, 22, 0.07),
    transparent 40%
  );

  opacity: 0;

  transition: opacity 0.3s ease;

  pointer-events: none;
}

.card-3d:hover::before {
  opacity: 1;
}

.card-3d:hover {
  border-color: rgba(249, 115, 22, 0.5);

  box-shadow:
    0 30px 60px rgba(249, 115, 22, 0.12),
    0 0 25px rgba(249, 115, 22, 0.08);
}

.card-icon {
  font-size: 2.4rem;

  margin-bottom: 18px;

  transition: transform 0.3s ease;
}

.card-3d:hover .card-icon {
  transform: scale(1.1) rotate(3deg);
}

.card-tag {
  display: inline-block;

  font-size: 0.75rem;

  font-weight: 700;

  color: var(--primary-color);

  text-transform: uppercase;

  letter-spacing: 0.8px;

  margin-bottom: 10px;
}

.card-3d h3 {
  font-size: 1.45rem;

  margin-bottom: 14px;

  color: var(--text-dark);

  font-weight: 700;
}

.card-3d p {
  color: var(--text-muted);

  font-size: 0.95rem;

  line-height: 1.7;

  margin-bottom: 24px;
}

.card-action {
  text-decoration: none;

  color: var(--text-dark);

  font-weight: 700;

  font-size: 0.9rem;

  transition:
    color 0.2s ease,
    transform 0.2s ease;

  display: inline-flex;

  align-items: center;

  gap: 6px;
}

.card-action:hover {
  color: var(--primary-color);

  transform: translateX(4px);
}


/* ==========================================================================
   9. REGULATORY METRICS TRUST BAR
   ========================================================================== */

.metrics-bar-section {
  background: var(--bg-dark);

  padding: 50px 0;

  border-top: 1px solid rgba(255, 255, 255, 0.08);

  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.metrics-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 30px;

  text-align: center;
}

.metric-box h3 {
  font-size: 2.2rem;

  font-weight: 800;

  color: var(--primary-light);

  margin-bottom: 6px;

  letter-spacing: -0.5px;
}

.metric-box p {
  color: var(--text-light);

  font-size: 0.9rem;

  margin: 0;

  font-weight: 500;
}


/* ==========================================================================
   10. ENGINEERING WORKFLOW
   ========================================================================== */

.workflow-section {
  padding: 110px 0;

  background: #ffffff;
}

.workflow-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 30px;
}

.workflow-step {
  background: #f8fafc;

  border: 1px solid #e2e8f0;

  border-radius: 16px;

  padding: 35px 25px;

  position: relative;

  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}

.workflow-step:hover {
  transform: translateY(-5px);

  border-color: var(--primary-color);
}

.step-num {
  font-size: 2.5rem;

  font-weight: 800;

  color: rgba(249, 115, 22, 0.2);

  margin-bottom: 14px;

  line-height: 1;
}

.workflow-step h3 {
  font-size: 1.25rem;

  color: var(--text-dark);

  margin-bottom: 10px;

  font-weight: 700;
}

.workflow-step p {
  color: var(--text-muted);

  font-size: 0.93rem;

  line-height: 1.6;

  margin: 0;
}


/* ==========================================================================
   11. INTERACTIVE TECHNOLOGY EXPLORER
   ========================================================================== */

.tech-explorer-section {
  padding: 110px 0;

  background: #ffffff;

  border-top: 1px solid #e2e8f0;
}


/* Tab Buttons */

.tab-triggers {
  display: flex;

  justify-content: center;

  gap: 12px;

  margin-bottom: 40px;

  flex-wrap: wrap;
}

.tab-trigger {
  padding: 13px 26px;

  border-radius: 30px;

  background: #f1f5f9;

  border: 1px solid #cbd5e1;

  font-weight: 600;

  cursor: pointer;

  transition: all 0.25s ease;

  color: var(--text-muted);

  font-size: 0.95rem;
}

.tab-trigger:hover {
  background: #e2e8f0;

  color: var(--text-dark);

  transform: translateY(-2px);
}

.tab-trigger.active {
  background: var(--primary-color);

  color: #ffffff;

  border-color: var(--primary-color);

  box-shadow: 0 8px 25px rgba(249, 115, 22, 0.35);
}


/* Tab Content Container */

.tab-content-box {
  background: var(--bg-dark);

  color: #ffffff;

  border-radius: 24px;

  padding: 48px;

  border: 1px solid var(--border-glass);

  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}


/*
 * IMPORTANT:
 * Inactive panels must remain hidden.
 * This also respects the hidden attribute updated by main.js.
 */

.tab-content {
  display: none;

  animation: fadeInTab 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.tab-content.active {
  display: block;
}

/* Explicitly prevent hidden panels from being displayed. */

.tab-content[hidden] {
  display: none !important;
}

@keyframes fadeInTab {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Tab Layout */

.tab-split {
  display: grid;

  grid-template-columns: 1.35fr 0.65fr;

  gap: 50px;

  align-items: center;
}

.tab-info h3 {
  font-size: 2rem;

  margin-bottom: 16px;

  color: #ffffff;

  font-weight: 700;

  letter-spacing: -0.5px;
}

.tab-info p {
  color: var(--text-light);

  font-size: 1.05rem;

  line-height: 1.75;

  margin-bottom: 24px;
}

.spec-list {
  list-style: none;

  padding: 0;

  margin: 0;

  color: #cbd5e1;

  display: flex;

  flex-direction: column;

  gap: 12px;

  font-size: 0.95rem;
}


/* Tab Technical Badge */

.tab-telemetry-badge {
  background: rgba(255, 255, 255, 0.04);

  border: 1px solid rgba(255, 255, 255, 0.1);

  border-radius: 20px;

  padding: 35px;

  text-align: center;

  backdrop-filter: blur(12px);

  transition: border-color 0.3s ease;
}

.tab-telemetry-badge:hover {
  border-color: rgba(249, 115, 22, 0.4);
}

.badge-big {
  display: block;

  font-size: 3.2rem;

  font-weight: 800;

  color: var(--primary-light);

  margin-bottom: 8px;

  letter-spacing: -1px;
}

.badge-sub-label {
  display: block;

  font-size: 0.8rem;

  color: var(--text-light);

  text-transform: uppercase;

  letter-spacing: 1px;

  margin-top: 6px;
}


/* ==========================================================================
   12. CONSULTATION FORM
   ========================================================================== */

#configurator {
  scroll-margin-top: 90px;
}

#heat-loss-form {
  width: 100%;
}

#heat-loss-form label {
  display: block;
}

#heat-loss-form input,
#heat-loss-form select,
#heat-loss-form textarea {
  width: 100%;

  max-width: 100%;

  box-sizing: border-box;

  outline-offset: 2px;
}

#heat-loss-form input::placeholder,
#heat-loss-form textarea::placeholder {
  color: #94a3b8;
  opacity: 0.8;
}

#heat-loss-form input:focus,
#heat-loss-form select:focus,
#heat-loss-form textarea:focus {
  border-color: var(--primary-color) !important;

  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);

  outline: none;
}

#heat-loss-form select {
  cursor: pointer;
}

#heat-loss-form select option {
  background: #0f172a;
  color: #ffffff;
}

#heat-loss-form textarea {
  min-height: 110px;
}

#heat-loss-form .submit-btn {
  min-height: 50px;
}


/* ==========================================================================
   13. MOBILE NAVIGATION
   ========================================================================== */

/* Desktop: Hide hamburger */

.mobile-menu-toggle {
  display: none;

  background: transparent;

  border: none;

  cursor: pointer;

  width: 36px;
  height: 36px;

  position: relative;

  z-index: 1002;

  padding: 0;
}

.mobile-menu-toggle span {
  display: block;

  width: 100%;
  height: 2px;

  background-color: #ffffff;

  position: absolute;

  left: 0;

  transition: all 0.3s ease;
}

.mobile-menu-toggle span:nth-child(1) {
  top: 8px;
}

.mobile-menu-toggle span:nth-child(2) {
  top: 17px;
}

.mobile-menu-toggle span:nth-child(3) {
  top: 26px;
}


/* Hamburger to X */

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 17px;
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 17px;
}


/* ==========================================================================
   14. TABLET RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1100px) {

  .site-header nav ul,
  .site-header .nav-menu,
  .site-header .menu {
    gap: 20px !important;
  }

  .hero-container {
    gap: 35px;
  }

  .hero-title {
    font-size: 3rem;
  }

  .services-3d-grid {
    gap: 20px;
  }

  .workflow-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}


/* ==========================================================================
   15. MOBILE & TABLET NAVIGATION
   ========================================================================== */

@media (max-width: 900px) {

  /* Mobile menu button */

  .mobile-menu-toggle {
    display: block;
  }


  /* Navigation dropdown */

  .site-header .main-navigation {
    position: absolute;

    top: 80px;

    left: 0;

    width: 100%;

    max-height: 0;

    overflow: hidden;

    background: rgba(7, 10, 18, 0.98);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    border-bottom: 1px solid rgba(249, 115, 22, 0.2);

    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);

    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    z-index: 999;
  }

  .site-header .main-navigation.active {
    max-height: 80vh;

    overflow-y: auto;
  }


  /* Vertical menu */

  .site-header nav ul,
  .site-header .nav-menu,
  .site-header .menu {
    flex-direction: column !important;

    gap: 16px !important;

    padding: 24px !important;

    text-align: center !important;
  }

  .site-header nav ul li,
  .site-header .nav-menu li,
  .site-header .menu li {
    width: 100%;
  }

  .site-header nav ul li a,
  .site-header .nav-menu li a,
  .site-header .menu li a {
    display: inline-block;

    font-size: 1.05rem !important;

    padding: 5px 0;
  }


  /* Hero */

  .hero-container {
    grid-template-columns: 1fr;

    gap: 45px;
  }

  .hero-title {
    font-size: 2.7rem;
  }

  .hero-content-left,
  .hero-right-visual {
    transform: none !important;
  }


  /* Services */

  .services-3d-grid {
    grid-template-columns: repeat(2, 1fr);
  }


  /* Technology explorer */

  .tab-split {
    grid-template-columns: 1fr;

    gap: 30px;
  }

  .tab-content-box {
    padding: 35px;
  }


  /* Metrics and workflow */

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);

    gap: 35px 20px;
  }

  .workflow-grid {
    grid-template-columns: repeat(2, 1fr);
  }


  /* Section spacing */

  .services-section,
  .workflow-section,
  .tech-explorer-section {
    padding: 85px 0;
  }

}


/* ==========================================================================
   16. SMALL MOBILE RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 600px) {

  .container {
    padding-left: 20px;
    padding-right: 20px;
  }


  /* Header */

  .site-header .header-container {
    height: 70px !important;

    padding: 0 20px !important;
  }

  .site-header .logo a {
    font-size: 1.3rem;
  }

  .site-header .main-navigation {
    top: 70px;
  }


  /* Hero */

  .hero-section {
    padding: 125px 0 75px 0;
  }

  .hero-title {
    font-size: 2.2rem;

    line-height: 1.18;
  }

  .hero-subtitle {
    font-size: 1rem;

    line-height: 1.7;
  }

  .hero-tech-badge {
    font-size: 0.68rem;

    letter-spacing: 0.7px;

    padding: 7px 12px;
  }

  .hero-cta-group {
    flex-direction: column;

    align-items: stretch;
  }

  .hero-cta-group .btn {
    width: 100%;
  }


  /* Estimator */

  .glass-telemetry-card {
    padding: 22px;

    border-radius: 18px;
  }

  .telemetry-grid {
    grid-template-columns: 1fr 1fr;

    gap: 10px;
  }

  .telemetry-item {
    padding: 13px;
  }

  .telemetry-value {
    font-size: 1.45rem;
  }

  .telemetry-label {
    font-size: 0.65rem;
  }

  .card-title {
    font-size: 0.68rem;

    letter-spacing: 0.6px;
  }

  .hud-status-badge {
    font-size: 0.58rem;

    padding: 4px 7px;
  }

  .hud-btn {
    font-size: 0.72rem;
  }


  /* Section headers */

  .section-header {
    margin-bottom: 40px;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .section-header p {
    font-size: 1rem;
  }


  /* Services */

  .services-3d-grid {
    grid-template-columns: 1fr;
  }

  .card-3d {
    padding: 30px 24px;
  }


  /* Metrics */

  .metrics-grid {
    grid-template-columns: 1fr 1fr;

    gap: 30px 15px;
  }

  .metric-box h3 {
    font-size: 1.7rem;
  }

  .metric-box p {
    font-size: 0.8rem;
  }


  /* Workflow */

  .workflow-grid {
    grid-template-columns: 1fr;

    gap: 20px;
  }


  /* Technology explorer */

  .tab-triggers {
    flex-direction: column;

    align-items: stretch;

    gap: 10px;
  }

  .tab-trigger {
    width: 100%;

    padding: 13px 18px;
  }

  .tab-content-box {
    padding: 24px 20px;

    border-radius: 18px;
  }

  .tab-info h3 {
    font-size: 1.55rem;
  }

  .tab-info p {
    font-size: 0.95rem;
  }

  .spec-list {
    font-size: 0.85rem;
  }

  .tab-telemetry-badge {
    padding: 28px 20px;
  }

  .badge-big {
    font-size: 2.5rem;
  }


  /* Consultation form */

  #heat-loss-form > div:first-child {
    grid-template-columns: 1fr !important;

    gap: 16px !important;
  }

  #heat-loss-form {
    gap: 17px !important;
  }

  #configurator .glass-telemetry-card {
    padding: 22px;
  }


  /* Section spacing */

  .services-section,
  .workflow-section,
  .tech-explorer-section {
    padding: 70px 0;
  }

}


/* ==========================================================================
   17. EXTRA SMALL MOBILE DEVICES
   ========================================================================== */

@media (max-width: 380px) {

  .hero-title {
    font-size: 1.9rem;
  }

  .telemetry-grid {
    grid-template-columns: 1fr;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .glass-telemetry-card {
    padding: 18px;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

}


/* ==========================================================================
   18. REDUCED MOTION ACCESSIBILITY
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;

    animation-iteration-count: 1 !important;

    transition-duration: 0.01ms !important;

    scroll-behavior: auto !important;
  }

  .scroll-reveal {
    opacity: 1;

    transform: none;

    will-change: auto;
  }

}



/* ==========================================================================
   19. ADVANCED 3D, DEEP SCROLL & CINEMATIC EFFECTS
   ========================================================================== */

/* Global depth and smoother rendering */

.hero-section,
.services-section,
.workflow-section,
.tech-explorer-section {
    position: relative;
    isolation: isolate;
}

.card-3d,
.glass-telemetry-card,
.workflow-step,
.tab-telemetry-badge {
    transform-style: preserve-3d;
    backface-visibility: hidden;
}


/* ==========================================================================
   20. CINEMATIC HERO BACKGROUND
   ========================================================================== */

.hero-section {
    perspective: 1200px;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;

    background:
        linear-gradient(
            135deg,
            rgba(249, 115, 22, 0.08),
            transparent 40%,
            rgba(59, 130, 246, 0.06)
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 49px,
            rgba(255, 255, 255, 0.025) 50px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 49px,
            rgba(255, 255, 255, 0.025) 50px
        );

    opacity: 0.65;
    mask-image: linear-gradient(to bottom, black, transparent 95%);
}

.hero-radial-overlay {
    background:
        radial-gradient(
            circle at 75% 35%,
            rgba(249, 115, 22, 0.23),
            transparent 45%
        ),
        radial-gradient(
            circle at 15% 80%,
            rgba(37, 99, 235, 0.10),
            transparent 45%
        );
}

.hero-content-left {
    transform-style: preserve-3d;
}

.hero-tech-badge {
    animation: badgeEntrance 0.9s ease both;
}

.hero-title {
    text-wrap: balance;
    animation: heroTextEntrance 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-subtitle {
    animation: heroTextEntrance 1s 0.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-cta-group {
    animation: heroTextEntrance 1s 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes heroTextEntrance {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes badgeEntrance {
    from {
        opacity: 0;
        transform: translateY(-15px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* ==========================================================================
   21. FLOATING 3D ESTIMATOR CARD
   ========================================================================== */

.glass-telemetry-card {
    transform: translateZ(0);
    transition:
        box-shadow 0.45s ease,
        border-color 0.45s ease,
        transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);

    animation: telemetryFloat 6s ease-in-out infinite;
}

@keyframes telemetryFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-9px);
    }
}

.glass-telemetry-card:hover {
    transform: translateY(-12px) scale(1.015);
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.65),
        0 0 55px rgba(249, 115, 22, 0.22);
}

.telemetry-item {
    transform: translateZ(10px);
}

.telemetry-item:hover {
    transform: translateY(-5px) translateZ(20px);
}


/* ==========================================================================
   22. ADVANCED SERVICE CARD DEPTH
   ========================================================================== */

.services-3d-grid {
    perspective: 1400px;
}

.card-3d {
    transform:
        perspective(1000px)
        translateZ(0);

    transform-origin: center center;

    transition:
        transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.5s ease,
        border-color 0.4s ease;

    will-change: transform;
}

.card-3d::after {
    content: "";
    position: absolute;
    inset: 0;

    border-radius: inherit;

    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.65),
        transparent 35%,
        transparent 70%,
        rgba(249, 115, 22, 0.08)
    );

    opacity: 0;
    pointer-events: none;

    transition: opacity 0.4s ease;
}

.card-3d:hover {
    transform:
        perspective(1000px)
        translateY(-12px)
        rotateX(3deg)
        rotateY(-2deg)
        scale(1.015);

    box-shadow:
        0 35px 70px rgba(15, 23, 42, 0.13),
        0 10px 30px rgba(249, 115, 22, 0.12);
}

.card-3d:hover::after {
    opacity: 1;
}

.card-3d .card-icon {
    transform: translateZ(25px);
}

.card-3d h3 {
    transform: translateZ(15px);
}

.card-3d p,
.card-3d .card-action {
    position: relative;
    z-index: 1;
}


/* ==========================================================================
   23. DEEP SCROLL REVEAL VARIATIONS
   ========================================================================== */

/* These variants can be assigned by JavaScript to existing reveal elements. */

.scroll-reveal.reveal-from-left:not(.is-visible) {
    opacity: 0;
    transform: translateX(-65px) translateY(15px);
    filter: blur(5px);
}

.scroll-reveal.reveal-from-right:not(.is-visible) {
    opacity: 0;
    transform: translateX(65px) translateY(15px);
    filter: blur(5px);
}

.scroll-reveal.reveal-from-bottom:not(.is-visible) {
    opacity: 0;
    transform: translateY(65px) scale(0.96);
    filter: blur(4px);
}

.scroll-reveal.reveal-zoom:not(.is-visible) {
    opacity: 0;
    transform: scale(0.82);
    filter: blur(5px);
}

.scroll-reveal.reveal-rotate:not(.is-visible) {
    opacity: 0;
    transform: perspective(900px) rotateX(12deg) translateY(35px);
    filter: blur(4px);
}

.scroll-reveal.is-visible {
    opacity: 1;
    transform: none;
    filter: blur(0);
}


/* Staggered service card entrances */

.services-3d-grid .card-3d:nth-child(2) {
    transition-delay: 100ms;
}

.services-3d-grid .card-3d:nth-child(3) {
    transition-delay: 200ms;
}


/* ==========================================================================
   24. WORKFLOW 3D INTERACTIONS
   ========================================================================== */

.workflow-grid {
    perspective: 1200px;
}

.workflow-step {
    transition:
        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.4s ease,
        border-color 0.3s ease;

    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.035);
}

.workflow-step:hover {
    transform:
        translateY(-9px)
        rotateX(3deg)
        scale(1.015);

    border-color: rgba(249, 115, 22, 0.65);

    box-shadow:
        0 25px 45px rgba(15, 23, 42, 0.09),
        0 8px 20px rgba(249, 115, 22, 0.08);
}

.step-num {
    transition:
        color 0.35s ease,
        transform 0.35s ease;
}

.workflow-step:hover .step-num {
    color: rgba(249, 115, 22, 0.55);
    transform: translateY(-4px) scale(1.05);
}


/* ==========================================================================
   25. TECHNOLOGY PANEL DEPTH
   ========================================================================== */

.tab-content-box {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.tab-content-box::before {
    content: "";
    position: absolute;
    inset: -50%;

    z-index: -1;
    pointer-events: none;

    background: radial-gradient(
        circle,
        rgba(249, 115, 22, 0.12),
        transparent 55%
    );

    animation: technologyGlow 9s ease-in-out infinite alternate;
}

@keyframes technologyGlow {
    from {
        transform: translate(-8%, -5%) scale(0.9);
    }

    to {
        transform: translate(8%, 5%) scale(1.15);
    }
}

.tab-telemetry-badge {
    transform: translateZ(15px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);

    transition:
        transform 0.4s ease,
        border-color 0.4s ease,
        box-shadow 0.4s ease;
}

.tab-telemetry-badge:hover {
    transform: translateY(-7px) translateZ(25px);

    border-color: rgba(249, 115, 22, 0.65);

    box-shadow:
        0 25px 45px rgba(0, 0, 0, 0.25),
        0 0 25px rgba(249, 115, 22, 0.12);
}

.tab-trigger.active {
    transform: translateY(-2px);
}


/* ==========================================================================
   26. PREMIUM BUTTON INTERACTIONS
   ========================================================================== */

.btn {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.btn::before {
    content: "";
    position: absolute;

    top: 0;
    left: -120%;

    width: 70%;
    height: 100%;

    z-index: -1;

    background: linear-gradient(
        110deg,
        transparent,
        rgba(255, 255, 255, 0.25),
        transparent
    );

    transform: skewX(-20deg);

    transition: left 0.65s ease;
}

.btn:hover::before {
    left: 150%;
}

.btn-glow:hover {
    transform: translateY(-4px) scale(1.025);
}


/* ==========================================================================
   27. RESPONSIVE ANIMATION ADJUSTMENTS
   ========================================================================== */

@media (max-width: 900px) {
    .card-3d:hover,
    .workflow-step:hover,
    .tab-telemetry-badge:hover {
        transform: translateY(-5px);
    }

    .glass-telemetry-card {
        animation: none;
    }

    .hero-section::before {
        opacity: 0.35;
    }
}

@media (max-width: 600px) {
    .card-3d:hover,
    .workflow-step:hover {
        transform: translateY(-4px);
    }

    .hero-title,
    .hero-subtitle,
    .hero-cta-group {
        animation-duration: 0.65s;
    }

    .tab-content-box::before {
        animation: none;
    }
}


/* ==========================================================================
   28. ACCESSIBILITY: REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .glass-telemetry-card,
    .hero-tech-badge,
    .hero-title,
    .hero-subtitle,
    .hero-cta-group,
    .tab-content-box::before {
        animation: none !important;
    }

    .card-3d,
    .workflow-step,
    .tab-telemetry-badge,
    .btn {
        transition: none !important;
    }

    .card-3d:hover,
    .workflow-step:hover,
    .tab-telemetry-badge:hover,
    .glass-telemetry-card:hover {
        transform: none !important;
    }

    .scroll-reveal,
    .scroll-reveal:not(.is-visible) {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}
