.services-wrapper {
    /* padding-top: var(--spacing-triple); */
    padding-inline: 0;
    will-change: scroll-position;
    font-kerning: none;
    .images-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        justify-content: center;
        column-gap: 4px;
        row-gap: 4px;
        margin-top: 2em;
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        @media (max-width: 900px) {
            grid-template-columns: repeat(2, 1fr);
        }
        .thumbnail {
            aspect-ratio: 3/2;
            width: 100%;
            height: 100%;
            background-size: cover;
            background-position: center;
            cursor: pointer;
            position: relative;
            overflow: hidden;
            .thumb-title {
                color: var(--accent);
            }
            &::after {
                position: absolute;
                width: 101%;
                /* height: 25%; */
                top: 0;
                left: 0;
                padding-top: .2rem;
                padding-left: .5em;
                font-family: "Michroma", sans-serif;
                color: var(--accent);      
                font-size: var(--font-medium);
                font-weight: 300;
                text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
                z-index: +1;
                clip-path: polygon(0 0, 100% 0, 100% 0, 0% 0);
                background: linear-gradient(180deg, #000 20%, #00000000 100%);
                opacity: 0;
                transition: all .3s linear;
            }
            & span {
                position: absolute;
                top: .2rem;
                left: .5em;
                font-family: "Michroma", sans-serif;
                color: var(--color-span);      
                font-size: var(--font-medium);
                font-weight: 300;
                text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.85);
                z-index: +1;
                transition: all .3s linear;
            }
            & .thumbnail-image {
                width: 100%;
                height: 100%;
                background-size: cover;
                background-position: center;
                scale: 1;
                overflow: hidden;
                transition: all 0.3s linear;
            }
            & .thumbnail-overlay {
                position:absolute;
                top: -2px;
                left: 0;
                width: 102%;
                height: 102%;
                backdrop-filter: grayscale(100%);
                background: linear-gradient(0deg, rgba(26,31,35,0.3) 50%, rgba(26,31,35,1) 100%);
                overflow: hidden;
                transition: all .5s linear;
            }
            &:hover {
                opacity: 1!important;
                &::after {
                    top: -2px;
                    opacity: 1;
                    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);/* background: linear-gradient(0deg, rgba(26,31,35,0) 70%, rgba(26,31,35,1) 90%); */
                }
                & span {
                    scale: 0 0;
                }
                & .thumbnail-image {
                    scale: 1.05;
                }
                & .thumbnail-overlay {
                    background: linear-gradient(0deg, rgba(26,31,35,0.3) 70%, rgba(26,31,35,1) 100%);
                    opacity: 0;
                    backdrop-filter: grayscale(0%);
                }
            }
        }
        h2 {
            max-width: 100%;
            grid-column: 1/-1;
            grid-row: 1;
            padding-inline: var(--spacing-double);
            text-align: center;
            @media (max-width: 900px) {
                text-align: center;
            }
        }
        .thumbnail:nth-of-type(1) {
            grid-column: 1;
            grid-row: 2;
            @media (max-width: 900px) {
                grid-column: 1;
                grid-row: 2;
            }
            &::after {
                content: "AI Bot Defense";
            }
        }
        .thumbnail:nth-of-type(2) {
        grid-column: 4;
        grid-row: 2;
        @media (max-width: 900px) {
            grid-column: 2;
            grid-row: 2;
        }
        &::after {
            content: "WordPress Optimization";
        }
        }
        .thumbnail:nth-of-type(3) {
            grid-column: 2;
            grid-row: 3;
            @media (max-width: 900px) {
                grid-column: 1;
                grid-row: 3;
            }
            &::after {
                content: "WordPress Development";
            }
        }
        .thumbnail:nth-of-type(4) {
            grid-column: 3;
            grid-row: 3;
            @media (max-width: 900px) {
                grid-column: 2;
                grid-row: 3;
            }
            &::after {
                content: "SEO Optimization";
            }
        }
        .thumbnail:nth-of-type(5) {
            grid-column: 1;
            grid-row: 4;
            @media (max-width: 900px) {
                grid-column: 1;
                grid-row: 4;
            }
            &::after {
                content: "WordPress Dev";
            }
        }
        .thumbnail:nth-of-type(6) {
            grid-column: 4;
            grid-row: 4;
            @media (max-width: 900px) {
                grid-column: 2;
                grid-row: 4;
            }
            &::after {
                content: "WordPress Plugins";
            }
        }
    }
    .detail {
        position: fixed;
        top: 20vh;
        left: 50%;
        transform: translateX(-50%);
        width: 60.1vmin;
        cursor: pointer;
        font-family: 'Cairo', sans-serif;
        display: flex;
        flex-direction: column;
        visibility: hidden;
        max-height: 100%;
        overflow: hidden;
        & > img {
            position: relative;
            z-index: 1;
            width: 102%;
            aspect-ratio: 16/9;
            box-shadow: var(--shadow-bottom);
        }
        & .content {
            padding: var(--spacing) var(--spacing-double);
            backdrop-filter: blur(20px);
            height: 100%;
            background-color: var(--background-alt);
        }
        & .title {
            padding-inline: 0;
            margin-top: 0;
            color: var(--primary);
            font-size: 150%;
            letter-spacing: 1.5px;
            @media (max-width: 900px) {
                font-size: 120%;
            }
        }
        & .secondary {
            font-family: 'Michroma', sans-serif;
            margin-bottom: var(--spacing-half);
            padding-block: var(--spacing);
            font-size: 100%;
            letter-spacing: 1.5px;
            text-align: center;
            text-shadow: var(--shadow-text);
            text-decoration-color: var(--text);
            margin-bottom: var(--spacing);
            margin-top: 0;
            padding-inline-start: 0;
            text-wrap: unset;
            font-weight: 400;
            opacity: 0.8;
            border-bottom: 1px solid var(--primary-light);
            @media (max-width: 900px) {
                font-size: 120%;
            }
        }
        & .description {
            font-size: var(--font-medium);
            line-height: 1.5;
            font-weight: 600;
            padding-inline-start: 0;
            @media (max-width: 900px) {
                font-size: var(--font-x-small);
            }
        }
    }
}

.service-intro-content, .performance-content, .seo-content {
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
}

.intro-text, .performance-intro, .seo-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.intro-text h3, .performance-intro h3, .seo-intro h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-dark);
}

.problem-stats, .impact-stats, .results-showcase, .seo-stats-highlight, .hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin: 2.5rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
}
.stat-highlight {
    text-align: center;
}
.stat-main {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}
.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.problem-cards, .trust-container, .trust-cards {
    max-width: 1200px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-block: 3rem;
}

.problem-card, .trust-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    flex: 1 0 280px; /* Don't grow, don't shrink, start at 280px */
    background: var(--background-alt);
    padding: 1em;
    gap: .6em;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* .highlight-card:hover, .process-step:hover, .process-card:hover, .problem-card:hover, .trust-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: var(--surface-hover);
} */

.step-content h4, .path-header h4, .process-card h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--accent-dark);
}

.stat-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
}

.stat-change {
    font-size: 2rem;
    font-weight: 700;
}

.stat-change.positive {
    color: #4ade80;
}

.stat-change.negative {
    color: #f87171;
}

.impact-stat p {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.5;
    text-wrap: balance;
}

.step-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    p {
        height: 5em;
        margin-top: 1em;
    }
}
.step-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand);
    background: var(--brand-light);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    min-width: 60px;
    text-align: center;
}

.result-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.result-text h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--background-alt);
    font-weight: 600;
}

.result-text p {
    color: var(--text-secondary);
    font-size: var(--font-medium);
    line-height: 1.5;
    margin: 0;
    text-wrap: balance;
}

.stat-number {
    display: inline-block;
    transition: all 0.3s ease-out;
    font-size: 2.5rem;
}
/* Ensure proper alignment with symbols */
.stat-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.stat-symbol {
    font-size: 1.5rem;
    font-weight: 600;
}

.cta-wrapper{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: sticky;
    top: 0;
    & .cta-section {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100%;
        width: 100%;
        padding-block: 6vh;
        text-align: center;
        color: var(--accent);
        background: var(--gradient-brand);
        gap: var(--spacing-triple);
        margin-bottom: 0;
    }
}

/* ---------- QUIZ MODAL FORMS --------- */
/* Quiz Modal Styles */
.quiz-modal {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    display: grid;
    justify-items: center;
    align-content: center;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: visibility 1.3s, opacity .5s ease;
}
.quiz-modal.active {
    visibility: visible;
    opacity: 1;
}
.quiz-content {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, auto);
    /* display: flex; */
    /* flex-direction: column; */
    /* align-items: center; */
    width: 80vw;
    max-width: 600px;
    height: 40vh;
    background: var(--background-alt);
    padding: var(--spacing-double);
    border-radius: 12px;
    box-shadow: var(--shadow-bottom);
    position: relative;
    transition: height .3s ease;
    h2 {
        margin-block: 0;
        font-size: var(--font-large);
        color: var(--primary);
    }
}
.step-wrapper {
    grid-row: 2 / 6;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 20vh;
    transition: var(--transition-default);
}
.step-wrapper:has(.brand-upload.active) {
    height: 60vh;
    transition: var(--transition-default);
    .quiz-step[data-step="2"] {
        gap: 0;
        .quiz-options {
            column-count: 2;
            font-size: 12px;
        }
    }
}
.close-btn {
    position: absolute;
    top: .1em;
    right: .5em;
    font-size: var(--font-large);
    cursor: pointer;
}
.quiz-step {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing);
    padding: var(--spacing-half);
    width: 100%;
    opacity: 0;
    transition: var(--transition-default);
    transition-delay: 0s;
    h3 {
        margin: 0;
    }
    .form-group {
        display: flex;
        flex-direction: column;
        width: 80%;
        margin-bottom: var(--spacing-double);
        input[type="email"] {
            font-size: unset;
            width: 100%;
        }
    }
}
.quiz-step.active {
    opacity: 1!important;
    z-index: +1;
    transition: all var(--transition-default);
    transition-delay: .2s;
    @starting-style {
        opacity: 0;
        }
}
.quiz-step p {
    font-size: var(--font-large);
    text-wrap: balance;
}
select {
    appearance: base-select;
    color: var(--text-alt);
    background-color: transparent;
    box-sizing: border-box;
    border: 1px solid var(--border);
    border-radius: calc(0.5rem - 2px);
    box-shadow: var(--shadow-bottom);
    width: 80%;
    z-index: +1;
    & > button {
        display: flex;
        width: 100%;
        font-family: inherit;
        color: currentColor;
        & > svg {
        margin: 0 0 0 auto;
        width: 1.2rem;
        height: 1.2rem;
        }
    }
    
    &:has(option:not([hidden]):checked) {
        color: currentColor;
        width: 100%;
    }
    
    &:focus-visible {
        outline: 2px solid var(--primary);
        outline-offset: -1px;
    }
    
    &::picker-icon {
        display: none;
    }
    
    &::picker(select) {
        appearance: base-select;
        border: 1px solid var(--primary-light);
        padding: 0.25rem;
        margin-top: 0.25rem;
        border-radius: calc(0.5rem - 2px);
        cursor: default;
        transition: opacity 225ms ease-in-out, transform 225ms ease-in-out;
        transform-origin: top;
        transform: translateY(0);
        opacity: 1;
        @starting-style {
        transform: translateY(-2.25rem) scale(0.95);
        opacity: 0;
        }
    }
    & optgroup label {
        display: block;
        padding: 0.375rem 0.5rem;
    }
    & option {
        padding: 0.375rem 0.5rem;
        border-radius: calc(0.5rem - 4px);
        outline: none;
        &::after {
        content: "\2713";
        width: 1rem;
        height: 1.5rem;
        margin-left: auto;
        opacity: 0;
        }
        &::checkmark {
        display: none;
        }
        &:checked {
        background-color: transparent;
        &::after {
            opacity: 1;
        }
        }
        &:hover,
        &:focus-visible {
        background-color: #f4f4f5;
        color: #18181b;
        }
    }
}
input[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}
.quiz-options {
    /* column-count: 2; */
    label {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        margin-bottom: 8px;
        cursor: pointer;
        input[type="checkbox"] {
            width: 18px;
            height: 18px;
            accent-color: var(--color-icon-green-opaque); /* Modern browser way to style checkboxes */
        }
    }
    .radio-option {
        display: flex;
        align-items: center;
        cursor: pointer;
        border-radius: 6px;
    }
    .radio-option:hover {
    background: var(--primary-light);
    }
    .radio-option input {
    position: absolute;
    opacity: 0;
    }
    .radio-btn {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #89D4CF;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
    }
    .radio-option input:checked + .radio-btn::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: #89D4CF;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    }
}
.quiz-summary {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: var(--spacing-double);
    h4 {
        margin-top: 0; 
    }
}
.quiz-feedback {
    position: relative;
}
.quiz-error {
    position: absolute;
    bottom: -5vh;
    color: orangered;
    transition: all .2s ease;
    @starting-style {
        transform: translateY(.25rem);
        opacity: 0;
    }
}
.quiz-nav {
    position: absolute;
    bottom: 1em;
    width: 100%;
    padding-inline: 1em;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    gap: 1em;
    button {
        flex-grow: 1;
        cursor: alias;
        background-color: var(--primary-light);
        border: none;
        border-radius: 6px;
        box-shadow: var(--shadow-bottom);
        transition: all .3s ease;
        z-index: +1;
        &:hover {
            box-shadow: var(--shadow-top);
        }
    }
    span {
        text-wrap: balance;
    }
}
.quiz-nav button.quiz-submit {
    display: none;
    width: 8rem;
    span {
        margin-left: var(--spacing-half);
    }
}
.quiz-nav button.quiz-submit.show {
    display: block;
    width: 8rem;
}
.quiz-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #ff6b6b;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 99999;
    transition: opacity 0.3s ease;
}
.quiz-notification button.close-notification {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 0 0 10px;
}
/* Brand upload section */
.upload-group {
    margin-bottom: var(--spacing-half);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--primary-light);
    padding: 8px;
    border-radius: 8px;
    opacity: 0;
    transition: opacity .5s ease;
    label strong {
        font-size: 80%;
        font-weight: 300;
        font-style: italic;
    }
}
.upload-group.visible {
    opacity: 1;
    transition: opacity .5s ease;
}
input::placeholder, textarea::placeholder, select {
    font-size: .8rem;
    opacity: .8;
    font-weight: 300;
}
select, textarea {
    padding: 0.5rem 0.75rem;
}
input[type="email"] {
    appearance: base-select;
    border-radius: 6px;
    min-height: 2em;
    font-family: 'Michroma', sans-serif;
    color: var(--text);
    box-sizing: border-box;
    border: none;
    border-radius: 5px;
    padding: 0.5rem 0.75rem;
    width: 80%;
}

.upload-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.upload-group label[for]:not[type="color"] {
    position: relative;
    &::after {
        content: "(Coming Soon)";
        font-size: .8rem;
        /* color: #666; */
        margin-left: 8px;
    }
}
.color-picker {
    display: flex;
    gap: var(--spacing);
}
.color-picker input[type="color"] {
    -webkit-appearance: none; /* Important for WebKit browsers */
    -moz-appearance: none;    /* For Firefox */
    appearance: none;         /* Standard property */
    width: 60px;
    height: 40px;
    cursor: copy;
    border: none;
    border-radius: 4px;
    padding: 0!important;
    margin: 0;
    border-color: transparent;
    background-color: transparent;
    box-shadow: var(--shadow-text);
    block-size: 40px;
}
/* For WebKit browsers (Chrome, Safari) */
.color-picker input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 4px;
    padding: 0;
}
.color-picker input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
    border: none;
    border-radius: 4px;
}
/* For Firefox */
.color-picker input[type="color"]::-moz-color-swatch {
    border: none;
    border-radius: 4px;
}
.color-picker input[type="color"]::-moz-focus-inner {
    border: none;
    padding: 0;
}

/* BOT-DEFENSE AUDIT PAGE */
.contact-container {
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 0 auto;
    padding: 0 2em;
}
/* Field Notes */
.field-note {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Symptom Tips */
.symptom-tip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.75rem;
    background: var(--brand-light);
    border-radius: 6px;
    color: var(--brand-dark);
}

.symptom-tip i {
    font-size: 1.25rem;
}

.symptom-tip span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Symptom Cards Enhancement */
.symptom-card .card-content small {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Audit Preview */
.audit-preview {
    margin-bottom: 2rem;
}

.preview-card {
    background: linear-gradient(135deg, var(--brand-light) 0%, var(--card-bg) 100%);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
}

.preview-card h4 {
    margin-bottom: 1rem;
    color: var(--accent-dark);
}

.preview-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    justify-self: center;
}

.preview-card li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.preview-card li i {
    color: var(--success);
}

/* Checkbox Groups */
.checkbox-group {
    display: grid;
    gap: 0.5rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
}

/* Error States */
input.error,
select.error,
textarea.error {
    border-color: #e74c3c;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 3rem 1rem;
    animation: fadeIn 0.5s ease;
}

.success-message i {
    font-size: 4rem;
    color: #2ecc71;
    margin-bottom: 1rem;
}

.success-message h3 {
    color: var(--accent-dark);
    margin-bottom: 1rem;
}

.success-message p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}
/* Responsive adjustments */
@media (max-width: 768px) {
    .problem-stats .stat-number,
    .impact-stats .stat-number,
    .seo-stats-highlight .stat-number {
        font-size: 2rem;
    }
    .stat-symbol {
        font-size: 1.25rem;
    }
    .problem-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    .stat-number {
        font-size: 2rem;
    }
    .solution-highlights {
        grid-template-columns: 1fr;
    }
    .highlight-card {
        padding: 1.5rem;
    }
    .performance-content {
        padding: 0 1rem;
    }
    .impact-stats, .seo-stats-highlight, .results-showcase {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1.5rem;
        margin: 2rem 0;
    }
    .process-step {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem;
    }
    .step-number {
        align-self: center;
    }
    .seo-content {
        padding: 0 1rem;
        margin-bottom: 2rem;
    }
    .stat-main {
        font-size: 2rem;
    }
    .process-card {
        padding: 1.5rem;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .service-intro-content, .performance-content, .seo-content {
        margin: unset;
        padding: unset;
    }
    h3 {
        font-size: 1.75rem;
    }
    .stat-number {
        font-size: 2rem;
    }
    .process-steps {
        gap: 2rem;
    }
    .seo-stats-highlight {
        padding: 1rem;
    }
}