/* =========================================
   Variables & Themes
   ========================================= */
:root {
    /* Brand Colors - Shared */
    --orange: #FF8F00;
    --orange-glow: rgba(255, 143, 0, 0.4);

    /* Dark Theme (Default) */
    --bg-body: #0F0F12;
    --text-main: #FFFFFF;
    --text-muted: rgba(255, 255, 255, 0.7);
    --text-invert: #000000;
    /* Text on orange buttons */

    /* Decoration Colors */
    --accent-red: #D32F2F;
    /* Used sparingly now */
    --accent-red-glow: rgba(211, 47, 47, 0.4);

    /* Glass Effect UI - Dark */
    --glass-surface: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-highlight: rgba(255, 255, 255, 0.05);
    --glass-shadow: rgba(0, 0, 0, 0.3);

    /* Ambient Gradients - Dark */
    --blob-1: var(--orange);
    --blob-2: var(--accent-red);
    --blob-3: #8000FF;
    --blob-opacity: 0.6;
}

[data-theme="light"] {
    /* Light Theme */
    --bg-body: #F4F6F9;
    --text-main: #1A1A1A;
    --text-muted: rgba(26, 26, 26, 0.7);
    --text-invert: #FFFFFF;
    /* Text on dark/orange buttons */

    /* Glass Effect UI - Light */
    --glass-surface: rgba(255, 255, 255, 0.65);
    /* More opaque for light mode */
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-highlight: rgba(255, 255, 255, 0.9);
    --glass-shadow: rgba(100, 100, 111, 0.1);

    /* Ambient Gradients - Light (Sofer) */
    --blob-1: rgba(255, 143, 0, 0.3);
    --blob-2: rgba(211, 47, 47, 0.2);
    --blob-3: rgba(128, 0, 255, 0.2);
    --blob-opacity: 0.8;
}

/* =========================================
   Reset & Base
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    /* Smooth theme switch */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* =========================================
   Ambient Background & Animations
   ========================================= */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Simplified ambient to avoid visual clutter */
    background: transparent;
    z-index: -1;
    pointer-events: none;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: var(--blob-opacity);
    animation: float 20s infinite ease-in-out;
}

[data-theme="light"] .bg-shape {
    filter: blur(100px);
    /* Softer blur for light mode */
}

@keyframes float {

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

    50% {
        transform: translate(30px, -50px) scale(1.1);
    }
}

.bg-shape-1 {
    width: 500px;
    height: 500px;
    background: var(--blob-1);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.bg-shape-2 {
    width: 400px;
    height: 400px;
    background: var(--blob-2);
    bottom: 10%;
    left: -100px;
    animation-delay: -5s;
}

.bg-shape-3 {
    width: 300px;
    height: 300px;
    background: var(--blob-3);
    top: 40%;
    right: 20%;
    opacity: 0.3;
    animation-delay: -10s;
}

/* =========================================
   Utility Classes
   ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.glass-panel {
    background: var(--glass-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-top: 1px solid var(--glass-highlight);
    box-shadow: 0 8px 32px var(--glass-shadow);
    border-radius: 24px;
}

/* Smooth Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.problem-card,
.service-item,
.investment-card,
.action-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.problem-card.visible,
.service-item.visible,
.investment-card.visible,
.action-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   Typography
   ========================================= */
h1 {
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
    color: var(--text-main);
}

h2 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    margin-bottom: 60px;
    text-align: center;
    line-height: 1.2;
    color: var(--text-main);
}

h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-main);
}

.highlight {
    background: linear-gradient(135deg, var(--orange), #FFD54F);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Standard property */
    filter: drop-shadow(0 0 20px rgba(255, 143, 0, 0.4));
}

.hero-subtitle {
    font-size: 22px;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 50px;
    font-weight: 300;
}

/* =========================================
   Components: Buttons
   ========================================= */
.cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: rgba(255, 143, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 143, 0, 0.5);
    color: var(--orange);
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.4s ease;
    box-shadow: 0 0 20px rgba(255, 143, 0, 0.1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.cta-button:hover {
    background: var(--orange);
    color: white;
    /* Always white on orange bg */
    box-shadow: 0 0 40px rgba(255, 143, 0, 0.4);
    transform: translateY(-2px);
    border-color: var(--orange);
}

.cta-button-secondary {
    background: var(--glass-surface);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    box-shadow: none;
}

[data-theme="light"] .cta-button-secondary {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.cta-button-secondary:hover {
    background: var(--glass-highlight);
    color: var(--text-main);
    transform: translateY(-2px);
    border-color: var(--text-muted);
    box-shadow: 0 5px 15px var(--glass-shadow);
}

/* =========================================
   Header & Theme Switch
   ========================================= */
header {
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

header.scrolled {
    background: var(--bg-body);
    /* Solid but with opacity if needed, or stick to solid for better readability */
    /* Let's try glass for sticky header */
    background: rgba(15, 15, 18, 0.85);
    /* Hardcoded dark glass for now to match default */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
}

[data-theme="light"] header.scrolled {
    background: rgba(255, 255, 255, 0.85);
}

.header-contacts {
    display: flex;
    gap: 20px;
    align-items: center;
}

.header-contacts a:not(.cta-button) {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.header-contacts a:not(.cta-button):hover {
    color: var(--orange);
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: 1px;
}

/* Theme Toggle Button */
.theme-toggle {
    background: var(--glass-surface);
    border: 1px solid var(--glass-border);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    color: var(--text-main);
    transition: all 0.3s ease;
    margin-right: 15px;
}

.theme-toggle:hover {
    background: var(--glass-highlight);
    transform: rotate(15deg);
}

/* =========================================
   Sections
   ========================================= */
section {
    padding: 100px 0;
    position: relative;
}

/* Hero */
.hero {
    padding: 120px 0 100px;
    text-align: center;
    position: relative;
}

/* Problems Grid */
.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.problem-card {
    background: var(--glass-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    border-top: 1px solid var(--glass-highlight);
    transition: all 0.4s ease;
    height: 100%;
}

.problem-card:hover {
    transform: translateY(-10px);
    background: var(--glass-highlight);
    border-color: var(--text-muted);
    box-shadow: 0 20px 40px var(--glass-shadow);
}

.problem-card h3 {
    color: var(--orange);
    /* REPLACED RED with ORANGE */
    margin-bottom: 15px;
}

.problem-card p {
    color: var(--text-muted);
    font-size: 17px;
}

/* =========================================
   Services Block (Hybrid Layout)
   ========================================= */
.services-wrapper {
    position: relative;
    min-height: 800px;
    /* Increased height to fit content */
}

/* Desktop Logic (>968px) */
@media (min-width: 969px) {
    .services-wrapper {
        display: block;
        padding-left: 0;
    }

    .service-card {
        display: block;
        /* Reset from contents */
    }

    .service-header {
        width: 350px;
        /* Fixed sidebar width */
        margin-bottom: 15px;
        position: relative;
        z-index: 2;
        display: flex;
        /* Restore flex */
        align-items: center;
        gap: 15px;
        padding: 25px;
        background: var(--glass-surface);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid var(--glass-border);
        border-radius: 20px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    /* Remove explicit grid rows from previous attempt */
    .service-card:nth-of-type(n) .service-header {
        grid-row: auto;
    }

    .service-header:hover {
        background: var(--glass-highlight);
        transform: translateX(10px);
        border-color: var(--text-muted);
    }

    .service-card.active .service-header {
        background: var(--orange);
        border-color: var(--orange);
        box-shadow: 0 5px 20px rgba(255, 143, 0, 0.3);
    }

    .service-card.active .service-header h3,
    .service-card.active .service-header p,
    .service-card.active .service-header .service-icon,
    .service-card.active .service-header .service-arrow {
        color: white;
    }

    /* Content Layout */
    .service-body {
        position: absolute;
        top: 0;
        right: 0;
        width: calc(100% - 390px);
        /* 350px width + 40px gap */
        height: 100%;
        /* Match wrapper height */
        opacity: 0;
        visibility: hidden;
        transform: translateY(20px);
        transition: all 0.4s ease;
        pointer-events: none;
        z-index: 1;
    }

    .service-card.active .service-body {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
        z-index: 5;
    }

    .service-content-inner {
        background: var(--glass-surface);
        backdrop-filter: blur(40px);
        -webkit-backdrop-filter: blur(40px);
        border: 1px solid var(--glass-border);
        border-top: 1px solid var(--glass-highlight);
        border-radius: 30px;
        padding: 50px;
        box-shadow: 0 20px 50px var(--glass-shadow);
        height: 100%;
        overflow-y: auto;
        /* Scroll if content overflows height */
    }
}

/* Common Text Styles */
.service-icon {
    font-size: 28px;
}

.service-title h3 {
    font-size: 20px;
    margin-bottom: 4px;
    line-height: 1.2;
    color: var(--text-main);
}

.service-title p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

.service-arrow {
    margin-left: auto;
    font-size: 24px;
    color: var(--text-muted);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s;
}

.service-card.active .service-arrow {
    opacity: 1;
    transform: translateX(0);
}

.service-content-inner h3 {
    font-size: 32px;
    margin-bottom: 25px;
    color: var(--orange);
}

.services-grid-inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.inner-card {
    background: rgba(0, 0, 0, 0.05);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
}

[data-theme="light"] .inner-card {
    background: rgba(255, 255, 255, 0.5);
}

.inner-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-main);
}

.inner-card p {
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-muted);
}

.service-list li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-main);
    font-size: 17px;
    border-bottom: 1px solid var(--glass-border);
}

.service-list li:last-child {
    border-bottom: none;
}

.service-list li:before {
    content: "✦";
    position: absolute;
    left: 0;
    color: var(--orange);
    font-weight: bold;
    font-size: 14px;
    top: 15px;
}

.service-result {
    margin-top: 30px;
    padding: 25px;
    background: rgba(255, 143, 0, 0.05);
    border: 1px solid rgba(255, 143, 0, 0.2);
    border-radius: 16px;
    color: var(--text-main);
}

[data-theme="light"] .service-result {
    background: rgba(255, 143, 0, 0.1);
    border-color: rgba(255, 143, 0, 0.3);
}

.service-result strong {
    color: var(--orange);
}


/* =========================================
   Mobile Services (Accordion)
   ========================================= */
@media (max-width: 968px) {
    .services-wrapper {
        display: block;
        /* Stack vertically */
        min-height: auto;
    }

    .service-card {
        display: block;
        /* Reset display:contents */
        margin-bottom: 15px;
        background: var(--glass-surface);
        border-radius: 20px;
        overflow: hidden;
        border: 1px solid var(--glass-border);
    }

    .service-header {
        border: none;
        border-radius: 0;
        margin-bottom: 0;
        background: transparent;
        padding: 20px;
    }

    .service-header:hover {
        transform: none;
        /* No shift on mobile */
        background: transparent;
    }

    .service-card.active .service-header {
        background: var(--orange);
        border-radius: 0;
    }

    .service-body {
        opacity: 1;
        visibility: visible;
        transform: none;
        grid-area: auto;
        pointer-events: auto;

        display: none;
        /* Hide by default on mobile */
        padding: 0;
        background: transparent;
    }

    .service-card.active .service-body {
        display: block;
        /* Show if active */
    }

    .service-content-inner {
        background: transparent;
        border: none;
        box-shadow: none;
        border-radius: 0;
        padding: 25px;
        padding-top: 5px;
    }

    .service-content-inner h3 {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .services-grid-inner {
        grid-template-columns: 1fr;
    }
}

/* Unique Box */
.unique-box {
    background: var(--accent-red);
    padding: 60px;
    border-radius: 24px;
    text-align: center;
    margin-top: 60px;
}

/* Case Study */
.case-study {
    background: var(--glass-surface);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    padding: 60px;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    margin-top: 60px;
    position: relative;
}

.case-header h3 {
    font-size: 42px;
    /* Gradient text or solid depending on theme support */
    color: var(--text-main);
    margin-bottom: 10px;
}

.case-timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 50px 0;
    background: rgba(0, 0, 0, 0.1);
    /* Subtle dark container inside logic */
    padding: 10px;
    border-radius: 20px;
}

[data-theme="light"] .case-timeline {
    background: rgba(0, 0, 0, 0.03);
    /* Lighter container for light mode */
}

.timeline-item {
    text-align: center;
    padding: 25px;
    background: transparent;
    position: relative;
}

.timeline-item:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 24px;
}

.timeline-label {
    font-size: 14px;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-weight: 700;
}

.timeline-content {
    font-size: 18px;
    color: var(--text-main);
}

.case-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.action-item {
    background: var(--glass-surface);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    border-left: 4px solid var(--orange);
    /* REPLACED RED */
}

.action-item h4 {
    color: var(--text-main);
    margin-bottom: 10px;
    font-size: 20px;
}

.action-item p {
    color: var(--text-muted);
}

.case-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.result-card {
    text-align: center;
    padding: 30px;
    background: var(--glass-surface);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: all 0.4s ease;
}

.result-card:hover {
    border-color: var(--orange);
    transform: translateY(-5px);
    background: var(--glass-highlight);
}

.result-number {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 5px;
}

.result-label {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Investment Cards */
.investment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.investment-card {
    padding: 40px;
    background: var(--glass-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 32px var(--glass-shadow);
    position: relative;
    overflow: hidden;
}

.investment-card:hover {
    border-color: var(--orange);
    box-shadow: 0 0 30px rgba(255, 143, 0, 0.15);
    transform: translateY(-5px);
}

.investment-card h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--text-main);
}

.investment-card p {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 16px;
}

.investment-highlight {
    font-size: 18px;
    font-weight: 600;
    color: var(--orange);
    margin-top: 20px;
}

/* Criteria */
.criteria-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    margin-top: 60px;
}

.criteria-box {
    padding: 50px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
}

.criteria-not {
    background: rgba(255, 0, 0, 0.03);
    /* Very subtle red tint */
}

.criteria-yes {
    background: rgba(20, 150, 20, 0.05);
    /* Very subtle green tint */
    border-color: rgba(20, 150, 20, 0.2);
}

.criteria-box h3 {
    font-size: 32px;
    margin-bottom: 30px;
    color: var(--text-main);
}

.criteria-list {
    list-style: none;
}

.criteria-list li {
    padding: 15px 0;
    padding-left: 35px;
    position: relative;
    font-size: 18px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--glass-border);
}

.criteria-list li:last-child {
    border-bottom: none;
}

.criteria-yes li {
    color: var(--text-main);
}

.criteria-not li:before {
    content: "✕";
    position: absolute;
    left: 0;
    color: var(--text-muted);
    font-weight: bold;
    font-size: 20px;
}

.criteria-yes li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
    font-size: 20px;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 100px 0;
}

.cta-box {
    background: var(--glass-surface);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    padding: 80px 60px;
    border-radius: 40px;
    border: 1px solid var(--glass-border);
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--orange), #FFD54F);
}

.cta-box h2 {
    color: var(--text-main);
    margin-bottom: 20px;
}

.cta-subtitle {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.cta-features {
    list-style: none;
    margin: 40px 0;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-features li {
    padding: 15px 0;
    padding-left: 40px;
    position: relative;
    font-size: 18px;
    color: var(--text-main);
}

.cta-features li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--orange);
    font-weight: bold;
    font-size: 20px;
}

.cta-note {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
    font-size: 16px;
    color: var(--text-muted);
}

/* Footer */
footer {
    padding: 60px 0 40px;
    background: rgba(0, 0, 0, 0.05);
    border-top: 1px solid var(--glass-border);
    margin-top: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 32px;
    color: var(--text-main);
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 18px;
    margin-bottom: 10px;
}

.footer-contact {
    text-align: right;
}

.footer-contact a {
    display: block;
    color: var(--text-main);
    text-decoration: none;
    font-size: 18px;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--orange);
}

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

.footer-ps {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.footer-ps strong {
    color: var(--orange);
    /* REPLACED RED */
}

/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 968px) {
    .header-contacts {
        display: none;
    }

    /* Simplified for mobile */

    .tabs-nav {
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-bottom: 20px;
    }

    .tab-button {
        flex: 0 0 auto;
        padding: 12px 20px;
        font-size: 14px;
        white-space: nowrap;
    }

    .services-grid,
    .case-timeline,
    .investment-grid,
    .criteria-grid,
    .case-actions {
        grid-template-columns: 1fr;
    }

    .timeline-item:not(:last-child)::after {
        content: '↓';
        right: 50%;
        top: 100%;
        transform: translateX(50%);
    }

    .case-study,
    .cta-box {
        padding: 40px 20px;
    }

    .unique-box,
    .criteria-box {
        padding: 30px 20px;
    }

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

    .footer-contact {
        text-align: center;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 80px 0 60px;
    }

    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .cta-button {
        width: 100%;
        text-align: center;
        padding: 16px;
    }

    .case-results {
        grid-template-columns: 1fr;
    }

    .tab-panel {
        padding: 30px 20px;
    }

    .logo {
        font-size: 18px;
    }
}

/* =========================================
   Case Study Styles
   ========================================= */
.case-study {
    background: transparent;
}

.case-header {
    text-align: center;
    margin-bottom: 60px;
}

.case-header h3 {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--text-heading);
}

/* Timeline */
.case-timeline {
    display: flex;
    justify-content: space-between;
    margin-bottom: 80px;
    position: relative;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.case-timeline::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 143, 0, 0.2), var(--orange), rgba(255, 143, 0, 0.2));
    z-index: 1;
}

.timeline-item {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.timeline-label {
    display: inline-block;
    padding: 10px 25px;
    background: var(--glass-surface);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--orange);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.timeline-content {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-muted);
}

/* Actions Grid */
.case-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.action-item {
    background: var(--glass-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s;
}

.action-item:hover {
    transform: translateY(-5px);
    background: var(--glass-highlight);
}

.action-item h4 {
    color: var(--text-main);
    margin-bottom: 10px;
    font-size: 20px;
}

.action-item p {
    color: var(--text-muted);
    font-size: 15px;
    margin: 0;
}

/* Results Grid */
.case-results {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.result-card {
    background: rgba(255, 143, 0, 0.05);
    /* Orange Tint */
    border: 1px solid rgba(255, 143, 0, 0.2);
    border-radius: 16px;
    padding: 25px 15px;
    text-align: center;
}

[data-theme="light"] .result-card {
    background: rgba(255, 143, 0, 0.1);
}

.result-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--orange);
    margin-bottom: 5px;
    display: block;
}

.result-label {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.3;
}

/* Responsive */
@media (max-width: 968px) {
    .case-timeline {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }

    .case-timeline::before {
        width: 2px;
        height: 100%;
        left: 50%;
        top: 0;
        transform: translateX(-50%);
    }

    .case-actions {
        grid-template-columns: 1fr;
    }

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

/* =========================================
   Investment Block (Comparison) Styles
   ========================================= */

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

.model-card {
    padding: 40px;
    border-radius: 24px;
    transition: transform 0.3s ease;
}

.model-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.model-header h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.model-header p {
    font-size: 16px;
    opacity: 0.7;
    margin: 0;
}

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

.model-list li {
    margin-bottom: 25px;
}

.model-list li:last-child {
    margin-bottom: 0;
}

.model-list strong {
    display: block;
    font-size: 18px;
    margin-bottom: 5px;
}

.model-list p {
    font-size: 15px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Specific Styles for Expense Model (Left) */
.model-expense {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    filter: grayscale(100%) opacity(0.7);
}

.model-expense:hover {
    filter: grayscale(0%) opacity(1);
    background: rgba(255, 255, 255, 0.04);
}

[data-theme="light"] .model-expense {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.05);
}

/* Specific Styles for Asset Model (Right) */
.model-asset {
    background: var(--glass-surface);
    border: 1px solid var(--orange-glow);
    box-shadow: 0 10px 40px -10px rgba(255, 143, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.model-asset::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--orange);
}

.model-asset .model-header h3 {
    color: var(--orange);
}

/* Investment Stats Bar */
.investment-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass-surface);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px 50px;
    border: 1px solid var(--glass-border);
    max-width: 900px;
    margin: 0 auto;
}

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

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 5px;
}

[data-theme="light"] .stat-value {
    background: none;
    -webkit-text-fill-color: var(--text-heading);
    color: var(--text-heading);
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .stat-divider {
    background: rgba(0, 0, 0, 0.1);
}

/* Model Asset Highlight on Hover */
.model-asset:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px -10px rgba(255, 143, 0, 0.25);
}

/* Responsive */
@media (max-width: 850px) {
    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .investment-stats {
        flex-direction: column;
        padding: 30px;
        gap: 30px;
    }

    .stat-divider {
        width: 50px;
        height: 1px;
    }
}

/* =========================================
   Footer Redesign Styles
   ========================================= */

footer {
    padding-top: 80px;
    padding-bottom: 40px;
    border-top: 1px solid var(--glass-border);
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.03), transparent 70%);
}

.footer-quote {
    background: var(--glass-surface);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.footer-quote p {
    font-size: 20px;
    line-height: 1.6;
    color: var(--text-heading);
    margin: 0;
}

.footer-quote strong {
    color: var(--orange);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand h3 {
    font-size: 24px;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    max-width: 300px;
}

.footer-nav h4,
.footer-contact h4 {
    font-size: 16px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: 15px;
}

.footer-nav a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 16px;
}

.footer-nav a:hover {
    color: var(--orange);
}

.footer-contact-link {
    display: inline-flex;
    align-items: center;
    font-size: 20px;
    color: var(--orange);
    text-decoration: none;
    font-weight: 600;
}

.footer-contact-link:hover {
    text-decoration: underline;
}

.footer-copyright {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 14px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .footer-brand p {
        margin: 0 auto;
    }
}

/* =========================================
   Mobile Responsiveness Fixes
   ========================================= */

@media (max-width: 768px) {

    /* Case Study Fixes */
    .case-timeline {
        flex-direction: column;
        gap: 40px;
        padding-left: 20px;
        /* Space for a vertical line if we wanted one, or just alignment */
    }

    /* Hide the horizontal line causing the glitch */
    .case-timeline::before {
        display: none;
    }

    /* Add a vertical connecting line for mobile (optional, but looks better) */
    .case-timeline::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: 50%;
        /* Center alignment */
        width: 2px;
        background: linear-gradient(180deg, rgba(255, 143, 0, 0.2), var(--orange), rgba(255, 143, 0, 0.2));
        transform: translateX(-50%);
        z-index: 0;
        display: none;
        /* Let's keep it simple first: just stack them without line */
    }

    .timeline-item {
        margin-bottom: 20px;
    }

    .case-results {
        grid-template-columns: 1fr;
        /* Stack results vertically */
        gap: 20px;
    }

    .case-actions {
        grid-template-columns: 1fr;
        /* Stack actions vertically */
    }

    /* Investment Block Fixes */
    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .model-card {
        margin-bottom: 20px;
    }

    .investment-stats {
        flex-direction: column;
        gap: 30px;
        padding: 30px 20px;
        /* Add side padding */
    }

    .stat-divider {
        width: 100px;
        height: 1px;
    }

    /* CTA Fixes */
    .cta-box {
        padding: 40px 20px;
    }

    .cta-features li {
        font-size: 16px;
    }

    /* Footer Fixes */
    footer {
        padding-top: 40px;
    }

    .footer-grid {
        gap: 40px;
    }

    .footer-quote {
        padding: 30px 20px;
        font-size: 18px;
    }

    .footer-quote p {
        font-size: 18px;
    }
}

/* =========================================
   iOS-Style Toggle Switches
   ========================================= */

.header-controls {
    display: flex;
    align-items: center;
    gap: 25px;
}

.toggle-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-icon,
.toggle-label {
    font-size: 18px;
    user-select: none;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.toggle-label {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-main);
    min-width: 24px;
    text-align: center;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.toggle-slider:before {
    content: "";
    position: absolute;
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 2px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked+.toggle-slider {
    background: var(--orange);
    border-color: var(--orange);
}

.toggle-switch input:checked+.toggle-slider:before {
    transform: translateX(24px);
}

.toggle-switch:hover .toggle-slider {
    background: rgba(255, 255, 255, 0.15);
}

.toggle-switch input:checked:hover+.toggle-slider {
    background: #ff9f1a;
}

/* Active state icons/labels */
.toggle-container:has(input:not(:checked)) .toggle-icon:first-of-type,
.toggle-container:has(input:not(:checked)) .toggle-label:first-of-type {
    opacity: 1;
}

.toggle-container:has(input:checked) .toggle-icon:last-of-type,
.toggle-container:has(input:checked) .toggle-label:last-of-type {
    opacity: 1;
}

/* Light theme adjustments */
[data-theme="light"] .toggle-slider {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .toggle-switch:hover .toggle-slider {
    background: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .toggle-slider:before {
    background: linear-gradient(135deg, #ffffff 0%, #e8e8e8 100%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .header-controls {
        gap: 15px;
    }

    .toggle-container {
        gap: 6px;
    }

    .toggle-icon,
    .toggle-label {
        font-size: 16px;
    }

    .toggle-switch {
        width: 46px;
        height: 24px;
    }

    .toggle-slider:before {
        height: 18px;
        width: 18px;
        left: 2px;
        bottom: 2px;
    }

    .toggle-switch input:checked+.toggle-slider:before {
        transform: translateX(22px);
    }
}

@media (max-width: 480px) {
    .header-contacts {
        display: none;
    }

    .toggle-label {
        font-size: 12px;
    }
}

/* =========================================
   Mobile Services Sticky Header Fix
   ========================================= */

@media (max-width: 968px) {
    .service-card.active .service-header {
        position: sticky;
        top: 70px;
        /* Offset for main header */
        z-index: 90;
        background: var(--glass-surface);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        margin-bottom: 0;
    }

    .service-card.active .service-body {
        padding-top: 20px;
    }

    /* Ensure smooth scroll behavior */
    .service-card.active {
        scroll-margin-top: 80px;
    }
}

/* =========================================
   Case Study: $1M Revenue Revamp
   ========================================= */

.case-million-header {
    text-align: left;
    margin-bottom: 40px;
}

.case-million-title {
    font-size: 56px;
    line-height: 1;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.case-million-highlight {
    color: var(--orange);
    display: block;
}

.case-badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.case-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 143, 0, 0.1);
    border: 1px solid rgba(255, 143, 0, 0.3);
    border-radius: 50px;
    color: var(--text-main);
    font-weight: 600;
    font-size: 14px;
}

.case-badge i {
    color: var(--orange);
}

/* Growth Chart */
.growth-chart-container {
    background: var(--glass-surface);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

/* Background Glow for Chart */
.chart-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(255, 143, 0, 0.15), transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.growth-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.growth-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.chart-bars {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 300px;
    /* Max chart height */
    padding-top: 40px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    width: 12%;
    position: relative;
    height: 100%;
}

.bar-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.5s forwards 0.5s;
}

/* Updated Gradient: Blue to Orange transition matching reference? 
   No, user reference has Blue chart. 
   But site theme is Orange. 
   Let's stick to Orange theme for consistency, or Blue if user wants exact match?
   User said "organic add". Site is "sintez" (orange).
   I will use Orange gradient.
*/
.bar-fill {
    width: 100%;
    background: linear-gradient(to top, rgba(255, 143, 0, 0.3), var(--orange));
    border-radius: 8px 8px 0 0;
    position: relative;
    /* Animation via Transform */
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 1.5s cubic-bezier(0.22, 1, 0.36, 1);
    /* Height is set inline in HTML */
}

.bar-fill.visible {
    transform: scaleY(1);
}

/* Specific heights via classes if needed, but JS will likely set inline height */

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

.bar-year {
    margin-top: 15px;
    font-size: 14px;
    color: var(--text-muted);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .case-million-title {
        font-size: 36px;
    }

    .case-badges {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .growth-chart-container {
        padding: 20px;
    }

    .chart-bars {
        height: 200px;
        gap: 5px;
    }

    .bar-value {
        font-size: 10px;
    }

    .bar-year {
        font-size: 11px;
    }
}