:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --text-color-dark: #34495e;
    --text-color-light: #ecf0f1;
    --white-color: #ffffff;
}

html {
    background-color: #000000;
    /* This is the key fix */
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: var(--text-color-light);
    line-height: 1.6;
    background-color: transparent;
}

#spline-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: auto;
}

#spline-background spline-viewer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    overflow-x: hidden;
    pointer-events: none;
}

.content-wrapper a,
.content-wrapper button,
.content-wrapper input,
.content-wrapper textarea,
.content-wrapper label,
.content-wrapper h1,
.content-wrapper h2,
.content-wrapper h3,
.content-wrapper p,
.content-wrapper .service-card,
.content-wrapper .pricing-card,
.content-wrapper .work-card,
.content-wrapper .step-card {
    pointer-events: auto;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* Header */
header {
    background: transparent;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
}

header.scrolled {
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

header nav.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: block;
    text-decoration: none;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* --- NEW SVG LOGO STYLING --- */
.logo svg {
    height: 50px;
    /* Controls the size of the logo */
    width: auto;
    display: block;
    fill: var(--white-color);
    /* Makes the logo white */
}

header ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

header ul li a {
    text-decoration: none;
    color: var(--text-color-light);
    font-weight: 600;
    transition: color 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

header ul li a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    z-index: 1001;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--white-color);
}


/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100vh;
    padding: 120px 20px 60px 20px;
}

.hero-content h1 {
    font-size: 4rem;
    color: var(--white-color);
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.3rem;
    color: var(--text-color-light);
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Styles for interactive text characters */
.interactive-text span {
    display: inline-block;
    position: relative;
    pointer-events: none;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* Unified "Call to Action" Button Style */
.cta-button {
    background: rgba(52, 152, 219, 0.15);
    color: var(--white-color);
    border: 2px solid var(--primary-color);
    padding: 13px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.4);
}

/* ACCESSIBILITY FIX: High-contrast solid blue hover state */
.cta-button:hover {
    background: #2980b9;
    /* A darker, accessible solid blue */
    border-color: #2980b9;
    /* Make border match for a solid look */
    color: var(--white-color);
    /* Keep the text white */
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(41, 128, 185, 0.5);
    /* Blue glow */
}


/* Content Sections */
.content-section {
    padding: 50px 0;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    background: transparent;
    margin-bottom: 4rem;
}

.content-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero.content-section {
    opacity: 1;
    transform: translateY(0);
}

.content-section h2 {
    font-size: 2.5rem;
    color: var(--white-color);
    margin-bottom: 1rem;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
}

.content-section p {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.5rem;
}


/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    text-align: left;
}

.service-card {
    background: transparent;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: transform 0.3s ease, background 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.service-card h3 {
    color: var(--primary-color);
    margin-top: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Styles for the dedicated Services Page */
.page-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 50vh;
    padding: 120px 20px 60px 20px;
}

.service-detail-item {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin-bottom: 5rem;
    text-align: left;
}

.service-detail-item.reverse {
    flex-direction: row-reverse;
}

.service-detail-img,
.service-detail-text {
    flex: 1;
}

.service-detail-img img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.25);
    display: block;
}

.service-detail-text h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-top: 0;
    text-align: left;
}

.service-detail-text p {
    max-width: 100%;
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 1.5rem;
}

.service-detail-text ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.service-detail-text li {
    padding-left: 1.7rem;
    position: relative;
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
}

.service-detail-text li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
    font-weight: 600;
}

/* Our Work Section Styling */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: start;
}

.work-card {
    background: transparent;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, transform 0.3s ease, background 0.3s ease;
    max-height: 285px;
    display: block;
    color: var(--text-color-light);
    text-decoration: none;
}

.work-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    max-height: 500px;
}

.work-card img {
    width: 100%;
    height: auto;
    display: block;
}

.work-card-content {
    padding: 1.5rem;
    text-align: left;
}

.work-card-content h3 {
    color: var(--primary-color);
    margin-top: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.work-card-content p {
    margin-bottom: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    color: var(--text-color-light);
}

#more-work {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.6s ease-in-out, opacity 0.6s ease-in-out, margin-top 0.6s ease-in-out;
    margin-top: 0;
}

#more-work.visible {
    max-height: 1000px;
    opacity: 1;
    margin-top: 2rem;
}


/* Pricing Section Styling */
#pricing h2 {
    margin-bottom: 1rem;
}

#pricing p {
    margin-bottom: 4rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: center;
}

.pricing-card {
    background: rgba(0, 0, 0, 0.2);
    padding: 2.5rem 2rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.pricing-card h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-top: 0;
}

.pricing-card.featured h3 {
    margin-top: 1.2rem;
    /* Add space for the new banner above */
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 700;
    margin: 1rem 0;
    color: var(--white-color);
}

.pricing-card .price sup {
    font-size: 1.5rem;
    font-weight: 300;
    top: -1.2rem;
}

.pricing-card .price span {
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-color-light);
    opacity: 0.8;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    text-align: left;
    flex-grow: 1;
}

.features-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.features-list li:last-child {
    border-bottom: none;
}

.pricing-card .cta-button {
    width: 100%;
    box-sizing: border-box;
}

.pricing-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
    background: rgba(52, 152, 219, 0.1);
    box-shadow: 0 5px 25px rgba(52, 152, 219, 0.2);
    position: relative;
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.featured-badge {
    position: absolute;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(52, 152, 219, 0.2);
    border: 1px solid var(--primary-color);
    color: var(--white-color);
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-carousel-wrapper {
    position: relative;
    z-index: 2;
}

.scroll-arrow {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--white-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    line-height: 38px;
    text-align: center;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s;
}

.scroll-arrow:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.scroll-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

#scroll-left-btn {
    left: -20px;
}

#scroll-right-btn {
    right: -20px;
}

/* Contact Section */
.contact-section {
    background: transparent;
    color: var(--white-color);
    padding: 60px 0;
    text-align: center;
    margin: 0 auto;
}

.contact-section h2,
.contact-section p {
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* Form Styling */
#contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(0, 0, 0, 0.25);
    color: var(--text-color-light);
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

/* ACCESSIBILITY FIX: Removed old focus style, will be handled by global :focus-visible rule */
#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

#contact-form textarea {
    resize: vertical;
}

#contact-form button {
    width: 100%;
}

/* NEW Themed Form Status Styling */
#form-status {
    font-weight: 600;
    border-radius: 5px;
    text-align: center;
    border: 1px solid transparent;
    transition: all 0.4s ease-in-out;
    opacity: 0;
    max-height: 0;
    padding: 0 1rem;
    margin-top: 0;
    overflow: hidden;
    box-sizing: border-box;
}

/* This makes the box appear smoothly when it has a message */
#form-status.sending,
#form-status.success,
#form-status.error {
    opacity: 1;
    max-height: 100px;
    /* Animate height to a large enough value */
    padding: 1rem;
    margin-top: 1.5rem;
}

/* "Sending..." state - uses your primary theme color */
#form-status.sending {
    color: var(--primary-color);
    background-color: rgba(52, 152, 219, 0.1);
    border-color: var(--primary-color);
}

/* "Success" state - uses a modern, theme-appropriate green */
#form-status.success {
    color: #2ecc71;
    background-color: rgba(46, 204, 113, 0.1);
    border-color: #2ecc71;
}

/* "Error" state - uses a modern, theme-appropriate red */
#form-status.error {
    color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.1);
    border-color: #e74c3c;
}

/* Our Process/Steps Section */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.step-card {
    background: transparent;
    padding: 2rem;
    border-top: 3px solid var(--primary-color);
    position: relative;
    text-align: left;
    transition: background 0.3s ease;
}

.step-card:hover {
    background: rgba(255, 255, 255, 0.05);
}

.step-number {
    position: absolute;
    top: 0;
    left: 1.5rem;
    transform: translateY(-50%);
    background: linear-gradient(to bottom,
            transparent 0%,
            #000000 25%,
            /* Match new html background */
            #000000 75%,
            /* Match new html background */
            transparent 100%);
    padding: 0 0.5rem;
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.step-card h3 {
    color: var(--white-color);
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.step-card p {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    color: var(--text-color-light);
    margin: 0;
    max-width: 100%;
}


/* Footer Styling */
footer {
    background: transparent;
    padding: 3rem 0 2rem;
    color: var(--white-color);
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-column h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
    text-shadow: 0 0 8px rgba(52, 152, 219, 0.7);
}

.footer-column p {
    margin: 0;
    color: var(--text-color-light);
    opacity: 0.9;
    max-width: 100%;
    text-shadow: 0 0 6px rgba(52, 152, 219, 0.5);
}

.footer-column a {
    color: var(--text-color-light);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.footer-column a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 8px var(--primary-color);
}

.footer-bottom-bar {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    color: var(--text-color-light);
    opacity: 0.8;
}

.footer-bottom-bar p {
    margin: 0;
    text-shadow: 0 0 6px rgba(52, 152, 219, 0.5);
}


/* Responsive Design */
@media (max-width: 992px) {

    /* --- Hamburger Menu Styles --- */
    .hamburger {
        display: block;
    }

    #main-nav {
        position: fixed;
        right: -100%;
        top: 0;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        background: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        width: 70%;
        max-width: 300px;
        height: 100vh;
        transition: right 0.4s ease-in-out;
        padding-top: 6rem;
        z-index: 1000;
        gap: 0;
    }

    #main-nav.active {
        right: 0;
    }

    #main-nav li {
        margin: 1.5rem 0;
    }

    #main-nav li a {
        font-size: 1.2rem;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* --- Pricing Carousel Styles for Mobile --- */
    .pricing-card.featured {
        transform: scale(1);
    }

    .pricing-carousel-wrapper {
        margin: 0 -15px;
        overflow: hidden;
    }

    .pricing-grid {
        display: flex;
        padding: 1rem;
        gap: 1.5rem;
        position: relative;
        user-select: none;
        -webkit-user-select: none;
        cursor: grab;
        touch-action: pan-y;
        grid-template-columns: none;
        align-items: stretch;
    }

    .pricing-grid.active {
        cursor: grabbing;
    }

    .pricing-grid::-webkit-scrollbar {
        display: none;
    }

    .pricing-card {
        flex: 0 0 80%;
        max-width: 320px;
    }

    .scroll-arrow {
        display: block;
    }

    #scroll-left-btn {
        left: 0;
    }

    #scroll-right-btn {
        right: 0;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .content-section {
        padding: 40px 25px;
    }

    .work-card {
        max-height: 100%;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        margin-bottom: 2rem;
    }

    .footer-column {
        min-width: 100%;
    }

    .footer-bottom-bar {
        text-align: center;
    }

    .service-detail-item,
    .service-detail-item.reverse {
        flex-direction: column;
        gap: 2rem;
    }

    .service-detail-text h2,
    .service-detail-text p {
        text-align: center;
    }
}

/* --- FAQ Page Styling --- */
.faq-container {
    max-width: 800px;
    margin: 2rem auto 0;
    text-align: left;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color-light);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-question span {
    font-size: 1.8rem;
    font-weight: 300;
    transition: transform 0.3s ease-in-out;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}

.faq-answer p {
    padding: 0 0 1.5rem 0;
    margin: 0;
    line-height: 1.7;
    color: var(--text-color-light);
    opacity: 0.9;
}

.faq-answer a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* Active State for Accordion */
.faq-item.active .faq-question {
    color: var(--primary-color);
}

.faq-item.active .faq-question span {
    transform: rotate(45deg);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    /* Adjust if your answers are longer */
}

/* --- Contact Page Specific Styling --- */
.contact-page-wrapper {
    display: flex;
    gap: 3rem;
    text-align: left;
}

.contact-form-container {
    flex: 2;
    /* Takes up 2/3 of the space */
}

.contact-details-container {
    flex: 1;
    /* Takes up 1/3 of the space */
}

.contact-details-container h2,
.contact-form-container h2 {
    color: var(--white-color);
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
    text-align: left;
}

.contact-info-item {
    margin-bottom: 1.5rem;
}

.contact-info-item h4 {
    margin: 0 0 0.25rem 0;
    color: var(--primary-color);
    font-size: 1.1rem;
    text-shadow: 0 0 8px rgba(52, 152, 219, 0.7);
}

.contact-info-item p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    text-shadow: 0 0 6px rgba(52, 152, 219, 0.5);
}

.contact-info-item a {
    color: var(--text-color-light);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.contact-info-item a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 8px var(--primary-color);
}

.map-container {
    margin-top: 2rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.map-container iframe {
    width: 100%;
    height: 250px;
    display: block;
    border: none;
}

/* Responsive adjustments for the contact page */
@media (max-width: 992px) {
    .contact-page-wrapper {
        flex-direction: column;
    }
}

/* ACCESSIBILITY FIX: High-visibility focus indicator for keyboard users */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--white-color);
    outline-offset: 2px;
    box-shadow: none;
}
/* --- Trust Badges in Footer --- */
.footer-badges .badge-container {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    /* Center on mobile */
}

.badge {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color-light);
    white-space: nowrap;
}

@media (min-width: 768px) {
    .footer-badges .badge-container {
        justify-content: flex-start;
        /* Align left on desktop */
    }
}

/* --- Sticky Mobile CTA Button --- */
#sticky-cta {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateX(-50%) translateY(150%);
    pointer-events: none;
    display: none;
    /* Hidden on desktop by default */
}

@media (max-width: 768px) {
    #sticky-cta {
        display: inline-block;
        /* Only show on mobile */
    }

    #sticky-cta.visible {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
        pointer-events: auto;
    }
}


/* --- Exit-Intent Popup (Themed) --- */
#exit-intent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Slightly less dark background */
    backdrop-filter: blur(10px);
    /* Increased blur to match header */
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

#exit-intent-overlay.visible {
    display: flex;
    opacity: 1;
}

#exit-intent-modal {
    background: rgba(0, 0, 0, 0.25);
    /* Transparent background */
    padding: 2.5rem;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.4);
    /* Brighter border */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.95) translateY(10px);
    /* Start slightly lower */
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 0;
}

#exit-intent-overlay.visible #exit-intent-modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

#exit-intent-modal h2 {
    color: var(--primary-color);
    margin-top: 0;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

#exit-intent-modal p {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

#exit-intent-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-color-light);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#exit-intent-close:hover {
    opacity: 1;
    transform: scale(1.1);
}