/* ==========================================================================
   Insight Loop - Digital Marketing Theme
   Base: #F9FAFB | Gradient: #06B6D4 -> #3B82F6 | Accent: #10B981
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Variables & Configuration
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette */
  --bg-base: #f9fafb;
  --bg-alt: #ffffff;
  --bg-dark: #0f172a;
  --bg-card: #ffffff;

  --text-main: #1f2937;
  --text-muted: #6b7280;
  --text-light: #f3f4f6;

  --primary-start: #06b6d4; /* Cyan */
  --primary-end: #3b82f6; /* Blue */
  --accent: #10b981; /* Emerald */
  --accent-hover: #059669;
  --danger: #ef4444;

  --gradient-primary: linear-gradient(
    135deg,
    var(--primary-start),
    var(--primary-end)
  );
  --gradient-dark: linear-gradient(135deg, #0f172a, #1e293b);

  /* Typography */
  --font-heading: "Orbitron", sans-serif;
  --font-body: "Poppins", sans-serif;

  /* Spacing & Layout */
  --container-width: 1280px;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  --spacing-xxl: 10rem;

  /* Borders & Shadows */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md:
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 0 20px rgba(6, 182, 212, 0.4);

  /* Transitions */
  --transition-fast: 0.2s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;
  --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* --------------------------------------------------------------------------
   2. Reset & Normalization
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-base);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
  margin-bottom: var(--spacing-sm);
}

p {
  margin-bottom: var(--spacing-sm);
  color: var(--text-muted);
}

a {
  color: var(--primary-end);
  text-decoration: none;
  transition: all var(--transition-normal);
}

a:hover {
  color: var(--primary-start);
}

ul,
ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

/* --------------------------------------------------------------------------
   3. Utility Classes
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section-padding {
  padding: var(--spacing-xl) 0;
}

.bg-white {
  background-color: var(--bg-alt);
}
.bg-dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
}
.bg-dark p,
.bg-dark h1,
.bg-dark h2,
.bg-dark h3 {
  color: var(--text-light);
}
.bg-dark p {
  opacity: 0.8;
}

.text-center {
  text-align: center;
}
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* Section Headers */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--spacing-lg);
}

.section-header .subtitle {
  display: inline-block;
  color: var(--primary-start);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--spacing-xs);
  font-size: 0.875rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-gradient {
  background: var(--gradient-primary);
  color: white !important;
  box-shadow: var(--shadow-md);
}

.btn-gradient::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-end), var(--primary-start));
  opacity: 0;
  z-index: -1;
  transition: opacity var(--transition-normal);
}

.btn-gradient:hover::before {
  opacity: 1;
}

.btn-gradient:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 2px solid var(--primary-start);
}

.btn-outline:hover {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
}

.btn-accent {
  background: var(--accent);
  color: white;
}
.btn-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   4. Preloader
   -------------------------------------------------------------------------- */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-logo img {
  width: 150px;
  margin-bottom: 20px;
  animation: pulse 2s infinite;
}

.loader-bar {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.loader-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50%;
  background: var(--gradient-primary);
  animation: loadBar 1.5s infinite ease-in-out;
}

/* --------------------------------------------------------------------------
   5. Header & Navigation (Strict Consistency Site-Wide)
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all var(--transition-normal);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.site-header.scrolled {
  padding: 0.5rem 0;
  box-shadow: var(--shadow-md);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo img {
  height: 45px;
  width: auto;
  transition: transform var(--transition-normal);
}

.nav-logo:hover img {
  transform: scale(1.05);
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--text-light);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-start);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Hamburger */
.hamburger {
  display: none;
  cursor: pointer;
  background: transparent;
  border: none;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
}

.hamburger .bar {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-light);
  transition: all 0.3s ease-in-out;
  border-radius: 3px;
}

/* Hamburger Active State */
.hamburger.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}
.hamburger.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   6. Hero Section (Data-Focused, 3D Elements)
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  padding-top: 150px;
  padding-bottom: 100px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  perspective: 1000px;
  transform: rotateX(60deg) translateY(-100px) translateZ(-200px);
  animation: gridMove 20s linear infinite;
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(6, 182, 212, 0.15) 0%,
    transparent 70%
  );
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  filter: blur(50px);
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  max-width: 90%;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

/* 3D Hero Graphics */
.hero-visuals {
  position: relative;
  height: 500px;
  perspective: 1000px;
  transform-style: preserve-3d;
}

.chart-3d-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotateX(20deg) rotateY(-30deg);
  width: 300px;
  height: 300px;
  transform-style: preserve-3d;
  animation: float3D 6s ease-in-out infinite;
}

.chart-base {
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 340px;
  height: 340px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(6, 182, 212, 0.2);
  transform: rotateX(90deg);
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.1);
}

.bar-3d {
  position: absolute;
  bottom: 0;
  width: 50px;
  background: var(--gradient-primary);
  transform-style: preserve-3d;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

.bar-3d::before,
.bar-3d::after {
  content: "";
  position: absolute;
  background: inherit;
  filter: brightness(0.7);
}

.bar-3d::before {
  /* Top face */
  top: 0;
  left: 0;
  width: 50px;
  height: 50px;
  transform: rotateX(90deg) translateY(-25px) translateZ(25px);
  filter: brightness(1.2);
}

.bar-3d::after {
  /* Right face */
  top: 0;
  right: 0;
  width: 50px;
  height: 100%;
  transform: rotateY(90deg) translateX(25px) translateZ(25px);
}

.b1 {
  left: 30px;
  height: 120px;
  animation: barGrow1 2s ease-out forwards;
}
.b2 {
  left: 110px;
  height: 200px;
  background: linear-gradient(135deg, #10b981, #059669);
  animation: barGrow2 2s ease-out forwards 0.3s;
}
.b3 {
  left: 190px;
  height: 280px;
  animation: barGrow3 2s ease-out forwards 0.6s;
}

/* Floating Data Nodes */
.data-node {
  position: absolute;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--primary-start);
  padding: 10px 15px;
  border-radius: var(--radius-md);
  color: white;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  backdrop-filter: blur(5px);
  box-shadow: var(--shadow-glow);
  z-index: 10;
}

.node-1 {
  top: 10%;
  right: 10%;
  animation: float 4s ease-in-out infinite;
}
.node-2 {
  bottom: 20%;
  left: -10%;
  animation: float 5s ease-in-out infinite 1s;
  border-color: var(--accent);
}

/* --------------------------------------------------------------------------
   7. Client Ticker / Marquee
   -------------------------------------------------------------------------- */
.ticker-section {
  padding: 2rem 0;
  background: var(--bg-alt);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.ticker-wrap {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.ticker-wrap::before,
.ticker-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
}

.ticker-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-alt), transparent);
}

.ticker-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-alt), transparent);
}

.ticker {
  display: inline-block;
  animation: tickerMove 30s linear infinite;
}

.ticker-item {
  display: inline-block;
  padding: 0 3rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text-muted);
  font-weight: 700;
  opacity: 0.5;
  transition: opacity var(--transition-normal);
}

.ticker-item:hover {
  opacity: 1;
  color: var(--primary-start);
}

/* --------------------------------------------------------------------------
   8. About / Insight Loop Philosophy
   -------------------------------------------------------------------------- */
.about-section {
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-visual {
  position: relative;
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* The Insight Loop Animation */
.insight-loop-circle {
  position: relative;
  width: 350px;
  height: 350px;
  border: 2px dashed rgba(6, 182, 212, 0.3);
  border-radius: 50%;
  animation: spinSlow 20s linear infinite;
}

.loop-item {
  position: absolute;
  width: 80px;
  height: 80px;
  background: var(--bg-card);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--bg-base);
  top: 50%;
  left: 50%;
  margin-top: -40px;
  margin-left: -40px; /* Center offset */
}

/* Positioning around the circle */
.loop-item:nth-child(1) {
  transform: rotate(0deg) translate(175px) rotate(0deg);
}
.loop-item:nth-child(2) {
  transform: rotate(120deg) translate(175px) rotate(-120deg);
}
.loop-item:nth-child(3) {
  transform: rotate(240deg) translate(175px) rotate(-240deg);
}

/* Counter-rotate content to stay upright */
.insight-loop-circle .loop-item i {
  font-size: 1.5rem;
  color: var(--primary-start);
  animation: spinSlowReverse 20s linear infinite;
}
.insight-loop-circle .loop-item span {
  font-size: 0.7rem;
  font-weight: 600;
  margin-top: 5px;
  animation: spinSlowReverse 20s linear infinite;
}

.loop-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150px;
  height: 150px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  box-shadow: var(--shadow-glow);
  z-index: 2;
}

.about-features {
  margin-top: 2rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.feature-list i {
  color: var(--accent);
  font-size: 1.2rem;
  margin-right: 1rem;
  margin-top: 5px;
}

.feature-list h4 {
  margin-bottom: 0.2rem;
  font-size: 1.1rem;
}

/* --------------------------------------------------------------------------
   9. Scroll Triggered Metrics
   -------------------------------------------------------------------------- */
.metrics-section {
  background: var(--gradient-dark);
  color: white;
  position: relative;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.metric-card {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  transition: transform var(--transition-normal);
}

.metric-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-start);
}

.metric-icon {
  font-size: 2.5rem;
  color: var(--primary-start);
  margin-bottom: 1rem;
}

.metric-value {
  font-size: 3rem;
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.metric-value span {
  color: var(--accent);
}

.metric-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --------------------------------------------------------------------------
   10. Services Grid
   -------------------------------------------------------------------------- */
.services-section {
  background: var(--bg-alt);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--bg-base);
  padding: 3rem 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: var(--gradient-primary);
  z-index: -1;
  transition: height var(--transition-normal);
}

.service-card:hover::before {
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 70px;
  height: 70px;
  background: rgba(6, 182, 212, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  color: var(--primary-start);
  margin-bottom: 1.5rem;
  transition: all var(--transition-normal);
}

.service-card:hover .service-icon {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  transition: color var(--transition-normal);
}

.service-card p {
  margin-bottom: 1.5rem;
  transition: color var(--transition-normal);
}

.service-card:hover h3,
.service-card:hover p {
  color: white;
}

.service-link {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  color: var(--primary-start);
  transition: color var(--transition-normal);
}

.service-card:hover .service-link {
  color: white;
}

.service-link i {
  margin-left: 0.5rem;
  transition: transform var(--transition-normal);
}

.service-link:hover i {
  transform: translateX(5px);
}

/* --------------------------------------------------------------------------
   11. Interactive ROI Calculator
   -------------------------------------------------------------------------- */
.calculator-section {
  background: var(--bg-base);
  position: relative;
}

.calc-wrapper {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.calc-inputs {
  padding: 4rem;
  background: var(--bg-alt);
}

.calc-results {
  padding: 4rem;
  background: var(--gradient-dark);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.input-group {
  margin-bottom: 2rem;
}

.input-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

/* Custom Range Slider */
.range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  outline: none;
  margin-top: 1rem;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-start);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
  transition: transform 0.1s;
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.val-display {
  float: right;
  color: var(--primary-start);
  font-weight: 700;
  font-size: 1.2rem;
}

.result-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  text-align: center;
}

.result-box h4 {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.result-val {
  font-size: 3rem;
  font-family: var(--font-heading);
  color: var(--accent);
  font-weight: 700;
}

.result-val.blue {
  color: var(--primary-start);
}

/* --------------------------------------------------------------------------
   12. Industry Specific Tabs
   -------------------------------------------------------------------------- */
.industries-section {
  background: var(--bg-alt);
}

.tabs-container {
  max-width: 1000px;
  margin: 0 auto;
}

.tabs-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 1rem 2rem;
  background: var(--bg-base);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  color: var(--text-muted);
}

.tab-btn.active,
.tab-btn:hover {
  background: var(--primary-start);
  color: white;
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}

.tab-content.active {
  display: block;
}

.industry-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  background: var(--bg-base);
  border-radius: var(--radius-lg);
  padding: 3rem;
  align-items: center;
}

.industry-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.industry-img img {
  width: 100%;
  height: auto;
  transition: transform var(--transition-slow);
}

.industry-card:hover .industry-img img {
  transform: scale(1.05);
}

.industry-text h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.industry-metrics {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.ind-metric span {
  display: block;
  font-size: 2rem;
  font-family: var(--font-heading);
  color: var(--primary-start);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   13. Sample Campaign Reports (CSS Charts)
   -------------------------------------------------------------------------- */
.reports-section {
  background: var(--bg-dark);
  color: white;
}

.reports-section .section-header h2,
.reports-section .section-header p {
  color: white;
}

.reports-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.report-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 3rem;
}

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
}

.report-header h3 {
  font-size: 1.5rem;
  margin-bottom: 0;
}

.badge {
  padding: 0.25rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent);
}

/* CSS Bar Chart */
.css-chart {
  height: 250px;
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.chart-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
}

.bar-fill {
  width: 100%;
  background: var(--gradient-primary);
  border-radius: 4px 4px 0 0;
  transition: height 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  height: 0; /* Animated via JS class */
  position: relative;
}

.bar-fill::after {
  content: attr(data-val);
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  opacity: 0;
  transition: opacity 0.5s 1s;
}

.css-chart.animate .bar-fill {
  height: var(--target-h);
}
.css-chart.animate .bar-fill::after {
  opacity: 1;
}

.chart-label {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

/* CSS Line Chart variant */
.line-chart-container {
  height: 250px;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem;
}

.svg-line {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.svg-line path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}

.css-chart.animate .svg-line path {
  animation: drawLine 2s ease-out forwards;
}

/* --------------------------------------------------------------------------
   14. Testimonials
   -------------------------------------------------------------------------- */
.testimonials-section {
  background: var(--bg-base);
  overflow: hidden;
}

.testimonial-slider {
  display: flex;
  gap: 2rem;
  padding: 2rem 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Firefox */
}
.testimonial-slider::-webkit-scrollbar {
  display: none;
}

.testi-card {
  min-width: 400px;
  scroll-snap-align: center;
  background: var(--bg-card);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
}

@media (max-width: 768px) {
  .testi-card {
    min-width: 300px;
    padding: 2rem;
  }
}

.quote-icon {
  font-size: 3rem;
  color: rgba(6, 182, 212, 0.1);
  position: absolute;
  top: 2rem;
  right: 2rem;
}

.stars {
  color: #fbbf24;
  margin-bottom: 1rem;
}

.testi-text {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 2rem;
  color: var(--text-main);
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #e5e7eb; /* Placeholder */
  object-fit: cover;
}

.author-info h4 {
  margin: 0;
  font-size: 1.1rem;
}

.author-info span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   15. FAQ Accordion
   -------------------------------------------------------------------------- */
.faq-section {
  background: var(--bg-alt);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  margin-bottom: 1rem;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.5rem 0;
  background: transparent;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.faq-question:hover,
.faq-item.active .faq-question {
  color: var(--primary-start);
}

.faq-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--primary-start);
  transition: transform var(--transition-normal);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: var(--primary-start);
  color: white;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
}

.faq-answer-inner {
  padding-bottom: 1.5rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   16. Contact CTA & Forms
   -------------------------------------------------------------------------- */
.contact-cta-section {
  background: var(--bg-base);
  position: relative;
  overflow: hidden;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.cta-info {
  padding: 4rem;
  background: var(--gradient-dark);
  color: white;
}

.cta-info h2 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.contact-methods {
  margin-top: 3rem;
}

.c-method {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.c-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  color: var(--primary-start);
}

.c-text h4 {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}
.c-text p {
  margin: 0;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
}

.cta-form-wrapper {
  padding: 4rem;
  background: var(--bg-alt);
}

.modern-form .form-group {
  position: relative;
  margin-bottom: 2rem;
}

.modern-form input,
.modern-form textarea {
  width: 100%;
  padding: 1rem 0;
  background: transparent;
  border: none;
  border-bottom: 2px solid #e5e7eb;
  font-size: 1rem;
  color: var(--text-main);
  transition: border-color var(--transition-fast);
}

.modern-form input:focus,
.modern-form textarea:focus {
  border-color: var(--primary-start);
}

.modern-form label {
  position: absolute;
  top: 1rem;
  left: 0;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  pointer-events: none;
}

/* Floating Label Logic */
.modern-form input:focus ~ label,
.modern-form input:valid ~ label,
.modern-form textarea:focus ~ label,
.modern-form textarea:valid ~ label {
  top: -0.5rem;
  font-size: 0.75rem;
  color: var(--primary-start);
  font-weight: 600;
}

.modern-form button {
  width: 100%;
}

/* --------------------------------------------------------------------------
   17. Footer (Strict Consistency Site-Wide)
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding-top: var(--spacing-xl);
  position: relative;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-logo img {
  height: 50px;
  margin-bottom: 1.5rem;
  filter: brightness(0) invert(1); /* Ensure white logo if original is dark */
}

.brand-col p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  transition: all var(--transition-normal);
}

.social-links a:hover {
  background: var(--primary-start);
  transform: translateY(-3px);
}

.footer-col h3 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary-start);
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-col ul a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-col ul a:hover {
  color: var(--primary-start);
  padding-left: 5px;
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
}

.contact-info i {
  color: var(--primary-start);
  margin-top: 5px;
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.2);
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.bottom-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bottom-container p {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

.legal-links {
  display: flex;
  gap: 1.5rem;
}

.legal-links a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

.legal-links a:hover {
  color: var(--primary-start);
}

/* --------------------------------------------------------------------------
   18. Legal Pages Specific Styles
   -------------------------------------------------------------------------- */
.page-header {
  padding: 180px 0 80px;
  background: var(--bg-dark);
  text-align: center;
  position: relative;
}

.page-header h1 {
  color: white;
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.page-header p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.2rem;
}

.legal-content-section {
  background: var(--bg-alt);
}

.legal-wrapper {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-base);
  padding: 4rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.legal-wrapper h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-main);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 0.5rem;
}

.legal-wrapper p,
.legal-wrapper ul {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.legal-wrapper ul {
  padding-left: 2rem;
  list-style-type: disc;
}

.legal-wrapper li {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   19. Live Chat Widget
   -------------------------------------------------------------------------- */
.live-chat-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

.chat-bubble {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-bounce);
  animation: pulse 2s infinite;
}

.chat-bubble:hover {
  transform: scale(1.1);
}

.chat-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 350px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transform-origin: bottom right;
  transform: scale(0);
  opacity: 0;
  transition: all var(--transition-bounce);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.chat-window.active {
  transform: scale(1);
  opacity: 1;
}

.chat-header {
  background: var(--gradient-dark);
  color: white;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header img {
  height: 30px;
  filter: brightness(0) invert(1);
}

.close-chat {
  background: transparent;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

.chat-body {
  padding: 1.5rem;
  height: 250px;
  overflow-y: auto;
  background: var(--bg-base);
}

.chat-msg {
  background: var(--bg-alt);
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  border-left: 3px solid var(--primary-start);
  box-shadow: var(--shadow-sm);
}

.chat-footer {
  padding: 1rem;
  display: flex;
  gap: 0.5rem;
  background: var(--bg-alt);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.chat-footer input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-full);
}

.chat-footer button {
  width: 40px;
  height: 40px;
  background: var(--primary-start);
  color: white;
  border-radius: 50%;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   20. Animations Library (@keyframes)
   -------------------------------------------------------------------------- */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(6, 182, 212, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(6, 182, 212, 0);
  }
}

@keyframes loadBar {
  0% {
    left: -50%;
  }
  100% {
    left: 100%;
  }
}

@keyframes gridMove {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 50px;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes float3D {
  0%,
  100% {
    transform: translate(-50%, -50%) rotateX(20deg) rotateY(-30deg)
      translateY(0);
  }
  50% {
    transform: translate(-50%, -50%) rotateX(25deg) rotateY(-25deg)
      translateY(-30px);
  }
}

@keyframes barGrow1 {
  0% {
    height: 0;
  }
  100% {
    height: 120px;
  }
}
@keyframes barGrow2 {
  0% {
    height: 0;
  }
  100% {
    height: 200px;
  }
}
@keyframes barGrow3 {
  0% {
    height: 0;
  }
  100% {
    height: 280px;
  }
}

@keyframes tickerMove {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  } /* Assuming content is doubled */
}

@keyframes spinSlow {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes spinSlowReverse {
  100% {
    transform: rotate(-360deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

/* Scroll reveal classes added by JS */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   21. Media Queries (Responsiveness)
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .hero-content h1 {
    font-size: 3.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content p {
    max-width: 100%;
    margin: 0 auto 2rem;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-visuals {
    display: none;
  } /* Hide complex 3D on smaller screens for performance */

  .about-grid,
  .cta-grid,
  .calc-wrapper {
    grid-template-columns: 1fr;
  }
  .about-visual {
    display: none;
  }

  .metrics-grid {
    grid-template-columns: 1fr 1fr;
  }
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
  .reports-grid {
    grid-template-columns: 1fr;
  }
  .industry-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* Mobile Menu */
  .hamburger {
    display: flex;
  }
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--bg-dark);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: left 0.3s ease;
  }
  .nav-menu.active {
    left: 0;
  }
  .header-actions .btn {
    display: none;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }
  .metrics-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }
  .calc-inputs,
  .calc-results,
  .cta-info,
  .cta-form-wrapper {
    padding: 2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .legal-wrapper {
    padding: 2rem;
  }
}
