/* ==========================================================================
   CORE SYSTEM & VARIABLES (LIGHT THEME)
   ========================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Clash+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap");

:root {
  /* Light Theme Palette */
  --bg-primary: #f8f9fa;
  --bg-secondary: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.7);
  --text-primary: #0a0a0a;
  --text-secondary: #4a4a55;
  --accent-1: #4f46e5; /* Vibrant Indigo */
  --accent-2: #ec4899; /* Vibrant Pink */
  --accent-gradient: linear-gradient(135deg, var(--accent-1), var(--accent-2));

  /* Motion & Physics */
  --spring-easing: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --fluid-easing: cubic-bezier(0.7, 0, 0.3, 1);
  --duration-fast: 0.3s;
  --duration-med: 0.6s;
  --duration-slow: 1.2s;

  /* Geometry */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 32px;
  --radius-pill: 100px;

  /* Z-Index Architecture */
  --z-bg: -1;
  --z-base: 1;
  --z-float: 10;
  --z-nav: 100;
  --z-cursor: 9999;
  --z-loader: 10000;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: none; /* Custom cursor implementation */
}

html {
  font-size: 16px;
  scroll-behavior: auto; /* Handled by custom JS Lenis-clone */
  overflow-x: hidden;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Noise Overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
  opacity: 0.03;
  z-index: var(--z-nav);
  pointer-events: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6,
.display-text {
  font-family: "Clash Display", sans-serif;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

p {
  line-height: 1.6;
}

/* ==========================================================================
      CUSTOM CURSOR & PRELOADER
      ========================================================================== */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  background: var(--accent-1);
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  transition:
    width 0.3s,
    height 0.3s,
    background 0.3s;
  mix-blend-mode: difference;
}

.custom-cursor.hover {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 1);
  mix-blend-mode: exclusion;
}

.preloader {
  position: fixed;
  inset: 0;
  background: var(--bg-secondary);
  z-index: var(--z-loader);
  display: flex;
  justify-content: center;
  align-items: center;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  transition: clip-path 1.2s var(--fluid-easing);
}
.preloader.hidden {
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  pointer-events: none;
}
.preloader-text {
  font-family: "Clash Display";
  font-size: 4vw;
  overflow: hidden;
}
.preloader-text span {
  display: inline-block;
  transform: translateY(100%);
  animation: slideUp 1s forwards var(--spring-easing);
}

@keyframes slideUp {
  to {
    transform: translateY(0);
  }
}

/* ==========================================================================
      LAYOUT & UTILITIES
      ========================================================================== */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 4vw;
}
.section-padding {
  padding: 8vw 0;
}
.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-lg);
}

/* Buttons */
.btn-magnetic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  background: var(--text-primary);
  color: var(--bg-secondary);
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  transition: color 0.3s;
  transform-style: preserve-3d;
}
.btn-magnetic::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent-gradient);
  transition: transform 0.4s var(--fluid-easing);
  z-index: -1;
}
.btn-magnetic:hover::before {
  transform: translateY(-100%);
}
.btn-magnetic:hover {
  color: #fff;
}

/* ==========================================================================
      HEADER & FOOTER (IDENTICAL ACROSS ALL PAGES)
      ========================================================================== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-nav);
  padding: 1.5rem 4vw;
  transition:
    background 0.4s,
    padding 0.4s;
}
.main-header.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  padding: 1rem 4vw;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
}
.site-logo {
  height: 60px;
  /* filter: invert(1); Invert white logo for light theme */
  transition: transform 0.3s;
}
.site-logo:hover {
  transform: scale(1.05);
}

.desktop-nav .nav-links {
  display: flex;
  gap: 3rem;
  list-style: none;
}
.desktop-nav a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  position: relative;
  overflow: hidden;
  display: block;
}
.desktop-nav a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-1);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--fluid-easing);
}
.desktop-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.mobile-toggle {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  z-index: 101;
}
.mobile-toggle .bar {
  width: 30px;
  height: 2px;
  background: var(--text-primary);
  transition: 0.4s;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: circle(0% at 100% 0%);
  transition: clip-path 0.8s var(--fluid-easing);
}
.mobile-menu-overlay.active {
  clip-path: circle(150% at 100% 0%);
}
.mobile-links {
  list-style: none;
  text-align: center;
}
.mobile-links a {
  font-size: 3rem;
  font-family: "Clash Display";
  color: var(--text-primary);
  text-decoration: none;
  line-height: 2;
}

.main-footer {
  background: var(--text-primary);
  color: var(--bg-secondary);
  padding: 6vw 0 2vw;
  margin-top: auto;
}
.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 4vw;
}
.footer-brand .site-logo {
  filter: invert(1);
  margin-bottom: 1.5rem;
} /* White logo on dark footer */
.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  max-width: 300px;
}
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}
.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}
.social-links a:hover {
  background: var(--accent-1);
  transform: translateY(-5px);
}

.footer-links h4,
.footer-contact h4 {
  font-family: "Clash Display";
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}
.footer-links ul,
.footer-contact ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: 0.3s;
}
.footer-links a:hover {
  color: #fff;
  padding-left: 10px;
}
.footer-contact li {
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-bottom {
  text-align: center;
  margin-top: 6vw;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 992px) {
  .desktop-nav,
  .header-actions .btn-magnetic {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ==========================================================================
      INDEX PAGE SECTIONS (3D, CINEMATICS, DIGITAL MARKETING SPECIFIC)
      ========================================================================== */
/* Hero 3D Environment */
.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
  overflow: hidden;
  background: var(--bg-primary);
}
.hero-bg-canvas {
  position: absolute;
  inset: 0;
  z-index: var(--z-bg);
  opacity: 0.6;
}
.hero-content {
  text-align: center;
  z-index: var(--z-base);
  transform-style: preserve-3d;
}
.hero-title {
  font-size: clamp(4rem, 8vw, 8rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.9;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0px 20px 30px rgba(79, 70, 229, 0.2));
}
.hero-subtitle {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* 3D Floating Shapes */
.shape {
  position: absolute;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  z-index: var(--z-float);
}
.shape-1 {
  width: 150px;
  height: 150px;
  top: 20%;
  left: 10%;
  animation: float 6s infinite ease-in-out;
}
.shape-2 {
  width: 100px;
  height: 100px;
  bottom: 20%;
  right: 15%;
  border-radius: 50%;
  animation: float 8s infinite ease-in-out reverse;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-30px) rotate(15deg);
  }
}

/* Kinetic Marquee */
.marquee-section {
  padding: 4vw 0;
  background: var(--text-primary);
  color: var(--bg-secondary);
  overflow: hidden;
  white-space: nowrap;
  display: flex;
}
.marquee-content {
  font-family: "Clash Display";
  font-size: 8vw;
  font-weight: 600;
  text-transform: uppercase;
  display: inline-block;
  animation: marquee 20s linear infinite;
  padding-right: 2vw;
}
.marquee-content span {
  color: var(--accent-1);
}
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* 3D Services Stack */
.services-section {
  background: var(--bg-secondary);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
  perspective: 1500px;
}
.service-card {
  padding: 3rem 2rem;
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  transform-style: preserve-3d;
  transition:
    transform 0.6s var(--spring-easing),
    box-shadow 0.6s;
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
}
.service-card:hover {
  transform: translateY(-10px) rotateX(5deg) rotateY(-5deg);
  box-shadow: 20px 20px 40px rgba(0, 0, 0, 0.08);
}
.service-icon {
  font-size: 3rem;
  color: var(--accent-1);
  margin-bottom: 1.5rem;
  display: block;
  transform: translateZ(30px);
}
.service-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  transform: translateZ(20px);
}
.service-card p {
  color: var(--text-secondary);
  transform: translateZ(10px);
}

/* Live Dashboard / Metrics */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}
.metric-card {
  text-align: center;
  padding: 3rem 2rem;
}
.odometer {
  font-family: "Clash Display";
  font-size: 4rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.5rem;
}
.metric-label {
  font-size: 1.1rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
}
@media (max-width: 992px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ROI Calculator */
.roi-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.roi-form {
  padding: 3rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}
.input-group {
  margin-bottom: 2rem;
}
.input-group label {
  display: block;
  margin-bottom: 0.8rem;
  font-weight: 500;
}
.input-range {
  width: 100%;
  -webkit-appearance: none;
  height: 6px;
  background: #e2e8f0;
  border-radius: 5px;
  outline: none;
}
.input-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-1);
  cursor: pointer;
  transition: 0.2s;
}
.input-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}
.roi-result {
  text-align: center;
}
.roi-value {
  font-size: clamp(3rem, 6vw, 6rem);
  font-family: "Clash Display";
  font-weight: 700;
  color: var(--accent-1);
}
@media (max-width: 768px) {
  .roi-container {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
      FIXED PROCESS / TIMELINE 
      ========================================================================== */
.process-section {
  background: var(--text-primary);
  color: var(--bg-secondary);
  position: relative;
}
.timeline {
  position: relative;
  max-width: 800px;
  margin: 4rem auto 0;
  padding-bottom: 2rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-50%);
}
.timeline-item {
  width: 50%;
  padding: 2.5rem 3rem;
  position: relative;
}
.timeline-item:nth-child(odd) {
  margin-left: 0;
  text-align: right;
}
.timeline-item:nth-child(even) {
  margin-left: 50%;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 50%;
  width: 20px;
  height: 20px;
  background: var(--accent-1);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 20px var(--accent-1);
  z-index: 2;
}
.timeline-item:nth-child(odd) .timeline-dot {
  right: -10px;
}
.timeline-item:nth-child(even) .timeline-dot {
  left: -10px;
}

/* Responsive Timeline For Mobile/Tablet */
@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
    transform: translateX(0);
  }
  .timeline-item {
    width: 100%;
    padding: 2rem 0 2rem 50px;
  }
  .timeline-item:nth-child(even),
  .timeline-item:nth-child(odd) {
    margin-left: 0;
    text-align: left;
  }
  .timeline-item:nth-child(even) .timeline-dot,
  .timeline-item:nth-child(odd) .timeline-dot {
    left: 10px;
    right: auto;
  }
}

/* Testimonials Orbit */
.testimonials-section {
  overflow: hidden;
  text-align: center;
}
.testimonial-slider {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: slideTestimonials 30s linear infinite;
  margin-top: 4rem;
  padding: 2rem 0;
}
.test-card {
  width: 400px;
  text-align: left;
  padding: 15px 30px;
}
.test-card p {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 1.5rem;
}
.client-info h4 {
  color: var(--text-primary);
}
@keyframes slideTestimonials {
  to {
    transform: translateX(calc(-50% - 1rem));
  }
}

/* Section Headings */
.section-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 4px;
  background: var(--accent-1);
}

/* ==========================================================================
      LEGAL & CONTACT PAGES
      ========================================================================== */
.page-header-block {
  padding: 12vw 0 6vw;
  background: var(--bg-primary);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-title {
  font-size: clamp(3rem, 6vw, 6rem);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}
.breadcrumb {
  color: var(--text-secondary);
  font-weight: 500;
}

.legal-container {
  max-width: 1000px;
  margin: -4vw auto 8vw;
  padding: 4rem;
  position: relative;
  z-index: 10;
  background: var(--bg-secondary);
}
.legal-content h2 {
  margin: 2.5rem 0 1rem;
  font-size: 2rem;
  color: var(--text-primary);
}
.legal-content p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Contact Page */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
}
.info-panel {
  padding: 4rem 3rem;
  background: var(--text-primary);
  color: var(--bg-secondary);
  border-radius: var(--radius-lg);
}
.info-item {
  display: flex;
  gap: 1.5rem;
  margin-top: 2.5rem;
  align-items: flex-start;
}
.info-item i {
  font-size: 1.5rem;
  color: var(--accent-1);
}
.custom-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.custom-form input,
.custom-form select,
.custom-form textarea {
  width: 100%;
  padding: 1.2rem;
  background: var(--bg-primary);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-sm);
  font-family: "Inter";
  font-size: 1rem;
  margin-top: 0.5rem;
  transition: 0.3s;
}
.custom-form input:focus,
.custom-form textarea:focus {
  border-color: var(--accent-1);
  outline: none;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}
.btn-primary-large {
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  padding: 1.5rem;
  width: 100%;
  border-radius: var(--radius-pill);
  font-family: "Clash Display";
  font-size: 1.2rem;
  cursor: none;
  margin-top: 2rem;
  transition: transform 0.3s;
}
.btn-primary-large:hover {
  transform: scale(1.02);
}
@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .custom-form .form-row {
    grid-template-columns: 1fr;
  }
  .legal-container {
    padding: 2rem;
  }
}

/* ==========================================================================
   BULLETPROOF JS ANIMATION CLASSES
   ========================================================================== */
[data-motion] {
  opacity: 0;
  will-change: transform, opacity; /* Browser optimization */
}

[data-motion="fade-up"] {
  transform: translateY(50px);
  transition:
    opacity 0.8s,
    transform 0.8s var(--fluid-easing);
}

[data-motion="scale-in"] {
  transform: scale(0.8);
  transition:
    opacity 0.8s,
    transform 0.8s var(--spring-easing);
}

/* Fixed Animation for Timeline - Replaced Clip with 3D Slide */
[data-motion="clip-right"] {
  opacity: 0;
  transform: translateX(-40px) translateZ(-50px);
  transition:
    opacity 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.is-visible[data-motion="fade-up"] {
  opacity: 1;
  transform: translateY(0);
}
.is-visible[data-motion="scale-in"] {
  opacity: 1;
  transform: scale(1);
}

/* Timeline Visible State */
.is-visible[data-motion="clip-right"] {
  opacity: 1;
  transform: translateX(0) translateZ(0);
}

/* Timeline Layout Guarantee */
.timeline-item {
  min-height: 120px; /* Guarantees box height for JS detection */
}
