/* ========================================
   MOBILE-FIRST RESPONSIVE DESIGN
   Optimized for all devices with focus on mobile UX
   ======================================== */

/* Base Styles & CSS Variables */
:root {
    /* Colors */
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --secondary: #f59e0b;
    --accent: #8b5cf6;
    --cta: #10b981;
    --cta-dark: #059669;
    --cta-light: #34d399;
    --bg-main: #ffffff;
    --bg-light: #f8fafc;
    --bg-gray: #f1f5f9;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --border-light: #e2e8f0;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);

    /* Gradients */
    --gradient-main: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --gradient-cta: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-light: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing (Mobile-first) */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-2xl: 64px;

    /* Touch Targets (minimum 44px for accessibility) */
    --touch-target-min: 44px;
}

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

html {
    /* Prevent text size adjustment on orientation change */
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    /* Smooth scrolling */
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    /* Better font rendering on mobile */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    /* Prevent text overflow */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    /* Remove tap highlight on mobile */
    -webkit-tap-highlight-color: transparent;
}

ul {
    list-style: none;
}

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

/* Utility Classes */
.container {
    max-width: 1400px;
    /* Wider for Codi look */
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    /* Increased padding */
}

.desktop-only {
    display: none !important;
}

@media (min-width: 992px) {
    .desktop-only {
        display: flex !important;
    }
}

.section {
    padding: var(--spacing-xl) 0;
}

/* Section Backgrounds (Alternating) */
.stats-section {
    background-color: var(--bg-main);
}

.how-it-works {
    background-color: #eff6ff;
    /* Light blue tint from logo */
}

.different-section {
    background-color: var(--bg-main);
}

.who-section {
    background-color: #eff6ff;
    /* Light blue tint from logo */
}

.contact {
    background-color: #ffffff;
    /* White (Lightest shade) */
}

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

.gradient-text {
    color: var(--primary);
    font-weight: 800;
}

.full-width {
    width: 100%;
    text-align: center;
}

/* ========================================
   BUTTONS - Touch Optimized
   ======================================== */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 16px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
    /* Minimum touch target */
    min-height: var(--touch-target-min);
    /* Prevent text selection on tap */
    user-select: none;
    -webkit-user-select: none;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background: white;
    color: var(--text-main);
    border: 2px solid var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-left: 0;
    margin-top: var(--spacing-sm);
}

.btn-secondary:active {
    transform: scale(0.98);
}

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

.gradient-text {
    color: var(--primary);
    font-weight: 800;
}

.full-width {
    width: 100%;
    text-align: center;
}

/* ========================================
   BUTTONS - Touch Optimized
   ======================================== */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 16px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
    /* Minimum touch target */
    min-height: var(--touch-target-min);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    background: var(--primary-dark);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: var(--spacing-sm);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* ========================================
   NAVIGATION - Mobile First
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--spacing-md) 0;
    background: transparent;
    transition: all 0.3s ease;
    overflow: visible;
    /* Ensure dropdowns are visible */
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
}

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

.nav-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* ========================================
   MULTI-STEP FORM MODAL
   ======================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: white;
    width: 90%;
    max-width: 600px;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-header {
    padding: 24px 32px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s;
    padding: 4px;
}

.modal-close:hover {
    color: var(--primary);
}

.modal-body {
    padding: 32px;
    overflow-y: auto;
}

.form-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.step-indicator {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.step-dot {
    height: 4px;
    flex: 1;
    background: var(--border-light);
    border-radius: 2px;
    transition: background 0.3s ease;
}

.step-dot.active {
    background: var(--primary);
}

.step-question {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 24px;
    line-height: 1.3;
}

.option-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.option-card {
    border: 2px solid var(--border-light);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.option-card:hover {
    border-color: var(--primary);
    background: #eff6ff;
}

.option-card.selected {
    border-color: var(--primary);
    background: #eff6ff;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.option-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    border: 1px solid var(--border-light);
}

.option-text {
    font-weight: 600;
    color: var(--text-main);
}

.form-input {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    font-size: 1rem;
    margin-bottom: 16px;
    transition: border-color 0.2s;
    font-family: var(--font-body);
}

.form-input:focus {
    border-color: var(--primary);
    outline: none;
}

.modal-footer {
    padding: 24px 32px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
}

.btn-back {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    padding: 8px 16px;
}

.btn-next {
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

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

.btn-next:disabled {
    background: var(--border-light);
    cursor: not-allowed;
}

@media (min-width: 600px) {
    .option-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: visible;
    /* Ensure dropdowns are visible */
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1001;
}

.logo-icon {
    height: 28px;
    width: auto;
    border-radius: 6px;
}

/* Desktop Navigation - Hidden on Mobile */
.nav-links {
    display: none;
}

/* Hamburger Menu - Mobile */
.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
    padding: 8px;
    /* Ensure touch target size */
    min-width: var(--touch-target-min);
    min-height: var(--touch-target-min);
    justify-content: center;
    align-items: center;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 3px 0;
    background-color: var(--text-main);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    /* Dynamic viewport height for mobile browsers */
    background: var(--bg-main);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-lg);
    padding: var(--spacing-xl) var(--spacing-md);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-link,
.mobile-btn {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-main);
    padding: var(--spacing-sm);
    min-height: var(--touch-target-min);
    display: flex;
    align-items: center;
}

.mobile-btn {
    font-size: 1.125rem;
    margin-top: var(--spacing-md);
}

/* ========================================
   HERO SECTION - Mobile Optimized
   ======================================== */
.hero {
    position: relative;
    min-height: 80vh;
    min-height: 80dvh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Left align */
    text-align: left;
    /* Left align */
    overflow: hidden;
    padding: var(--spacing-xl) 0;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0.2) 100%);
    z-index: -1;
}

.hero-buttons {
    margin-top: 40px;
}

.btn-primary i {
    margin-right: 12px;
}

.hero-content {
    max-width: 700px;
    /* Slightly wider */
    z-index: 1;
    z-index: 1;
    padding: var(--spacing-2xl) var(--spacing-md) var(--spacing-md);
    /* Remove horizontal padding to align with logo */
    margin-left: 0;
    /* Ensure left alignment */
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    /* Larger font */
    margin-bottom: var(--spacing-md);
    letter-spacing: -1px;
    color: black;
    font-weight: 800;
    line-height: 1.1;
}

.hero h2 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

.hero p {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    max-width: 650px;
    font-weight: 400;
    line-height: 1.6;
}

/* Features Grid (Why V2E) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.feature-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-light);
    text-align: center;
}

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

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: var(--spacing-md);
    display: inline-block;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-main);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.hero-lead {
    font-size: 1.15em;
    font-weight: 700;
    color: var(--text-main);
    display: block;
    margin-bottom: 8px;
}

.hero-btns {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: flex-start;
    /* Left align buttons */
    margin-bottom: var(--spacing-xl);
}

/* ========================================
   SECTION HEADERS - Mobile Typography
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    padding: 0 var(--spacing-sm);
}

.section-header h2 {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
    margin-bottom: var(--spacing-sm);
    color: var(--text-main);
    font-weight: 700;
}

.section-header p {
    color: var(--text-secondary);
    font-size: clamp(1rem, 3vw, 1.1rem);
    line-height: 1.6;
}

/* ========================================
   VALUE GRID - Clean, No Cards
   ======================================== */
.value-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    max-width: 900px;
    margin: 0 auto;
}

.value-item {
    text-align: center;
    padding: var(--spacing-md);
    transition: transform 0.3s ease;
}

.value-item:active {
    transform: scale(0.98);
}

.value-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-main);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
}

.value-icon i {
    font-size: 2rem;
    color: white;
}

.value-item h3 {
    font-size: clamp(1.25rem, 4vw, 1.5rem);
    margin-bottom: var(--spacing-sm);
    color: var(--text-main);
    font-weight: 700;
}

.value-item p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

/* ========================================
   STATS SECTION - Editorial Style (Borderless)
   ======================================== */
.stats-editorial {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    color: white;
    padding: var(--spacing-2xl) 0;
    text-align: center;
}

.editorial-content {
    max-width: 1000px;
    margin: 0 auto;
}

.stats-editorial h2 {
    font-size: clamp(2.5rem, 7vw, 4rem);
    margin-bottom: var(--spacing-md);
    color: white;
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.editorial-intro {
    font-size: clamp(1.1rem, 3vw, 1.35rem);
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    margin-bottom: var(--spacing-2xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.editorial-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.estat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.estat-number {
    font-size: clamp(3rem, 8vw, 4.5rem);
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(to bottom, #ffffff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.estat-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.estat-divider {
    display: none;
    /* Hidden on mobile */
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.btn-white-outline {
    display: inline-block;
    padding: 16px 32px;
    border: 2px solid white;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: all 0.3s ease;
    background: transparent;
}

.btn-white-outline:hover {
    background: white;
    color: var(--text-main);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Tablet & Desktop Adjustments */
@media (min-width: 768px) {
    .editorial-stats {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: var(--spacing-xl);
    }

    .estat-divider {
        display: block;
    }
}

/* ========================================
   LEGACY CARD STYLES (Keep for other sections)
   ======================================== */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: var(--spacing-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.glass-card:active {
    transform: scale(0.98);
}

/* ========================================
   PROCESS SECTION - Mobile Stack
   ======================================== */
.process {
    background: var(--bg-light);
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.step {
    text-align: center;
    padding: var(--spacing-md);
    background: var(--bg-main);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.step-number {
    width: 56px;
    height: 56px;
    background: var(--bg-main);
    border: 3px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 auto var(--spacing-sm);
}

.step-connector {
    display: none;
}

.step h3 {
    margin-bottom: var(--spacing-xs);
    color: var(--text-main);
    font-weight: 600;
    font-size: clamp(1.125rem, 4vw, 1.25rem);
}

.step p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ========================================
   SERVICES SECTION - Clean List (No Cards)
   ======================================== */
.services-list-clean {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    max-width: 1000px;
    margin: 0 auto;
}

.service-item-clean {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    border-radius: 12px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.service-item-clean:hover {
    background: var(--bg-light);
    transform: translateX(8px);
}

.s-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.s-info h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--text-main);
    font-weight: 700;
}

.s-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Tablet & Desktop Adjustments */
@media (min-width: 768px) {
    .services-list-clean {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xl) var(--spacing-2xl);
    }
}

/* ========================================
   CONTACT SECTION - Mobile Stack
   ======================================== */
.contact-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.contact-text {
    width: 100%;
}

.contact-text h2 {
    font-size: clamp(1.75rem, 7vw, 3rem);
    margin-bottom: var(--spacing-md);
    color: var(--text-main);
    font-weight: 700;
}

.contact-benefits {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin: var(--spacing-md) 0;
}

.contact-benefits span {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: clamp(1rem, 3vw, 1.1rem);
    font-weight: 600;
    color: var(--text-main);
}

.contact-benefits i {
    color: var(--secondary);
    flex-shrink: 0;
}

.service-areas {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-light);
}

.service-areas h4 {
    margin-bottom: var(--spacing-xs);
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem;
}

.service-areas p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.contact-form-wrapper {
    width: 100%;
    max-width: 100%;
}

.contact-form-wrapper h3 {
    text-align: center;
    margin-bottom: var(--spacing-md);
    color: var(--text-main);
    font-size: clamp(1.25rem, 4vw, 1.5rem);
}

/* ========================================
   FORMS - Touch Optimized
   ======================================== */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-main);
    border: 2px solid var(--border-light);
    border-radius: 12px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 16px;
    /* Prevents zoom on iOS */
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    /* Minimum touch target */
    min-height: var(--touch-target-min);
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* ========================================
   FOOTER - Mobile Optimized
   ======================================== */
footer {
    background: #93c5fd;
    /* Darker blue (Blue-300) to conclude site */
    padding: var(--spacing-xl) 0 var(--spacing-md);
    border-top: none;
    margin-top: 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--spacing-md);
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: var(--spacing-xs);
    min-height: var(--touch-target-min);
    display: flex;
    align-items: center;
}

.footer-links a:active {
    color: var(--primary);
}

.footer-content p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ========================================
   ANIMATIONS - Performance Optimized
   ======================================== */
.animate-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s forwards;
}

.delay-1 {
    animation-delay: 0.15s;
}

.delay-2 {
    animation-delay: 0.3s;
}

.delay-3 {
    animation-delay: 0.45s;
}

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

.fade-in,
.fade-in-left,
.fade-in-right {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform;
}

.fade-in {
    transform: translateY(20px);
}

.fade-in-left {
    transform: translateX(-20px);
}

.fade-in-right {
    transform: translateX(20px);
}

.visible {
    opacity: 1;
    transform: translate(0);
}

/* ========================================
   TABLET BREAKPOINT (600px+)
   ======================================== */
@media (min-width: 600px) {
    .container {
        padding: 0 var(--spacing-lg);
    }

    .section {
        padding: var(--spacing-2xl) 0;
    }

    .hero-btns {
        flex-direction: row;
        justify-content: flex-start;
        /* Left align */
    }

    .btn-secondary {
        margin-left: var(--spacing-sm);
        margin-top: 0;
    }

    /* Hero stats removed */

    .grid-3 {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .value-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-md);
    }

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

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .service-card {
        height: 220px;
    }

    .process-steps {
        flex-direction: row;
        align-items: flex-start;
    }

    .step {
        flex: 1;
        background: transparent;
        box-shadow: none;
    }

    .step-connector {
        display: block;
        flex: 0.5;
        height: 2px;
        background: var(--border-light);
        margin-top: 28px;
    }
}

/* ========================================
   DESKTOP BREAKPOINT (992px+)
   ======================================== */
@media (min-width: 992px) {
    .section {
        padding: 80px 0;
    }

    /* Show desktop navigation */
    .nav-links {
        display: flex;
        align-items: center;
        gap: 30px;
    }

    .nav-links li a {
        font-weight: 500;
        font-size: 0.95rem;
        color: var(--text-secondary);
        padding: 8px 12px;
    }

    .nav-links li a:hover {
        color: var(--primary);
    }

    .nav-btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }

    /* Hide hamburger on desktop */
    .hamburger {
        display: none;
    }

    .logo {
        font-size: 1.5rem;
    }

    .logo-icon {
        height: 58px;
    }

    /* Desktop layouts */
    .split-container,
    .contact-container {
        flex-direction: row;
        align-items: center;
        gap: 60px;
    }

    .stats-wrapper {
        flex-direction: row;
        align-items: center;
        gap: var(--spacing-2xl);
    }

    .stats-content {
        flex: 1;
    }

    .stats-visual {
        flex: 1;
    }

    .split-content,
    .split-image,
    .contact-text,
    .contact-form-wrapper {
        flex: 1;
    }

    .contact-form-wrapper {
        max-width: 500px;
    }

    /* Align hero text with first menu item (Logo width + Gap) */
    .hero-content {
        margin-left: 220px;
        max-width: 800px;
        /* Increase max-width to accommodate margin */
    }

    .floating-badge {
        bottom: 30px;
        left: -20px;
        padding: 15px 25px;
        font-size: 1rem;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .service-card {
        height: 250px;
    }

    /* Hover effects on desktop */
    .glass-card:hover {
        transform: translateY(-10px);
        box-shadow: var(--shadow-lg);
    }

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 25px rgba(59, 130, 246, 0.45);
    }

    .btn-secondary:hover {
        background: var(--primary);
        border-color: var(--primary);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    }

    .service-card:hover {
        transform: scale(1.02);
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

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

/* ========================================
   LARGE DESKTOP (1200px+)
   ======================================== */
@media (min-width: 1200px) {
    .hero h1 {
        font-size: 4rem;
    }

    .section-header h2 {
        font-size: 2.5rem;
    }

    .contact-text h2 {
        font-size: 3rem;
    }
}

/* ========================================
   PRICING / PACKAGES SECTION
   Mobile-First, Uniform Card Design
   ======================================== */

.pricing {
    background: var(--bg-light);
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

/* Uniform Card Design */
.pricing-card {
    background: var(--card-bg);
    border: 2px solid var(--border-light);
    border-radius: 20px;
    padding: var(--spacing-lg);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    /* Ensure uniform height */
    height: 100%;
    min-height: 650px;
}

.pricing-card:active {
    transform: scale(0.98);
}

/* Featured Card */
.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.15);
    background: linear-gradient(to bottom, rgba(59, 130, 246, 0.02), var(--card-bg));
}

/* Pricing Badge */
.pricing-badge {
    position: absolute;
    top: -12px;
    right: var(--spacing-md);
    background: var(--gradient-light);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid var(--primary);
}

.pricing-badge.popular {
    background: var(--gradient-main);
    color: white;
    border-color: var(--primary);
}

/* Pricing Header - Fixed Height */
.pricing-header {
    margin-top: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    text-align: center;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pricing-header h3 {
    font-size: clamp(1.5rem, 5vw, 1.75rem);
    margin-bottom: var(--spacing-xs);
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.2;
}

.pricing-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.4;
}

/* Pricing Price - Fixed Height */
.pricing-price {
    text-align: center;
    padding: var(--spacing-md) 0;
    border-bottom: 2px solid var(--border-light);
    margin-bottom: var(--spacing-md);
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.price-amount {
    display: block;
    font-size: clamp(2rem, 6vw, 2.5rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--spacing-xs);
    line-height: 1;
}

.price-period {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.4;
}

/* Pricing Features - Flexible Height */
.pricing-features {
    flex: 1;
    margin-bottom: var(--spacing-md);
    display: flex;
    flex-direction: column;
}

.pricing-features h4 {
    font-size: 1rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-main);
    font-weight: 600;
}

.pricing-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.pricing-features li i {
    color: var(--secondary);
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Pricing Deliverables - Fixed Height */
.pricing-deliverables {
    background: var(--bg-light);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 12px;
    margin-bottom: var(--spacing-md);
    min-height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pricing-deliverables strong {
    display: block;
    color: var(--primary);
    font-size: 0.875rem;
    margin-bottom: 6px;
    font-weight: 600;
}

.pricing-deliverables p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Pricing Button - Fixed Position at Bottom */
.pricing-btn {
    width: 100%;
    text-align: center;
    padding: 16px;
    font-size: 1rem;
    font-weight: 600;
    margin-top: auto;
    /* Ensure button stays at bottom */
}

/* Pricing Footer */
.pricing-footer {
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--card-bg);
    border-radius: 16px;
    border: 2px solid var(--border-light);
}

.pricing-footer p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.pricing-footer i {
    color: var(--primary);
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* ========================================
   PRICING - TABLET (600px+)
   ======================================== */
@media (min-width: 600px) {
    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: var(--spacing-md);
    }

    .pricing-card {
        padding: var(--spacing-xl);
        min-height: 700px;
    }
}

/* ========================================
   PRICING - DESKTOP (992px+)
   ======================================== */
@media (min-width: 992px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-lg);
        align-items: stretch;
    }

    .pricing-card {
        min-height: 750px;
    }

    /* Hover effects on desktop */
    .pricing-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-lg);
        border-color: var(--primary);
    }

    .pricing-card.featured:hover {
        box-shadow: 0 12px 40px rgba(59, 130, 246, 0.25);
    }

    /* Scale featured card slightly larger */
    .pricing-card.featured {
        transform: scale(1.03);
    }

    .pricing-card.featured:hover {
        transform: scale(1.03) translateY(-8px);
    }
}

/* ========================================
   PRICING - LARGE DESKTOP (1200px+)
   ======================================== */
@media (min-width: 1200px) {
    .pricing-card {
        min-height: 720px;
    }
}

/* ========================================
   ESTIMATOR SECTION
   ======================================== */
.estimator-wrapper {
    display: flex;
    justify-content: center;
    padding: 0 var(--spacing-sm);
}

.estimator-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.estimator-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-main);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: white;
    font-size: 1.75rem;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.estimator-desc {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.radio-group {
    display: flex;
    background: var(--bg-gray);
    padding: 4px;
    border-radius: 12px;
    margin-top: 8px;
}

.radio-option {
    flex: 1;
    position: relative;
    cursor: pointer;
}

.radio-option input {
    display: none;
}

.radio-label {
    display: block;
    padding: 10px;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.radio-option input:checked+.radio-label {
    background: white;
    color: var(--primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.result-divider {
    height: 1px;
    background: var(--border-light);
    margin: 32px 0;
}

.result-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.result-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.result-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.result-disclaimer {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 8px;
}

/* ===== Instant Rendering Section ===== */
.instant-render {
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    position: relative;
    overflow: hidden;
}

.instant-render::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.render-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 48px;
}

.render-input-section h3,
.render-output-section h3 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 20px;
    font-weight: 700;
}

/* Upload Area */
.upload-area {
    background: white;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    border: 2px dashed var(--border-light);
    transition: all 0.3s ease;
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-area:hover {
    border-color: var(--primary);
    background: #fafbff;
}

.upload-placeholder i {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 20px;
    display: block;
}

.upload-placeholder p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.upload-preview {
    position: relative;
    width: 100%;
    height: 100%;
}

.upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.btn-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-remove:hover {
    background: rgb(220, 38, 38);
    transform: scale(1.1);
}

/* Description Area */
.render-description {
    margin-top: 30px;
}

.render-description textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    transition: all 0.2s ease;
    margin-bottom: 20px;
}

.render-description textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.render-description button {
    width: 100%;
}

.render-description button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Output Section */
.render-output-section {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.render-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.render-before,
.render-after {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
    min-height: 300px;
}

.render-label {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
}

.render-before img,
.render-after img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Loading Spinner */
.render-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 300px;
    padding: 40px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e0e7ff;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.render-loading p {
    color: var(--text-main);
    font-weight: 600;
    margin-bottom: 8px;
}

.render-loading small {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Render Actions */
.render-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.render-actions button,
.render-actions a {
    flex: 1;
    max-width: 250px;
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .render-container {
        grid-template-columns: 1fr;
    }

    .render-comparison {
        grid-template-columns: 1fr;
    }

    .render-actions {
        flex-direction: column;
    }

    .render-actions button,
    .render-actions a {
        max-width: 100%;
    }
}

/* ========================================
   PROCESS FLOW CHART
   ======================================== */
.process-flow-chart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.flow-step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: var(--spacing-lg);
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.flow-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.flow-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    color: white;
    font-size: 2rem;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.flow-step h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
    color: var(--text-main);
    font-weight: 700;
}

.flow-step p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.flow-arrow {
    color: var(--primary-light);
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .process-flow-chart {
        flex-direction: column;
        gap: var(--spacing-lg);
    }

    .flow-arrow {
        transform: rotate(90deg);
        margin: -10px 0;
    }
}

/* ========================================
   V2E ESTIMATE TOOL SECTION
   ======================================== */
.estimate-tool-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-light);
    text-align: center;
}

.estimate-tool-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.estimate-tool-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 4px solid white;
    position: relative;
    /* Enforce aspect ratio for mobile screenshots (approx 9:19) */
    aspect-ratio: 9/19.5;
}

.estimate-tool-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
    border-color: var(--primary-light);
}

.estimate-tool-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    /* Anchors image to top, cropping bottom if too long */
    display: block;
}

@media (min-width: 768px) {
    .estimate-tool-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .estimate-tool-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ========================================
   HERO STATS BAR
   ======================================== */
.stats-section {
    width: 100%;
    background: white;
    border-bottom: 1px solid var(--border-light);
    padding: 32px 0;
    box-shadow: var(--shadow-sm);
}

.stats-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center content */
    gap: 60px;
}

.stats-label {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    color: black;
    white-space: normal;
    border-right: none;
    padding-right: 0;
    height: auto;
    width: 200px;
    flex-shrink: 0;
}

.stats-grid {
    display: flex;
    align-items: flex-start;
    gap: 60px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: black;
    line-height: 1;
    min-width: auto;
    text-align: left;
    position: relative;
    z-index: 1;
    padding-bottom: 4px;
}

.stat-value::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 12px;
    background-color: #ffe4b5;
    /* Peach/Yellow highlight color */
    z-index: -1;
    border-radius: 2px;
}

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

.stat-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.3;
    margin-bottom: 0;
}

.stat-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.3;
    display: none;
    /* Hiding sub-text to match the cleaner look of the reference image */
}

/* Mobile Responsiveness for Stats Bar */
@media (max-width: 1024px) {
    .hero {
        min-height: auto;
        /* Allow growth */
        padding-bottom: 0;
        /* Remove padding as stats are static now */
    }

    .stats-section {
        padding: 24px 0;
        border-bottom: 1px solid var(--border-light);
    }

    .stats-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .stats-label {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid var(--border-light);
        width: 100%;
        padding-bottom: 12px;
        margin-bottom: 8px;
    }

    .stats-grid {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .stat-item {
        width: 100%;
    }

    .mobile-swipe-indicator {
        display: none;
    }
}

.stat-value {
    min-width: 70px;
    /* Smaller on mobile */
    text-align: left;
    font-size: 1.75rem;
}


/* ======================================== */

.mobile-swipe-indicator {
    display: none !important;
}

/* ========================================
   HERO VISUALS (Phone Mockups) - SIDE BY SIDE
   ======================================== */
.hero-visuals {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    height: auto;
    max-height: 90vh;
    /* Allow it to take space but not overflow */
    pointer-events: none;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.phone-mockup {
    /* Base styles */
    position: relative;
    overflow: hidden;
    background: white;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

/* Desktop-specific sizing */
@media (min-width: 1025px) {
    .phone-mockup {
        height: 65vh;
        max-height: 700px;
        width: auto;
        aspect-ratio: 9/19.5;
        border-radius: 40px;
    }
}

/* Make images fit perfectly inside mockup containers */
.phone-mockup img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    display: block;
}

.recording-screen,
.quote-screen {
    /* Ensure no transforms affect alignment */
    transform: none;
    margin: 0;
}

/* Update Hero Layout to Accommodate Visuals */
@media (min-width: 1025px) {
    .hero {
        justify-content: space-between;
        /* Ensure content doesn't overlap visuals */
    }

    .hero-content {
        margin-left: 5%;
        max-width: 45%;
        /* Restrict text width to left side */
        position: relative;
        z-index: 10;
    }
}

/* Mobile/Tablet: Stack visuals below text */
@media (max-width: 1024px) {
    .hero-video {
        display: none;
        /* Hide video on mobile */
    }

    .hero {
        background: radial-gradient(circle at 50% 30%, #f0f9ff 0%, #e0f2fe 100%);
        /* V2E Theme Background */
        justify-content: flex-start;
        flex-direction: column;
        text-align: center;
        height: auto;
        min-height: auto;
        padding-top: 6rem;
        /* Add top padding for navbar */
        padding-bottom: 4rem;
    }

    .hero-content {
        align-items: center;
        margin: 0 auto;
        max-width: 90%;
        margin-bottom: 3rem;
        /* Push images down */
    }

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

    .hero-visuals {
        display: flex;
        flex-direction: row;
        /* Horizontal layout */
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
        height: auto;
        max-height: none;
        align-items: center;
        pointer-events: auto;
        /* Enable swiping */
        /* Scroll snapping properties */
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        /* Smooth scrolling on iOS */
        gap: 20px;
        padding: 20px 5% 40px 5%;
        /* Padding for scroll area and shadow, side padding to peek */
        box-sizing: border-box;
        justify-content: flex-start;
        /* Align items to start for scrolling */
    }

    /* Hide scrollbar for Chrome, Safari and Opera */
    .hero-visuals::-webkit-scrollbar {
        display: none;
    }

    /* Hide scrollbar for IE, Edge and Firefox */
    .hero-visuals {
        -ms-overflow-style: none;
        /* IE and Edge */
        scrollbar-width: none;
        /* Firefox */
    }

    .phone-mockup {
        width: 85vw;
        /* Almost full width relative to viewport */
        min-width: 85vw;
        /* Force width */
        max-width: 400px;
        flex-shrink: 0;
        /* Prevent shrinking */
        height: auto;
        aspect-ratio: auto;
        border-radius: 24px;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        scroll-snap-align: center;
        /* Snap to center */
        margin: 0;
    }

    .phone-mockup img {
        height: auto;
        object-fit: contain;
    }

    .quote-screen {
        transform: none;
    }

    /* Swipe Indicator */
    .mobile-swipe-indicator {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 8px;
        color: var(--text-secondary);
        font-size: 1.5rem;
        /* Larger icon */
        margin-top: -20px;
        /* Pull closer to carousel */
        padding-bottom: 20px;
        animation: swipe-gesture 2s infinite ease-in-out;
    }

    @keyframes swipe-gesture {
        0% {
            transform: translateX(-10px);
            opacity: 0.5;
        }

        50% {
            transform: translateX(10px);
            opacity: 1;
        }

        100% {
            transform: translateX(-10px);
            opacity: 0.5;
        }
    }
}

/* ========================================
   LANGUAGE SELECTOR
   ======================================== */
.language-selector {
    position: relative;
    z-index: 1000;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Subtle border for contrast if on dark */
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
    /* Assumption: Nav is dark or transparent on dark hero */
    transition: all 0.2s ease;
}

/* If navbar becomes white on scroll, we need to handle text color */
.navbar.scrolled .lang-btn {
    color: var(--text-main);
    border-color: var(--border-light);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.navbar.scrolled .lang-btn:hover {
    background: var(--bg-light);
}

.lang-flag {
    font-size: 1.2rem;
    line-height: 1;
}

.lang-code {
    text-transform: uppercase;
}

.lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 160px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    list-style: none;
    border: 1px solid var(--border-light);
}

.language-selector.active .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-menu li {
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: background 0.1s ease;
}

.lang-menu li:hover {
    background: var(--bg-light);
}

.lang-menu li.selected {
    background: #eff6ff;
    color: var(--primary);
    font-weight: 600;
}

/* Mobile Adjustments */
@media (max-width: 900px) {
    .language-selector {
        margin-left: auto;
        /* Push to right */
    }

    .lang-menu {
        right: -10px;
        /* Slight offset compensation */
    }

    .lang-btn {
        color: black !important;
        border-color: rgba(0, 0, 0, 0.2);
    }
}

/* ========================================
   QUALIFYING QUESTIONS MODAL
   ======================================== */
.qualifying-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.qualifying-modal-overlay.active {
    display: flex;
}

.qualifying-modal {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: qualifyingModalSlideIn 0.3s ease;
}

@keyframes qualifyingModalSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

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

.qualifying-modal-header {
    padding: 24px 32px;
    border-bottom: 1px solid var(--border-light);
    position: relative;
    text-align: center;
}

.qualifying-modal-header h3 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 8px;
}

.qualifying-modal-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.qualifying-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.75rem;
    color: var(--text-muted);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.qualifying-modal-close:hover {
    background: var(--bg-light);
    color: var(--text-main);
}

.qualifying-form {
    padding: 24px 32px;
}

.qualifying-form .form-group {
    margin-bottom: 20px;
}

.qualifying-form label {
    display: block;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.qualifying-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-light);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.qualifying-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.qualifying-modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.qualifying-modal-buttons .btn-secondary {
    background: transparent;
    border: 2px solid var(--border-light);
    color: var(--text-secondary);
}

.qualifying-modal-buttons .btn-secondary:hover {
    background: var(--bg-light);
    border-color: var(--text-muted);
}

@media (max-width: 600px) {
    .qualifying-modal {
        max-height: 85vh;
        border-radius: 16px;
    }

    .qualifying-modal-header,
    .qualifying-form {
        padding: 20px;
    }

    .qualifying-modal-buttons {
        flex-direction: column;
    }

    .qualifying-modal-buttons button {
        width: 100%;
    }
}