﻿/* ==========================================================================
   B & B ELECTRICAL - WEBSITE CSS ARCHITECTURE
   Core Theme: Dark, Cyan, Purple, Glassmorphism, 3D
   ========================================================================== */

/* --- 1. CSS VARIABLES --- */
:root {
  /* Color Palette */
  --color-bg-base: #050814;
  --color-bg-surface: #0a0f25;
  --color-bg-glass: rgba(16, 24, 52, 0.6);
  --color-bg-glass-hover: rgba(25, 38, 77, 0.8);

  --color-primary: #4facfe;
  --color-primary-glow: rgba(79, 172, 254, 0.4);
  --color-secondary: #7a28cb;
  --color-secondary-glow: rgba(122, 40, 203, 0.4);

  --color-text-main: #f0f4f8;
  --color-text-muted: #94a3b8;
  --color-border: rgba(255, 255, 255, 0.08);

  /* Typography */
  --font-heading: "Orbitron", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Metrics */
  --header-height: 85px;
  --section-padding: 100px;
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- 2. RESET & BASE --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-base);
  color: var(--color-text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-base);
}
::-webkit-scrollbar-thumb {
  background: var(--color-bg-surface);
  border-radius: 5px;
  border: 1px solid var(--color-border);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* Typography Base */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

p {
  margin-bottom: 1rem;
  color: var(--color-text-muted);
}

a {
  text-decoration: none;
  color: var(--color-primary);
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-padding {
  padding: var(--section-padding) 0;
}

.text-center {
  text-align: center;
}

/* Utilities & Gradients */
.text-gradient {
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-secondary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-primary {
  background: var(--color-primary);
  color: #fff;
}
.bg-secondary {
  background: var(--color-secondary);
  color: #fff;
}

/* Glassmorphism Panel Base */
.glass-panel {
  background: var(--color-bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.glass-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.03),
    transparent
  );
  transform: skewX(-20deg);
  transition: 0.7s;
}
.glass-panel:hover::before {
  left: 150%;
}

/* --- 3. BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition-normal);
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), #2b80ff);
  color: #fff;
  box-shadow: 0 4px 15px var(--color-primary-glow);
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2b80ff, var(--color-primary));
  z-index: -1;
  transition: opacity 0.3s;
  opacity: 0;
}

.btn-primary:hover::after {
  opacity: 1;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--color-primary-glow);
  color: #fff;
}

.btn-secondary {
  background: linear-gradient(135deg, var(--color-secondary), #9d4edd);
  color: #fff;
  box-shadow: 0 4px 15px var(--color-secondary-glow);
}
.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--color-secondary-glow);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--color-text-main);
  border: 1px solid var(--color-border);
}
.btn-outline:hover {
  border-color: var(--color-primary);
  background: rgba(79, 172, 254, 0.1);
  transform: translateY(-3px);
}

.btn-glow {
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(79, 172, 254, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(79, 172, 254, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(79, 172, 254, 0);
  }
}

/* --- 4. HEADER [STRICTLY CONSISTENT] --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(5, 8, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: var(--transition-normal);
}

.header.scrolled {
  height: 70px;
  background: rgba(5, 8, 20, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.header-container {
  height: 100%;
  display: flex;
  align-items: center;
}

.navbar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo img {
  height: 40px;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
}

.nav-menu {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  color: var(--color-text-main);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.5rem 0;
  text-transform: uppercase;
  font-family: var(--font-heading);
  letter-spacing: 1px;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-fast);
  box-shadow: 0 0 8px var(--color-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
  text-shadow: 0 0 10px rgba(79, 172, 254, 0.3);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Hamburger */
.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
  z-index: 1001;
}

.hamburger .bar {
  display: block;
  width: 25px;
  height: 2px;
  margin: 5px auto;
  background-color: var(--color-text-main);
  transition: var(--transition-fast);
}

/* --- 5. HERO SECTION (INDEX) --- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(
      circle at 15% 50%,
      rgba(79, 172, 254, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 85% 30%,
      rgba(122, 40, 203, 0.08) 0%,
      transparent 50%
    );
  z-index: 0;
}

.hero-gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  opacity: 0.5;
  animation: float-orb 10s infinite alternate ease-in-out;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: var(--color-primary);
  top: -100px;
  right: -100px;
}
.orb-2 {
  width: 300px;
  height: 300px;
  background: var(--color-secondary);
  bottom: 10%;
  left: -50px;
  animation-delay: -5s;
}

@keyframes float-orb {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(-30px, 50px) scale(1.1);
  }
}

.hero-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
  letter-spacing: 1px;
}
.badge-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
  animation: blink 2s infinite;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.hero-subtitle {
  font-size: 1.1rem;
  max-width: 90%;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.stat-item h4 {
  display: inline-block;
  font-size: 2.5rem;
  margin-bottom: 0;
  background: linear-gradient(to right, #fff, var(--color-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-item span {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-primary);
  font-weight: bold;
}
.stat-item p {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 5px;
}

/* Floating Dashboard Graphic */
.floating-dashboard {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
  transition: transform 0.5s ease;
  animation: float 6s ease-in-out infinite;
}

.floating-dashboard:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

@keyframes float {
  0%,
  100% {
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg) translateY(0);
  }
  50% {
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg)
      translateY(-20px);
  }
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.dash-dots {
  display: flex;
  gap: 6px;
}
.dash-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ef4444;
}
.dash-dots span:nth-child(2) {
  background: #eab308;
}
.dash-dots span:nth-child(3) {
  background: #22c55e;
}

.dash-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.chart-container {
  height: 150px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--border-radius-sm);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-end;
  padding: 10px;
  gap: 10px;
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  gap: 8px;
}

.bar {
  width: 100%;
  background: linear-gradient(
    to top,
    var(--color-secondary),
    var(--color-primary)
  );
  border-radius: 4px 4px 0 0;
  opacity: 0.8;
  position: relative;
  overflow: hidden;
}
.bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
}

.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.metric-box {
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem;
  border-radius: var(--border-radius-sm);
  display: flex;
  flex-direction: column;
}
.metric-box.outline {
  background: transparent;
  border: 1px dashed var(--color-border);
}
.metric-box span {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 5px;
}
.metric-box strong {
  font-size: 1.5rem;
  font-family: var(--font-heading);
  color: #10b981;
}

/* --- 6. TICKER --- */
.ticker-wrapper {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
  overflow: hidden;
  display: flex;
}
.ticker-track {
  display: flex;
  animation: scroll-ticker 30s linear infinite;
  width: max-content;
}
.ticker-item {
  padding: 0 3rem;
  font-family: var(--font-heading);
  color: var(--color-text-muted);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.ticker-item i {
  color: var(--color-primary);
}
@keyframes scroll-ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* --- 7. ABOUT SECTION --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  perspective: 1000px;
}
.img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}

.abstract-shape {
  position: absolute;
  width: 80%;
  height: 80%;
  background: linear-gradient(
    45deg,
    var(--color-primary),
    var(--color-secondary)
  );
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: morph 8s ease-in-out infinite;
  opacity: 0.6;
  filter: blur(20px);
}
@keyframes morph {
  0% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
  50% {
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
  }
  100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
}

.overlay-card {
  position: relative;
  z-index: 2;
  transform: translateZ(50px);
  text-align: center;
  width: 250px;
}
.overlay-card i {
  font-size: 3rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 10px var(--color-primary-glow));
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.subtitle {
  color: var(--color-primary);
  font-family: var(--font-heading);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 10px;
}
.section-desc {
  max-width: 600px;
  margin: 0 auto 3rem auto;
  font-size: 1.1rem;
}

.lead-text {
  font-size: 1.2rem;
  color: #fff;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.feature-list {
  margin-bottom: 2rem;
}
.feature-list li {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  font-family: var(--font-heading);
  color: #fff;
}
.feature-list i {
  color: var(--color-primary);
  font-size: 1.2rem;
}

/* --- 8. SERVICES --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  position: relative;
  border-radius: var(--border-radius-md);
  background: var(--color-bg-surface);
  padding: 1px; /* for gradient border */
  overflow: hidden;
  cursor: pointer;
  transform-style: preserve-3d;
}

.card-border {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    transparent,
    rgba(255, 255, 255, 0.05)
  );
  z-index: 0;
  transition: 0.5s;
}
.service-card:hover .card-border {
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-secondary)
  );
}

.card-inner {
  position: relative;
  background: var(--color-bg-base);
  height: 100%;
  border-radius: calc(var(--border-radius-md) - 1px);
  padding: 2.5rem 2rem;
  z-index: 1;
  transition: var(--transition-normal);
}

.service-card:hover .card-inner {
  background: rgba(10, 15, 37, 0.9);
}

.icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  transition: 0.3s;
}
.primary-glow i {
  color: var(--color-primary);
}
.secondary-glow i {
  color: var(--color-secondary);
}

.service-card:hover .icon-wrapper {
  transform: scale(1.1) translateZ(20px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}
.service-card:hover .primary-glow {
  background: var(--color-primary-glow);
  border-color: var(--color-primary);
}
.service-card:hover .secondary-glow {
  background: var(--color-secondary-glow);
  border-color: var(--color-secondary);
}

.card-inner h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  transform: translateZ(10px);
}
.card-inner p {
  font-size: 0.95rem;
  margin-bottom: 2rem;
  transform: translateZ(5px);
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: bold;
  text-transform: uppercase;
  transform: translateZ(15px);
}
.service-link i {
  transition: 0.3s;
}
.service-link:hover i {
  transform: translateX(5px);
}

/* --- 9. INDUSTRIES --- */
.industries-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.industry-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.tab-btn {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  font-family: var(--font-heading);
  cursor: pointer;
  transition: 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tab-btn:hover,
.tab-btn.active {
  background: rgba(79, 172, 254, 0.1);
  border-color: var(--color-primary);
  color: var(--color-text-main);
  box-shadow: 0 0 15px var(--color-primary-glow);
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s;
}
.tab-content.active {
  display: block;
}

.tab-content .glass-panel {
  padding: 3rem;
  text-align: left;
}
.tab-content h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}
.tab-content p {
  font-size: 1.1rem;
  color: #fff;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- 10. CALCULATOR --- */
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.check-list {
  margin-top: 2rem;
}
.check-list li {
  margin-bottom: 15px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.check-list i {
  color: #10b981;
}

.calc-form {
  margin-bottom: 2rem;
}
.range-group {
  margin-bottom: 1.5rem;
}
.range-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-family: var(--font-heading);
}
.range-header span {
  color: var(--color-primary);
  font-weight: bold;
}

/* Custom Range Input */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  margin-top: -8px;
  box-shadow: 0 0 10px var(--color-primary);
}
input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 4px;
  cursor: pointer;
  background: var(--color-border);
  border-radius: 2px;
}
input[type="range"]:focus {
  outline: none;
}

.calc-results {
  display: flex;
  gap: 1rem;
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
}
.result-box {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  padding: 1.5rem;
  border-radius: var(--border-radius-sm);
  text-align: center;
  border: 1px solid var(--color-border);
}
.result-box.highlighted {
  background: rgba(79, 172, 254, 0.05);
  border-color: var(--color-primary);
  box-shadow: inset 0 0 20px rgba(79, 172, 254, 0.1);
}
.result-box span {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--color-text-muted);
}
.result-box strong {
  display: block;
  font-size: 2rem;
  font-family: var(--font-heading);
}
.text-primary {
  color: var(--color-primary);
}

/* --- 11. DASHBOARD PREVIEW --- */
.mockup-window {
  background: #0f172a;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  max-width: 1000px;
  margin: 0 auto;
}

.mockup-header {
  background: #1e293b;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--color-border);
}
.mockup-header .dots span {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #475569;
  margin-right: 5px;
}
.address-bar {
  background: #0f172a;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  width: 60%;
  text-align: center;
  font-family: monospace;
}

.mockup-body {
  display: flex;
  height: 400px;
}
.sidebar {
  width: 60px;
  background: #1e293b;
  border-right: 1px solid var(--color-border);
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}
.nav-item {
  height: 30px;
  border-radius: 6px;
}
.nav-item.active {
  background: var(--color-primary-glow);
  border: 1px solid var(--color-primary);
}

.main-area {
  flex: 1;
  padding: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.top-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.ghost-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 15px;
}
.skeleton-title {
  width: 50%;
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  margin-bottom: 15px;
}
.skeleton-metric {
  width: 80%;
  height: 25px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 5px;
}

.chart-area {
  flex: 1;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  gap: 20px;
}
.skeleton-chart {
  width: 100%;
  height: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}
.skeleton-chart .line {
  position: absolute;
  bottom: 0;
  width: 4px;
  border-radius: 2px;
  background: var(--color-primary);
  opacity: 0.5;
}
.line-1 {
  left: 20%;
  height: 40%;
  background: var(--color-secondary);
}
.line-2 {
  left: 50%;
  height: 70%;
}
.line-3 {
  left: 80%;
  height: 90%;
  background: #10b981;
}

.overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  background: rgba(10, 15, 37, 0.8);
  backdrop-filter: blur(5px);
  padding: 20px 40px;
  border-radius: 12px;
  border: 1px solid var(--color-primary);
  box-shadow: 0 0 30px var(--color-primary-glow);
}
.overlay-text h3 {
  margin-bottom: 5px;
  font-size: 1.5rem;
}

/* --- 12. TESTIMONIALS --- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.testimonial-card {
  padding: 2.5rem;
  position: relative;
}
.quote-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.05);
}
.stars {
  color: #eab308;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.review-text {
  font-style: italic;
  margin-bottom: 2rem;
  color: #e2e8f0;
}

.client-info {
  display: flex;
  align-items: center;
  gap: 15px;
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
}
.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: bold;
  font-size: 1.2rem;
}
.client-info h4 {
  margin-bottom: 2px;
  font-size: 1.1rem;
}
.client-info span {
  font-size: 0.85rem;
  color: var(--color-primary);
  text-transform: uppercase;
}

/* --- 13. CTA SECTION --- */
.cta-section {
  position: relative;
  background: var(--color-bg-surface);
  overflow: hidden;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.cta-bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60vw;
  height: 60vw;
  background: radial-gradient(
    circle,
    var(--color-primary-glow) 0%,
    transparent 70%
  );
  z-index: 0;
  opacity: 0.5;
}
.cta-section .container {
  position: relative;
  z-index: 1;
}
.cta-section h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.cta-section p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2rem auto;
  color: #fff;
}
.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

/* --- 14. FOOTER [STRICTLY CONSISTENT] --- */
.footer {
  position: relative;
  background: #03050a;
  padding-top: 5rem;
  border-top: 1px solid var(--color-border);
  overflow: hidden;
}

.footer-grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  z-index: 0;
  opacity: 0.5;
}

.footer .container {
  position: relative;
  z-index: 1;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-logo img {
  height: 45px;
  margin-bottom: 1.5rem;
  filter: grayscale(1) brightness(2);
  opacity: 0.8;
  transition: 0.3s;
}
.footer-logo:hover img {
  filter: none;
  opacity: 1;
}
.footer-about p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 15px;
}
.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-main);
  transition: 0.3s;
}
.social-link:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-3px);
}

.footer-links h3,
.footer-contact h3 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 10px;
}
.footer-links h3::after,
.footer-contact h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--color-primary);
}

.footer-links ul li {
  margin-bottom: 12px;
}
.footer-links a {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  display: inline-block;
  transition: 0.3s;
}
.footer-links a:hover {
  color: var(--color-primary);
  transform: translateX(5px);
}

.footer-contact ul li {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  align-items: flex-start;
}
.footer-contact i {
  color: var(--color-primary);
  margin-top: 4px;
}
.footer-contact a {
  color: var(--color-text-muted);
}
.footer-contact a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: 2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.footer-legal {
  display: flex;
  gap: 15px;
  align-items: center;
}
.footer-legal a {
  color: var(--color-text-muted);
}
.footer-legal a:hover {
  color: var(--color-primary);
}

/* --- 15. INTERNAL / LEGAL PAGES --- */
.inner-page {
  padding-top: var(--header-height);
}

.page-header {
  position: relative;
  padding: 100px 0;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-surface);
  overflow: hidden;
}
.page-header-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    rgba(122, 40, 203, 0.1) 0%,
    transparent 70%
  );
}
.page-title {
  font-size: 3.5rem;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.page-subtitle {
  font-size: 1.2rem;
  color: var(--color-text-muted);
}

.content-wrapper {
  padding: 4rem;
  margin-top: -50px;
}
.legal-content h2 {
  color: var(--color-primary);
  margin: 2rem 0 1rem 0;
  font-size: 1.8rem;
}
.legal-content p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #cbd5e1;
}
.legal-content ul {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
  list-style-type: disc;
  color: #cbd5e1;
}
.legal-content li {
  margin-bottom: 10px;
}

/* Contact Page Form */
.contact-page-wrapper {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-top: -50px;
}
.contact-info-block {
  padding: 3rem 2rem;
}
.contact-info-block h3 {
  margin-bottom: 1rem;
  color: var(--color-primary);
}
.contact-info-block > p {
  margin-bottom: 2rem;
}
.contact-info-item {
  display: flex;
  gap: 15px;
  margin-bottom: 1.5rem;
}
.info-icon {
  width: 45px;
  height: 45px;
  border-radius: 10px;
  background: rgba(79, 172, 254, 0.1);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.info-text h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  font-family: var(--font-body);
}
.info-text p {
  font-size: 0.95rem;
  margin: 0;
}

.contact-form-block {
  padding: 3rem;
}
.contact-form h3 {
  margin-bottom: 2rem;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: #fff;
}

.glass-input {
  width: 100%;
  padding: 1rem 1.2rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: 0.3s;
}
.glass-input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: rgba(79, 172, 254, 0.05);
  box-shadow: 0 0 10px rgba(79, 172, 254, 0.2);
}

.custom-select-wrapper {
  position: relative;
}
.custom-select-wrapper::after {
  content: "\f107";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-primary);
  pointer-events: none;
}
select.glass-input {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
select.glass-input option {
  background: var(--color-bg-surface);
  color: #fff;
}

textarea.glass-input {
  resize: vertical;
  min-height: 120px;
}

/* --- 16. UTILITIES (Chat & Back to Top) --- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  transform: translateY(20px);
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: #2b80ff;
  transform: translateY(-5px);
}

/* Live Chat Widget */
.live-chat-widget {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 1000;
}
.chat-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-secondary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(122, 40, 203, 0.4);
  transition: 0.3s;
}
.chat-button:hover {
  transform: scale(1.1);
}

.chat-window {
  position: absolute;
  bottom: 80px;
  left: 0;
  width: 320px;
  background: var(--color-bg-surface);
  border-radius: var(--border-radius-md);
  padding: 0;
  transform-origin: bottom left;
  transform: scale(0);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
}
.chat-window.active {
  transform: scale(1);
  opacity: 1;
  visibility: visible;
}

.chat-header {
  background: linear-gradient(
    to right,
    var(--color-secondary),
    var(--color-primary)
  );
  padding: 15px 20px;
  border-radius: 16px 16px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-title {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.online-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 5px #10b981;
}
.close-chat {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

.chat-body {
  height: 250px;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.message {
  display: flex;
  gap: 10px;
  max-width: 85%;
}
.message p {
  padding: 10px 15px;
  border-radius: 12px;
  font-size: 0.9rem;
  margin: 0;
  color: #fff;
}
.msg-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.message.received p {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  border-top-left-radius: 0;
}
.message.sent {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.message.sent p {
  background: var(--color-primary);
  border-top-right-radius: 0;
}

.chat-footer {
  padding: 15px;
  border-top: 1px solid var(--color-border);
  display: flex;
  gap: 10px;
}
.chat-footer input {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 8px 15px;
  color: #fff;
  outline: none;
}
.chat-footer button {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--color-primary);
  border: none;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
}
.chat-footer button:hover {
  background: #2b80ff;
}

/* --- 17. ANIMATIONS (Scroll Reveal) --- */
.reveal-up {
  opacity: 0;
  transform: translateY(50px);
  transition: 0.8s ease-out;
}
.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: 0.8s ease-out;
}
.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: 0.8s ease-out;
}
.reveal-fade {
  opacity: 0;
  transition: 1s ease-out;
}

.active.reveal-up {
  opacity: 1;
  transform: translateY(0);
}
.active.reveal-left {
  opacity: 1;
  transform: translateX(0);
}
.active.reveal-right {
  opacity: 1;
  transform: translateX(0);
}
.active.reveal-fade {
  opacity: 1;
}

/* --- 18. MEDIA QUERIES --- */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3.5rem;
  }
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 4rem;
  }
  .hero-subtitle {
    margin: 0 auto 2.5rem auto;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .floating-dashboard {
    margin: 0 auto;
    max-width: 600px;
    transform: none;
    animation: float-mobile 4s ease-in-out infinite;
  }
  @keyframes float-mobile {
    0%,
    100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-15px);
    }
  }

  .about-grid,
  .calc-grid,
  .contact-page-wrapper {
    grid-template-columns: 1fr;
  }
  .calc-info,
  .contact-info-block {
    text-align: center;
  }
  .check-list li {
    justify-content: center;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
  }

  .hamburger {
    display: block;
  }
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: var(--header-height);
    flex-direction: column;
    background: rgba(5, 8, 20, 0.98);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    padding: 2rem 0;
    backdrop-filter: blur(10px);
    height: calc(100vh - var(--header-height));
  }
  .nav-menu.active {
    left: 0;
  }
  .nav-item {
    margin: 15px 0;
  }

  .hero-title {
    font-size: 2.5rem;
  }
  .hero-buttons {
    flex-direction: column;
  }
  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    border-top: none;
    padding-top: 0;
  }

  .industries-wrapper {
    padding: 0 1rem;
  }
  .mockup-body {
    flex-direction: column;
    height: auto;
  }
  .sidebar {
    width: 100%;
    flex-direction: row;
    justify-content: center;
    padding: 10px;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }
  .top-cards {
    grid-template-columns: 1fr;
  }
  .overlay-text {
    width: 90%;
    padding: 15px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .footer-main {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  .footer-about p {
    margin: 0 auto 1.5rem auto;
  }
  .footer-social,
  .footer-contact ul li {
    justify-content: center;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .content-wrapper {
    padding: 2rem;
    margin-top: -30px;
  }
  .page-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .glass-panel {
    padding: 1.5rem;
  }
  .calc-results {
    flex-direction: column;
  }
  .header-actions .btn {
    display: none;
  } /* Hide quote button on very small screens to fit menu */
}

