/* ==========================================================================
   CSS Variables & Theme
   ========================================================================== */
:root {
  --bg-main: #0a0e17;
  --bg-sec: #111827;
  --bg-card: #1f2937;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --accent-blue: #00f0ff;
  --accent-purple: #7000ff;
  --accent-glow: rgba(0, 240, 255, 0.4);
  --border-color: rgba(255, 255, 255, 0.1);
  --font-heading: "Orbitron", sans-serif;
  --font-body: "Roboto Mono", monospace;
  --transition-fast: 0.3s ease;
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --header-height: 80px;
}

/* ==========================================================================
   Resets & Base
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 1px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 100px 0;
}

.text-center {
  text-align: center;
}

/* Typography Enhancements */
.gradient-text {
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.section-subtitle {
  color: var(--accent-blue);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 10px;
}

/* ==========================================================================
   Buttons & Inputs
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 30px;
  font-family: var(--font-heading);
  font-size: 1rem;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  border-radius: 4px;
  transition: var(--transition-fast);
}

.btn-primary {
  background: transparent;
  color: var(--accent-blue);
  border: 2px solid var(--accent-blue);
  box-shadow: 0 0 15px transparent;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-blue),
    transparent
  );
  z-index: -1;
  transition: 0.5s;
}

.btn-primary:hover {
  color: var(--bg-main);
  background: var(--accent-blue);
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary:hover::before {
  left: 100%;
}

input,
textarea,
select {
  width: 100%;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-family: var(--font-body);
  border-radius: 4px;
  outline: none;
  transition: var(--transition-fast);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

/* ==========================================================================
   Header (Strictly Consistent)
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(10, 14, 23, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: var(--transition-fast);
}

.header.scrolled {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  background: rgba(10, 14, 23, 0.98);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.nav-logo {
  height: 60px;
  filter: invert(1);
  transition: var(--transition-fast);
}

.nav-menu {
  display: flex;
  gap: 30px;
}

.nav-link {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding: 5px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-blue);
  transition: var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hamburger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.hamburger .bar {
  width: 25px;
  height: 3px;
  background: var(--text-main);
  transition: var(--transition-fast);
}

/* ==========================================================================
   Footer (Strictly Consistent)
   ========================================================================== */
.footer {
  background: var(--bg-sec);
  padding: 80px 0 20px;
  border-top: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  height: 60px;
  filter: invert(1);
  margin-bottom: 20px;
}

.footer-about p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  color: var(--text-main);
  transition: var(--transition-fast);
}

.footer-social a:hover {
  background: var(--accent-blue);
  color: var(--bg-main);
  transform: translateY(-3px);
}

.footer-links h3,
.footer-contact h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--text-main);
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent-blue);
  padding-left: 5px;
}

.footer-contact ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-muted);
  margin-bottom: 15px;
}

.footer-contact i {
  color: var(--accent-blue);
  margin-top: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-legal a {
  color: var(--text-muted);
  margin: 0 10px;
}

.footer-legal a:hover {
  color: var(--accent-blue);
}

/* ==========================================================================
   Hero Section (3D & Animated)
   ========================================================================== */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #111827 0%, #0a0e17 100%);
  z-index: -2;
}

.hero-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: -1;
  perspective: 1000px;
}

.hero-content {
  max-width: 800px;
  z-index: 1;
}

.hero h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 20px;
  animation: fadeUp 1s ease forwards;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  animation: fadeUp 1s ease 0.2s forwards;
  opacity: 0;
}

.hero-actions {
  display: flex;
  gap: 20px;
  animation: fadeUp 1s ease 0.4s forwards;
  opacity: 0;
}

/* 3D Floating Elements */
.cube {
  position: absolute;
  width: 100px;
  height: 100px;
  transform-style: preserve-3d;
  animation: floatCube 10s infinite linear;
}

.cube-1 {
  top: 20%;
  right: 15%;
  width: 150px;
  height: 150px;
}
.cube-2 {
  bottom: 15%;
  left: 10%;
  width: 80px;
  height: 80px;
  animation-duration: 15s;
}
.cube-3 {
  top: 40%;
  left: 40%;
  width: 50px;
  height: 50px;
  animation-duration: 8s;
  opacity: 0.5;
}

.face {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.2);
  box-shadow: inset 0 0 20px rgba(0, 240, 255, 0.1);
}

.front {
  transform: translateZ(50px);
}
.back {
  transform: rotateY(180deg) translateZ(50px);
}
.right {
  transform: rotateY(90deg) translateZ(50px);
}
.left {
  transform: rotateY(-90deg) translateZ(50px);
}
.top {
  transform: rotateX(90deg) translateZ(50px);
}
.bottom {
  transform: rotateX(-90deg) translateZ(50px);
}

/* ==========================================================================
   Services Grid (3D Hover Cards)
   ========================================================================== */
.services-section {
  background: var(--bg-sec);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.service-card {
  background: var(--bg-card);
  padding: 40px 30px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  transition: var(--transition-slow);
  transform-style: preserve-3d;
  perspective: 1000px;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), transparent);
  opacity: 0;
  transition: var(--transition-fast);
}

.service-card:hover {
  transform: translateY(-10px) rotateX(5deg) rotateY(-5deg);
  border-color: var(--accent-blue);
  box-shadow:
    -10px 10px 30px rgba(0, 0, 0, 0.5),
    0 0 20px var(--accent-glow);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  font-size: 3rem;
  color: var(--accent-blue);
  margin-bottom: 20px;
  display: inline-block;
  transition: var(--transition-fast);
}

.service-card:hover .service-icon {
  transform: translateZ(30px) scale(1.1);
  color: var(--accent-purple);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  transition: var(--transition-fast);
}

.service-card:hover h3 {
  transform: translateZ(20px);
}

.service-card p {
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.service-card:hover p {
  transform: translateZ(10px);
}

/* ==========================================================================
   Industry Services (Parallax)
   ========================================================================== */
.industries-section {
  position: relative;
  background: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCI+CgkJPHBhdGggZD0iTTIwIDIwaDIwdjIwaC0yMHoiIGZpbGw9IiMxMTE4MjciIGZpbGwtb3BhY2l0eT0iMC40IiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz4KCTwvc3ZnPg==")
    var(--bg-main);
  background-attachment: fixed;
}

.industry-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 40px;
}

.ind-tab {
  padding: 10px 25px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  cursor: pointer;
  font-family: var(--font-heading);
  transition: var(--transition-fast);
}

.ind-tab.active,
.ind-tab:hover {
  background: var(--accent-blue);
  color: var(--bg-main);
  border-color: var(--accent-blue);
}

.industry-content-area {
  margin-top: 40px;
  background: rgba(17, 24, 39, 0.8);
  backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: 10px;
  border: 1px solid var(--accent-blue);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

.ind-pane {
  display: none;
  animation: fadeIn 0.5s ease;
}

.ind-pane.active {
  display: block;
}

/* ==========================================================================
   Interactive Service Calculator
   ========================================================================== */
.calculator-section {
  background: var(--bg-sec);
}

.calc-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-top: 50px;
  background: var(--bg-card);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.calc-controls {
  padding: 40px;
}

.calc-group {
  margin-bottom: 25px;
}

.calc-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: bold;
  color: var(--accent-blue);
}

.range-slider {
  width: 100%;
  -webkit-appearance: none;
  height: 5px;
  border-radius: 5px;
  background: var(--border-color);
  outline: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-blue);
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent-glow);
}

.calc-results {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-main));
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--border-color);
}

.result-item {
  text-align: center;
  margin-bottom: 30px;
}

.result-item h4 {
  color: var(--text-muted);
  font-size: 1.2rem;
}

.result-value {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-purple);
  font-family: var(--font-heading);
  text-shadow: 0 0 15px rgba(112, 0, 255, 0.4);
}

/* ==========================================================================
   Sample Campaign Reports (Animated Charts)
   ========================================================================== */
.reports-section {
  background: var(--bg-main);
}

.chart-container {
  display: flex;
  align-items: flex-end;
  height: 300px;
  gap: 20px;
  margin-top: 50px;
  padding-bottom: 30px;
  border-bottom: 2px solid var(--border-color);
  position: relative;
}

.chart-bar {
  flex: 1;
  background: linear-gradient(to top, var(--accent-purple), var(--accent-blue));
  border-radius: 5px 5px 0 0;
  position: relative;
  height: 0; /* Animated via JS */
  transition: height 1.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.chart-bar::after {
  content: attr(data-label);
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.chart-bar::before {
  content: attr(data-value);
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-main);
  font-weight: bold;
  font-family: var(--font-heading);
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials-section {
  background: var(--bg-sec);
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.testi-card {
  background: var(--bg-card);
  padding: 30px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  position: relative;
}

.testi-card::before {
  content: '"';
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 5rem;
  font-family: serif;
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
}

.testi-text {
  font-style: italic;
  margin-bottom: 20px;
  color: var(--text-muted);
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  background: var(--accent-purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-family: var(--font-heading);
}

/* ==========================================================================
   Contact Forms & Pre-footer CTA
   ========================================================================== */
.contact-cta {
  background: linear-gradient(135deg, var(--bg-main), #0f172a);
  padding: 80px 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.contact-cta::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  background: var(--accent-blue);
  filter: blur(150px);
  transform: translate(-50%, -50%);
  opacity: 0.2;
  z-index: 0;
}

.contact-cta .container {
  position: relative;
  z-index: 1;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-top: 40px;
  text-align: left;
}

.contact-info-block {
  background: var(--bg-card);
  padding: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 25px;
}

.info-icon {
  width: 40px;
  height: 40px;
  background: rgba(0, 240, 255, 0.1);
  color: var(--accent-blue);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* Form Styles */
.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  flex: 1;
  margin-bottom: 20px;
}

/* ==========================================================================
   Legal Pages Specific
   ========================================================================== */
.page-header {
  padding: 150px 0 80px;
  background: var(--bg-sec);
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  color: var(--accent-blue);
}

.legal-content {
  background: var(--bg-main);
}

.content-wrapper {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-card);
  padding: 50px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.content-wrapper h2 {
  color: var(--accent-blue);
  margin: 30px 0 15px;
  font-size: 1.5rem;
}

.content-wrapper p {
  color: var(--text-muted);
  margin-bottom: 15px;
}

.content-wrapper ul {
  margin-left: 20px;
  margin-bottom: 15px;
  color: var(--text-muted);
  list-style: disc;
}

/* ==========================================================================
   Live Chat & Scroll to Top
   ========================================================================== */
.live-chat-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: var(--accent-blue);
  color: var(--bg-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 0 20px var(--accent-glow);
  z-index: 999;
  transition: var(--transition-fast);
  animation: bounce 2s infinite;
}

.live-chat-widget:hover {
  transform: scale(1.1);
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-fast);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--accent-purple);
  border-color: var(--accent-purple);
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes floatCube {
  0% {
    transform: rotateX(0) rotateY(0) translateZ(0);
  }
  100% {
    transform: rotateX(360deg) rotateY(360deg) translateZ(50px);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 3rem;
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .calc-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--bg-main);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
  }
  .nav-menu.active {
    left: 0;
  }
  .hamburger {
    display: flex;
  }
  .header-actions .btn {
    display: none;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .footer-main {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-social,
  .footer-contact ul li {
    justify-content: center;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
  }
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  .chart-bar::after {
    font-size: 0.7rem;
  }
}
