/* styles.css */
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap");

:root {
  /* Color Palette */
  --bg-main: #050505;
  --bg-secondary: #0f0f11;
  --bg-card: rgba(255, 255, 255, 0.03);
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #52525b;

  /* Accents (Neon Cyan & Electric Purple) */
  --accent-1: #06b6d4;
  --accent-2: #8b5cf6;
  --accent-gradient: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  --accent-glow: rgba(6, 182, 212, 0.5);

  /* Typography */
  --font-heading: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Spacing & Layout */
  --container-width: 1400px;
  --padding-x: 5vw;
  --section-pad: 120px 0;
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 32px;

  /* Transitions */
  --transition-fast: 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-slow: 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: initial; /* Handled by JS for smoothness */
  font-size: 16px;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: none; /* Hide default cursor for custom one */
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 9999;
  pointer-events: none;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-1);
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition:
    width 0.2s,
    height 0.2s,
    background-color 0.2s;
}

.cursor-hover .cursor-outline {
  width: 60px;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.1);
  border-color: transparent;
  backdrop-filter: blur(2px);
}

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
}

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-1);
  margin-bottom: 20px;
}

.section-tag::before {
  content: "";
  width: 30px;
  height: 1px;
  background-color: var(--accent-1);
}

/* Layout Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--padding-x);
}

.section {
  padding: var(--section-pad);
  position: relative;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  cursor: none;
  position: relative;
  overflow: hidden;
  border: none;
  z-index: 1;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-main);
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent-gradient);
  z-index: -1;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.btn-primary:hover::before {
  opacity: 1;
}
.btn-primary:hover {
  color: var(--text-primary);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
  border-color: var(--accent-1);
  background: rgba(6, 182, 212, 0.05);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 1000;
  transition: var(--transition-fast);
}

.header.scrolled {
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(12px);
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 40px;
  filter: brightness(0) invert(1); /* Ensure white logo on dark bg */
}

.nav-list {
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  position: relative;
  padding: 5px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-gradient);
  transition: var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.dropdown {
  position: relative;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-secondary);
  min-width: 200px;
  padding: 10px 0;
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-fast);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--text-secondary);
}

.dropdown-menu a:hover {
  color: var(--accent-1);
  background: rgba(255, 255, 255, 0.02);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: none;
  width: 30px;
  height: 20px;
  position: relative;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  position: absolute;
  transition: 0.3s;
}
.hamburger {
  top: 50%;
  transform: translateY(-50%);
}
.hamburger::before {
  content: "";
  top: -8px;
  left: 0;
}
.hamburger::after {
  content: "";
  bottom: -8px;
  left: 0;
}

.menu-toggle.active .hamburger {
  background: transparent;
}
.menu-toggle.active .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}
.menu-toggle.active .hamburger::after {
  bottom: 0;
  transform: rotate(-45deg);
}

/* --- Index Specific Sections --- */

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 100px;
}

.hero-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60vw;
  height: 60vw;
  background: radial-gradient(
    circle,
    rgba(139, 92, 246, 0.15) 0%,
    rgba(6, 182, 212, 0) 70%
  );
  filter: blur(80px);
  z-index: 0;
  animation: pulse 10s infinite alternate;
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.4;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 6rem);
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-desc {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 40px;
}

.stat-item h4 {
  font-size: 2.5rem;
  color: var(--text-primary);
}
.stat-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Marquee Clients */
.marquee-section {
  padding: 40px 0;
  background: var(--bg-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  display: flex;
}

.marquee-content {
  display: flex;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
}

.marquee-item {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.1);
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
  margin: 0 40px;
  text-transform: uppercase;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Services Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 300px;
  gap: 24px;
  margin-top: 60px;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-slow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

.bento-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    800px circle at var(--mouse-x) var(--mouse-y),
    rgba(255, 255, 255, 0.06),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 0;
}
.bento-card:hover::before {
  opacity: 1;
}

.bento-card > * {
  position: relative;
  z-index: 1;
}

.bento-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-1);
  margin-bottom: 20px;
}

.bento-card h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}
.bento-card p {
  color: var(--text-secondary);
}

/* Grid specific spans */
.card-seo {
  grid-column: span 8;
}
.card-ppc {
  grid-column: span 4;
  background: linear-gradient(135deg, var(--bg-card), rgba(139, 92, 246, 0.1));
}
.card-social {
  grid-column: span 4;
}
.card-content {
  grid-column: span 8;
}

/* Interactive Calculator */
.calc-wrapper {
  background: var(--bg-secondary);
  border-radius: var(--border-radius-lg);
  padding: 60px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.calc-sliders .slider-group {
  margin-bottom: 30px;
}
.slider-group label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-heading);
  margin-bottom: 15px;
}
.slider-group input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  outline: none;
}
.slider-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-1);
  cursor: pointer;
}

.calc-result {
  background: rgba(0, 0, 0, 0.5);
  padding: 40px;
  border-radius: var(--border-radius-md);
  text-align: center;
  border: 1px solid var(--accent-1);
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.1);
}
.calc-result h3 {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.calc-result .total-val {
  font-size: 4rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--accent-1);
}

/* Data Visualization Mockup */
.data-viz-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: center;
}
.mockup-window {
  background: #111;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  position: relative;
}
.mockup-header {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.mockup-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #333;
}
.mockup-dot:nth-child(1) {
  background: #ff5f56;
}
.mockup-dot:nth-child(2) {
  background: #ffbd2e;
}
.mockup-dot:nth-child(3) {
  background: #27c93f;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 200px;
  margin-top: 30px;
}
.bar {
  flex: 1;
  background: var(--accent-gradient);
  border-radius: 4px 4px 0 0;
  transform-origin: bottom;
  transform: scaleY(0);
}
.bar.animate {
  animation: growBar 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.bar:nth-child(1) {
  height: 40%;
  animation-delay: 0.1s;
}
.bar:nth-child(2) {
  height: 60%;
  animation-delay: 0.2s;
}
.bar:nth-child(3) {
  height: 30%;
  animation-delay: 0.3s;
}
.bar:nth-child(4) {
  height: 80%;
  animation-delay: 0.4s;
}
.bar:nth-child(5) {
  height: 100%;
  animation-delay: 0.5s;
}

@keyframes growBar {
  to {
    transform: scaleY(1);
  }
}

/* Testimonials */
.testi-slider {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  padding-bottom: 40px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Firefox */
}
.testi-slider::-webkit-scrollbar {
  display: none;
}

.testi-card {
  min-width: 400px;
  background: var(--bg-card);
  padding: 40px;
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  scroll-snap-align: start;
}
.quote-icon {
  font-size: 2rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.testi-text {
  font-size: 1.1rem;
  margin-bottom: 30px;
  font-style: italic;
}
.client-info {
  display: flex;
  align-items: center;
  gap: 15px;
}
.client-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #333;
}
.client-info h4 {
  font-size: 1rem;
}
.client-info span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* CTA Pre-footer */
.cta-section {
  text-align: center;
  background: linear-gradient(to bottom, transparent, var(--bg-secondary));
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.cta-title {
  font-size: clamp(3rem, 5vw, 5rem);
  margin-bottom: 30px;
}

/* Footer */
.footer {
  background: var(--bg-main);
  padding: 80px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 60px;
  margin-bottom: 60px;
}
.footer-logo img {
  height: 40px;
  filter: brightness(0) invert(1);
  margin-bottom: 20px;
}
.footer-about p {
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 300px;
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 24px;
}
.footer-links li {
  margin-bottom: 12px;
}
.footer-links a {
  color: var(--text-secondary);
}
.footer-links a:hover {
  color: var(--accent-1);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  color: var(--text-secondary);
}
.footer-contact svg {
  width: 20px;
  color: var(--accent-1);
  flex-shrink: 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Legal Pages & Prose content */
.page-header {
  padding: 200px 0 100px;
  background: var(--bg-secondary);
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.page-header h1 {
  font-size: clamp(2.5rem, 4vw, 4rem);
  margin-bottom: 15px;
}
.breadcrumbs {
  color: var(--text-muted);
}
.breadcrumbs span {
  color: var(--accent-1);
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}
.legal-content h2 {
  font-size: 2rem;
  margin: 40px 0 20px;
  color: var(--text-primary);
}
.legal-content p {
  margin-bottom: 20px;
  color: var(--text-secondary);
}
.legal-content strong {
  color: var(--text-primary);
}

/* Contact Page Specific */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
}
.contact-info-card {
  background: var(--bg-secondary);
  padding: 40px;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-1);
}
.contact-info-card h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}
.contact-info-card p {
  color: var(--text-secondary);
}

.contact-form {
  background: var(--bg-card);
  padding: 50px;
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.form-group {
  margin-bottom: 24px;
  position: relative;
}
.form-control {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 20px;
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: var(--transition-fast);
}
.form-control:focus {
  border-color: var(--accent-1);
  background: rgba(0, 0, 0, 0.5);
}
textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

/* Scroll Animations Data Attributes */
[data-scroll] {
  opacity: 0;
  transform: translateY(40px);
  transition: 1s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-scroll="in"] {
  opacity: 1;
  transform: translateY(0);
}
[data-scroll-delay="1"] {
  transition-delay: 0.1s;
}
[data-scroll-delay="2"] {
  transition-delay: 0.2s;
}
[data-scroll-delay="3"] {
  transition-delay: 0.3s;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-seo,
  .card-ppc,
  .card-social,
  .card-content {
    grid-column: span 2;
  }
  .calc-wrapper,
  .data-viz-container,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-list,
  .header-actions .btn {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .card-seo,
  .card-ppc,
  .card-social,
  .card-content {
    grid-column: span 1;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .testi-card {
    min-width: 300px;
  }
}
