:root {
  --font-primary: 'Outfit', sans-serif;
  --color-dark: #111111;
  --color-light: #ffffff;
  --color-text: #4a4a4a;
  --color-primary: #5266ff;
  --color-secondary: #ffb547;
  --color-accent: #c471ed;
  --color-accent-light: #ebf0fe;
  --bg-gradient-hero: linear-gradient(135deg, rgba(234,228,247,1) 0%, rgba(251,241,232,1) 50%, rgba(222,233,251,1) 100%);
  --bg-gradient-secondary: linear-gradient(135deg, rgba(255,181,71,0.2) 0%, rgba(82,102,255,0.1) 100%);
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-primary);
  color: var(--color-dark);
  background-color: var(--color-light);
  line-height: 1.6;
}
body.preloading {
  overflow: hidden;
}

/* Preloader Styles */
#preloader {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-color: var(--color-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), 
              visibility 1s cubic-bezier(0.16, 1, 0.3, 1);
}

#preloader .pre-logo {
  font-size: 5rem;
  font-weight: 800;
  color: var(--color-dark);
  letter-spacing: -2px;
  animation: preloaderLogoIn 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(20px);
}

#preloader .pre-bar-container {
  width: 150px;
  height: 2px;
  background-color: rgba(0,0,0,0.05);
  margin-top: 2rem;
  overflow: hidden;
}

#preloader .pre-bar {
  width: 0%;
  height: 100%;
  background-color: var(--color-primary);
  animation: preloaderBar 1.5s ease-in-out forwards;
}

@keyframes preloaderLogoIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes preloaderBar {
  from { width: 0%; }
  to { width: 100%; }
}

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary);
}

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 500;
}

h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  margin-bottom: 1.5rem;
}

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

p {
  color: var(--color-text);
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 100;
  transition: var(--transition-normal);
  background: rgba(255, 255, 255, 0);
  backdrop-filter: blur(0px);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo a {
  font-size: 1.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-dark);
}

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

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  font-size: 1rem; position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-primary);
  transition: width var(--transition-fast);
}

.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 50px;
  cursor: pointer;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  border: none;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  color: var(--color-light);
}

.btn-outline {
  border: 1px solid var(--color-dark);
  color: var(--color-dark);
  background: transparent;
}

.btn-outline:hover {
  background: var(--color-dark);
  color: var(--color-light);
}

/* Hero Section */
.hero {
  padding: 12rem 0 6rem;
  background: var(--bg-gradient-hero);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"><rect width="100%" height="100%" fill="none" class="grid-pattern"/></svg>');
  background-image: linear-gradient(rgba(255, 255, 255, 0.4) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.4) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

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

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-item .value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-dark);
}

.stat-item .label {
  font-size: 0.9rem;
  color: var(--color-text);
}

/* Stats Bar Section (Replaces Logos) */
.stats-bar {
  padding: 4rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  background: #fcfcfd;
}

.stats-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-bar-item .value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-dark);
}

.stat-bar-item .plus {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-left: 2px;
}

.stat-bar-item .label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #888;
  letter-spacing: 1px;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .stats-bar-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 1rem;
  }
}

/* Statement Section */
.statement {
  padding: 8rem 0;
  text-align: center;
  position: relative;
  overflow: hidden; /* Prevent horizontal scroll from floating elements */
}

@media (max-width: 1100px) {
  .statement-floating-img {
    display: none !important;
  }
}

.statement-text {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto;
  font-weight: 300;
  color: #555;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 2;
  text-transform: none;
}

.highlight {
  position: relative;
  display: inline-block;
  font-weight: 500;
  font-style: italic;
  transition: transform 0.3s ease;
}

.highlight:hover { transform: translateY(-2px); }

.highlight-blue { color: var(--color-primary); }
.highlight-orange { color: var(--color-secondary); }
.highlight-purple { color: var(--color-accent); }

.statement-floating-img {
  position: absolute;
  width: 280px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
  z-index: 1;
  pointer-events: none;
  opacity: 0.8;
  filter: blur(1px);
  transition: all 0.5s ease;
}

.img-left {
  top: 10%;
  left: -150px;
  transform: rotate(-10deg);
  animation: float-drift-left 10s ease-in-out infinite;
}

.img-right {
  bottom: 0%;
  right: -150px;
  transform: rotate(10deg);
  animation: float-drift-right 12s ease-in-out infinite;
}

@keyframes float-drift-left {
  0%, 100% { transform: translate(0, 0) rotate(-10deg); }
  50% { transform: translate(20px, -30px) rotate(-5deg); }
}

@keyframes float-drift-right {
  0%, 100% { transform: translate(0, 0) rotate(10deg); }
  50% { transform: translate(-30px, 20px) rotate(15deg); }
}

@media (max-width: 1200px) {
  .statement-floating-img { display: none; }
}

/* Outcomes Section */
.outcomes {
  padding: 6rem 0;
}

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

@media (max-width: 1024px) {
  .outcomes-grid {
    grid-template-columns: 1fr;
  }
}

.outcome-card {
  padding: 2.5rem;
  border-radius: var(--border-radius-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  min-height: 280px;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  cursor: pointer;
}

.outcome-card:hover {
  transform: translateX(10px);
}

.outcome-card h3 {
  margin-bottom: 0;
}

.outcome-card.orange { background-color: var(--color-secondary); color: var(--color-dark); }
.outcome-card.blue { background-color: #93c5fd; color: var(--color-dark); }
.outcome-card.purple { background-color: #d8b4fe; color: var(--color-dark); }

/* Services Preview */
.services-preview {
  padding: 8rem 0;
}

.service-card {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-top: 4rem;
}

.service-card:nth-child(even) {
  flex-direction: row-reverse;
}

.service-content {
  flex: 1;
}

.service-image {
  flex: 1;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  position: relative;
}

.service-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.8s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.03);
}

/* Testimonial Banner */
.testimonial-banner {
  background: var(--bg-gradient-secondary);
  padding: 6rem 0;
}

.testimonial-banner .container {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.t-image {
  flex: 1;
  max-width: 400px;
}

.t-image img {
  width: 100%;
  border-radius: var(--border-radius-md);
  clip-path: polygon(10% 0, 100% 0%, 90% 100%, 0% 100%);
}

.t-content {
  flex: 2;
}

.t-quote {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 2rem;
  font-weight: 500;
}

.t-author {
  font-weight: 600;
}

/* FAQ */
.faq {
  padding: 8rem 0;
}

.faq-item {
  border-bottom: 1px solid rgba(0,0,0,0.1);
  padding: 2rem 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 500;
  cursor: pointer;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
  padding-top: 0;
}

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

/* CTA Section */
.cta-section {
  padding: 8rem 0;
  background: var(--bg-gradient-hero);
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  text-transform: uppercase;
  font-weight: 700;
}

/* Footer */
footer {
  background-color: #2b2b2b;
  color: #fff;
  padding: 6rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: #fff;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-col a {
  color: #aaa;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #aaa;
  font-size: 0.9rem;
}

.big-logo {
  font-size: 8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.1);
  letter-spacing: -2px;
  margin-top: 4rem;
  display: block;
}

/* Utilities */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 4rem; }

/* Animations */
.reveal,
.reveal-left,
.reveal-right,
.reveal-scale {
  opacity: 0;
  filter: blur(5px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
              filter 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

.reveal { transform: translateY(40px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-scale { transform: scale(0.95); }

.reveal.active,
.reveal-left.active,
.reveal-right.active,
.reveal-scale.active {
  opacity: 1;
  transform: translate(0) scale(1) !important;
  filter: blur(0);
}

/* Button & Link Interactions */
.btn-magnetic { transition: transform 0.3s cubic-bezier(0.33, 1, 0.68, 1); }

/* Image Reveal Effect Wrapper */
.reveal-img-wrap {
  position: relative;
  overflow: hidden;
}
.reveal-img-wrap::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}
.reveal-img-wrap.active::after {
  transform: scaleX(1);
  animation: revealImageCover 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes revealImageCover {
  0% { transform: scaleX(0); transform-origin: left; }
  50% { transform: scaleX(1); transform-origin: left; }
  51% { transform: scaleX(1); transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}

/* Custom Smooth Cursor */
.custom-cursor {
  position: fixed;
  width: 12px;
  height: 12px;
  background-color: var(--color-primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: transform 0.15s ease-out, opacity 0.3s ease;
  transform: translate(-50%, -50%);
  opacity: 0;
}
.custom-cursor-follower {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: transform 0.3s ease-out, opacity 0.3s ease;
  transform: translate(-50%, -50%);
  opacity: 0;
}
body:hover .custom-cursor,
body:hover .custom-cursor-follower {
  opacity: 1;
}
@media (max-width: 768px) {
  .custom-cursor, .custom-cursor-follower { display: none; }
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001; /* Above nav-links */
}
.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--color-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .hamburger {
    display: flex;
  }
  .header-btn {
    display: none; /* Hide primary btn on mobile to save space */
  }
  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--color-light);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 8rem 1.5rem 2rem;
    box-shadow: 5px 0 20px rgba(0,0,0,0.1);
    transition: left 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 999;
  }
  .nav-links.active {
    left: 0;
  }
  .nav-links a {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }
  .hero {
    padding: 6rem 1rem 3rem !important;
    overflow: hidden;
  }
  .hero-grid {
    gap: 2rem !important;
    max-width: 100% !important;
    flex-direction: column !important;
  }
  .hero-content {
    min-width: unset !important;
    max-width: 100% !important;
    text-align: center !important;
    padding: 0 !important;
  }
  .hero-content h1 {
    font-size: 2.2rem !important;
    line-height: 1.2 !important;
  }
  .hero-content p {
    font-size: 1rem !important;
    max-width: 100% !important;
  }
  .hero-stats {
    justify-content: center !important;
    gap: 1.5rem !important;
    width: 100% !important;
    margin-top: 2rem !important;
  }
  .hero-graphics {
    min-width: unset !important;
    width: 100% !important;
    margin-top: 2rem !important;
  }
  
  /* Stats Bar Overrides */
  .stats-bar-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1rem !important;
    width: 100% !important;
  }
  .stat-bar-item .value { font-size: 1.2rem !important; }
  .stat-bar-item .label { font-size: 0.6rem !important; }
  .stat-bar-item .plus { font-size: 0.8rem !important; }

  /* Statement Overrides */
  .statement { 
    padding: 4rem 1rem !important; 
    overflow: hidden !important;
  }
  .statement-text { 
    font-size: 1.1rem !important; 
    line-height: 1.6 !important; 
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 auto !important;
  }

  /* Outcomes Overrides */
  .outcomes-grid {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    gap: 1rem !important;
    padding: 1rem !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    width: 100% !important;
    margin: 0 !important;
  }
  .outcomes-grid::-webkit-scrollbar {
    display: none !important;
  }
  .outcome-card {
    flex: 0 0 85% !important;
    scroll-snap-align: center !important;
    min-height: auto !important;
    padding: 2rem 1.5rem !important;
    width: auto !important;
    max-width: unset !important;
    margin: 0 !important;
  }
  .outcome-card h3 { font-size: 1.1rem !important; }
  .outcome-card p { font-size: 0.85rem !important; }

  /* Service Card Overrides */
  .service-card, .service-card:nth-child(even) {
    flex-direction: column !important;
    gap: 2rem !important;
    margin-top: 4rem !important;
    width: 100% !important;
    padding: 0 !important;
    align-items: center !important;
  }
  .service-content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 1rem !important;
    text-align: center !important;
  }
  .service-content h3 {
    font-size: 1.5rem !important;
    margin-bottom: 1rem !important;
  }
  .service-content p {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    color: #555 !important;
  }
  .service-image {
    height: 280px !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 16px !important;
  }

  .testimonial-banner .container {
    flex-direction: column;
    gap: 2rem;
  }
  .t-image {
    clip-path: none;
    max-width: 100%;
  }
  .t-quote { font-size: 1.4rem !important; }
  
  /* FAQ Overrides */
  .faq-question { font-size: 1.1rem !important; }
  .faq-answer p { font-size: 0.95rem !important; }

  /* Reduce huge section paddings on mobile */
  .hero { padding: 6rem 0 3rem; }
  .statement { padding: 3rem 0; }
  .outcomes { padding: 3rem 0; }
  .services-preview { padding: 3rem 0; }
  .testimonial-banner { padding: 3rem 0; }
  .faq { padding: 3rem 0; }
  .cta-section { padding: 4rem 0; }
  footer { padding: 3rem 0 2rem; }
  
  /* Typography tweaks for mobile */
  h1 { font-size: 2rem !important; margin-bottom: 0.75rem; }
  h2 { font-size: 1.5rem !important; margin-bottom: 0.75rem; }
  h3 { font-size: 1.2rem !important; margin-bottom: 0.5rem; }
}
/* Marquee Styles */
.marquee-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 4rem 0;
  background: var(--color-light);
  border-top: 1px solid rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.marquee-track {
  display: flex;
  width: calc(250px * 20); /* Adjust based on card width and number of items */
  animation: scrollMarquee 40s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-250px * 10)); } /* Adjust based on half-items count */
}

.testimonial-marquee-card {
  flex-shrink: 0;
  width: 350px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 20px;
  padding: 2.5rem;
  margin: 0 1rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.testimonial-marquee-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.1);
}

.t-star-rating {
  color: #fbbf24;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.t-text {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.t-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.t-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--color-primary);
  font-size: 0.8rem;
}

.t-name {
  font-weight: 600;
  color: #111;
  font-size: 1rem;
}

.t-role {
  font-size: 0.8rem;
  color: #777;
}
