:root {
  --overlay-color: #000;
  --text-font: 'Inter', system-ui, sans-serif;
  --scroll-height: 450vh; /* Extended for longer animation */
}

*, *::before, *::after {
  box-sizing: border-box;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--overlay-color);
  font-family: var(--text-font);
  /* overflow-x: hidden; Removed to prevent sticky issues */
  width: 100%;
  overflow-x: clip; /* Modern replacement */
  color: white;
}

/* --- INTRO SECTION REMOVED --- */

/* --- APPLE HERO SECTION REMOVED --- */
.apple-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0 2rem;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 100;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.nav-content {
  max-width: 1200px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #e8e8e8;
}

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

.nav-links a {
  color: #e8e8e8;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-icons {
  display: flex;
  align-items: center;
  transform: translateX(-23px);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: #86868b;
  opacity: 0.8;
  animation: bounce 2s infinite;
  cursor: pointer;
}

.scroll-indicator span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* The scroll container defines the height for scrolling */
.scroll-container {
  height: var(--scroll-height);
  position: relative;
}

/* The sticky wrapper keeps the visual content fixed while we scroll */
.sticky-wrapper {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Layer 1: Background Image */
.background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Layer 2: The SVG Overlay */
.overlay-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none; 
}

/* The Masking Rect */
.overlay-rect {
  fill: var(--overlay-color);
  mask: url(#text-mask);
}

/* Text Styling inside the SVG */
.mask-text {
  font-weight: 900;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.05em;
  font-size: 15vw; /* Responsive font size base */
  
  /* CRITICAL FOR SCALING CENTER */
  transform-box: fill-box;
  transform-origin: center center;
}

/* Content below the hero */
.content-below {
  padding: 4rem 2rem; /* Reduced padding */
  max-width: 800px;
  margin: 0 auto;
  color: #fff;
  min-height: 55vh; /* Increased from 40vh */
}

.content-below h2,
.content-below p,
.services-list {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.content-below h2.visible,
.content-below p.visible,
.services-list.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- DASHBOARD SECTION --- */
.dashboard-section {
    background-color: #050505;
    color: #fff;
    padding: 6rem 2rem;
    font-family: 'Inter', sans-serif;
    border-top: 1px solid #1f2937;
}

.dashboard-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .dashboard-container {
        grid-template-columns: 1fr 1fr;
        gap: 6rem;
    }
}

.dashboard-content {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dashboard-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.dashboard-intro {
    font-size: 1.125rem;
    font-weight: 600;
    color: #e5e7eb;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.dashboard-list li {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.dashboard-note {
    font-size: 1rem;
    color: #9ca3af;
    margin-top: 2rem;
    line-height: 1.6;
    font-style: italic;
    border-left: 2px solid #4facfe;
    padding-left: 1.5rem;
}

.dashboard-media {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 40px -10px rgba(79, 172, 254, 0.2);
    border: 1px solid #333;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dashboard-media.visible {
    opacity: 1;
    transform: translateY(0);
}

.dashboard-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.dashboard-media:hover .dashboard-image {
    transform: scale(1.02);
}

.services-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.services-list li {
  font-size: 1.125rem;
  color: #d1d5db;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.5rem;
  text-align: center;
  transition: background 0.2s, color 0.2s;
  cursor: default;
}

.services-list li:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* --- SERVICES INTERACTIVE SECTION --- */
.services-interactive {
    width: 100%;
    max-width: 1000px;
    margin: 3rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

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

@media (min-width: 768px) {
    .services-buttons {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

.service-btn {
    background: rgba(255, 255, 255, 0.05);
    color: #d1d5db;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 1.25rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.service-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Active State */
.service-btn.active {
    background: #fff;
    color: #000;
    border-color: #4facfe; /* Fallback */
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.6);
    background-clip: padding-box;
    position: relative;
    z-index: 10;
}

/* Gradient border effect simulated with box-shadow for simplicity or we can keep it simple */

.service-image-container {
    width: 100%;
    height: 300px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: #111;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 1px solid #333;
}

@media (min-width: 768px) {
    .service-image-container {
        height: 500px;
    }
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.service-img.visible {
    opacity: 1;
    transform: translateY(0);
}


h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

p {
  line-height: 1.8;
  margin-bottom: 2rem;
  color: #a1a1a1;
  font-size: 1.125rem;
}

/* --- CTA SECTION --- */
.cta-section {
    background-color: #000;
    color: #fff;
    padding: 8rem 2rem;
    font-family: 'Inter', sans-serif;
    border-top: 1px solid #1f2937;
    text-align: center;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-headline {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 30%, #ff0080 60%, #ff8c00 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cta-headline.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (min-width: 768px) {
    .cta-headline {
        font-size: 3.5rem;
    }
}

.cta-subheadline {
    font-size: 1.25rem;
    color: #d1d5db;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cta-subheadline.visible {
    opacity: 1;
    transform: translateY(0);
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cta-buttons.visible {
    opacity: 1;
    transform: translateY(0);
}

.cta-final-button {
    background-color: #fff;
    color: #000;
    border: 2px solid #fff;
    border-radius: 980px;
    padding: 0 32px; /* Remove vertical padding, use flex centering */
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease-out;
    box-sizing: border-box;
    height: 60px;
    min-width: 180px; /* Slightly wider to prevent wrap */
    font-family: inherit;
    margin: 0;
    white-space: nowrap; /* Prevent text wrapping */
    text-align: center;
}

.cta-final-button:hover {
    background-color: #e5e5e5;
    border-color: #e5e5e5;
    transform: scale(1.05);
    color: #000;
}

/* Specific Style for Contact Us (Secondary - Outline) */
.contact-us-btn {
    background-color: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.contact-us-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
    transform: scale(1.05);
}

/* Specific Style for Book a Call (Primary - Solid) */
.book-call-btn {
    background-color: #fff;
    color: #000;
    border-color: #fff;
}

/* --- FOOTER --- */
.site-footer {
    width: 100%;
    background-color: #000;
    padding: 6rem 2rem 4rem;
    border-top: 1px solid #1f2937;
    position: relative;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-logo-img {
    height: 48px;
    width: auto;
}

.footer-brand-text {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.03em;
}

.footer-slogan {
    font-size: 1.25rem;
    color: #9ca3af;
    margin-bottom: 4rem;
    font-weight: 300;
    letter-spacing: 0.02em;
}

.footer-copyright {
    font-size: 0.875rem;
    color: #4b5563;
    margin-top: 1rem;
}

.footer-link {
    color: #9ca3af;
    text-decoration: none;
    margin: 0 1rem;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #fff;
}
/* --- TESTIMONIALS SECTION --- */
.testimonials-section {
    background-color: #000;
    color: #fff;
    padding: 6rem 2rem;
    font-family: 'Inter', sans-serif;
    border-top: 1px solid #1f2937;
    overflow: hidden; /* For carousel overflow */
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.testimonials-headline {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.testimonials-headline.visible {
    opacity: 1;
    transform: translateY(0);
}

.testimonials-subheadline {
    font-size: 1.125rem;
    color: #9ca3af;
    max-width: 700px;
    margin: 0 auto 4rem auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    line-height: 1.6;
}

.testimonials-subheadline.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (min-width: 768px) {
    .testimonials-headline {
        font-size: 3rem;
    }
}

.testimonials-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.carousel-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: scroll 60s linear infinite;
}

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

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 1rem)); /* Shift by half width (since we duplicated content) minus half gap if needed, usually -50% works if strict duplication */
    }
}

/* Adjust keyframe for strict half: 4 cards + 4 cards. We move by width of 4 cards + gaps. */
/* Total items: 8. We move by 4 items. */
/* Calculation: 
   Card width: 350px (md) or 300px
   Gap: 2rem (32px)
   One set width = 4 * (350 + 32) = 1528px (approx)
   We want to translate by -50% of the TOTAL track width? 
   No, we want to translate by the width of the UNIQUE content set.
   
   If track has 2 sets. Width is 200%. Translate from 0 to -50%.
*/
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}


.testimonial-card {
    flex: 0 0 300px; /* Fixed width cards */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 1; /* Override animation visibility for now as maruqee is different */
    transform: none;
    transition: background 0.3s, border-color 0.3s;
}

@media (min-width: 768px) {
    .testimonial-card {
        flex: 0 0 400px; /* Wider for more text */
    }
}

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

.quote-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #e5e7eb;
    font-style: italic;
    margin: 0 0 1.5rem 0;
    flex-grow: 1;
}

.author-info {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
}

.author-role {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.25rem;
}
.how-it-works-section {
    background-color: #000;
    color: #fff;
    padding: 6rem 2rem;
    font-family: 'Inter', sans-serif;
    border-top: 1px solid #1f2937;
}

.hiw-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.hiw-headline {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hiw-headline.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (min-width: 768px) {
    .hiw-headline {
        font-size: 3rem;
    }
}

.hiw-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .hiw-steps {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

.hiw-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1rem;
    border: 1px solid transparent;
    transition: background 0.3s, border-color 0.3s, opacity 0.6s, transform 0.6s;
}

.hiw-step:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.hiw-step.visible {
    opacity: 1;
    transform: translateY(0);
}

.step-number {
    font-size: 3rem;
    font-weight: 900;
    color: #10b981; /* emerald-500 */
    opacity: 0.3;
    margin-bottom: 1rem;
    line-height: 1;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    color: #e5e7eb;
}

.hiw-subline {
    font-size: 1.125rem;
    color: #9ca3af;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hiw-subline.visible {
    opacity: 1;
    transform: translateY(0);
}
.cases-section {
    background-color: #000;
    color: #fff;
    padding: 6rem 2rem;
    font-family: 'Inter', sans-serif;
}

.cases-container {
    max-width: 1280px;
    margin: 0 auto;
}

.cases-header {
    margin-bottom: 5rem;
    max-width: 800px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-align: center; /* Centralize text */
    margin-left: auto;  /* Centralize container */
    margin-right: auto; /* Centralize container */
}

.cases-header.visible {
    opacity: 1;
    transform: translateY(0);
}

.track-record-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #10b981; /* emerald-500 */
    margin-bottom: 1rem;
}

.cases-title-text {
    font-size: 3rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin: 0 0 1.5rem 0;
    line-height: 1.1;
    color: #fff;
}

@media (min-width: 768px) {
    .cases-title-text {
        font-size: 3.75rem; /* text-6xl approx */
    }
}

.cases-description {
    font-size: 1.25rem;
    color: #a1a1a1;
    font-weight: 300;
    line-height: 1.6;
}

.cases-list {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.case-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.case-item.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (min-width: 1024px) {
    .case-item {
        grid-template-columns: 1fr 1fr;
        gap: 6rem;
    }
    
    /* Alternating order */
    .case-item:nth-child(even) .case-content {
        order: 2;
    }
    .case-item:nth-child(even) .case-media {
        order: 1;
    }
}

.client-name {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #4f46e5; /* indigo-600 */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.case-title {
    font-size: 1.875rem;
    font-weight: 500;
    margin: 0 0 1rem 0;
    color: #fff;
}

.case-goal {
    font-size: 1.125rem;
    color: #a1a1a1;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.case-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.case-features li {
    display: flex;
    align-items: start;
    font-size: 0.875rem;
    color: #d1d5db; /* slate-300 approx */
    margin-bottom: 0.5rem;
}

.feature-dot {
    width: 0.375rem;
    height: 0.375rem;
    background-color: #10b981;
    border-radius: 50%;
    margin-top: 0.4rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.case-media {
    position: relative;
    aspect-ratio: 16 / 9;
    background-color: #1f2937;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid #374151;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.case-media iframe {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none; /* GIF behavior */
}