/* ==========================================================================
   DOMAINTHEME - PREMIUM AWWWARDS LEVEL STYLESHEET
   Pure CSS - No Frameworks
   ========================================================================== */

@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-surface: #111111;
  --bg-surface-light: rgba(255, 255, 255, 0.03);
  --border-color: rgba(255, 255, 255, 0.08);

  --primary: #4f46e5;
  --primary-glow: rgba(79, 70, 229, 0.5);
  --secondary: #06b6d4;
  --accent: #ec4899;

  --text-main: #ffffff;
  --text-muted: #a3a3a3;
  --text-dark: #050505;

  /* Typography */
  --font-head: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Spacing & Layout */
  --container-width: 1400px;
  --section-pad: 8rem 0;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 100px;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --transition-fast: 0.3s var(--ease-out-expo);
  --transition-slow: 0.8s var(--ease-out-expo);
}

/* ==========================================================================
      RESET & BASE
      ========================================================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-main);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none; /* Custom cursor */
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-head);
  line-height: 1.1;
  font-weight: 600;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ==========================================================================
      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(--secondary);
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(6, 182, 212, 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.05);
  border-color: transparent;
  backdrop-filter: blur(2px);
}

/* ==========================================================================
      GLOBAL BACKGROUND EFFECTS (3D/GLOW)
      ========================================================================== */
.ambient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  animation: float 20s infinite ease-in-out alternate;
}

.orb-1 {
  width: 50vw;
  height: 50vw;
  background: var(--primary);
  top: -20%;
  left: -10%;
}
.orb-2 {
  width: 40vw;
  height: 40vw;
  background: var(--accent);
  bottom: -10%;
  right: -10%;
  animation-delay: -5s;
}
.orb-3 {
  width: 30vw;
  height: 30vw;
  background: var(--secondary);
  top: 40%;
  left: 60%;
  animation-delay: -10s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(10%, 15%) scale(1.1);
  }
}

/* ==========================================================================
      HEADER
      ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 1000;
  transition: all var(--transition-fast);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
}

.header .container {
  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: 3rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--secondary);
  transition: width var(--transition-fast);
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Magnetic Button Base */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--text-main);
  box-shadow: 0 10px 30px -10px var(--primary-glow);
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  z-index: -1;
  transition: opacity var(--transition-fast);
  opacity: 0;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}
.btn-outline:hover {
  border-color: var(--text-main);
  background: var(--bg-surface-light);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: none;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 1001;
}

.bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text-main);
  transition: all 0.3s ease;
}

.bar-top {
  top: 0;
}
.bar-middle {
  top: 50%;
  transform: translateY(-50%);
}
.bar-bottom {
  bottom: 0;
}

.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg-main);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-fast);
}

.mobile-nav.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav ul {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.mobile-nav a {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 700;
}

/* ==========================================================================
      UTILITY CLASSES (ANIMATIONS)
      ========================================================================== */
.reveal-up {
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.tagline {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--bg-surface-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

/* ==========================================================================
      SECTIONS - INDEX
      ========================================================================== */
/* 1. Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  position: relative;
}

.hero-content {
  max-width: 1000px;
}

.hero h1 {
  font-size: clamp(4rem, 8vw, 7rem);
  text-transform: uppercase;
  letter-spacing: -2px;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #fff, #a3a3a3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 3rem;
}

.hero-btns {
  display: flex;
  gap: 1rem;
}

/* 2. Marquee */
.marquee-section {
  padding: 2rem 0;
  background: var(--primary);
  transform: rotate(-2deg) scale(1.05);
  overflow: hidden;
  position: relative;
  z-index: 10;
}

.marquee-inner {
  display: flex;
  width: 200%;
  animation: marquee 20s linear infinite;
}

.marquee-inner span {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-main);
  padding: 0 2rem;
  white-space: nowrap;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* 3. About */
.about {
  padding: var(--section-pad);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about h2 {
  font-size: clamp(3rem, 5vw, 4rem);
  margin-bottom: 2rem;
}
.about p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}
.stat-box h3 {
  font-size: 3rem;
  color: var(--secondary);
}
.stat-box p {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
}

/* 4. Services (3D Tilt Cards) */
.services {
  padding: var(--section-pad);
  background: var(--bg-surface);
}
.section-header {
  text-align: center;
  margin-bottom: 5rem;
}
.section-header h2 {
  font-size: clamp(3rem, 5vw, 4rem);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  perspective: 1000px;
}

.service-card {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem;
  transition: transform 0.1s;
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
}

.service-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: 1;
  pointer-events: none;
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 60px;
  height: 60px;
  background: var(--bg-surface-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--secondary);
  margin-bottom: 2rem;
  transform: translateZ(30px);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  transform: translateZ(20px);
}
.service-card p {
  color: var(--text-muted);
  transform: translateZ(10px);
}

/* 5. Process / Approach */
.process {
  padding: var(--section-pad);
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}
.step {
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  position: relative;
}
.step-num {
  font-family: var(--font-head);
  font-size: 4rem;
  font-weight: 700;
  color: var(--bg-surface-light);
  position: absolute;
  top: -10px;
  right: 0;
  line-height: 1;
}
.step h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}
.step p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* 6. Industries */
.industries {
  padding: var(--section-pad);
  background: var(--bg-surface);
}
.ind-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.ind-card {
  padding: 4rem 2rem;
  text-align: center;
  background: var(--bg-main);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}
.ind-card:hover {
  border-color: var(--secondary);
  transform: translateY(-10px);
}
.ind-card i {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  transition: color var(--transition-fast);
}
.ind-card:hover i {
  color: var(--secondary);
}

/* 7. ROI Calculator (Interactive) */
.calculator {
  padding: var(--section-pad);
}
.calc-wrapper {
  background: linear-gradient(145deg, var(--bg-surface), #000);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}
.calc-form .form-group {
  margin-bottom: 2rem;
}
.calc-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-family: var(--font-head);
}
.calc-form input[type="range"] {
  width: 100%;
  appearance: none;
  height: 4px;
  background: var(--border-color);
  border-radius: 4px;
  outline: none;
}
.calc-form input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--secondary);
  cursor: none;
}
.range-val {
  font-size: 1.2rem;
  color: var(--secondary);
  float: right;
  font-family: var(--font-head);
}
.calc-results {
  background: rgba(0, 0, 0, 0.5);
  padding: 3rem;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}
.res-item {
  margin-bottom: 2rem;
}
.res-item h4 {
  color: var(--text-muted);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.res-item span {
  font-size: 3rem;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--text-main);
}
.res-item.highlight span {
  color: var(--accent);
  font-size: 4rem;
}

/* 8. Testimonials */
.testimonials {
  padding: var(--section-pad);
  background: var(--bg-surface);
  overflow: hidden;
}
.test-slider {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: slide 30s linear infinite;
}
.test-slider:hover {
  animation-play-state: paused;
}
.test-card {
  width: 400px;
  background: var(--bg-main);
  padding: 3rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}
.test-card p {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 2rem;
  color: var(--text-muted);
}
.client-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.client-info div h4 {
  font-size: 1rem;
}
.client-info div span {
  font-size: 0.85rem;
  color: var(--secondary);
}

/* 9. CTA Section */
.cta-sec {
  padding: var(--section-pad);
  text-align: center;
  position: relative;
}
.cta-sec h2 {
  font-size: clamp(4rem, 8vw, 8rem);
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.cta-sec .highlight {
  color: var(--primary);
}

/* ==========================================================================
      SUBPAGES (CONTACT & LEGAL)
      ========================================================================== */
.page-header {
  padding: 200px 0 100px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  background: radial-gradient(
    ellipse at top,
    rgba(79, 70, 229, 0.1),
    transparent 50%
  );
}
.page-header h1 {
  font-size: clamp(3rem, 5vw, 5rem);
  margin-bottom: 1rem;
}
.breadcrumbs {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.breadcrumbs a {
  color: var(--text-main);
}

/* Contact Specific */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: var(--section-pad);
}
.contact-info h2 {
  font-size: 3rem;
  margin-bottom: 2rem;
}
.contact-info p {
  color: var(--text-muted);
  margin-bottom: 3rem;
}
.c-item {
  margin-bottom: 2rem;
}
.c-item h4 {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}
.c-item p {
  font-size: 1.2rem;
  font-family: var(--font-head);
}

.contact-form {
  background: var(--bg-surface);
  padding: 3rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}
.input-group {
  margin-bottom: 1.5rem;
}
.input-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.input-group input,
.input-group select,
.input-group textarea {
  width: 100%;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  outline: none;
  transition: border var(--transition-fast);
}
.input-group input:focus,
.input-group textarea:focus {
  border-color: var(--secondary);
}

/* Legal Pages Content */
.legal-content {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--section-pad);
}
.legal-content h2 {
  margin: 3rem 0 1rem;
  font-size: 2rem;
  color: var(--text-main);
}
.legal-content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}
.legal-content ul {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  list-style: disc;
}
.legal-content li {
  margin-bottom: 0.5rem;
}

/* ==========================================================================
      FOOTER (STRICTLY IDENTICAL)
      ========================================================================== */
.footer {
  background: #000;
  padding: 6rem 0 2rem;
  border-top: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}
.footer-big-text {
  font-family: var(--font-head);
  font-size: clamp(4rem, 12vw, 15rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.02);
  text-transform: uppercase;
  text-align: center;
  line-height: 0.8;
  margin-bottom: 4rem;
  pointer-events: none;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}
.f-col h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}
.f-col p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 300px;
}
.socials {
  display: flex;
  gap: 1rem;
}
.socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
}
.socials a:hover {
  background: var(--text-main);
  color: var(--bg-main);
}
.f-links li {
  margin-bottom: 0.8rem;
}
.f-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.f-links a:hover {
  color: var(--secondary);
  padding-left: 5px;
}
.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ==========================================================================
      RESPONSIVE DESIGN
      ========================================================================== */
@media (max-width: 1024px) {
  .about-grid,
  .calc-wrapper,
  .contact-wrap {
    grid-template-columns: 1fr;
  }
  .process-steps {
    grid-template-columns: 1fr 1fr;
  }
  .ind-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-list,
  .header-cta {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .mobile-toggle.open .bar-top {
    transform: translateY(9px) rotate(45deg);
  }
  .mobile-toggle.open .bar-middle {
    opacity: 0;
  }
  .mobile-toggle.open .bar-bottom {
    transform: translateY(-9px) rotate(-45deg);
  }

  .process-steps {
    grid-template-columns: 1fr;
  }
  .ind-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .cursor-dot,
  .cursor-outline {
    display: none;
  }
  body {
    cursor: auto;
  }
  .btn {
    cursor: pointer;
  }
  .service-card::before {
    display: none;
  }
}
