/* ==========================================================================
   Base & Variables
   ========================================================================== */
:root {
  --col-bg: #0b0e14;
  --col-bg-alt: #121824;
  --col-surface: #1a2233;
  --col-surface-hover: #232d42;
  --col-primary: #00f0ff;
  --col-secondary: #8a2be2;
  --col-accent: #ff007f;
  --col-text: #e2e8f0;
  --col-text-muted: #94a3b8;
  --font-main: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --header-height: 80px;
  --transition-fast: 0.3s ease;
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-neon: 0 0 15px rgba(0, 240, 255, 0.3);
  --shadow-neon-hover: 0 0 30px rgba(0, 240, 255, 0.6);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  background-color: var(--col-bg);
  color: var(--col-text);
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 1rem;
}

.gradient-text {
  background: linear-gradient(45deg, var(--col-primary), var(--col-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.section-subtitle {
  text-align: center;
  color: var(--col-text-muted);
  max-width: 600px;
  margin: 0 auto 4rem;
  font-size: 1.1rem;
  z-index: 2;
  position: relative;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition-fast);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: linear-gradient(45deg, var(--col-primary), var(--col-secondary));
  color: #fff;
  box-shadow: var(--shadow-neon);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(45deg, var(--col-secondary), var(--col-accent));
  opacity: 0;
  z-index: -1;
  transition: var(--transition-fast);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover {
  box-shadow: var(--shadow-neon-hover);
  transform: translateY(-3px);
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 6rem 0;
  position: relative;
}

/* Background Animated Orbs */
.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  opacity: 0.4;
  animation: floatOrb 10s infinite alternate ease-in-out;
}
.orb-1 { top: 10%; left: -10%; width: 400px; height: 400px; background: var(--col-secondary); }
.orb-2 { bottom: 20%; right: -10%; width: 500px; height: 500px; background: var(--col-primary); animation-delay: -5s; }

/* ==========================================================================
   Header & Nav (STRICTLY CONSISTENT SITE-WIDE)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(11, 14, 20, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: var(--transition-fast);
}

.site-header.scrolled {
  box-shadow: 0 5px 20px rgba(0,0,0,0.5);
  background: rgba(11, 14, 20, 0.95);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo-container img {
  height: 50px;
  filter: brightness(0) invert(1);
}

.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  font-size: 1rem;
  color: var(--col-text);
  transition: var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: var(--col-primary);
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--col-primary);
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
}

.mobile-toggle span {
  width: 30px;
  height: 3px;
  background: var(--col-text);
  transition: var(--transition-fast);
}

/* ==========================================================================
   1. Hero Section (3D & Interactive)
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
  perspective: 1000px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  z-index: 2;
  position: relative;
}

.hero-content h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  transform: translateZ(0);
  animation: slideInLeft 1s ease-out forwards;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--col-text-muted);
  margin-bottom: 2.5rem;
  animation: slideInLeft 1s ease-out 0.2s forwards;
  opacity: 0;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  animation: slideInLeft 1s ease-out 0.4s forwards;
  opacity: 0;
}

.hero-visual {
  position: relative;
  height: 500px;
  transform-style: preserve-3d;
  animation: float3D 6s infinite ease-in-out;
}

.cube-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  transform-style: preserve-3d;
  transform: translate(-50%, -50%) rotateX(-20deg) rotateY(45deg);
  animation: rotateCube 15s infinite linear;
}

.cube-face {
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgba(0, 240, 255, 0.1);
  border: 2px solid var(--col-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  color: var(--col-primary);
  box-shadow: inset 0 0 30px rgba(0, 240, 255, 0.2);
  backdrop-filter: blur(5px);
}

.cube-face.front  { transform: translateZ(100px); }
.cube-face.back   { transform: rotateY(180deg) translateZ(100px); }
.cube-face.right  { transform: rotateY(90deg) translateZ(100px); }
.cube-face.left   { transform: rotateY(-90deg) translateZ(100px); }
.cube-face.top    { transform: rotateX(90deg) translateZ(100px); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(100px); }

/* ==========================================================================
   2. About / Stats Section
   ========================================================================== */
.about-section {
  background: var(--col-bg-alt);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 3rem 2rem;
  background: var(--col-surface);
  border-radius: 20px;
  transition: var(--transition-slow);
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}

.stat-item:hover {
  transform: translateY(-10px);
  border-color: var(--col-secondary);
  box-shadow: 0 10px 30px rgba(138, 43, 226, 0.2);
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(45deg, var(--col-primary), var(--col-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
  color: var(--col-text-muted);
  font-weight: 500;
}

/* ==========================================================================
   3. Services Section (3D Flip Cards)
   ========================================================================== */
.services-section {
  perspective: 1200px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.service-card {
  width: 100%;
  height: 350px;
  perspective: 1000px;
  background: transparent;
}

.service-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
}

.service-card:hover .service-card-inner {
  transform: rotateY(180deg);
}

.service-front, .service-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 20px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--col-surface);
  border: 1px solid rgba(255,255,255,0.05);
}

.service-front {
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.service-back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, var(--col-surface), var(--col-bg-alt));
  border-color: var(--col-primary);
}

.service-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 1.5rem;
  fill: var(--col-primary);
}

.service-front h3 {
  font-size: 1.5rem;
}

.service-back p {
  color: var(--col-text-muted);
  margin-bottom: 1.5rem;
}

.service-link {
  color: var(--col-primary);
  text-decoration: none;
  font-weight: bold;
  position: relative;
}

.service-link::after {
  content: '→';
  margin-left: 5px;
  transition: var(--transition-fast);
}

.service-link:hover::after {
  margin-left: 10px;
}

/* ==========================================================================
   4. Industries Section
   ========================================================================== */
.industries-section {
  background: var(--col-bg-alt);
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.industry-item {
  position: relative;
  height: 250px;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
}

.industry-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
  filter: grayscale(80%) brightness(0.4);
}

.industry-item:hover .industry-bg {
  transform: scale(1.1);
  filter: grayscale(0%) brightness(0.6);
}

.industry-content {
  position: absolute;
  bottom: 0; left: 0; width: 100%;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(11,14,20,0.9), transparent);
  transition: var(--transition-fast);
}

.industry-content h3 {
  margin: 0;
  font-size: 1.4rem;
  transform: translateY(10px);
  transition: var(--transition-fast);
}

.industry-item:hover .industry-content h3 {
  transform: translateY(0);
  color: var(--col-primary);
}

/* ==========================================================================
   5. Interactive Campaign Reports Section
   ========================================================================== */
.reports-section {
  background: var(--col-bg);
}

.dashboard-mockup {
  background: var(--col-surface);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(0, 240, 255, 0.2);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  position: relative;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 1rem;
}

.chart-container {
  display: flex;
  align-items: flex-end;
  height: 300px;
  gap: 2%;
  padding-top: 2rem;
}

.chart-bar {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border-radius: 5px 5px 0 0;
  position: relative;
  display: flex;
  align-items: flex-end;
}

.chart-fill {
  width: 100%;
  background: linear-gradient(to top, var(--col-secondary), var(--col-primary));
  border-radius: 5px 5px 0 0;
  height: 0; /* Animated via JS */
  transition: height 1.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.chart-fill::after {
  content: attr(data-value);
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  font-weight: bold;
  color: var(--col-text);
  opacity: 0;
  transition: opacity 0.5s 1.5s;
}

.chart-bar.animated .chart-fill::after {
  opacity: 1;
}

/* ==========================================================================
   6. Our Process Section
   ========================================================================== */
.process-section {
  background: var(--col-bg-alt);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50px;
  width: 2px;
  height: 100%;
  background: rgba(255,255,255,0.1);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 120px;
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-icon {
  position: absolute;
  left: 30px;
  top: 0;
  width: 40px;
  height: 40px;
  background: var(--col-bg);
  border: 2px solid var(--col-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--col-primary);
  z-index: 2;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

.timeline-content {
  background: var(--col-surface);
  padding: 2rem;
  border-radius: 15px;
  position: relative;
}

.timeline-content::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 15px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 10px solid var(--col-surface);
}

/* ==========================================================================
   7. Testimonials Section
   ========================================================================== */
.testimonials-section {
  position: relative;
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testi-card {
  background: var(--col-surface);
  padding: 3rem 2rem;
  border-radius: 20px;
  position: relative;
  border: 1px solid rgba(255,255,255,0.05);
  transition: var(--transition-fast);
}

.testi-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border-color: rgba(255, 0, 127, 0.3);
}

.quote-icon {
  font-size: 4rem;
  color: var(--col-accent);
  opacity: 0.2;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}

.client-info {
  display: flex;
  align-items: center;
  margin-top: 2rem;
}

.client-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--col-text-muted);
  margin-right: 1rem;
}

/* ==========================================================================
   8. Call to Action / Quote Section
   ========================================================================== */
.cta-section {
  background: linear-gradient(135deg, var(--col-accent), var(--col-secondary));
  text-align: center;
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: #fff;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  color: rgba(255,255,255,0.9);
}

/* ==========================================================================
   9. Footer (STRICTLY CONSISTENT SITE-WIDE)
   ========================================================================== */
.site-footer {
  background: var(--col-bg-alt);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--col-primary);
}

.footer-logo {
  margin-bottom: 1.5rem;
}

.footer-logo img {
  height: 50px;
  filter: brightness(0) invert(1);
}

.footer-text {
  color: var(--col-text-muted);
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  color: var(--col-text-muted);
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--col-primary);
  padding-left: 5px;
}

.newsletter-form {
  display: flex;
  margin-top: 1rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.8rem 1rem;
  border: none;
  background: var(--col-surface);
  color: var(--col-text);
  border-radius: 5px 0 0 5px;
  outline: none;
}

.newsletter-form button {
  padding: 0.8rem 1.5rem;
  border: none;
  background: var(--col-primary);
  color: var(--col-bg);
  font-weight: bold;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  transition: var(--transition-fast);
}

.newsletter-form button:hover {
  background: var(--col-text);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--col-text-muted);
  font-size: 0.9rem;
}

.footer-bottom-links {
  margin-top: 1rem;
}

.footer-bottom-links a {
  margin: 0 10px;
  color: var(--col-text-muted);
}

.footer-bottom-links a:hover {
  color: var(--col-primary);
}

/* ==========================================================================
   Internal Pages (Legal & Contact)
   ========================================================================== */
.page-header {
  padding: 12rem 0 6rem;
  background: var(--col-bg-alt);
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.page-header h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.legal-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.legal-content h2 {
  font-size: 2rem;
  margin: 2.5rem 0 1rem;
  color: var(--col-primary);
}

.legal-content h3 {
  font-size: 1.5rem;
  margin: 1.5rem 0 1rem;
  color: var(--col-secondary);
}

.legal-content p {
  margin-bottom: 1.5rem;
  color: var(--col-text-muted);
  font-size: 1.1rem;
  line-height: 1.8;
}

.legal-content ul {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
  color: var(--col-text-muted);
  list-style-type: disc;
}

/* Contact Form Specific */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 4rem 0;
}

.contact-info-box {
  background: var(--col-surface);
  padding: 3rem;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.05);
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.info-icon {
  width: 50px;
  height: 50px;
  background: rgba(0, 240, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.5rem;
  color: var(--col-primary);
}

.info-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.info-text h4 {
  margin-bottom: 0.5rem;
}

.info-text p {
  color: var(--col-text-muted);
}

.contact-form {
  background: var(--col-surface);
  padding: 3rem;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.05);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--col-text);
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 1rem;
  background: var(--col-bg);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--col-text);
  font-family: var(--font-main);
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--col-primary);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -30px) scale(1.1); }
}

@keyframes float3D {
  0%, 100% { transform: translateY(0) rotateX(0) rotateY(0); }
  50% { transform: translateY(-20px) rotateX(5deg) rotateY(5deg); }
}

@keyframes rotateCube {
  0% { transform: translate(-50%, -50%) rotateX(-20deg) rotateY(0deg); }
  100% { transform: translate(-50%, -50%) rotateX(-20deg) rotateY(360deg); }
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-content h1 { font-size: 3rem; }
  .hero-buttons { justify-content: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-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(--col-bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
  }
  .nav-menu.active { left: 0; }
  .mobile-toggle { display: flex; }
  .stats-grid, .services-grid, .industry-grid, .testi-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .chart-container { height: 200px; }
  .timeline::before { left: 20px; }
  .timeline-icon { left: 0; width: 30px; height: 30px; font-size: 0.8rem; }
  .timeline-item { padding-left: 60px; }
}