/* ====================================
   JUMP Agency - Enhanced CSS
   African-Inspired Digital Marketing Agency
   ==================================== */

/* CSS Variables */
:root {
    /* Primary Colors - DGD Blue Branding */
    --primary: #00A3E0;
    --primary-dark: #0077B6;
    --primary-light: #48CAE4;
    --secondary: #2D3748;
    --accent: #0077B6;
    --tertiary: #00A3E0;
    
    /* Neutrals */
    --white: #FFFFFF;
    --off-white: #F8FAFC;
    --light-gray: #E2E8F0;
    --gray: #64748B;
    --dark-gray: #334155;
    --black: #0F172A;
    
    /* Semantic Colors */
    --text: #1E293B;
    --text-light: #64748B;
    --border: #E2E8F0;
    --success: #10B981;
    --error: #EF4444;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
    --spacing-4xl: 8rem;
    
    /* Typography */
    --font-display: 'Playfair Display', serif;
    --font-heading: 'Syne', sans-serif;
    --font-body: 'Work Sans', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
}

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

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

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--black);
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: -0.02em;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    letter-spacing: -0.01em;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

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

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Animated Background */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(135deg, #E6F4F9 0%, #B8E1F0 50%, #D4EDF7 100%);
}

.pattern-layer {
    position: absolute;
    width: 200%;
    height: 200%;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(0, 163, 224, 0.03) 35px, rgba(0, 163, 224, 0.03) 70px),
        repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(0, 163, 224, 0.03) 35px, rgba(0, 163, 224, 0.03) 70px);
    animation: patternMove 60s linear infinite;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 20%, rgba(72, 202, 228, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(0, 119, 182, 0.1) 0%, transparent 50%);
    mix-blend-mode: overlay;
}

@keyframes patternMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(-50%, -50%);
    }
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh; /* accounts for mobile browser UI bars */
    background: var(--black);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(1.25rem, 4vw, 2rem);
    padding: 1.5rem;
    box-sizing: border-box;
    z-index: 10000;
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.7s ease;
}

.loading-screen.loaded {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(1.25rem, 4vw, 2rem);
}

.loading-logo {
    position: relative;
    width: clamp(110px, 28vw, 200px);
    max-width: 55vw;
    margin: 0 auto;
    animation: logoFadeIn 0.6s ease forwards;
}

.loading-logo-img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 0 24px rgba(0, 163, 224, 0.4));
}

/* Progress bar */
.loading-bar-wrap {
    width: clamp(140px, 40vw, 200px);
    max-width: 80vw;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 99px;
    overflow: hidden;
}

.loading-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 99px;
    transition: width 0.3s ease;
}

.loading-tagline {
    color: var(--white);
    font-size: clamp(0.65rem, 2.2vw, 0.75rem);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    text-align: center;
    padding: 0 1rem;
    opacity: 0;
    animation: taglineFadeIn 0.6s ease 0.4s forwards;
}

/* Extra small phones */
@media (max-width: 360px) {
    .loading-logo {
        width: clamp(90px, 32vw, 130px);
    }
    .loading-tagline {
        letter-spacing: 0.12em;
    }
}

/* Landscape phones / short viewports: prioritize not overflowing vertically */
@media (max-height: 480px) {
    .loading-screen {
        gap: 0.75rem;
        padding: 0.75rem;
    }
    .loading-logo {
        width: clamp(70px, 18vh, 120px);
    }
}

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

@keyframes taglineFadeIn {
    from { opacity: 0; }
    to   { opacity: 0.6; }
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.1s ease, opacity 0.2s ease;
    opacity: 0;
}

.custom-cursor.active {
    opacity: 1;
}

.cursor-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: var(--white);
    border-radius: 50%;
}

@media (hover: none) {
    .custom-cursor {
        display: none;
    }
}

/* Header */
#mainHeader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
}

#mainHeader.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    padding: 1rem 0;
}

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

.logo a {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--black);
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-main {
    font-size: 2rem;
    color: var(--primary);
}

.logo-subtitle {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text);
    margin-top: 0.25rem;
}

/* Header video logo */
.logo-link {
  display: block;
  line-height: 0;
  position: relative;
  z-index: 1;
  border-radius: 100px;
  overflow: hidden;
  height: 44px;
  width: auto;
}

.header-logo-video {
  height: 44px;
  width: auto;
  display: block;
  border-radius: 4px;
  transform: translateY(-8px);   /* ← crop top, centre the text */
}

/* ---- BUBBLE PILL EFFECT (logo + nav links) ---- */
.nav-links a {
  position: relative;
  display: inline-block;
  z-index: 1;
}

/* The bubble pill – semi‑transparent blue glass */
.logo-link::before,
.nav-links a::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% + 24px);
  height: calc(100% + 12px);
  background: rgba(0, 163, 224, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 163, 224, 0.25);
  border-radius: 100px;
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  pointer-events: none;
  z-index: -1;
  opacity: 1;
}

/* Logo pill a little larger */
.logo-link::before {
  width: calc(100% + 32px);
  height: calc(100% + 16px);
  background: rgba(0, 163, 224, 0.15);
  border-color: rgba(0, 163, 224, 0.4);
}

/* Remove pills when header becomes solid white on scroll */
#mainHeader.scrolled .logo-link::before,
#mainHeader.scrolled .nav-links a::before {
  background: transparent;
  border-color: transparent;
  backdrop-filter: none;
}

/* Hide pills when body class says so (scroll‑direction control) */
body.hide-bubbles .logo-link::before,
body.hide-bubbles .nav-links a::before {
  opacity: 0;
}

nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

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

.nav-links a {
    font-weight: 500;
    color: var(--text);
    position: relative;
    padding: 0.5rem 0;
    font-size: 0.95rem;
}

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

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

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--black);
    border-radius: 2px;
    transition: var(--transition);
}

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

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

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary-nav {
    background: var(--black);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
}

.btn-primary-nav:hover {
    background: var(--primary);
}

.btn-secondary {
    background: var(--white);
    color: var(--black);
    border: 2px solid var(--black);
}

.btn-secondary:hover {
    background: var(--black);
    color: var(--white);
}

.btn-primary-large,
.btn-secondary-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

.btn-text {
    position: relative;
    z-index: 1;
}

/* Magnetic Button Effect */
.magnetic {
    transition: transform 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-badge i {
    color: var(--primary);
}

.hero-title {
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.title-line {
    display: block;
}

.highlight-text {
    color: var(--primary);
    font-family: var(--font-display);
    font-style: italic;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease 0.8s backwards;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 1s backwards;
}

/* Hero Visual Image */
.hero-visual {
    margin: 3rem 0 2rem;
    animation: fadeInUp 0.8s ease 0.9s backwards;
}

.hero-main-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    max-width: 900px;
    margin: 0 auto;
}

.hero-main-image img {
    width: 100%;
    height: auto;
    display: block;
}

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

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.6;
    animation: fadeIn 1s ease 1.5s backwards;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--black);
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    width: 3px;
    height: 8px;
    background: var(--black);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0%, 100% {
        top: 8px;
        opacity: 1;
    }
    50% {
        top: 20px;
        opacity: 0;
    }
}

.scroll-indicator span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text);
}

/* Marquee Section */
.marquee-section {
    background: var(--black);
    color: var(--white);
    padding: 1.5rem 0;
    overflow: hidden;
}

.marquee {
    display: flex;
    white-space: nowrap;
    overflow: hidden;
}

.marquee-content {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 3rem;
    min-width: 100%;
    animation: marquee 30s linear infinite;
}

.marquee-content span {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.marquee-dot {
    color: var(--primary);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Brand Showcase Section */
.brand-showcase {
    padding: var(--spacing-4xl) 0;
    background: var(--white);
}

.showcase-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
}

.showcase-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    cursor: pointer;
}

.showcase-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.showcase-large {
    grid-row: span 2;
}

.showcase-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.showcase-item:hover img {
    transform: scale(1.05);
}

.showcase-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.9));
    padding: 2rem;
    color: var(--white);
    transform: translateY(100%);
    transition: transform var(--transition);
}

.showcase-item:hover .showcase-caption {
    transform: translateY(0);
}

.showcase-caption h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.showcase-caption p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin: 0;
}

/* Section Styles */
section {
    padding: var(--spacing-4xl) 0;
    position: relative;
}

.section-tag {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

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

.section-title {
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* Services Section */
.services {
    background: var(--white);
}

.services-visual-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.service-visual-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.service-visual-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.service-visual-content {
    padding: 2rem;
}

.service-visual-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--black);
}

.service-visual-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

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

.service-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-slow);
}

.service-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-icon i {
    font-size: 2rem;
    color: var(--white);
}

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

.service-card > p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    margin-bottom: 2rem;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    color: var(--text);
}

.service-features i {
    color: var(--success);
    font-size: 0.875rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

.service-link:hover {
    gap: 1rem;
}

.service-link i {
    transition: var(--transition);
}

/* Approach Section */
.approach {
    background: var(--off-white);
}

.approach-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.approach-text h2 {
    margin-bottom: 2rem;
}

.approach-items {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.approach-item {
    display: flex;
    gap: 1.5rem;
}

.approach-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.5;
    line-height: 1;
}

.approach-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.approach-info p {
    color: var(--text-light);
}

.approach-visual {
    position: relative;
}

.approach-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.approach-image img {
    width: 100%;
    height: auto;
    display: block;
}

.image-badge {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-lg);
}

.image-badge i {
    color: var(--primary);
    font-size: 1.5rem;
}

.image-badge span {
    font-weight: 600;
    color: var(--text);
}

/* Clients Section */
.clients {
    background: var(--white);
    padding: 4rem 0;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 3rem;
    align-items: center;
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: var(--transition);
    filter: grayscale(100%);
}

.client-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.client-logo img {
    max-width: 120px;
    height: auto;
}

/* Work Section */
.work {
    background: var(--off-white);
}

.work-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border);
    background: var(--white);
    color: var(--text);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.work-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.work-item.hidden {
    display: none;
}

.work-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.work-item:hover .work-image img {
    transform: scale(1.1);
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.95) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity var(--transition);
}

.work-item:hover .work-overlay {
    opacity: 1;
}

.work-category {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.work-info h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.work-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.work-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    font-weight: 600;
    transition: var(--transition);
}

.work-link:hover {
    gap: 1rem;
}

.work-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Team Section */
.team {
    background: var(--white);
}

.team-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.team-content h2 {
    margin-bottom: 1.5rem;
}

.team-content > p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.team-benefits {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.benefit-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.benefit-item i {
    font-size: 2rem;
    color: var(--primary);
    flex-shrink: 0;
}

.benefit-item h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.benefit-item p {
    color: var(--text-light);
}

.team-visual {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.team-visual img {
    width: 100%;
    height: auto;
    display: block;
}

.team-stat {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.team-stat .stat-number {
    font-size: 3rem;
}

.team-stat p {
    font-size: 0.875rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

/* CTA Section */
.cta {
    background: var(--black);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(217, 119, 6, 0.05) 35px, rgba(217, 119, 6, 0.05) 70px);
    opacity: 0.3;
}

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

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

.cta p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Contact Section */
.contact {
    background: var(--off-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info h2 {
    margin-bottom: 1rem;
}

.contact-info > p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.25rem;
    color: var(--white);
}

.contact-text h4 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.contact-text p,
.contact-text a {
    color: var(--text-light);
    font-size: 0.95rem;
}

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

/* Social Proof */
.social-proof {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--radius);
    border: 2px solid var(--border);
}

.proof-avatars {
    display: flex;
    margin-right: -0.5rem;
}

.proof-avatars img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid var(--white);
    margin-right: -0.5rem;
}

.proof-stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.25rem;
}

.proof-stars i {
    color: var(--primary);
    font-size: 0.875rem;
}

.proof-text p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text);
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-note {
    font-size: 0.875rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 1rem;
}

.contact-form .btn {
    width: 100%;
    justify-content: center;
}

/* Newsletter Section */
.newsletter {
    background: var(--primary);
    color: var(--white);
    padding: 3rem 0;
}

.newsletter-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

.newsletter-text h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.newsletter-text p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.newsletter-form {
    flex: 1;
    max-width: 500px;
}

.newsletter-inputs {
    display: flex;
    gap: 1rem;
}

.newsletter-inputs input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--white);
    font-size: 1rem;
}

.newsletter-inputs input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-inputs input:focus {
    outline: none;
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-inputs .btn {
    padding: 1rem 2rem;
    background: var(--white);
    color: var(--primary);
}

.newsletter-inputs .btn:hover {
    background: var(--black);
    color: var(--white);
}

/* Footer */
footer {
    background: var(--black);
    color: var(--white);
    padding: 4rem 0 2rem;
}

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

.footer-brand {
    max-width: 350px;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 40px;
    width: auto;
    display: block;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1); /* makes it white on dark footer bg */
}

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

.footer-logo .logo-subtitle {
    color: var(--white);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.footer-col ul {
    list-style: none;
}

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

.footer-col ul a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-col ul a:hover {
    color: var(--primary);
    padding-left: 0.5rem;
}

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

.footer-bottom i {
    color: var(--tertiary);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    animation: slideInRight 0.3s ease;
    max-width: 400px;
    font-weight: 500;
}

.notification.success {
    background: var(--success);
}

.notification.error {
    background: var(--error);
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .approach-content,
    .team-split,
    .contact-grid {
        grid-template-columns: 1fr;
    }

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

    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-form {
        max-width: 100%;
    }

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

    .showcase-large {
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .btn-primary-nav {
        display: none;
    }

    .services-grid,
    .services-visual-grid,
    .work-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-stats {
        gap: 2rem;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .newsletter-inputs {
        flex-direction: column;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .cta-buttons {
        flex-direction: column;
    }
}

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

    section {
        padding: 3rem 0;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .service-card,
    .contact-form {
        padding: 1.5rem;
    }

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}
/* ============================================================
   SERVICE DETAIL MODAL
   ============================================================ */

/* Overlay container — hidden by default */
.svc-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    pointer-events: none;
    visibility: hidden;
}

.svc-modal.open {
    pointer-events: all;
    visibility: visible;
}

/* Semi-transparent backdrop */
.svc-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.svc-modal.open .svc-backdrop {
    opacity: 1;
}

/* Slide-in panel */
.svc-panel {
    position: relative;
    width: min(680px, 100%);
    height: 100vh;
    background: var(--white);
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 60px rgba(0, 0, 0, 0.18);
    transform: translateX(100%);
    transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.svc-modal.open .svc-panel {
    transform: translateX(0);
}

/* Close button */
.svc-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 10;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: var(--off-white);
    color: var(--text);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.svc-close:hover {
    background: var(--primary);
    color: var(--white);
    transform: rotate(90deg);
}

/* Scrollable body */
.svc-body {
    flex: 1;
    overflow-y: auto;
    padding: 2.5rem 2.5rem 3rem;
    scroll-behavior: smooth;
}

.svc-body::-webkit-scrollbar { width: 5px; }
.svc-body::-webkit-scrollbar-track { background: var(--off-white); }
.svc-body::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

/* Breadcrumb */
.svc-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.svc-breadcrumb i {
    font-size: 0.6rem;
    color: var(--primary);
}

.svc-breadcrumb span:last-child {
    color: var(--primary);
}

/* Header row: icon + title/tagline */
.svc-header {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border);
}

.svc-icon {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.svc-icon i {
    font-size: 2rem;
    color: var(--white);
}

.svc-header-text h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.5rem;
    color: var(--black);
}

.svc-tagline {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* Section blocks */
.svc-section {
    margin-bottom: 2.5rem;
}

.svc-section-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.svc-section > p {
    color: var(--text-light);
    line-height: 1.8;
    margin: 0;
    font-size: 0.975rem;
}

/* Features grid */
.svc-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.svc-feature {
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
    background: var(--off-white);
    border-radius: var(--radius);
    padding: 1rem;
    transition: var(--transition);
}

.svc-feature:hover {
    background: rgba(0, 163, 224, 0.06);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.svc-feature__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.svc-feature__icon i {
    font-size: 0.875rem;
    color: var(--white);
}

.svc-feature__text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.svc-feature__text strong {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--black);
    line-height: 1.3;
}

.svc-feature__text span {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Numbered process list */
.svc-process {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    counter-reset: none;
}

.svc-step {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.svc-step__num {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.svc-step__info h4 {
    font-size: 0.975rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 0.3rem;
}

.svc-step__info p {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* Results strip */
.svc-results-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-left: -2.5rem;
    margin-right: -2.5rem;
}

.svc-results-section .svc-section-title {
    color: rgba(255,255,255,0.75);
    border-color: rgba(255,255,255,0.2);
}

.svc-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    text-align: center;
}

.svc-result__num {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 0.4rem;
}

.svc-result__label {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.4;
}

/* CTA block */
.svc-cta {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
}

.svc-cta p {
    margin: 0;
    font-size: 1.05rem;
    color: var(--text);
    line-height: 1.5;
}

.svc-cta strong {
    color: var(--primary);
}

.svc-cta-btn {
    align-self: stretch;
    justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 540px) {
    .svc-body {
        padding: 2rem 1.25rem 3rem;
    }

    .svc-results-section {
        margin-left: -1.25rem;
        margin-right: -1.25rem;
    }

    .svc-features {
        grid-template-columns: 1fr;
    }

    .svc-results {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .svc-header {
        flex-direction: column;
        gap: 1rem;
    }
}
/* ============================================================
   LEAD QUALIFIER POPUP
   ============================================================ */

.lq-overlay {
    position: fixed;
    inset: 0;
    z-index: 9500;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    padding: 1rem;
}

.lq-overlay.open {
    opacity: 1;
    visibility: visible;
}

.lq-modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2.5rem 2rem;
    width: 100%;
    max-width: 480px;
    position: relative;
    box-shadow: var(--shadow-xl);
    transform: translateY(30px) scale(0.97);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lq-overlay.open .lq-modal {
    transform: translateY(0) scale(1);
}

/* Progress bar */
.lq-progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--light-gray);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
}

.lq-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: inherit;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
}

/* Close button */
.lq-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: var(--off-white);
    color: var(--text-light);
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.lq-close:hover {
    background: var(--primary);
    color: var(--white);
    transform: rotate(90deg);
}

/* Stages */
.lq-stage {
    display: none;
}

.lq-stage.active {
    display: block;
    animation: lqFadeIn 0.35s ease;
}

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

/* Stage icon */
.lq-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.lq-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

/* Step label */
.lq-step {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Question */
.lq-question {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 1.5rem;
    line-height: 1.3;
    font-family: var(--font-heading);
}

/* Options grid */
.lq-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.lq-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.875rem 1rem;
    background: var(--off-white);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    line-height: 1.3;
}

.lq-option i {
    color: var(--primary);
    font-size: 1rem;
    flex-shrink: 0;
}

.lq-option:hover {
    border-color: var(--primary);
    background: rgba(0, 163, 224, 0.06);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.lq-option.selected {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.lq-option.selected i {
    color: var(--white);
}

/* Final screen */
.lq-final-icon {
    text-align: center;
    margin-bottom: 1.25rem;
}

.lq-final-icon i {
    font-size: 4rem;
    color: var(--primary);
    animation: lqPop 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes lqPop {
    0%   { transform: scale(0); opacity: 0; }
    70%  { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

.lq-final-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--black);
    text-align: center;
    margin-bottom: 0.75rem;
    font-family: var(--font-heading);
}

.lq-final-text {
    color: var(--text-light);
    text-align: center;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

.lq-cta-btn {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
}

.lq-dismiss {
    display: block;
    width: 100%;
    margin-top: 0.875rem;
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--text-light);
    cursor: pointer;
    text-align: center;
    padding: 0.5rem;
    transition: var(--transition);
}

.lq-dismiss:hover {
    color: var(--primary);
}

/* Mobile */
@media (max-width: 480px) {
    .lq-modal {
        padding: 2rem 1.25rem 1.5rem;
    }

    .lq-options {
        grid-template-columns: 1fr;
    }

    .lq-question {
        font-size: 1.1rem;
    }
}
/* Accessibility - Focus States */
*:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
}

/* For users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}