/* ========================================
   DASHMARC - Agency Landing Page Styles
   Premium Design with Animated Background
   ======================================== */

/* CSS Variables */
:root {
  --primary: #E63946;
  --primary-dark: #c92d3a;
  --primary-light: #ff4d5a;
  --dark: #0c0c0e;
  --dark-medium: #111113;
  --dark-light: #18181b;
  --dark-card: #141417;
  --light: #fafafa;
  --white: #ffffff;
  --gray-100: #f4f4f5;
  --gray-200: #e4e4e7;
  --gray-300: #d4d4d8;
  --gray-400: #a1a1aa;
  --gray-500: #71717a;
  --gray-600: #52525b;

  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 60px rgba(230, 57, 70, 0.3);

  /* Glass effect */
  --glass-bg: rgba(20, 20, 23, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: 15px;
}

/* Reset & Base */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

html,
body {
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  font-family: var(--font-main);
  background-color: var(--dark);
  color: var(--gray-300);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Animated Gradient Background - Optimized */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--dark);
  will-change: transform;
  contain: layout style paint;
}

.page-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(ellipse 600px 600px at 20% 20%, rgba(230, 57, 70, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 500px 500px at 80% 30%, rgba(180, 60, 100, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 400px 400px at 40% 80%, rgba(230, 57, 70, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 600px 600px at 90% 90%, rgba(200, 50, 80, 0.1) 0%, transparent 50%);
  animation: gradientShift 20s ease-in-out infinite;
  will-change: transform;
}

.page-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 800px at 60% 40%, rgba(255, 100, 120, 0.05) 0%, transparent 60%);
  animation: gradientShift 15s ease-in-out infinite reverse;
  will-change: transform;
}

@keyframes gradientShift {

  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  25% {
    transform: translate3d(2%, 3%, 0) rotate(1deg);
  }

  50% {
    transform: translate3d(-1%, 2%, 0) rotate(-1deg);
  }

  75% {
    transform: translate3d(1%, -2%, 0) rotate(0.5deg);
  }
}

/* Animated Lines Pattern */
.lines-pattern {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.lines-pattern::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: repeating-linear-gradient(90deg,
      transparent,
      transparent 120px,
      rgba(230, 57, 70, 0.03) 120px,
      rgba(230, 57, 70, 0.03) 121px);
  animation: linesMove 25s linear infinite;
}

.lines-pattern::after {
  content: '';
  position: absolute;
  inset: -50%;
  background: repeating-linear-gradient(0deg,
      transparent,
      transparent 120px,
      rgba(255, 255, 255, 0.02) 120px,
      rgba(255, 255, 255, 0.02) 121px);
  animation: linesMove 30s linear infinite reverse;
}

@keyframes linesMove {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(120px, 120px);
  }
}

/* Diagonal Lines Accent */
.diagonal-lines {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
  background:
    repeating-linear-gradient(-45deg,
      transparent,
      transparent 200px,
      rgba(230, 57, 70, 0.015) 200px,
      rgba(230, 57, 70, 0.015) 201px);
}

/* Floating Lines */
.floating-lines {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.floating-line {
  position: absolute;
  background: linear-gradient(90deg, transparent, rgba(230, 57, 70, 0.15), transparent);
  height: 1px;
  animation: floatLine 20s ease-in-out infinite;
}

.floating-line:nth-child(1) {
  width: 30%;
  top: 20%;
  left: -10%;
  animation-delay: 0s;
}

.floating-line:nth-child(2) {
  width: 25%;
  top: 40%;
  right: -10%;
  animation-delay: -5s;
  animation-direction: reverse;
}

.floating-line:nth-child(3) {
  width: 35%;
  top: 60%;
  left: -15%;
  animation-delay: -10s;
}

.floating-line:nth-child(4) {
  width: 20%;
  top: 80%;
  right: -5%;
  animation-delay: -15s;
  animation-direction: reverse;
}

@keyframes floatLine {

  0%,
  100% {
    transform: translateX(0) scaleX(1);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  50% {
    transform: translateX(100vw) scaleX(1.5);
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: translateX(200vw) scaleX(1);
    opacity: 0;
  }
}

/* Noise texture overlay */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.025;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

::selection {
  background: var(--primary);
  color: var(--white);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.15;
  color: var(--white);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
  font-size: 1.125rem;
  line-height: 1.7;
}

/* Container */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 2rem;
  overflow: visible;
}

/* Glass Effect */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 1rem 2rem;
  font-family: var(--font-main);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.15) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease-out-expo);
}

.btn-primary:hover::before {
  transform: translateX(100%);
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(230, 57, 70, 0.4);
}

.btn-secondary {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--white);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.btn-large {
  padding: 1.125rem 2.5rem;
  font-size: 1rem;
}

.btn-icon {
  transition: transform 0.3s var(--ease-out-expo);
}

.btn:hover .btn-icon {
  transform: translateX(4px);
}

/* Section Styles */
section {
  padding: 8rem 0;
  position: relative;
  overflow: visible;
  min-height: auto;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 5rem;
}

.section-header p {
  color: var(--gray-400);
  margin-top: 1.25rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(230, 57, 70, 0.08);
  border: 1px solid rgba(230, 57, 70, 0.15);
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.section-label::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all 0.4s var(--ease-out-expo);
}

.navbar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 14, 0.7);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out-expo);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled::before {
  opacity: 1;
  border-bottom-color: var(--glass-border);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--gray-400);
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width 0.3s var(--ease-out-expo);
}

.nav-links a:not(.btn):hover {
  color: var(--white);
}

.nav-links a:not(.btn):hover::after {
  width: 100%;
}

.nav-cta {
  margin-left: 1rem;
}

.nav-cta .btn {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
}

.nav-cta .btn.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.nav-cta .btn.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(230, 57, 70, 0.4);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 10;
}

.mobile-toggle span {
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: all 0.3s var(--ease-out-expo);
  transform-origin: center;
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  padding-top: 6rem;
  padding-bottom: 6rem;
  position: relative;
  overflow: visible;
}

/* Hero Grid Background */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 30%, transparent 100%);
}

.hero .container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
  overflow: visible;
}

.hero-content {
  max-width: 720px;
  overflow: visible;
  position: relative;
  z-index: 2;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 1rem 0.5rem 0.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInUp 0.5s var(--ease-out-expo) 0.05s forwards;
}

.hero-label-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 3s ease-in-out infinite;
  will-change: transform, opacity;
}

.hero-label span {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gray-300);
  letter-spacing: 0.02em;
}

.hero h1 {
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInUp 0.5s var(--ease-out-expo) 0.1s forwards;
  line-height: 1.2;
  overflow: visible;
  word-wrap: break-word;
}

.hero h1 .line {
  display: block;
  overflow: visible;
}

.hero h1 .highlight {
  color: var(--primary);
  position: relative;
}

/* Animated Text Rotator - Roller Coaster Style */
.text-rotator {
  display: inline-block;
  position: relative;
  perspective: 1000px;
  vertical-align: middle;
}

.text-rotator-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.12em 0.5em;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 12px;
  position: relative;
  min-width: 380px;
  height: 1.25em;
  box-shadow: 0 6px 25px rgba(230, 57, 70, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform-style: preserve-3d;
  overflow: hidden;
}

.text-rotator-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.text-rotator-inner.flipping {
  transform: rotateX(-90deg);
}

.text-rotator-word {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.9em;
  white-space: nowrap;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  opacity: 0;
  transform: translate3d(0, 0, 0) rotateX(90deg) translateZ(20px);
  transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform, opacity;
  contain: layout style paint;
}

.text-rotator-word.active {
  position: relative;
  opacity: 1;
  transform: rotateX(0deg) translateZ(0);
}

.text-rotator-word.exit {
  opacity: 0;
  transform: rotateX(-90deg) translateZ(-20px);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--gray-400);
  margin-bottom: 3rem;
  max-width: 580px;
  line-height: 1.7;
  opacity: 0;
  animation: fadeInUp 0.5s var(--ease-out-expo) 0.15s forwards;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 4rem;
  opacity: 0;
  animation: fadeInUp 0.5s var(--ease-out-expo) 0.2s forwards;
}

.hero-stats {
  display: flex;
  gap: 4rem;
  opacity: 0;
  animation: fadeInUp 0.5s var(--ease-out-expo) 0.25s forwards;
}

.stat-item {
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, transparent, var(--gray-600), transparent);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-number span {
  color: var(--primary);
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  height: 520px;
  opacity: 0;
  animation: fadeIn 1s var(--ease-out-expo) 0.4s forwards;
}

.hero-mockup {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup-browser {
  width: 100%;
  max-width: 440px;
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  overflow: hidden;
  box-shadow: var(--shadow-xl), 0 0 80px rgba(230, 57, 70, 0.15);
  transform: perspective(1000px) rotateY(-8deg) rotateX(5deg);
  transition: transform 0.6s var(--ease-out-expo);
}

.mockup-browser:hover {
  transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--glass-border);
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-600);
}

.mockup-dots span:first-child {
  background: #ff5f57;
}

.mockup-dots span:nth-child(2) {
  background: #ffbd2e;
}

.mockup-dots span:last-child {
  background: #28ca41;
}

.mockup-url {
  flex: 1;
  margin-left: 0.75rem;
  padding: 0.375rem 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--gray-500);
  min-height: 1.5rem;
  display: flex;
  align-items: center;
}

.mockup-url::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 0.875rem;
  background: var(--gray-500);
  margin-left: 2px;
  animation: blink 1s infinite;
}

.mockup-url.typing-complete::after {
  animation: none;
  opacity: 0;
}

.mockup-content {
  padding: 1.5rem;
  min-height: 280px;
  position: relative;
  overflow: visible;
}

.mockup-skeleton {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skeleton-line {
  height: 12px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.03) 75%);
  background-size: 200% 100%;
  border-radius: 4px;
  animation: shimmer 2s infinite;
}

.skeleton-line.w-60 {
  width: 60%;
}

.skeleton-line.w-80 {
  width: 80%;
}

.skeleton-line.w-40 {
  width: 40%;
}

.skeleton-line.w-70 {
  width: 70%;
}

.skeleton-block {
  height: 90px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.03) 75%);
  background-size: 200% 100%;
  border-radius: 8px;
  margin-top: 0.5rem;
  animation: shimmer 2s infinite 0.3s;
}

/* Floating Cards - Optimized */
.floating-card {
  position: absolute;
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
  will-change: transform;
  contain: layout style paint;
  transform: translate3d(0, 0, 0);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.floating-card:not(.is-visible) {
  animation-play-state: paused;
}

.floating-card.card-1 {
  top: 8%;
  right: -15%;
  animation-delay: 0s;
}

.floating-card.card-2 {
  bottom: 25%;
  left: -8%;
  animation-delay: -2s;
}

.floating-card.card-3 {
  bottom: 8%;
  right: 0%;
  animation-delay: -4s;
}

.floating-card-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(230, 57, 70, 0.15);
  border-radius: 8px;
  margin-bottom: 0.625rem;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.floating-card-icon svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.floating-card span {
  font-size: 0.6875rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
}

.floating-card strong {
  font-size: 1.125rem;
  color: var(--white);
  font-weight: 600;
}

/* Mouse Cursor Icon */
.mouse-cursor {
  position: absolute;
  bottom: 30px;
  left: 30px;
  width: 20px;
  height: 20px;
  color: var(--white);
  opacity: 0;
  z-index: 10;
  pointer-events: none;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  transform-origin: 0 0;
}

.mouse-cursor svg {
  width: 100%;
  height: 100%;
}

.mouse-cursor.visible {
  opacity: 1;
}

/* Cursor positions for each card - pointing towards the cards */
.mouse-cursor.at-card-1 {
  transform: translate(340px, -200px) rotate(-30deg);
}

.mouse-cursor.at-card-2 {
  transform: translate(-60px, -40px) rotate(150deg);
}

.mouse-cursor.at-card-3 {
  transform: translate(300px, 40px) rotate(-45deg);
}

/* Floating card hover effect triggered by cursor */
.floating-card.cursor-hover {
  transform: translateY(-8px) scale(1.05);
  border-color: rgba(230, 57, 70, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(230, 57, 70, 0.2);
}

.floating-card.cursor-hover .floating-card-icon {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  transform: scale(1.1);
}

@keyframes blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

/* ========================================
   PROBLEM SECTION
   ======================================== */
.problem {
  position: relative;
  overflow: hidden;
  padding-top: 3rem;
}

.problem::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

/* Accent glow for problem section */
.problem::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(230, 57, 70, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.problem-wrapper {
  position: relative;
  z-index: 1;
}

.problem-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}

.problem-header h2 {
  margin-bottom: 1rem;
}

.problem-header p {
  color: var(--gray-400);
  font-size: 1.125rem;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.problem-card {
  position: relative;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(20, 20, 23, 0.8) 0%, rgba(30, 30, 35, 0.6) 100%);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.5s var(--ease-out-expo);
}

.problem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.problem-card:hover {
  transform: translateY(-8px);
  border-color: rgba(230, 57, 70, 0.3);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3), 0 0 40px rgba(230, 57, 70, 0.1);
}

.problem-card:hover::before {
  opacity: 1;
}

.problem-card-number {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 5rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(180deg, rgba(230, 57, 70, 0.15) 0%, rgba(230, 57, 70, 0.03) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.5s var(--ease-out-expo);
  opacity: 0.8;
}

.problem-card:hover .problem-card-number {
  transform: scale(1.1) translateX(-5px);
  opacity: 1;
  background: linear-gradient(180deg, rgba(230, 57, 70, 0.3) 0%, rgba(230, 57, 70, 0.1) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.problem-card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.2) 0%, rgba(230, 57, 70, 0.05) 100%);
  border: 1px solid rgba(230, 57, 70, 0.2);
  border-radius: 14px;
  margin-bottom: 1.5rem;
  color: var(--primary);
  transition: all 0.4s var(--ease-out-expo);
}

.problem-card:hover .problem-card-icon {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-color: var(--primary);
  color: var(--white);
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(230, 57, 70, 0.4);
}

.problem-card-icon svg {
  width: 24px;
  height: 24px;
}

.problem-card h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--white);
}

.problem-card p {
  font-size: 1rem;
  color: var(--gray-400);
  line-height: 1.65;
}

/* Stats bar at bottom of problem section */
.problem-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.08) 0%, var(--glass-bg) 100%);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(230, 57, 70, 0.15);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.problem-stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.problem-stat {
  text-align: center;
  position: relative;
  padding: 1rem;
  transition: all 0.4s var(--ease-out-expo);
  cursor: default;
}

.problem-stat:hover {
  transform: scale(1.05);
}

.problem-stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60%;
  background: linear-gradient(to bottom, transparent, rgba(230, 57, 70, 0.3), transparent);
}

.problem-stat-value {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.625rem;
  text-shadow: 0 0 40px rgba(230, 57, 70, 0.5);
}

.problem-stat-value .counter {
  display: inline-block;
}

.problem-stat-label {
  font-size: 0.8125rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Animated pulse ring behind stat */
.problem-stat::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(230, 57, 70, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0;
  transition: all 0.4s ease;
}

.problem-stat:hover::before {
  opacity: 1;
  width: 120px;
  height: 120px;
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.services {
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.service-card {
  position: relative;
  padding: 2.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: none;
  box-shadow: inset 0 0 0 1px var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.5s var(--ease-out-expo);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 30px 60px rgba(0, 0, 0, 0.3);
  transform: translateY(-6px);
}

.service-card:hover::before {
  opacity: 1;
}

.service-number {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 4.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.03);
  line-height: 1;
}

.service-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 14px;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 25px rgba(230, 57, 70, 0.35);
}

.service-icon svg {
  width: 26px;
  height: 26px;
  color: var(--white);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-card>p {
  color: var(--gray-400);
  margin-bottom: 2rem;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-size: 0.9375rem;
  color: var(--gray-300);
}

.feature-check {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(230, 57, 70, 0.15);
  border-radius: 50%;
  flex-shrink: 0;
}

.feature-check svg {
  width: 10px;
  height: 10px;
  color: var(--primary);
}

/* ========================================
   PORTFOLIO SECTION
   ======================================== */
.portfolio {
  position: relative;
}

.portfolio::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.portfolio-grid .portfolio-card:first-child {
  grid-column: span 2;
}

.portfolio-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: none;
  box-shadow: inset 0 0 0 1px var(--glass-border);
  cursor: pointer;
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo);
  width: 100%;
  aspect-ratio: 4/3;
  contain: layout style paint;
  transform: translate3d(0, 0, 0);
  /* Force perfect clipping of children to border-radius */
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
}

/* Fast animations for portfolio cards */
.portfolio-card.animate-on-scroll {
  transition: opacity 0.25s var(--ease-out-expo), transform 0.25s var(--ease-out-expo), box-shadow 0.25s var(--ease-out-expo);
}

.portfolio-grid .animate-on-scroll:nth-child(1) {
  transition-delay: 0s;
}

.portfolio-grid .animate-on-scroll:nth-child(2) {
  transition-delay: 0.02s;
}

.portfolio-grid .animate-on-scroll:nth-child(3) {
  transition-delay: 0.04s;
}

.portfolio-grid .animate-on-scroll:nth-child(4) {
  transition-delay: 0.06s;
}

.portfolio-grid .animate-on-scroll:nth-child(5) {
  transition-delay: 0.08s;
}

.portfolio-grid .portfolio-card:first-child {
  aspect-ratio: 16/10;
}

.portfolio-grid .portfolio-card:first-child:hover {
  transform: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15), 0 35px 70px rgba(0, 0, 0, 0.4);
}

.portfolio-grid .portfolio-card:first-child:hover .portfolio-preview img {
  transform: scale(1.08);
  /* Restore hover zoom */
}

.portfolio-card-trackease {
  aspect-ratio: auto;
  height: 100%;
}

.portfolio-card:hover {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15), 0 35px 70px rgba(0, 0, 0, 0.4);
  transform: translateY(-8px);
}

.portfolio-image {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: transparent;
  width: 100%;
  height: 100%;
}

/* Live Website Preview - Always Desktop */
.portfolio-preview {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: transparent;
}

.portfolio-preview::before {
  content: 'Loading...';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, var(--dark-light) 0%, var(--dark-card) 100%);
  z-index: 0;
}

.portfolio-preview img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none;
  background: transparent;
  object-fit: cover;
  z-index: 1;
}

/* Remove transform scaling for images - they should just fill the container */
.portfolio-card .portfolio-preview img,
.portfolio-grid .portfolio-card:first-child .portfolio-preview img,
.portfolio-card-trackease .portfolio-preview img {
  transform: none;
  left: 0;
  width: 100%;
  height: 100%;
}

/* No overlay - full preview visible */
.portfolio-preview-overlay {
  display: none;
}

/* Responsive adjustments - simpler now */
@media (max-width: 1024px) {

  .portfolio-card .portfolio-preview img,
  .portfolio-grid .portfolio-card:first-child .portfolio-preview img,
  .portfolio-card-trackease .portfolio-preview img {
    transform: none;
  }
}

@media (max-width: 768px) {

  .portfolio-card .portfolio-preview img,
  .portfolio-grid .portfolio-card:first-child .portfolio-preview img,
  .portfolio-card-trackease .portfolio-preview img {
    transform: none;
  }
}

/* Live badge */
.portfolio-live-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 100px;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
}

.portfolio-live-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #28ca41;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.6s var(--ease-out-expo);
}

.portfolio-card:hover .portfolio-image img {
  transform: scale(1.08);
}

.portfolio-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.01) 100%);
}

.portfolio-placeholder svg {
  width: 48px;
  height: 48px;
  color: var(--gray-600);
  opacity: 0.4;
}

.portfolio-placeholder span {
  font-size: 0.75rem;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 12, 14, 0.95) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.5rem 0.75rem;
  background: linear-gradient(180deg, transparent 0%, rgba(12, 12, 14, 0.95) 20%, rgba(12, 12, 14, 0.98) 100%);
  z-index: 3;
  pointer-events: auto;
}

.portfolio-category {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.portfolio-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
  transition: color 0.3s ease;
}

.portfolio-card:hover .portfolio-content h3 {
  color: var(--primary);
}

.portfolio-content p {
  font-size: 0.9375rem;
  color: var(--gray-300);
  line-height: 1.5;
}

.portfolio-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-300);
  transition: all 0.3s ease;
}

.portfolio-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease-out-expo);
}

.portfolio-card:hover .portfolio-link {
  color: var(--primary);
}

.portfolio-card:hover .portfolio-link svg {
  transform: translateX(4px);
}

/* ========================================
   PROCESS SECTION
   ======================================== */
.process {
  position: relative;
  overflow: hidden;
}

.process::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

.process-grid::before {
  content: '';
  position: absolute;
  top: 50px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gray-600), var(--gray-600), transparent);
}

.process-step {
  position: relative;
  text-align: center;
  padding-top: 1rem;
}

.step-number {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.75rem;
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  color: var(--gray-400);
  font-size: 1.25rem;
  font-weight: 600;
  border-radius: 50%;
  position: relative;
  z-index: 1;
  transition: all 0.4s var(--ease-out-expo);
}

.process-step:hover .step-number {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(230, 57, 70, 0.1);
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(230, 57, 70, 0.3);
}

.process-step h3 {
  font-size: 1.125rem;
  margin-bottom: 0.875rem;
}

.process-step p {
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.65;
}

/* ========================================
   CLIENT SATISFACTION SECTION
   ======================================== */
.clients {
  position: relative;
}

.clients::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

.clients-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.clients-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: rgba(230, 57, 70, 0.1);
  border: 1px solid rgba(230, 57, 70, 0.2);
  border-radius: 100px;
  margin-bottom: 2rem;
}

.clients-badge-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clients-badge-icon svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  fill: var(--primary);
}

.clients-badge span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
}

.clients-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.clients-headline .highlight {
  color: var(--primary);
}

.clients-text {
  font-size: 1.25rem;
  color: var(--gray-400);
  line-height: 1.7;
  margin-bottom: 3rem;
}

.clients-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  padding: 2.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
}

.client-stat {
  text-align: center;
}

.client-stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.client-stat-value span {
  color: var(--primary);
}

.client-stat-label {
  font-size: 0.875rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (max-width: 768px) {
  .clients-stats {
    flex-direction: column;
    gap: 2rem;
  }
}

/* ========================================
   FAQ SECTION
   ======================================== */
.faq {
  position: relative;
}

.faq::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  align-items: start;
}

.faq-item {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: none;
  box-shadow: inset 0 0 0 1px var(--glass-border);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.4s var(--ease-out-expo);
}

.faq-item:hover {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.faq-item.active {
  box-shadow: inset 0 0 0 1px rgba(230, 57, 70, 0.3);
  background: rgba(230, 57, 70, 0.03);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 1.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.02);
}

.faq-question h4 {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--gray-200);
  transition: color 0.3s ease;
}

.faq-item.active .faq-question h4 {
  color: var(--white);
}

.faq-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.4s var(--ease-out-expo);
}

.faq-icon svg {
  width: 16px;
  height: 16px;
  color: var(--gray-400);
  transition: all 0.4s var(--ease-out-expo);
}

.faq-item.active .faq-icon {
  background: var(--primary);
}

.faq-item.active .faq-icon svg {
  color: var(--white);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out-expo);
  padding: 0 1.75rem;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 1.75rem 1.5rem;
}

.faq-answer-inner {
  padding: 0;
}

.faq-answer p {
  font-size: 1rem;
  color: var(--gray-400);
  line-height: 1.7;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-inner {
  position: relative;
  padding: 5rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 28px;
  text-align: center;
  overflow: hidden;
}

.cta-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.cta-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  top: -250px;
  right: -150px;
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 1.25rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1875rem;
  margin-bottom: 2.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .btn {
  background: var(--white);
  color: var(--primary);
  font-weight: 600;
}

.cta-section .btn:hover {
  background: var(--light);
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  padding: 5rem 0 2rem;
  border-top: 1px solid var(--glass-border);
  margin-bottom: 0;
  overflow: visible;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand .logo {
  margin-bottom: 1.25rem;
}

.footer-brand p {
  font-size: 0.9375rem;
  color: var(--gray-500);
  max-width: 300px;
  line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.footer-links ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.875rem 2rem;
}

.footer-links a {
  font-size: 0.9375rem;
  color: var(--gray-500);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
  font-size: 0.9375rem;
  color: var(--gray-500);
}

.footer-contact p svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.footer-social a {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--gray-500);
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.footer-social a svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.875rem;
  color: var(--gray-600);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.3);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translate3d(0, 50px, 0);
  transition: opacity 0.4s var(--ease-out-expo), transform 0.4s var(--ease-out-expo);
  will-change: transform, opacity;
}

.animate-on-scroll.animated {
  will-change: auto;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Stagger animations */
.animate-on-scroll:nth-child(1) {
  transition-delay: 0s;
}

.animate-on-scroll:nth-child(2) {
  transition-delay: 0.03s;
}

.animate-on-scroll:nth-child(3) {
  transition-delay: 0.06s;
}

.animate-on-scroll:nth-child(4) {
  transition-delay: 0.09s;
}

.animate-on-scroll:nth-child(5) {
  transition-delay: 0.12s;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1200px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-visual {
    display: none;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
  }

  .hero-subtitle {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }
}

@media (max-width: 1024px) {
  .problem-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

  .problem-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-grid .portfolio-card:first-child {
    grid-column: span 2;
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }

  .process-grid::before {
    display: none;
  }

  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
    -webkit-text-size-adjust: 100%;
    height: auto;
  }

  html,
  body {
    height: auto;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
  }

  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  section {
    padding: 4rem 0;
    overflow: visible;
  }

  section:last-child {
    padding-bottom: 5rem;
  }

  .hero {
    min-height: auto;
    padding: 7rem 0 6rem;
    overflow: visible;
  }

  .container {
    padding: 0 1.5rem;
    max-width: 100%;
  }

  /* Better spacing between sections */
  section+section {
    margin-top: 0;
  }

  /* Mobile Navigation */
  .navbar {
    padding: 1rem 0;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(12, 12, 14, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 4rem 2rem;
    gap: 2.5rem;
    z-index: 999;
    animation: fadeIn 0.3s ease;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    font-size: 1.5rem;
    font-weight: 500;
    padding: 0.75rem 0;
    width: 100%;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 1.5rem;
    width: 100%;
  }

  .nav-cta .btn {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1rem;
    min-height: 52px;
  }

  .mobile-toggle {
    display: flex;
    z-index: 1000;
  }

  .logo {
    font-size: 1.375rem;
  }

  /* Hero Section - Zoom Out Effect */
  .hero {
    min-height: auto;
    padding: 7rem 0 6rem;
    overflow: visible;
  }

  .hero .container {
    padding: 0 1.5rem;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 8vw, 3.5rem);
    line-height: 1.15;
    margin-bottom: 1.5rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    line-height: 1.7;
  }

  .text-rotator-box {
    min-width: 180px;
    padding: 0.12em 0.4em;
    border-radius: 10px;
    height: 1.25em;
  }

  .text-rotator-word {
    font-size: 0.9em;
  }

  .hero-cta {
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
  }

  .hero-cta .btn {
    width: 100%;
    padding: 1.125rem 2rem;
    font-size: 1rem;
  }

  .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-around;
  }

  .stat-item {
    flex: 1;
    min-width: 100px;
    text-align: center;
  }

  .stat-item::after {
    display: none;
  }

  .stat-number {
    font-size: 2.25rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  /* Problem Section */
  .problem {
    padding-top: 2rem;
  }

  .problem-header {
    margin-bottom: 3rem;
  }

  .problem-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .problem-card {
    padding: 1.75rem;
  }

  .problem-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem 1.5rem;
    margin-top: 3rem;
  }

  .problem-stat-value {
    font-size: 2.25rem;
  }

  .problem-stat:not(:last-child)::after {
    display: none;
  }

  /* Services Section */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-card {
    padding: 2rem;
  }

  /* Portfolio Section */
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .portfolio-grid .portfolio-card:first-child {
    grid-column: span 1;
  }

  .portfolio-card {
    aspect-ratio: 16/10;
  }

  .portfolio-grid .portfolio-card:first-child {
    aspect-ratio: 16/10;
  }

  .portfolio-card-trackease {
    aspect-ratio: 16/10;
  }

  /* Process Section */
  .process-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .process-step {
    padding: 1.5rem;
  }

  /* Testimonials/Client Section */
  .testimonials-grid,
  .clients-stats {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .clients-stats {
    gap: 2rem;
    padding: 2rem 1.5rem;
  }

  /* FAQ Section */
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 0.875rem;
  }

  .faq-question {
    padding: 1.25rem;
  }

  .faq-question h4 {
    font-size: 1rem;
  }

  /* CTA Section */
  .cta-inner {
    padding: 3rem 1.5rem;
    border-radius: 16px;
  }

  .cta-section h2 {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }

  .cta-section p {
    font-size: 1.0625rem;
  }

  /* Footer */
  .footer {
    padding: 4rem 0 3rem;
    margin-bottom: 0;
  }

  .hero {
    padding-bottom: 5rem;
  }

  section:last-child {
    padding-bottom: 6rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Section Headers */
  .section-header {
    margin-bottom: 3rem;
  }

  .section-header h2 {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }

  .section-header p {
    font-size: 1rem;
  }
}

/* Cal.com Mobile Popup Improvements */
@media (max-width: 768px) {

  /* Ensure Cal.com popup is mobile-friendly */
  .cal-inline,
  .cal-modal,
  [data-cal-namespace] {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Cal.com embed container adjustments */
  [data-cal-link] {
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
  }

  /* Better mobile popup styling */
  iframe[src*="cal.com"] {
    border-radius: 0 !important;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .container {
    padding: 0 1rem;
  }

  section {
    padding: 3.5rem 0;
    overflow: visible;
  }

  section:last-child {
    padding-bottom: 4rem;
  }

  .hero {
    padding: 6rem 0 3rem;
  }

  .hero h1 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .btn-large {
    width: 100%;
    padding: 1rem 1.75rem;
    font-size: 0.9375rem;
  }

  .hero-cta {
    flex-direction: column;
    gap: 0.875rem;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .section-header h2 {
    font-size: clamp(1.5rem, 7vw, 2.25rem);
  }

  .problem-card {
    padding: 1.5rem;
  }

  .service-card {
    padding: 1.75rem;
  }

  .faq-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .faq-question {
    padding: 1.125rem;
  }

  .faq-question h4 {
    font-size: 0.9375rem;
    line-height: 1.4;
  }

  .faq-answer-inner {
    padding: 0 1.125rem 1.125rem;
  }

  .cta-inner {
    padding: 2.5rem 1.25rem;
  }

  .cta-section h2 {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  /* Better spacing for mobile cards */
  .problem-grid,
  .services-grid,
  .portfolio-grid {
    gap: 1.25rem;
  }

  /* Improved stat display */
  .hero-stats {
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  /* Better touch targets */
  .btn {
    min-height: 48px;
    touch-action: manipulation;
  }

  .faq-question {
    min-height: 60px;
    touch-action: manipulation;
  }

  /* Improved card hover states for mobile */
  .portfolio-card:active,
  .service-card:active,
  .problem-card:active {
    transform: scale(0.98);
  }

  /* Better text readability */
  p {
    font-size: 1rem;
    line-height: 1.75;
  }

  /* Improved list spacing */
  .service-features li,
  .problem-list .problem-item {
    margin-bottom: 0.5rem;
  }
}