/* ==========================================================================
   styles.css | AWWARDS-Level Premium Agency Theme
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-base: #050508;
  --bg-surface: #0e0e14;
  --bg-surface-light: #1a1a24;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --primary: #00f3ff;
  --primary-glow: rgba(0, 243, 255, 0.4);
  --secondary: #7000ff;
  --accent: #ff00ea;

  /* Typography */
  --font-heading: "Space Grotesk", sans-serif;
  --font-body: "Plus Jakarta Sans", sans-serif;

  /* Spacing & Layout */
  --container-w: 1400px;
  --section-pad: 120px 0;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  /* Animation */
  --transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Resets & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}

/* --- Custom Cursor --- */
.cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition:
    width 0.2s,
    height 0.2s;
}

.cursor-outline {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 1px solid var(--primary-glow);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: 0.15s ease-out;
}

/* --- Typography Utilities --- */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Global Components --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 50px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: none;
  z-index: 1;
}

.btn-primary {
  background: transparent;
  color: var(--bg-base);
  box-shadow: 0 0 20px var(--primary-glow);
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  z-index: -1;
  transition: var(--transition-fast);
}

.btn-primary:hover::before {
  transform: scale(1.05);
  filter: brightness(1.2);
}

.section-title {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.25rem;
  max-width: 600px;
  margin-bottom: 4rem;
}

/* --- Global Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 1000;
  transition: var(--transition-fast);
}

.site-header.scrolled {
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1rem 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo img , .footer-about a img {
  height: 60px;
  filter: invert(1) drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.main-nav ul {
  display: flex;
  gap: 2.5rem;
}

.main-nav a {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 5px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition-fast);
}

.main-nav a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* --- Hero Section (Index) --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 100px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
  top: 50%;
  right: -10%;
  transform: translateY(-50%);
  filter: blur(100px);
  opacity: 0.3;
  z-index: 0;
  animation: pulseGlow 8s infinite alternate;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero h1 {
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: 1;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

/* --- Marquee Section --- */
.marquee-wrapper {
  padding: 3rem 0;
  background: var(--bg-surface);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  white-space: nowrap;
  display: flex;
}

.marquee-content {
  display: inline-flex;
  gap: 4rem;
  animation: scrollMarquee 30s linear infinite;
  padding-right: 4rem;
}

.marquee-item {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px var(--text-muted);
  text-transform: uppercase;
}

/* --- Services Bento Grid --- */
.services-section {
  padding: var(--section-pad);
  position: relative;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  grid-auto-rows: minmax(300px, auto);
}

.bento-item {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 3rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-fast);
  transform-style: preserve-3d;
}

.bento-item::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%
  );
  z-index: 0;
  opacity: 0;
  transition: opacity 0.3s;
}

.bento-item:hover::before {
  opacity: 1;
}

.bento-item:nth-child(1) {
  grid-column: span 8;
}
.bento-item:nth-child(2) {
  grid-column: span 4;
}
.bento-item:nth-child(3) {
  grid-column: span 4;
}
.bento-item:nth-child(4) {
  grid-column: span 8;
}

.service-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  transform: translateZ(30px); /* 3D effect inside card */
}

.bento-item h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  transform: translateZ(20px);
}
.bento-item p {
  color: var(--text-muted);
  transform: translateZ(10px);
}

/* --- ROI Calculator Section --- */
.calculator-section {
  padding: var(--section-pad);
  background: var(--bg-surface);
}

.calc-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.calc-panel {
  background: var(--bg-base);
  padding: 3rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 243, 255, 0.2);
  box-shadow: 0 0 40px rgba(0, 243, 255, 0.05);
}

.calc-group {
  margin-bottom: 2rem;
}

.calc-group label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-heading);
  margin-bottom: 1rem;
  color: var(--text-muted);
}

/* Custom Range Slider */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  margin-top: -8px;
  box-shadow: 0 0 10px var(--primary);
}
input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 4px;
  cursor: pointer;
  background: var(--bg-surface-light);
  border-radius: 2px;
}

.calc-result {
  text-align: center;
  padding: 2rem;
  background: rgba(0, 243, 255, 0.05);
  border-radius: var(--radius-md);
  margin-top: 2rem;
}

.calc-result h4 {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.calc-result .value {
  font-size: 3rem;
  font-family: var(--font-heading);
  color: var(--primary);
  font-weight: 700;
}

/* --- Live Reports Section (Visuals) --- */
.reports-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.stat-card {
  background: var(--bg-surface);
  padding: 3rem 2rem;
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-number {
  font-size: 4rem;
  font-family: var(--font-heading);
  font-weight: 700;
  background: linear-gradient(to right, var(--text-main), var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Testimonials --- */
.testimonial-slider {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding-bottom: 2rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Firefox */
}
.testimonial-slider::-webkit-scrollbar {
  display: none;
}

.test-card {
  min-width: 400px;
  background: var(--bg-surface);
  padding: 3rem;
  border-radius: var(--radius-md);
  scroll-snap-align: start;
  border-top: 2px solid var(--accent);
}

.test-text {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 2rem;
}
.test-author h5 {
  color: var(--primary);
  font-size: 1.2rem;
}

/* --- Live Chat Widget --- */
.chat-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
}
.chat-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary);
  color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0, 243, 255, 0.3);
  border: none;
  transition: var(--transition-fast);
}
.chat-btn:hover {
  transform: scale(1.1);
}

/* --- Global Footer --- */
.site-footer {
  background: #020203;
  padding: 6rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-about img {
  height: 40px;
  margin-bottom: 1.5rem;
}
.footer-about p {
  color: var(--text-muted);
  max-width: 300px;
}

.footer-title {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.footer-links ul li {
  margin-bottom: 0.8rem;
}
.footer-links ul li a {
  color: var(--text-muted);
}
.footer-links ul li a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* --- Legal & Inner Pages Styling --- */
.page-header {
  padding: 200px 0 100px;
  text-align: center;
  background: linear-gradient(
    180deg,
    rgba(112, 0, 255, 0.1) 0%,
    var(--bg-base) 100%
  );
}

.legal-content,
.contact-content {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--section-pad);
}

.legal-content h2 {
  font-size: 2rem;
  margin: 3rem 0 1rem;
  color: var(--primary);
}

.legal-content p,
.legal-content ul {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

/* --- Contact Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
}

.contact-info li {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
}
.contact-info li span {
  color: var(--primary);
  font-family: var(--font-heading);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
}
.contact-info li p {
  font-size: 1.2rem;
}

.form-group {
  margin-bottom: 2rem;
  position: relative;
}
.form-control {
  width: 100%;
  padding: 1.5rem;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-fast);
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.1);
}
textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* --- Utilities & Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulseGlow {
  0% {
    transform: translateY(-50%) scale(1);
    opacity: 0.2;
  }
  100% {
    transform: translateY(-50%) scale(1.2);
    opacity: 0.4;
  }
}

@keyframes scrollMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .bento-item:nth-child(n) {
    grid-column: span 6;
  }
  .calc-wrapper,
  .footer-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .reports-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav,
  .header-actions .btn-primary {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .hero h1 {
    font-size: 3rem;
  }
  .section-title {
    font-size: 2.5rem;
  }
  .bento-item:nth-child(n) {
    grid-column: span 12;
  }
  .reports-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-about {
    align-items: center;
    display: flex;
    flex-direction: column;
  }
}
