/* ==========================================================================
   CSS Variables & Global Reset
   ========================================================================== */
:root {
  /* Brand Colors */
  --bg-dark: #0a0f1a;
  --surface-dark: #141c2f;
  --surface-light: rgba(255, 255, 255, 0.05);
  --border-color: rgba(255, 255, 255, 0.1);

  --primary: #00f0ff; /* Cyan/Neon Blue */
  --secondary: #7000ff; /* Deep Purple */
  --accent: #ff0055; /* Magenta/Pink */

  --text-main: #f8fafc;
  --text-muted: #94a3b8;

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, var(--primary), var(--secondary));
  --gradient-accent: linear-gradient(135deg, var(--secondary), var(--accent));
  --gradient-surface: linear-gradient(
    180deg,
    rgba(20, 28, 47, 0.8) 0%,
    rgba(10, 15, 26, 0.9) 100%
  );

  /* Typography */
  --font-heading: "Chakra Petch", sans-serif;
  --font-body: "Poppins", sans-serif;

  /* Spacing & Utilities */
  --container-width: 1200px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --radius-md: 12px;
  --radius-lg: 24px;

  /* Shadows */
  --shadow-glow: 0 0 20px rgba(0, 240, 255, 0.3);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);

  /* Z-Index */
  --z-back: -1;
  --z-normal: 1;
  --z-header: 100;
  --z-modal: 1000;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--surface-dark);
  border: 1px solid var(--border-color);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}

::selection {
  background: var(--primary);
  color: #000;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.section {
  padding: 100px 0;
  position: relative;
  z-index: var(--z-normal);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-title {
  font-size: 2.5rem;
}

.section-title .highlight {
  color: var(--primary);
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  outline: none;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.6);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--surface-light);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #000;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.glass-card {
  background: var(--surface-light);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
}

/* ==========================================================================
   3D Background & Geometric Elements
   ========================================================================== */
.bg-3d-elements {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-back);
  overflow: hidden;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 20s infinite alternate ease-in-out;
}

.shape-1 {
  width: 400px;
  height: 400px;
  background: var(--primary);
  top: -10%;
  left: -10%;
}

.shape-2 {
  width: 500px;
  height: 500px;
  background: var(--secondary);
  bottom: -20%;
  right: -10%;
  animation-delay: -5s;
}

.shape-3 {
  width: 300px;
  height: 300px;
  background: var(--accent);
  top: 40%;
  left: 50%;
  animation-duration: 25s;
}

.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: 50px 50px;
  perspective: 1000px;
  transform: rotateX(60deg) scale(2);
  transform-origin: top center;
  opacity: 0.3;
}

@keyframes float {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    transform: translate(100px, 50px) rotate(45deg);
  }
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-header);
  background: transparent;
  transition: var(--transition);
  padding: 20px 0;
}

.header.scrolled {
  background: rgba(10, 15, 26, 0.85);
  backdrop-filter: blur(15px);
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo, .footer-logo-link img {
  height: 60px;
  width: auto;
  /* filter: brightness(0) invert(1); Ensure visibility on dark */
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: 30px;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.05rem;
  position: relative;
  padding: 5px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--primary);
}

.nav-close {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   Section 1: Hero
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(0, 240, 255, 0.1);
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 90%;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  gap: 40px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.stat-item span:nth-child(2) {
  font-size: 2rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary);
  display: inline-block;
  vertical-align: top;
  margin-left: 2px;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 5px;
}

/* Hologram 3D Effect */
.hero-visual {
  position: relative;
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hologram-container {
  position: relative;
  width: 300px;
  height: 300px;
  transform-style: preserve-3d;
  transform: rotateX(60deg) rotateZ(-45deg);
  animation: spin3D 20s linear infinite;
}

.hologram-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--primary);
  box-shadow:
    inset 0 0 20px rgba(0, 240, 255, 0.5),
    0 0 20px rgba(0, 240, 255, 0.5);
}

.ring-1 {
  transform: translateZ(20px) scale(0.8);
  border-color: var(--secondary);
}
.ring-2 {
  transform: translateZ(0) scale(1);
}
.ring-3 {
  transform: translateZ(-20px) scale(1.2);
  border-color: rgba(255, 255, 255, 0.2);
}

.hologram-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotateX(-90deg);
  font-size: 4rem;
  color: #fff;
  text-shadow: 0 0 20px var(--primary);
  animation: pulseCore 2s infinite alternate;
}

@keyframes spin3D {
  0% {
    transform: rotateX(60deg) rotateZ(0deg);
  }
  100% {
    transform: rotateX(60deg) rotateZ(360deg);
  }
}

@keyframes pulseCore {
  0% {
    transform: translate(-50%, -50%) rotateX(-90deg) scale(1);
  }
  100% {
    transform: translate(-50%, -50%) rotateX(-90deg) scale(1.2);
  }
}

/* ==========================================================================
   Section 2: About
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.about-visual {
  perspective: 1000px;
}

.glass-header {
  display: flex;
  gap: 8px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot.red {
  background: #ff5f56;
}
.dot.yellow {
  background: #ffbd2e;
}
.dot.green {
  background: #27c93f;
}

.chart-mockup {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 150px;
  padding-top: 20px;
}

.chart-mockup .bar {
  flex: 1;
  background: var(--gradient-brand);
  border-radius: 4px 4px 0 0;
  animation: growBar 1.5s ease-out forwards;
  transform-origin: bottom;
}

.mockup-label {
  text-align: center;
  margin-top: 15px;
  font-family: var(--font-heading);
  color: var(--text-muted);
}

.feature-list {
  margin-top: 30px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.feature-list i {
  color: var(--primary);
  font-size: 1.2rem;
}

@keyframes growBar {
  0% {
    transform: scaleY(0);
  }
  100% {
    transform: scaleY(1);
  }
}

/* ==========================================================================
   Section 3: Services (3D Flip)
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  perspective: 1000px;
}

.flip-card-container {
  background-color: transparent;
  height: 350px;
  perspective: 1000px;
}

.flip-card {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  cursor: pointer;
}

.flip-card-container:hover .flip-card {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: var(--radius-lg);
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.flip-card-front {
  background: var(--surface-dark);
  border: 1px solid var(--border-color);
}

.flip-card-front .service-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.flip-card-front h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.flip-card-front p {
  color: var(--text-muted);
}

.flip-card-back {
  background: var(--gradient-surface);
  border: 1px solid var(--primary);
  transform: rotateY(180deg);
  box-shadow: var(--shadow-glow);
}

.flip-card-back h3 {
  color: var(--primary);
  margin-bottom: 20px;
}

.flip-card-back ul {
  text-align: left;
  margin-bottom: 25px;
}

.flip-card-back li {
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.flip-card-back li::before {
  content: "→";
  color: var(--primary);
  margin-right: 8px;
}

/* ==========================================================================
   Section 4: Industries
   ========================================================================== */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.industry-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 250px;
  display: flex;
  align-items: flex-end;
}

.industry-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
  filter: grayscale(100%) opacity(0.5);
  z-index: 1;
}

.industry-card:hover .industry-bg {
  filter: grayscale(0%) opacity(0.8);
  transform: scale(1.1);
}

.industry-content {
  position: relative;
  z-index: 2;
  padding: 30px;
  background: linear-gradient(to top, rgba(10, 15, 26, 1), transparent);
  width: 100%;
  transition: var(--transition);
}

.industry-card:hover .industry-content {
  padding-bottom: 40px;
}

.industry-content i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.industry-content h3 {
  font-size: 1.4rem;
  margin-bottom: 5px;
}

/* ==========================================================================
   Section 5: Reports (Interactive Tabs)
   ========================================================================== */
.report-container {
  display: flex;
  background: var(--surface-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.report-sidebar {
  width: 250px;
  background: rgba(0, 0, 0, 0.2);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.report-tab {
  padding: 25px 20px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.report-tab:hover {
  background: rgba(255, 255, 255, 0.05);
}

.report-tab.active {
  background: rgba(0, 240, 255, 0.1);
  color: var(--primary);
  border-left: 4px solid var(--primary);
}

.report-display {
  flex: 1;
  padding: 40px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.metric-box {
  background: var(--surface-light);
  padding: 20px;
  border-radius: var(--radius-md);
  text-align: center;
}

.m-label {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.m-val {
  font-size: 2rem;
  font-family: var(--font-heading);
  font-weight: 700;
}

.animated-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 200px;
  padding-top: 20px;
  border-bottom: 2px solid var(--border-color);
}

.chart-bar-container {
  width: 40px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.chart-bar {
  width: 100%;
  background: var(--primary);
  border-radius: 4px 4px 0 0;
  transition: height 1s ease-out;
}

.chart-bar-container span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Section 6: ROI Calculator
   ========================================================================== */
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.calc-features {
  margin-top: 30px;
}

.calc-features li {
  margin-bottom: 15px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.calc-features i {
  color: var(--secondary);
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-family: var(--font-heading);
  font-weight: 500;
}

.form-group label span {
  color: var(--primary);
  font-weight: 700;
}

.range-slider {
  width: 100%;
  appearance: none;
  height: 6px;
  background: var(--border-color);
  border-radius: 3px;
  outline: none;
}

.range-slider::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 0 10px var(--primary);
}

.calc-results {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
}

.res-item {
  flex: 1;
  background: rgba(0, 0, 0, 0.2);
  padding: 20px;
  border-radius: var(--radius-md);
  text-align: center;
}

.res-item span {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.res-item h4 {
  font-size: 1.8rem;
  margin: 0;
}

.highlight-res {
  background: rgba(112, 0, 255, 0.1);
  border: 1px solid var(--secondary);
}

.calc-disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 20px;
  text-align: center;
}

/* ==========================================================================
   Section 7: Testimonials
   ========================================================================== */
.test-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.test-card {
  background: var(--surface-dark);
  padding: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  position: relative;
}

.test-card::before {
  content: '"';
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 6rem;
  color: rgba(255, 255, 255, 0.05);
  font-family: serif;
  line-height: 1;
}

.test-stars {
  color: #ffd700;
  margin-bottom: 20px;
}

.test-text {
  font-size: 1.05rem;
  font-style: italic;
  margin-bottom: 30px;
  position: relative;
  z-index: 2;
}

.test-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  background: var(--surface-light);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  color: var(--primary);
}

.author-info h4 {
  margin: 0;
  font-size: 1.1rem;
}

.author-info span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Section 8: CTA / Forms
   ========================================================================== */
.cta-container {
  background: var(--gradient-surface);
  border: 1px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  box-shadow: var(--shadow-glow);
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  padding: 15px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(0, 240, 255, 0.05);
}

select.form-control {
  appearance: none;
}

textarea.form-control {
  resize: vertical;
}

/* ==========================================================================
   Section 9: Live Chat
   ========================================================================== */
.live-chat-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: var(--z-modal);
}

.chat-toggle {
  width: 60px;
  height: 60px;
  background: var(--gradient-brand);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  color: #fff;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: var(--transition);
}

.chat-toggle:hover {
  transform: scale(1.1);
}

.pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--primary);
  animation: pulseRing 2s infinite;
}

@keyframes pulseRing {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.chat-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 320px;
  background: var(--surface-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transform: scale(0);
  transform-origin: bottom right;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 0;
}

.chat-window.active {
  transform: scale(1);
  opacity: 1;
}

.chat-header {
  background: var(--gradient-surface);
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header h4 {
  margin: 0;
  font-size: 1.1rem;
}
.chat-header span {
  font-size: 0.8rem;
  color: var(--primary);
}

#chat-close {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 1.2rem;
}

.chat-body {
  height: 250px;
  padding: 20px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.2);
}

.chat-msg {
  background: var(--surface-light);
  padding: 12px 15px;
  border-radius: 15px 15px 15px 0;
  font-size: 0.9rem;
  margin-bottom: 15px;
  display: inline-block;
  max-width: 85%;
}

.chat-input {
  display: flex;
  padding: 15px;
  border-top: 1px solid var(--border-color);
  background: var(--surface-dark);
}

.chat-input input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  outline: none;
  font-family: var(--font-body);
}

.chat-input button {
  background: transparent;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-size: 1.2rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--surface-dark);
  padding: 80px 0 20px;
  border-top: 1px solid var(--border-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-logo-link {
  display: inline-flex;
  margin-bottom: 20px;
}

.footer-desc {
  color: var(--text-muted);
  margin-bottom: 25px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-light);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition);
}

.social-btn:hover {
  background: var(--primary);
  color: #000;
  transform: translateY(-3px);
}

.footer-title {
  font-size: 1.2rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary);
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  color: var(--text-muted);
}

.footer-contact i {
  color: var(--primary);
  margin-top: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ==========================================================================
   Internal Pages (Legal & Contact)
   ========================================================================== */
.page-header {
  padding: 150px 0 80px;
  background: linear-gradient(to bottom, rgba(0, 240, 255, 0.05), transparent);
  border-bottom: 1px solid var(--border-color);
}

.page-title-lg {
  font-size: 4rem;
  margin-bottom: 15px;
}

.breadcrumbs {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.breadcrumbs a {
  color: #fff;
}

.breadcrumbs i {
  font-size: 0.8rem;
  margin: 0 10px;
  color: var(--primary);
}

.legal-content {
  max-width: 900px;
  margin: 0 auto;
}

.legal-content p {
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.legal-content h2 {
  margin: 40px 0 20px;
  color: #fff;
}

.page-contact-grid {
  align-items: start;
}

/* ==========================================================================
   Animations & Keyframes
   ========================================================================== */
.animate-fade-up {
  animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  opacity: 0;
  transform: translateY(30px);
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reveal Classes (Used by JS) */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal-up {
  transform: translateY(50px);
}
.reveal-left {
  transform: translateX(-50px);
}
.reveal-right {
  transform: translateX(50px);
}

.reveal-up.active,
.reveal-left.active,
.reveal-right.active {
  opacity: 1;
  transform: translate(0, 0);
}

/* ==========================================================================
   Contact Page Specific Styles
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.page-contact-grid {
  align-items: start;
  margin-top: -20px;
}

.contact-info {
  padding-right: 20px;
}

.contact-info h3 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #fff;
}

.contact-info > p {
  color: var(--text-muted);
  margin-bottom: 40px;
  font-size: 1.1rem;
}

/* Contact Details Cards */
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 25px;
  background: var(--surface-light);
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.contact-item:hover {
  border-color: var(--primary);
  transform: translateX(10px);
  background: rgba(0, 240, 255, 0.05);
}

.icon-box-sm {
  width: 55px;
  height: 55px;
  background: var(--gradient-brand);
  color: #000; /* Dark icon for contrast */
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  font-size: 1.4rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-glow);
}

.contact-item h4 {
  margin: 0 0 5px 0;
  font-size: 1.2rem;
  color: #fff;
}

.contact-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

/* Contact Form Box styling */
.form-box h3 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #fff;
}

.main-contact-form .form-group {
  margin-bottom: 20px;
}

.main-contact-form label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-heading);
  color: var(--text-muted);
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 3.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-subtitle {
    margin: 0 auto 40px;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .hero-visual {
    display: none;
  }

  .about-grid,
  .calc-grid,
  .cta-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .report-container {
    flex-direction: column;
  }
  .report-sidebar {
    width: 100%;
    flex-direction: row;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
  }
  .report-tab {
    flex: 1;
    text-align: center;
    white-space: nowrap;
  }

  .page-contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle,
  .nav-close {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--surface-dark);
    border-left: 1px solid var(--border-color);
    padding: 80px 40px;
    flex-direction: column;
    transition: right 0.4s ease;
    z-index: 1000;
  }

  .nav-menu.open {
    right: 0;
  }
  .nav-list {
    flex-direction: column;
    gap: 20px;
  }
  .nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
  }

  .header-actions .btn {
    display: none;
  }
  .hero-title {
    font-size: 2.8rem;
  }
  .stat-number {
    font-size: 2rem;
  }
  .section-title {
    font-size: 2rem;
  }

  .industry-grid,
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    flex-direction: column;
  }
  .cta-container {
    padding: 40px 20px;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
  }
  .hero-stats {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .page-title-lg {
    font-size: 2.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .chat-window {
    width: calc(100vw - 40px);
    right: -10px;
  }
}
