:root {
    --text-light: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #94a3b8;

    /* Light Theme Settings */
    --theme-bg: linear-gradient(135deg, #e4f5ed 0%, #faeee5 100%);
    --primary-btn-bg: #d9f99d;
    --primary-btn-text: #166534;
    --brand-dark: #0f172a;
    --brand-orange: #ea580c;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: #f8fafc;
    color: var(--text-dark);
}

/* Navbar */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.logo-text strong {
    color: #38bdf8;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: rgba(15, 23, 42, 0.7);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--brand-dark);
}

.nav-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.btn-secondary {
    color: var(--brand-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: opacity 0.3s;
}

.btn-secondary:hover {
    opacity: 0.8;
}

.btn-primary {
    background: var(--primary-btn-bg);
    color: var(--primary-btn-text);
    padding: 0.6rem 1.4rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(217, 249, 157, 0.5);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--brand-dark);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
}

.fab .btn-fab {
    width: 60px;
    height: 60px;
    background: var(--brand-orange);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 10px 30px rgba(234, 88, 12, 0.3);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fab .btn-fab:hover {
    transform: scale(1.1) rotate(5deg);
    background: #c2410c;
}

/* Navbar Scroll */
.navbar.scroll-down {
    transform: translateY(-100%);
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.navbar.scroll-up {
    transform: translateY(0);
    position: fixed;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}


/* Scroll Wrapper for Arc Animation */
.scroll-wrapper {
    height: 500vh;
    /* 5 sections, 100vh each */
    position: relative;
    width: 100%;
}

/* Sticky Hero Container */
.hero-sticky {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
    background: var(--theme-bg);
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 60px;
    /* Accounts for navbar */
    position: relative;
    padding-left: 5%;
    padding-right: 5%;
}

/* Stacked Text Content */
.text-stack {
    flex: 1;
    max-width: 600px;
    position: relative;
    height: 100%;
}

.text-slide {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%) translateY(30px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.text-slide.active {
    opacity: 1;
    transform: translateY(-50%) translateY(0);
    pointer-events: auto;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--brand-dark);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.headline {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
    text-wrap: balance;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    color: var(--brand-dark);
}

.description {
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(15, 23, 42, 0.85);
    margin-bottom: 2.5rem;
    font-weight: 500;
    max-width: 540px;
}

/* Buttons */
.cta-group {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.btn-primary-large {
    background: var(--brand-dark);
    color: #ffffff;
    padding: 1.1rem 2.2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
}

.btn-primary-large:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
    background: #1e293b;
}

.btn-secondary-large {
    background: var(--brand-orange);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.1rem 2.2rem;
    border-radius: 30px;
    box-shadow: 0 10px 25px rgba(234, 88, 12, 0.15);
}

.btn-secondary-large i {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary-large:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(234, 88, 12, 0.25);
    background: #c2410c;
}

.btn-secondary-large:hover i {
    transform: translateX(6px);
}

/* ========================================================================= */
/* New Home Redesign Styles */
/* ========================================================================= */

.main-hero {
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
}

.hero-left {
    flex: 1.2;
}

.hero-left h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--brand-dark);
    margin-bottom: 2rem;
    letter-spacing: -2px;
}

.hero-left .highlight {
    color: var(--brand-orange);
    position: relative;
}

.hero-left p {
    font-size: 1.25rem;
    color: rgba(15, 23, 42, 0.7);
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 600px;
}

.hero-right {
    flex: 0.8;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.hero-inner-logo {
    max-width: 250px;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}


.hero-device-img {
    width: 100%;
    max-width: 650px;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.15));
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0) scale(1.02);
    }

    50% {
        transform: translateY(-20px) scale(0.98);
    }
}

/* Stacked Card Section */
.stacked-section {
    padding: 8rem 0;
    background: #f1f5f9;
}

.cards-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    /* Cards will stack via sticky positioning */
    position: relative;
}

.stack-card {
    position: sticky;
    top: 120px;
    /* Offset from top of viewport */
    width: 100%;
    min-height: 500px;
    background: #fff;
    border-radius: 40px;
    margin-bottom: 100px;
    /* Space for scroll but cards will cover this */
    padding: 5rem;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.1);
    transform-origin: top center;
    transition: transform 0.3s ease-out;
    display: flex;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stack-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 40px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(15, 23, 42, 0.02) 100%);
    pointer-events: none;
}

/* Vertical spacing adjustment for the stack effect */
.stack-card:nth-child(2) {
    top: 140px;
}

.stack-card:nth-child(3) {
    top: 160px;
}

.stack-card:nth-child(4) {
    top: 180px;
}

.card-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.card-text h3 {
    font-size: 2.5rem;
    color: var(--brand-dark);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.card-text p {
    font-size: 1.125rem;
    color: rgba(15, 23, 42, 0.7);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.card-text ul {
    list-style: none;
}

.card-text li {
    font-size: 1.125rem;
    color: var(--brand-dark);
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.card-text li i {
    color: var(--brand-orange);
}

.card-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(234, 88, 12, 0.1);
    color: var(--brand-orange);
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.card-image img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.15));
}

/* Arc Image Container (now horizontal slider) */
.arc-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.arc-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    max-width: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translate(-50%, -50%) translateX(100%) scale(0.8);
    transition: transform 0.5s ease, opacity 0.5s ease;
    will-change: transform, opacity;
}

.arc-item.active {
    opacity: 1;
}

/* Highlighted center slide */
.arc-item.active .floating-img {
    filter: drop-shadow(0 50px 60px rgba(0, 0, 0, 0.45));
}

.floating-img {
    max-width: 100%;
    max-height: 65vh;
    object-fit: contain;
    filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.25));
    animation: float 6s ease-in-out infinite;
    transform-origin: center center;
}

/* Custom float animations per image if needed */
.pos-img {
    animation-duration: 6s;
}

.kiosk-img {
    animation-duration: 7s;
}

.tablet-img {
    animation-duration: 5.5s;
}

.phone-img {
    animation-duration: 6.5s;
}

.printer-img {
    animation-duration: 6s;
    max-height: 50vh;
    margin-right: -5%;
    filter: drop-shadow(0 40px 50px rgba(0, 0, 0, 0.4));
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}


/* ========================================================================= */
/* New Sections (Added from old site) */
/* ========================================================================= */

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--brand-dark);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.section-header p {
    font-size: 1.125rem;
    color: rgba(15, 23, 42, 0.7);
    line-height: 1.6;
}

.content-center {
    display: flex;
    justify-content: center;
}

/* Stats Section */
.stats-section {
    padding: 5rem 0;
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.stats-section .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-box {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--brand-dark);
    letter-spacing: -1px;
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--brand-orange);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Client Marquee */
.client-marquee {
    padding: 3rem 0;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
}

.marquee-content {
    display: flex;
    gap: 4rem;
    align-items: center;
    width: max-content;
    animation: scroll 30s linear infinite;
}

.marquee-content img {
    height: 60px;
    filter: grayscale(1) opacity(0.6);
    transition: all 0.3s;
}

.marquee-content img:hover {
    filter: grayscale(0) opacity(1);
    transform: scale(1.1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Benefits Section */
.benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-card {
    background: #fff;
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.benefit-card i {
    font-size: 2.5rem;
    color: var(--brand-orange);
    margin-bottom: 1.5rem;
}

.benefit-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--brand-dark);
}

.benefit-card p {
    color: var(--text-muted);
    line-height: 1.6;
}


/* Features Section */
.features-section {
    padding: 8rem 0;
    background: #f8fafc;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.feature-card {
    background: #ffffff;
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-btn-bg);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    color: var(--brand-dark);
    font-weight: 700;
}

/* Products Grid Section */
.products-section {
    padding: 8rem 0;
    background: #ffffff;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.product-item {
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: var(--brand-dark);
    font-weight: 600;
    transition: all 0.3s;
}

.product-item:hover {
    background: var(--brand-dark);
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.15);
    transform: translateY(-2px);
}

.product-item i {
    color: var(--brand-orange);
    transition: transform 0.3s;
}

.product-item:hover i {
    transform: translateX(5px);
}

/* Support Section */
.support-section {
    padding: 8rem 0;
    background: linear-gradient(135deg, #e4f5ed 0%, #faeee5 100%);
    position: relative;
    overflow: hidden;
}

.support-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.support-text {
    max-width: 800px;
}

.support-text h2 {
    font-size: 3rem;
    color: var(--brand-dark);
    margin: 1.5rem 0;
    font-weight: 800;
    letter-spacing: -1px;
}

.support-text p {
    font-size: 1.25rem;
    color: rgba(15, 23, 42, 0.8);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.support-text .cta-group {
    justify-content: center;
}

/* Testimonials Section */
.testimonials-section {
    padding: 8rem 0;
    background: #ffffff;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.testimonial-card {
    background: #f8fafc;
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 6rem;
    color: var(--primary-btn-bg);
    opacity: 0.2;
    font-family: serif;
}

.testimonial-card p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--brand-dark);
    font-style: italic;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.client-info strong {
    display: block;
    color: var(--brand-orange);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* About Section Styles */
.about-section {
    padding: 8rem 0;
    background: #ffffff;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

.about-feature h3 {
    font-size: 1.25rem;
    color: var(--brand-dark);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.about-feature p {
    font-size: 1rem;
    color: rgba(15, 23, 42, 0.7);
    line-height: 1.6;
}

.about-stats-box {
    background: var(--brand-dark);
    padding: 3rem;
    border-radius: 30px;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
}

.stats-badge {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stats-badge .highlight {
    color: var(--primary-btn-bg);
    font-weight: 800;
    font-size: 1.3rem;
}

/* Footer Styles */
.main-footer {
    background: #0f172a;
    color: #ffffff;
    padding: 6rem 0 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    height: 40px;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: #fff;
    font-size: 1.25rem;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.social-links a:hover {
    opacity: 1;
}

.footer-links h3,
.footer-contact h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-links a,
.footer-contact a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--primary-btn-bg);
}

.footer-contact i {
    color: var(--brand-orange);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .headline {
        font-size: 3.25rem;
    }

    .slide-content {
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    .navbar {
        padding: 1rem 5%;
        background: rgba(255, 255, 255, 0.98);
        position: fixed;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: #fff;
        display: flex !important;
        flex-direction: column;
        padding: 100px 2rem 2rem 2rem;
        gap: 1.5rem;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: -15px 0 40px rgba(0, 0, 0, 0.1);
        z-index: 2000;
        visibility: hidden;
    }

    .nav-links.active {
        right: 0;
        visibility: visible;
    }

    .nav-actions {
        display: none;
    }

    .menu-toggle {
        display: block;
        z-index: 2001;
        font-size: 1.75rem;
        color: var(--brand-dark);
        background: none;
        border: none;
        cursor: pointer;
    }

    .hero-flex {
        flex-direction: column !important;
        text-align: center !important;
        padding-top: 100px !important;
        gap: 3rem !important;
        align-items: center !important;
    }

    .hero-left {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        text-align: center !important;
    }

    .hero-left h1 {
        font-size: 2.5rem !important;
        line-height: 1.2 !important;
        text-align: center !important;
    }

    .hero-left p {
        font-size: 1.1rem !important;
        margin: 0 auto 2rem auto !important;
        text-align: center !important;
    }

    .hero-right {
        display: none !important;
    }

    .hero-inner-logo {
        max-width: 120px;
    }

    .stats-section .container,
    .features-grid,
    .products-grid,
    .about-grid,
    .footer-grid,
    .cta-features,
    .benefit-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    .cta-features {
        margin-top: 3rem;
    }

    .about-grid,
    .footer-grid {
        gap: 2rem;
        text-align: center;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    .stats-section .container,
    .features-grid,
    .products-grid,
    .about-grid,
    .footer-grid,
    .cta-features {
        grid-template-columns: 1fr;
    }

    .stack-card {
        padding: 3rem 1.5rem;
        min-height: 450px;
        /* Ensure enough height for the stack effect */
        border-radius: 24px;
        margin-bottom: 100px;
        /* Space for the next card to overlap */
    }

    .stack-card:nth-child(1) {
        top: 80px;
    }

    .stack-card:nth-child(2) {
        top: 100px;
    }

    .stack-card:nth-child(3) {
        top: 120px;
    }

    .stack-card:nth-child(4) {
        top: 140px;
    }

    .card-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .card-text h3 {
        font-size: 1.8rem;
    }

    .card-image img {
        max-height: 250px;
    }
}

@media (max-width: 576px) {

    .headline,
    .hero-left h1 {
        font-size: 2.5rem;
    }

    .cta-section h2 {
        font-size: 2.2rem !important;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .btn-primary-large,
    .btn-secondary-large {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .hero-right {
        display: none;
        /* Hide complex hero images on very small screens for speed/focus */
    }

    .section-header h2 {
        font-size: 1.8rem;
    }
}

/* Background Animation Canvas */
#bg-animation-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 0.7;
}

body {
    position: relative;
    background: linear-gradient(135deg, #f0fdf4 0%, #fff7ed 100%) !important;
    background-attachment: fixed !important;
}

/* Ensure foreground sections are translucent where needed */
.main-hero,
.hero-sticky,
.support-section,
.about-section,
.features-section,
.products-section,
.testimonials-section,
.stats-section {
    background: transparent !important;
}

.stacked-section {
    background: rgba(241, 245, 249, 0.4) !important;
    backdrop-filter: blur(10px);
}

.stack-card {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.navbar.scroll-down,
.navbar.scroll-up {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-card,
.about-stats-box,
.stat-box,
.feature-card,
.testimonial-card {
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover,
.feature-card:hover,
.testimonial-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}