/* Reset and Global Styles */
:root {
    --primary-color: #642c90;
    --primary-light: #9054b9;
    --primary-dark: #4b226c;
    --primary-gradient: linear-gradient(135deg, #642c90, #9054b9);
    --secondary-gradient: linear-gradient(135deg, #9054b9, #b985e0);
    --text-color: #333333;
    --light-text: #666666;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #888888;
    --section-padding: 6rem 2rem;
    --border-radius: 12px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Stop the iPad/iPhone bounce from revealing white page background below the purple footer. */
html {
    overscroll-behavior-y: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    width: 100%;
    padding: 0;
}

.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    width: 100%;
    position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: 1.2rem;
    line-height: 1.3;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #a095e5 50%, #7b42ab 100%);
    background-size: 200% 200%;
    animation: gradientFlow 6s ease infinite;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    max-width: 600px;
    margin-left: 0;
    line-height: 1.2;
    filter: drop-shadow(0px 1px 1px rgba(0, 0, 0, 0.2));
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    padding-top: 1rem;
    /* Added reduced top padding */
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

h2:after {
    content: '';
    position: absolute;
    width: 70px;
    height: 4px;
    background: var(--primary-gradient);
    bottom: -12px;
    left: 0;
}

section h2 {
    text-align: center;
    display: block;
}

section h2:after {
    left: 50%;
    transform: translateX(-50%);
}

h3 {
    font-size: 1.7rem;
    font-weight: 600;
}

p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

ul {
    list-style-position: inside;
    margin-bottom: 1.5rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-light);
}

/* Header Styles */
header {
    padding: 1.2rem 0;
    background-color: transparent;
    /* Keep the glass edge stable; default border values animate from dark, 3px. */
    border-bottom: 1px solid rgba(255, 255, 255, 0);
    /* Fade the shadow without collapsing its blur into a temporary line. */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled,
header.over-carousel {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: color 0.3s ease;
}

header.scrolled .logo {
    color: var(--primary-color);
    text-shadow: none;
}

.logo img {
    height: 40px;
    width: 40px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

nav {
    margin-left: auto;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    justify-content: flex-end;
}

nav ul li {
    margin-left: 2.5rem;
}

nav ul li a {
    font-weight: 600;
    position: relative;
    padding: 0.5rem 0;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    transition: color 0.3s ease;
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: white;
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

nav ul li a:hover:after {
    width: 100%;
}

header.scrolled nav ul li a {
    color: var(--primary-dark);
    text-shadow: none;
}

header.scrolled nav ul li a:after {
    background: var(--primary-gradient);
}

header.scrolled .btn-small {
    box-shadow: 0 3px 8px rgba(100, 44, 144, 0.2);
}

nav ul li a:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* Contact Button in Nav */
.btn-small {
    padding: 0.6rem 1.4rem;
    background: var(--primary-gradient);
    color: var(--white) !important;
    border-radius: 50px;
    font-weight: 500;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-shadow: none !important;
}

.btn-small:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(100, 44, 144, 0.4);
    background: linear-gradient(135deg, #7b3db8, #5a1f8a);
    animation: pulse-glow 0.6s ease-in-out;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 5px 12px rgba(100, 44, 144, 0.3);
    }

    50% {
        box-shadow: 0 8px 25px rgba(100, 44, 144, 0.6), 0 0 20px rgba(100, 44, 144, 0.3);
    }

    100% {
        box-shadow: 0 8px 20px rgba(100, 44, 144, 0.4);
    }
}

.btn-small:after {
    display: none;
}

/* Hero Section */
.hero {
    padding: 7rem 0 6rem;
    background: url('../../images/hero-background.optimized.webp');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 0;
}

.hero-title {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title h1 {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #c41679 0%, #ffffff 45%, #a095e5 60%, #7b42ab 100%);
    background-size: 200% 200%;
    animation: gradientFlow 6s ease infinite;
    text-align: left;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    max-width: 600px;
    margin-left: 0;
    line-height: 1.2;
    filter: drop-shadow(0px 1px 1px rgba(0, 0, 0, 0.2));
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-text {
    flex: 0.85;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-left: 2rem;
}

.hero-image {
    flex: 1.15;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 2rem;
    max-height: 450px;
    /* Add maximum height */
    margin-top: -20px;
    /* Pull up slightly */
}

.image-placeholder {
    width: 95%;
    height: auto;
    background-color: rgba(255, 255, 255, 0.1);
    background-image: radial-gradient(circle at center,
            rgba(255, 255, 255, 0.15) 0%,
            rgba(255, 255, 255, 0.05) 70%);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    transform: none;
    transition: transform 0.5s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 0 20px rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 25px 20px 25px 20px;
    /* Reduced left and right padding */
}

.image-placeholder:hover {
    transform: none;
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-placeholder video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    margin: 0 auto;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    max-height: 380px;
    /* Add max-height to ensure video stays proportional */
    transform: scale(1.01);
    /* Very subtle scale to fill the space better */
}

.what-we-do {
    margin-top: 0;
    padding: 1.5rem 0;
    background: transparent;
    backdrop-filter: none;
    border-radius: 0;
    box-shadow: none;
    border-left: none;
    width: 100%;
}

.what-we-do p {
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    border: none;
}

.what-we-do h2:after {
    display: none;
}

.what-we-do-bold {
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    display: inline;
    vertical-align: baseline;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Tech Section */
.tech-section {
    padding-top: var(--section-padding-top, 6rem);
    padding-right: var(--section-padding-right, 2rem);
    padding-left: var(--section-padding-left, 2rem);
    padding-bottom: 8rem;
    text-align: center;
    background-color: var(--white);
    background-image: url('../../images/white-tech-full.optimized.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: visible;
    margin-bottom: 0;
}

.tech-section:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0.65) 100%);
    z-index: 0;
}

.tech-section .content-wrapper {
    position: relative;
    z-index: 1;
}

.tech-section .content-wrapper h2,
.tech-section .content-wrapper p {
    position: relative;
    z-index: 5;
}

.tech-section h2 {
    position: relative;
    z-index: 5;
    color: var(--primary-color);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.tech-section p {
    max-width: 1000px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    padding: 0 2rem;
    position: relative;
    z-index: 5;
    color: var(--text-color);
}

/* Slideshow Container Styles */
.slideshow-container-full {
    width: 100%;
    position: relative;
    min-height: 420px;
    background-color: rgba(255, 255, 255, 0.05);
    background-image: radial-gradient(circle at center,
            rgba(255, 255, 255, 0.08) 0%,
            rgba(255, 255, 255, 0.02) 70%);
    border-radius: 20px;
    padding: 0 4rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08),
        inset 0 0 30px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 2rem auto 4rem;
    max-width: 1200px;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.display-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    padding: 0 4rem 3rem 4rem;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.display-container.active {
    display: flex;
    opacity: 1;
    z-index: 2;
}

.display-container h3 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-size: 2.2rem;
    font-weight: 700;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    opacity: 1;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.9);
}

.tool-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 1rem;
    margin-left: auto;
    margin-right: auto;
}

.tool-container.horizontal {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 2.5rem;
}

.tool-column {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-column.single {
    width: 80px;
    height: 80px;
}

.tool-column.vertical {
    min-height: 80px;
    min-width: 80px;
}

.plus-sign {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
    opacity: 0.9;
}

.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(10px);
    position: absolute;
    width: 80px;
    height: 80px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    padding: 0.8rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 0 8px rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2),
        inset 0 0 12px rgba(255, 255, 255, 0.4);
    transform: translateY(-5px) scale(1.05);
}

.tool-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.tool-label {
    position: absolute;
    bottom: -32px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--primary-color);
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Slideshow Navigation */
.slideshow-nav {
    position: absolute;
    bottom: 1.5rem;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    z-index: 10;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(100, 44, 144, 0.2);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-dot:hover {
    background-color: #b985e0;
    transform: scale(1.1);
}

.nav-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
    border-color: var(--primary-color);
    box-shadow: 0 1px 4px rgba(100, 44, 144, 0.3);
}

/* Animation classes */
.slide-in {
    animation: slideIn 0.25s forwards;
}

.slide-up {
    animation: slideUp 0.25s forwards;
}

.slide-down {
    animation: slideDown 0.25s forwards;
}

.slide-out {
    animation: slideOut 0.25s forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translate(-50%, -50%);
    }

    to {
        opacity: 0;
        transform: translate(-50%, -70%);
    }
}

@keyframes slideDown {
    from {
        opacity: 1;
        transform: translate(-50%, -50%);
    }

    to {
        opacity: 0;
        transform: translate(-50%, -30%);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes slideFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Media query updates for the slideshow */
@media (max-width: 992px) {
    .hero {
        min-height: 100vh;
        padding: 8rem 0 4rem;
        background-position: 70% center;
    }

    .hero:before {
        background: linear-gradient(to right, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.1) 100%);
    }

    .hero-content {
        flex-direction: column;
        gap: 3rem;
    }

    .hero-text {
        flex: 1;
        width: 100%;
        text-align: center;
        padding: 0 2rem;
        align-items: center;
    }

    .hero-image {
        flex: 1;
        width: 100%;
        justify-content: center;
        padding: 0 2rem;
    }

    .image-placeholder {
        width: 90%;
        max-width: 600px;
        margin: 0 auto;
    }

    .hero-title {
        text-align: center;
    }

    .hero-title h1 {
        margin-left: 0;
        margin-right: auto;
        background: linear-gradient(135deg, #ffffff 0%, #a095e5 50%, #7b42ab 100%);
        background-size: 200% 200%;
        animation: gradientFlow 6s ease infinite;
        text-align: left;
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        filter: drop-shadow(0px 1px 1px rgba(0, 0, 0, 0.2));
    }

    .what-we-do {
        margin: 0 auto;
        text-align: center;
        background: transparent;
    }

    .services-grid {
        justify-content: flex-start;
        padding-bottom: 1.5rem;
    }

    .no-formula-section .content-wrapper {
        flex-direction: column;
        gap: 3rem;
    }

    .use-cases {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 4rem 1.5rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .header-content {
        padding: 0 1.5rem;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        box-shadow: -5px 0 10px rgba(0, 0, 0, 0.1);
        border-left: 1px solid rgba(255, 255, 255, 0.2);
        transition: right 0.3s ease;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 1000;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    nav ul li {
        margin: 0;
    }

    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
        pointer-events: none;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    header.scrolled {
        background-color: rgba(255, 255, 255, 0.15);
    }

    .image-placeholder {
        width: 95%;
        padding: 30px 30px 15px 30px;
        /* Reduced bottom padding */
    }

    .hero-image {
        max-height: 380px;
    }

    .image-placeholder video {
        max-height: 320px;
    }

    .slideshow-container-full {
        min-height: 450px;
        padding: 0 3rem;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }

    .display-container {
        padding: 1rem 3rem 2.5rem 3rem;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero {
        padding: 6rem 0 3rem;
        background-position: 75% center;
    }

    .hero:before {
        background: rgba(0, 0, 0, 0.15);
    }

    .image-placeholder {
        width: 95%;
        padding: 20px 20px 10px 20px;
        /* Reduced bottom padding */
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }

    .hero-image {
        max-height: 320px;
    }

    .image-placeholder video {
        max-height: 260px;
    }

    .what-we-do {
        padding: 1.2rem 0;
        margin: 0 0.5rem;
        background: transparent;
    }

    /* footer styles removed */

    .hero-text {
        padding: 0 1.5rem;
    }

    .hero-image {
        padding: 0 1.5rem;
    }

    .slideshow-container-full {
        min-height: 400px;
        padding: 0 2rem;
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }

    .display-container {
        padding: 1rem 2rem 2rem 2rem;
    }

    .tool-item {
        width: 70px;
        height: 70px;
        background-color: rgba(255, 255, 255, 0.4);
    }

    .tool-label {
        bottom: -24px;
        font-size: 10px;
    }
}

/* No Formula Section */
.no-formula-section {
    padding: var(--section-padding);
    background: linear-gradient(to right, var(--light-gray) 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.no-formula-section .content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.no-formula-container {
    padding: var(--section-padding);
    background-color: #9054b9;
    position: relative;
    overflow: hidden;
    color: white;
    margin-top: 0;
    /* Ensure no gap between sections */
}

.no-formula-container .content-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 0 5rem;
}

.no-formula-container:after {
    content: '';
    position: absolute;
    width: 0;
    /* Setting to 0 to remove the circle */
    height: 0;
    /* Setting to 0 to remove the circle */
    border-radius: 50%;
    background: rgba(255, 255, 255, 0);
    top: 0;
    right: 0;
    z-index: 0;
}

.formula-text {
    flex: 0.7;
    position: relative;
    z-index: 1;
    padding-left: 3rem;
}

.formula-text h3 {
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.formula-text h3:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background: white;
    bottom: 0;
    left: 0;
}

.formula-text p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    max-width: 800px;
}

.formula-text p b {
    color: #ffeb3b;
    /* Bright yellow color */
    font-weight: 800;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    padding: 0 3px;
    position: relative;
}

/* Add a subtle underline effect */
.formula-text p b::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ffeb3b;
    opacity: 0.7;
}

.formula-image {
    flex: 1.3;
    position: relative;
    z-index: 1;
    max-width: 45%;
    height: auto;
    overflow: hidden;
    opacity: 0;
    transform: translateX(50px);
    align-self: center;
    padding-right: 3rem;
}

.formula-image img {
    width: 100%;
    height: auto;
    display: block;
}

.formula-image.animated {
    animation: slideFromRight 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Floating icons in no-formula-container */
.floating-icons-container {
    flex: 1.3;
    position: relative;
    z-index: 1;
    max-width: 45%;
    height: 350px;
    overflow: visible;
    align-self: center;
    padding-right: 3rem;
    opacity: 0;
    transition: opacity 0.8s ease;
    animation: container-float 15s ease-in-out infinite alternate;
}

@keyframes container-float {
    0% {
        transform: rotate(-2deg);
    }

    50% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(2deg);
    }
}

.floating-icon {
    position: absolute;
    width: auto;
    height: auto;
    transform-origin: center;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

.floating-icon img {
    width: 100%;
    height: 100%;
    filter: none;
    transition: filter 0.3s ease;
}

.floating-icon:hover img {
    filter: drop-shadow(0 6px 12px rgba(100, 44, 144, 0.4));
}

/* Individual icon properties */
.icon-1 {
    width: 160px;
    height: 160px;
    top: -10%;
    left: 35%;
    transform: rotate(-15deg);
    animation-name: float-1;
    animation-duration: 5.7s;
    z-index: 3;
}

.icon-2 {
    width: 135px;
    height: 135px;
    top: 10%;
    left: 70%;
    transform: rotate(12deg);
    animation-name: float-2;
    animation-duration: 6.8s;
    z-index: 2;
}

.icon-3 {
    width: 150px;
    height: 150px;
    top: 15%;
    left: 5%;
    transform: rotate(-20deg);
    animation-name: float-3;
    animation-duration: 8.2s;
    z-index: 4;
}

.icon-4 {
    width: 450px;
    height: 300px;
    /* Adjusted for proper aspect ratio */
    bottom: -10%;
    right: -5%;
    left: auto;
    transform: rotate(0deg);
    animation-name: float-4;
    animation-duration: 6.5s;
    z-index: 2;
}

/* Floating animations */
@keyframes float-1 {
    0% {
        transform: translateY(0) rotate(-15deg);
    }

    50% {
        transform: translateY(-30px) rotate(-8deg);
    }

    100% {
        transform: translateY(-12px) rotate(-18deg);
    }
}

@keyframes float-2 {
    0% {
        transform: translateY(0) rotate(12deg);
    }

    50% {
        transform: translateY(20px) rotate(18deg);
    }

    100% {
        transform: translateY(5px) rotate(8deg);
    }
}

@keyframes float-3 {
    0% {
        transform: translateY(-20deg) rotate(-25deg);
    }

    50% {
        transform: translateY(-30px) rotate(-25deg);
    }

    100% {
        transform: translateY(-15px) rotate(-20deg);
    }
}

@keyframes float-4 {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-25px) rotate(0deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

/* Media queries for floating icons */
@media (max-width: 992px) {
    .floating-icons-container {
        max-width: 100%;
        height: 300px;
        margin-top: 2rem;
        padding-right: 0;
        animation: container-float 12s ease-in-out infinite alternate;
    }

    .icon-1 {
        left: 25%;
    }

    .icon-2 {
        left: 65%;
    }

    .icon-3 {
        left: 45%;
        top: 65%;
    }

    .icon-4 {
        right: 3%;
        left: auto;
        bottom: 3%;
        width: 100px;
        height: 67px;
        /* Maintained aspect ratio */
    }
}

@media (max-width: 768px) {
    .floating-icons-container {
        height: 250px;
        animation: container-float 10s ease-in-out infinite alternate;
    }

    .icon-1 {
        width: 85px;
        height: 85px;
        top: 20%;
        left: 20%;
    }

    .icon-2 {
        width: 55px;
        height: 55px;
        left: 60%;
    }

    .icon-3 {
        width: 75px;
        height: 75px;
        left: 40%;
    }

    .icon-4 {
        width: 80px;
        height: 53px;
        /* Maintained aspect ratio */
        right: 3%;
        left: auto;
        bottom: 5%;
    }
}

@media (max-width: 576px) {
    .floating-icons-container {
        height: 200px;
        animation: container-float 8s ease-in-out infinite alternate;
    }

    .icon-1 {
        width: 70px;
        height: 70px;
        top: 20%;
        left: 15%;
    }

    .icon-2 {
        width: 45px;
        height: 45px;
        left: 55%;
        top: 20%;
    }

    .icon-3 {
        width: 60px;
        height: 60px;
        left: 35%;
        top: 60%;
    }

    .icon-4 {
        width: 60px;
        height: 40px;
        /* Maintained aspect ratio */
        right: 5%;
        left: auto;
        bottom: 5%;
    }
}

/* Real Business Section */
.real-business-section {
    padding: 2rem 2rem;
    /* Reduced from var(--section-padding) which was 6rem 2rem */
    background: #dccef8;
    /* Darker purple background */
    position: relative;
    overflow: hidden;
    /* Removing the background-image with dots */
}

.real-business-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0));
    pointer-events: none;
    z-index: 1;
}

.real-business-section:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    /* Removing old circle definition */
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
    /* So it doesn't interfere with clicking */
}

/* Adding bottom gradient overlay */
.real-business-section .bottom-fade {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
    pointer-events: none;
    z-index: 1;
}

.real-business-content {
    flex: 1;
    position: relative;
    z-index: 2;
    /* Increased from 1 to be above gradient overlays */
    width: 100%;
    padding: 2rem;
    background-color: transparent;
    /* Changed from rgba(255, 255, 255, 0.7) to transparent */
    border-radius: var(--border-radius);
    box-shadow: none;
    /* Removed box shadow */
}

.animate-item {
    opacity: 0;
    transform: translateY(30px);
}

.animate-item.animated:nth-child(1) {
    animation: slideFromBottom 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-item.animated:nth-child(2) {
    animation: slideFromBottom 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards;
}

.animate-item.animated:nth-child(3) {
    animation: slideFromBottom 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s forwards;
}

@keyframes slideFromBottom {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideFromRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Media queries for responsive design */
@media (max-width: 992px) {
    .no-formula-container .content-wrapper {
        flex-direction: column;
        gap: 2rem;
    }

    .formula-image {
        max-width: 100%;
    }
}

@media (max-width: 768px) {

    .no-formula-container .content-wrapper,
    .real-business-section .content-wrapper {
        gap: 2rem;
    }
}

/* Solved Section */
.solved-section {
    padding: var(--section-padding);
    text-align: center;
    background: linear-gradient(170deg, #ffffff 0%, #f9f5ff 100%);
    position: relative;
    overflow: hidden;
}

.solved-section:before {
    content: '';
    position: absolute;
    width: 0;
    /* Setting to 0 to remove the bottom left circle */
    height: 0;
    /* Setting to 0 to remove the bottom left circle */
    border-radius: 50%;
    background: rgba(100, 44, 144, 0);
    bottom: 0;
    left: 0;
}

.solved-section:after {
    content: '';
    position: absolute;
    width: 0;
    /* Setting to 0 to remove the top right circle */
    height: 0;
    /* Setting to 0 to remove the top right circle */
    border-radius: 50%;
    background: rgba(100, 44, 144, 0);
    top: 0;
    right: 0;
}

.solved-section .content-wrapper {
    position: relative;
    z-index: 1;
}

.solved-section p:first-of-type {
    margin-bottom: 2rem;
}

.solved-section p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Puzzle icons for solved section */
.puzzle-icon {
    position: absolute;
    background-image: url('../../icons/puzzle-piece.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    z-index: 1;
    filter: brightness(0) saturate(100%) invert(40%) sepia(40%) saturate(1500%) hue-rotate(251deg) brightness(88%) contrast(95%);
    opacity: 0;
    transform: translateY(100px);
}

/* 3D Puzzle floating icon */
.puzzle-3d {
    position: absolute;
    bottom: 5%;
    left: 8%;
    right: auto;
    top: auto;
    width: 180px;
    height: 180px;
    z-index: 2;
    animation: float-puzzle-3d 8s ease-in-out infinite alternate;
    transform-origin: center;
}

@keyframes float-puzzle-3d {
    0% {
        transform: translateY(0) rotate(15deg);
    }

    50% {
        transform: translateY(-30px) rotate(15deg);
    }

    100% {
        transform: translateY(-10px) rotate(15deg);
    }
}

/* Responsive adjustments for 3D puzzle */
@media (max-width: 992px) {
    .puzzle-3d {
        width: 150px;
        height: 150px;
        bottom: 8%;
        left: 8%;
        right: auto;
        top: auto;
    }
}

@media (max-width: 768px) {
    .puzzle-3d {
        width: 120px;
        height: 120px;
        bottom: 10%;
        left: 10%;
        right: auto;
        top: auto;
    }
}

@media (max-width: 576px) {
    .puzzle-3d {
        width: 90px;
        height: 90px;
        bottom: 12%;
        left: 12%;
        right: auto;
        top: auto;
    }
}

.puzzle-small {
    width: 100px;
    height: 100px;
    top: 50px;
    left: 250px;
    transform: translateY(100px) rotate(-15deg);
    transition: opacity 0.8s, transform 0.8s;
}

.puzzle-large {
    width: 250px;
    height: 250px;
    bottom: -60px;
    right: 50px;
    transform: translateY(100px) rotate(15deg);
    transition: opacity 0.8s, transform 0.8s;
    transition-delay: 0.5s;
}

.puzzle-small.animated {
    opacity: 0.5;
    transform: translateY(0) rotate(-15deg);
}

.puzzle-large.animated {
    opacity: 0.5;
    transform: translateY(0) rotate(15deg);
}

@keyframes floatInFromBottom {
    0% {
        opacity: 0;
        transform: translateY(100px);
    }

    100% {
        opacity: 0.5;
        transform: translateY(0);
    }
}

/* Portfolio Button */
.portfolio-button {
    text-align: center;
    padding: 3rem 2rem 5rem;
    background: #f9f0ff;
    /* Changed to a very light purple background */
    position: relative;
}

.portfolio-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="2" fill="%23642c90" opacity="0.07"/></svg>');
    opacity: 0.3;
}

.btn {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    background: var(--primary-gradient);
    color: var(--white);
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 10px rgba(100, 44, 144, 0.3);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 100%);
    z-index: -1;
    transition: all 0.6s ease;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(100, 44, 144, 0.4);
    color: var(--white);
}

.btn:hover:before {
    left: 100%;
}

.portfolio-button p {
    color: var(--light-text);
    position: relative;
    z-index: 1;
}

/* Trust Section */
.trust-section {
    padding: 3rem 2rem 0;
    /* Reduced top padding from 6rem to 3rem */
    text-align: center;
    background-color: #ffffff;
    position: relative;
    overflow-x: hidden;
}

.trust-section:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: none;
    opacity: 0;
}

/* Trust section floating icons */
.trust-star-icon {
    position: absolute;
    bottom: auto;
    left: 15%;
    right: auto;
    top: 40%;
    width: 120px;
    height: 120px;
    z-index: 2;
    animation: float-trust-star 7s ease-in-out infinite alternate;
    /* Changed from 9s to 7s */
    transform-origin: center;
}

.trust-rating-icon {
    position: absolute;
    bottom: auto;
    left: auto;
    right: 15%;
    top: 20%;
    width: 140px;
    height: 140px;
    z-index: 2;
    animation: float-trust-rating 5s ease-in-out infinite alternate;
    /* Changed from 7s to 5s */
    transform-origin: center;
}

@keyframes float-trust-star {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-25px) rotate(0deg);
    }

    100% {
        transform: translateY(-10px) rotate(0deg);
    }
}

@keyframes float-trust-rating {
    0% {
        transform: translateY(0) rotate(5deg);
    }

    60% {
        transform: translateY(-30px) rotate(-2deg);
    }

    100% {
        transform: translateY(-15px) rotate(8deg);
    }
}

/* Responsive adjustments for trust section icons */
@media (max-width: 992px) {

    .trust-star-icon,
    .trust-rating-icon {
        width: 100px;
        height: 100px;
    }

    .trust-star-icon {
        left: 10%;
    }

    .trust-rating-icon {
        right: 10%;
    }
}

@media (max-width: 768px) {

    .trust-star-icon,
    .trust-rating-icon {
        width: 80px;
        height: 80px;
    }

    .trust-star-icon {
        left: 5%;
        top: 45%;
    }

    .trust-rating-icon {
        right: 5%;
        top: 25%;
    }
}

@media (max-width: 576px) {

    .trust-star-icon,
    .trust-rating-icon {
        width: 60px;
        height: 60px;
    }
}

.client-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 3rem;
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.client-logo {
    width: 180px;
    height: 100px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--dark-gray);
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    overflow: hidden;
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.client-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.client-logo:hover img {
    transform: scale(1.05);
}

/* Help Section */
.help-section {
    padding: 3rem 2rem 10rem;
    text-align: center;
    background-color: var(--white);
    position: relative;
    overflow: visible;
}

.help-section:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: url('data:image/svg+xml;utf8,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M0,0 L20,0 L20,20 L0,20 L0,0 Z M2,2 L2,18 L18,18 L18,2 L2,2 Z" fill="%23642c90" fill-rule="nonzero" opacity="0.03"/></svg>');
    opacity: 0.5;
}

.help-section:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    /* Setting width to 0 to remove the circle */
    height: 0;
    /* Setting height to 0 to remove the circle */
    background: var(--primary-color);
    opacity: 0;
    border-top-right-radius: 100%;
}

.help-section .content-wrapper {
    position: relative;
    z-index: 5;
}

.help-section p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Team pointing image */
.team-pointing-image {
    position: absolute;
    width: 350px;
    height: 350px;
    bottom: -120px;
    right: 80px;
    background-image: url('../../icons/high-five.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    z-index: 1;
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 0.8s, transform 0.8s;
}

.team-pointing-image.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Services Section - Services Slider */
.services-section {
    padding: 0 0 0;
    /* Remove bottom padding as we're using fixed height */
    text-align: center;
    background-color: var(--white);
    position: relative;
    z-index: 2;
    overflow: hidden;
    height: 88vh;
    /* Change to 88vh as requested */
}

.services-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(100, 44, 144, 0.03) 0%, rgba(255, 255, 255, 0) 50%);
}

.services-section .content-wrapper {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Service carousel styles */
.carousel {
    width: 100%;
    height: 88vh;
    /* Match the section height */
    min-height: 500px;
    overflow: hidden;
    position: relative;
    margin: 0;
    /* Remove top margin since the heading is now inside */
    z-index: 10;
    /* Add explicit z-index */
}

/* Add styles for h2 inside carousel list */
.carousel .list h2 {
    position: absolute;
    top: 3rem;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 20;
    /* Higher than carousel items */
    margin-top: 0;
    color: var(--primary-color);
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
    /* Add text shadow for better visibility */
    padding: 1rem 0;
}

.carousel .list {
    height: 100%;
    position: relative;
    z-index: 5;
    /* Add explicit z-index */
}

.carousel .list::before {
    position: absolute;
    width: var(--w-image, 500px);
    height: 100%;
    content: '';
    top: 0;
    left: calc(100% - calc(var(--w-image, 500px) * var(--calculate, 1.5)));
    border-left: none;
    /* Remove the border causing the white line */
    border-right: none;
    /* Remove the border causing the white line */
    z-index: 10;
    pointer-events: none;
}

.carousel .list::after {
    position: absolute;
    top: 50px;
    left: 50px;
    content: '';
    background-color: var(--primary-color);
    width: 400px;
    height: 300px;
    z-index: 10;
    pointer-events: none;
    border-radius: 20px 50px 110px 230px;
    filter: blur(150px);
    opacity: .2;
}

.carousel .list .item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Base z-index for items */
    transition: opacity 0.5s ease, transform 0.5s ease;
    /* Smooth transitions */
    opacity: 0;
    /* Start invisible */
    will-change: opacity, transform;
    /* Optimize for animations */
    backface-visibility: hidden;
    /* Prevent flickering in some browsers */
    transform: translateZ(0);
    /* Force GPU acceleration */
}

.carousel .list .item .image {
    width: var(--w-image, 500px);
    height: 100%;
    position: absolute;
    top: 0;
    left: calc(100% - calc(var(--w-image, 500px) * var(--calculate, 1.5)));
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: 500;
}

.carousel .list .item .image i {
    color: var(--primary-color);
    margin-bottom: 20px;
    filter: drop-shadow(0 10px 20px rgba(100, 44, 144, 0.3));
}

.carousel .list .item .image figcaption {
    font-weight: bold;
    font-size: 1.3em;
    text-align: center;
    margin-bottom: 30px;
    width: 70%;
    color: var(--primary-color);
}

.carousel .list .item .main-content {
    height: 100%;
    display: grid;
    grid-template-columns: calc(100% - calc(var(--w-image, 500px) * var(--calculate, 1.5)));
    margin: 0 150px 0 150px;
    /* Add horizontal margins to create white gaps between cards and screen edges */
    border-radius: 80px;
}

.carousel .list .item .main-content .content {
    padding: 180px 60px 20px 80px;
    text-align: left;
}

.carousel .list .item .main-content .content h3 {
    font-size: 3em;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-top: 2rem;
    /* Add additional top padding */
}

.carousel .list .item .main-content .content .description {
    font-size: 1.2em;
    color: var(--text-color);
    margin: 1rem 0;
}

/* Navigation arrows for Services Carousel */
.arrows {
    position: absolute;
    top: 50%;
    /* Position vertically centered */
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    /* Position buttons on opposite sides */
    padding: 0;
    /* Remove horizontal padding */
    z-index: 60;
    /* Ensure arrows are above content */
    transform: translateY(-50%);
    /* Center vertically */
    pointer-events: none;
    /* Prevent clicks on the container */
    height: 70%;
    /* Make the arrows container take up 70% of the section height */
}

.arrows button {
    background-color: rgba(255, 255, 255, 0.15);
    /* Light white transparent background for glassmorphism */
    border: none;
    color: rgba(70, 70, 70, 0.8);
    font-size: 1.3rem;
    font-weight: bold;
    width: 60px;
    /* Fixed width */
    height: 100%;
    /* Make the button fill the full height of the arrows container */
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
    /* Remove rounded corners on the outer sides */
    display: flex;
    justify-content: center;
    align-items: center;
    outline: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    pointer-events: auto;
    /* Re-enable pointer events on buttons */
}

.arrows button:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.05));
    border-radius: 0;
    z-index: -1;
}

/* Icon styling for hollow/dented effect */
.arrows button i {
    color: rgba(100, 100, 100, 0.9);
    /* Darker grey color */
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
    position: relative;
    z-index: 2;
    font-size: 1.6rem;
}

.arrows button:hover {
    background-color: rgba(255, 255, 255, 0.25);
    /* Slightly increase opacity on hover */
    box-shadow: 0 12px 30px rgba(100, 44, 144, 0.15);
    /* Stronger shadow on hover */
    transform: translateY(-3px);
    /* Subtle lift effect on hover */
    color: rgba(50, 50, 50, 0.9);
    width: 80px;
    /* Stretch wider on hover instead of floating up */
    transform: none;
    /* Remove the floating up effect */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.arrows button:hover i {
    color: rgba(80, 80, 80, 1);
    /* Darker on hover */
}

.arrows button:active {
    transform: scale(0.95);
    /* Slight scale down when clicked */
    background-color: rgba(255, 255, 255, 0.35);
    /* Brighter background when clicked */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    transition: all 0.1s ease;
    /* Faster transition for click effect */
    width: 70px;
    /* Return to a middle width when clicked */
}

.arrows button:active i {
    transform: scale(0.9);
    /* Scale down the icon when clicked */
    color: var(--primary-color);
    /* Change color to primary when clicked for feedback */
}

/* Media queries for responsive design */
@media screen and (max-width: 768px) {
    .arrows {
        padding: 0;
        height: 70%;
        /* Maintain 70% height on smaller screens */
    }

    .arrows button {
        width: 50px;
        /* Default width for smaller screens */
        height: 100%;
        /* Maintain full height of container */
        font-size: 1.1rem;
        border-radius: 0;
        /* Reset border radius */
    }

    .arrows button:hover {
        width: 65px;
        /* Smaller width increase on hover for mobile */
    }

    .arrows button:active {
        width: 55px;
        /* Middle width when clicked on mobile */
    }

    /* Maintain outer corner radius on mobile */
    .arrows button:first-child {
        border-top-right-radius: 8px;
        border-bottom-right-radius: 8px;
    }

    .arrows button:last-child {
        border-top-left-radius: 8px;
        border-bottom-left-radius: 8px;
    }

    .arrows button:first-child:before {
        border-top-right-radius: 8px;
        border-bottom-right-radius: 8px;
    }

    .arrows button:last-child:before {
        border-top-left-radius: 8px;
        border-bottom-left-radius: 8px;
    }

    .arrows button i {
        font-size: 1.4rem;
    }
}

@media screen and (max-width: 576px) {
    .arrows button {
        width: 45px;
        /* Default width for smallest screens */
        height: 100%;
        /* Maintain full height of container */
        border-radius: 0;
        /* Reset border radius */
    }

    .arrows button:hover {
        width: 55px;
        /* Smaller width increase on hover for smallest screens */
    }

    .arrows button:active {
        width: 50px;
        /* Middle width when clicked on smallest screens */
    }

    /* Maintain outer corner radius on smallest screens */
    .arrows button:first-child {
        border-top-right-radius: 6px;
        border-bottom-right-radius: 6px;
    }

    .arrows button:last-child {
        border-top-left-radius: 6px;
        border-bottom-left-radius: 6px;
    }

    .arrows button:first-child:before {
        border-top-right-radius: 6px;
        border-bottom-right-radius: 6px;
    }

    .arrows button:last-child:before {
        border-top-left-radius: 6px;
        border-bottom-left-radius: 6px;
    }

    .arrows button i {
        font-size: 1.2rem;
    }
}

.carousel .list .item {
    display: none;
}

.carousel .list .item.active,
.carousel .list .item.other_1,
.carousel .list .item.other_2 {
    display: block;
    opacity: 1;
    /* Make visible when active or adjacent */
    transition: opacity 0.5s ease, transform 0.5s ease;
    /* Synchronized transitions */
}

/* Prevent z-index flicker by setting explicit indexes */
.carousel .list .item.active {
    z-index: 10;
    /* Higher z-index for active item */
    transition: opacity 0.5s ease-in-out;
}

.carousel .list .item.other_1 {
    pointer-events: none;
    z-index: 5;
    /* Middle z-index for other_1 */
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.carousel .list .item.other_2 {
    pointer-events: none;
    z-index: 3;
    /* Lower z-index for other_2 */
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.carousel .list .item.active .main-content {
    animation: showContent 0.8s ease-in-out 1 forwards;
}

@keyframes showContent {
    from {
        clip-path: circle(0% at 70% 50%);
    }

    to {
        clip-path: circle(100% at 70% 50%);
    }
}

.next .item.other_1 {
    z-index: 1;
}

.next .item .image i,
.next .item .image figcaption {
    animation: effectNext 0.5s ease-in-out 1 forwards;
}

@keyframes effectNext {
    from {
        transform: translateX(calc(var(--transform-from)));
        opacity: 1;
    }

    to {
        transform: translateX(calc(var(--transform-from) - var(--w-image, 500px)));
        opacity: 1;
    }
}

.next .item.active .image {
    --transform-from: var(--w-image, 500px);
}

.next .item.other_1 .image {
    z-index: 3;
    --transform-from: 0px;
    overflow: hidden;
}

.next .item.other_2 .image {
    z-index: 3;
    --transform-from: calc(var(--w-image, 500px) * 2);
}

/* prev */
.prev .list .item .image i,
.prev .list .item .image figcaption {
    animation: effectPrev 0.5s ease-in-out 1 forwards;
}

@keyframes effectPrev {
    from {
        transform: translateX(calc(var(--transform-from)));
        opacity: 1;
    }

    to {
        transform: translateX(calc(var(--transform-from) + var(--w-image, 500px)));
        opacity: 1;
    }
}

.prev .list .item.active .image {
    --transform-from: calc(var(--w-image, 500px) * -1);
    overflow: hidden;
}

.prev .list .item.other_1 .image {
    --transform-from: 0px;
    z-index: 3;
}

.prev .list .item.other_2 .image {
    z-index: 3;
    --transform-from: var(--w-image, 500px);
}

.prev .list .item.other_2 .main-content {
    z-index: 1;
}

/* Responsive styles */
@media screen and (max-width: 1200px) {
    :root {
        --w-image: 400px;
        --calculate: 1.6;
    }

    .carousel .list .item .main-content .content h3 {
        font-size: 2.5em;
    }

    .carousel .list .item .main-content .content .description {
        font-size: 1.1em;
    }
}

@media screen and (max-width: 992px) {
    :root {
        --w-image: 350px;
        --calculate: 1.7;
    }

    .carousel {
        height: 60vh;
    }

    .carousel .list .item .image {
        justify-content: center;
    }

    .carousel .list .item .image figcaption {
        font-size: 1.1em;
    }

    .carousel .list .item .main-content .content {
        padding: 130px 40px 20px 60px;
    }

    .carousel .list .item .main-content .content h3 {
        font-size: 2em;
        padding-top: 1.5rem;
        /* Add padding for medium screens */
    }

    .carousel .list .item .main-content .content .description {
        font-size: 1em;
    }

    .arrows {
        padding: 0;
    }
}

@media screen and (max-width: 768px) {
    :root {
        --w-image: 100%;
        --calculate: 1;
    }

    .services-section {
        height: auto;
        min-height: 88vh;
    }

    .carousel {
        height: auto;
        min-height: 80vh;
    }

    .carousel .list {
        height: auto;
    }

    .carousel .list::before,
    .carousel .list::after {
        display: none;
    }

    .carousel .list .item {
        position: relative;
        height: auto;
        display: none;
    }

    .carousel .list .item.active {
        display: block;
    }

    .carousel .list .item .image {
        position: relative;
        left: 0;
        height: 300px;
        padding-top: 60px;
    }

    .carousel .list .item .image figcaption {
        font-size: 1.1em;
        width: 100%;
        text-align: center;
    }

    .carousel .list .item .main-content {
        display: block;
        height: auto;
    }

    .carousel .list .item .main-content .content {
        padding: 80px 30px 40px 30px;
        text-align: center;
    }

    .carousel .list .item .main-content .content h3 {
        font-size: 2em;
        padding-top: 1.2rem;
        /* Add padding for mobile screens */
    }

    .carousel .list .item .main-content .content .description {
        font-size: 0.9em;
    }

    .arrows {
        position: absolute;
        top: 250px;
        /* Position near the middle of the image section */
        left: 0;
        width: 100%;
        padding: 0;
        transform: translateY(0);
        margin-top: 0;
    }

    /* Disable animations on mobile */
    .next .item .image i,
    .next .item .image figcaption,
    .prev .list .item .image i,
    .prev .list .item .image figcaption {
        animation: none;
    }
}

@media screen and (max-width: 576px) {
    .carousel .list .item .image {
        height: 250px;
        padding-top: 40px;
    }

    .carousel .list .item .image i {
        font-size: 4em !important;
    }

    .carousel .list .item .image figcaption {
        font-size: 1em;
    }

    .carousel .list .item .main-content .content {
        padding: 60px 20px 30px 20px;
    }

    .carousel .list .item .main-content .content h3 {
        font-size: 1.6em;
        padding-top: 1rem;
        /* Add padding for smallest screens */
    }

    .carousel .list .item .main-content .content .description {
        font-size: 0.9em;
    }

    .arrows {
        top: 200px;
        /* Adjust for smaller screens */
        padding: 0;
    }
}

/* Redesigned Tools Description Section */
.services-section p {
    max-width: 900px;
    margin: 0 auto 1rem;
    font-size: 1.1rem;
    text-align: left;
}

.use-case-list {
    list-style-type: none;
    margin: 2rem auto;
    padding: 0;
    max-width: 900px;
    text-align: left;
}

.use-case-question {
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 1.5rem;
    position: relative;
    padding-left: 0;
    margin-bottom: 0.3rem;
}

.bullet {
    display: inline-block;
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-right: 0.5rem;
    position: relative;
    top: 0.05em;
    width: 0.7rem;
    text-align: center;
}

.use-case-answer {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    margin-left: 1.25rem;
    /* Fine-tuned to match exactly where text starts */
    line-height: 2.2rem;
}

/* Footer styles removed: now handled by footer.html inline styles */

/* Mobile Menu */

.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    position: relative;
    z-index: 1100;
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.mobile-menu-toggle i {
    display: block;
    color: inherit;
    transition: transform 0.3s ease, color 0.3s ease;
}

header.scrolled .mobile-menu-toggle {
    color: var(--primary-dark);
}

/* Client Logos Slideshow */
.client-logos-container {
    width: 100%;
    max-width: 1000px;
    margin: 3rem auto 0;
    position: relative;
    overflow: hidden;
}

.client-logos-slideshow {
    width: 100%;
    position: relative;
    height: 400px;
}

.client-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: none;
}

.client-slide.active {
    opacity: 1;
    display: block;
    z-index: 2;
}

.client-background {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.client-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(100, 44, 144, 0.3), rgba(144, 84, 185, 0.3));
}

.client-slide:nth-child(1) .client-background {
    background-image: url('https://placehold.co/1000x400/f9f5ff/f9f5ff');
}

.client-slide:nth-child(2) .client-background {
    background-image: url('https://placehold.co/1000x400/f5f0fa/f5f0fa');
}

.client-slide:nth-child(3) .client-background {
    background-image: url('https://placehold.co/1000x400/f0ebf5/f0ebf5');
}

.client-slide:nth-child(4) .client-background {
    background-image: url('https://placehold.co/1000x400/ebe6f0/ebe6f0');
}

.client-logo-center {
    position: relative;
    z-index: 2;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.client-logo-center:hover {
    transform: translateY(-5px);
}

.client-logo-center img {
    max-width: 180px;
    max-height: 100px;
    object-fit: contain;
}

.client-nav {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.client-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(100, 44, 144, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.client-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .client-logos-slideshow {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .client-logos-slideshow {
        height: 250px;
    }

    .client-logo-center {
        padding: 1.5rem;
    }

    .client-logo-center img {
        max-width: 140px;
    }
}

/* Client Marquee */
.marquee-container {
    width: 100vw;
    overflow: hidden;
    position: relative;
    margin: 0;
    margin-left: calc(-50vw + 50%);
    box-sizing: border-box;
}

.marquee-wrapper {
    display: flex;
    width: 100%;
    height: 85vh;
    overflow: hidden;
    position: relative;
}

.marquee-content {
    display: flex;
    width: max-content;
}

.marquee-item {
    flex: 0 0 calc(100vw / 3.5);
    height: 85vh;
    margin-right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.marquee-background {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 0;
}

.marquee-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(100, 44, 144, 0.3), rgba(144, 84, 185, 0.3));
    backdrop-filter: blur(2px);
}

.marquee-logo {
    position: relative;
    z-index: 2;
    padding: 3rem;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40vh;
    height: 20vh;
}

.marquee-logo:hover {
    transform: none;
}

.marquee-logo img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

@keyframes marqueeAnimation {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(var(--marquee-distance));
    }
}

/* Responsive adjustments for client marquee */
@media (max-width: 768px) {
    .marquee-wrapper {
        height: 85vh;
    }

    .marquee-item {
        flex: 0 0 calc(100vw / 2.5);
        height: 85vh;
        margin-right: 0;
        padding: 2rem;
    }

    .marquee-logo {
        padding: 2rem;
        width: 35vh;
        height: 18vh;
    }

    .marquee-logo img {
        max-width: 130px;
        max-height: 65px;
    }
}

@media (max-width: 576px) {
    .marquee-wrapper {
        height: 85vh;
    }

    .marquee-item {
        flex: 0 0 calc(100vw / 1.5);
        height: 85vh;
        margin-right: 0;
        padding: 1.5rem;
    }

    .marquee-logo {
        padding: 1.5rem;
        width: 30vh;
        height: 15vh;
    }

    .marquee-logo img {
        max-width: 110px;
        max-height: 55px;
    }
}

/* Industry Marquee */
.industry-marquee-container {
    width: 100vw;
    margin: 3rem 0 1rem;
    overflow: hidden;
    margin-left: calc(-50vw + 50%);
}

.industry-row {
    width: 100%;
    overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
    height: 60px;
}

.industry-content {
    display: flex;
    align-items: center;
    will-change: transform;
    position: absolute;
    left: 0;
    width: max-content;
    height: 100%;
    /* Animation will be set via JavaScript for perfect looping */
}

.industry-rtl {
    animation: industryRtl 50s linear infinite;
}

.industry-ltr {
    animation: industryLtr 50s linear infinite;
}

.industry-item {
    flex-shrink: 0;
    padding: 0.8rem 1.5rem;
    margin: 0 0.6rem;
    background-color: rgba(100, 44, 144, 0.08);
    border-radius: 50px;
    color: var(--primary-color);
    font-weight: 500;
    white-space: nowrap;
}

.industry-item:hover {
    background-color: rgba(100, 44, 144, 0.08);
    color: var(--primary-color);
    transform: none;
    box-shadow: none;
}

@keyframes industryRtl {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes industryLtr {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .industry-item {
        padding: 0.7rem 1.2rem;
        margin: 0 0.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .industry-item {
        padding: 0.6rem 1rem;
        margin: 0 0.4rem;
        font-size: 0.85rem;
    }
}

/* Responsive styles */
@media (max-width: 768px) {
    .services-section p {
        font-size: 1rem;
        max-width: 90%;
    }

    .use-case-list {
        max-width: 90%;
    }
}

@media (max-width: 576px) {
    .services-section p {
        font-size: 0.95rem;
    }
}

/* Flying Icons Animation */
.tech-section {
    position: relative;
    overflow-x: hidden;
}

.icon-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    z-index: 1;
    pointer-events: none;
}

.tech-section .content-wrapper {
    position: relative;
}

.tech-section .content-wrapper h2,
.tech-section .content-wrapper p {
    position: relative;
    z-index: 5;
}

.icon {
    position: absolute;
    width: 40px;
    height: 40px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    filter: invert(22%) sepia(90%) saturate(1048%) hue-rotate(260deg) brightness(85%) contrast(85%);
    will-change: transform, opacity;
    transform-origin: center;
}

/* Animation keyframes for left side icons */
@keyframes throwFromLeft {
    0% {
        transform: translateX(-100px) translateY(var(--start-y)) rotate(0deg) scale(0.5);
        opacity: 0;
    }

    100% {
        transform: translateX(var(--end-x)) translateY(var(--end-y)) rotate(var(--end-rotation)) scale(var(--end-scale));
        opacity: 0.7;
    }
}

/* Animation keyframes for right side icons */
@keyframes throwFromRight {
    0% {
        transform: translateX(calc(100vw + 100px)) translateY(var(--start-y)) rotate(0deg) scale(0.5);
        opacity: 0;
    }

    100% {
        transform: translateX(var(--end-x)) translateY(var(--end-y)) rotate(var(--end-rotation)) scale(var(--end-scale));
        opacity: 0.7;
    }
}

/* Update icon classes to only animate when .animate class is added */
.icon-left.animate {
    animation: throwFromLeft 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.icon-right.animate {
    animation: throwFromRight 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Individual icon delays */
.icon.animate:nth-child(1) {
    animation-delay: 0.05s;
}

.icon.animate:nth-child(2) {
    animation-delay: 0.15s;
}

.icon.animate:nth-child(3) {
    animation-delay: 0.25s;
}

.icon.animate:nth-child(4) {
    animation-delay: 0.1s;
}

.icon.animate:nth-child(5) {
    animation-delay: 0.2s;
}

.icon.animate:nth-child(6) {
    animation-delay: 0.3s;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .icon {
        width: 30px;
        height: 30px;
    }

    .icon-container {
        height: 180px;
    }
}

@media (max-width: 576px) {
    .icon {
        width: 25px;
        height: 25px;
    }

    .icon-container {
        height: 160px;
    }
}

/* Real business content styles */
.real-business-content ul {
    list-style-type: none;
}

.real-business-content ul li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

.real-business-content ul li:before {
    content: "✓";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Two-column layout in real-business-content */
.two-columns {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
}

.column {
    flex: 1;
}

.divider {
    width: 1px;
    align-self: stretch;
    background: linear-gradient(to bottom, rgba(100, 44, 144, 0.1), var(--primary-color), rgba(100, 44, 144, 0.1));
}

.real-business-content h4 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.real-business-content h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    /* Reduced from 2.5rem to match smaller section padding */
    position: relative;
    padding-bottom: 1.2rem;
    text-align: center;
    line-height: 1.7;
    text-shadow: 0 2px 5px rgba(100, 44, 144, 0.15);
    /* Add subtle purple shadow */
}

.real-business-content h3:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: var(--primary-gradient);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Responsive adjustments for two-column layout */
@media (max-width: 768px) {
    .two-columns {
        flex-direction: column;
        gap: 2rem;
    }

    .divider {
        width: 100%;
        height: 1px;
        margin: 0.5rem 0;
        background: linear-gradient(to right, rgba(100, 44, 144, 0.1), var(--primary-color), rgba(100, 44, 144, 0.1));
    }
}

/* Business rows layout */
.business-row {
    display: flex;
    margin-bottom: 2.5rem;
    align-items: center;
    gap: 2rem;
    background-color: rgba(255, 255, 255, 0.8);
    /* Increased opacity from 0.6 to 0.8 for more white appearance */
    border-radius: var(--border-radius);
    padding: 1.8rem;
    backdrop-filter: blur(12px);
    /* Keeping the blur effect */
    -webkit-backdrop-filter: blur(12px);
    /* Match the standard property */
    border: 1px solid rgba(255, 255, 255, 0.9);
    /* Increased border opacity for more visible white edge */
    box-shadow: 0 10px 30px rgba(100, 44, 144, 0.2);
    /* Keeping the enhanced shadow */
}

/* Remove hover effects */
.business-row:hover {}

.business-image {
    flex: 0.8;
    max-width: 40%;
    position: relative;
    opacity: 0;
    transform: translateX(-50px);
    transition: none;
    /* Remove transition */
}

.business-image:hover {}

.business-image.animated {
    animation: slideFromLeft 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.business-image.animated:hover {}

.business-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 25px rgba(100, 44, 144, 0.15);
    /* Softer shadow with purple tint */
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.8);
    /* Add subtle white border */
}

.business-text {
    flex: 1.2;
    padding: 0 1rem;
}

.business-text h4 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(20px);
}

.business-text p {
    opacity: 0;
    transform: translateY(20px);
}

/* Business section animations */
.business-image.animated {
    animation: slideFromLeft 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.business-text h4.animated {
    animation: slideFromBottom 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0s forwards;
}

.business-text p.animated {
    animation: slideFromBottom 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s forwards;
}

/* Animation for second row (face-to-face section) */
.business-row:nth-child(2) .business-text h4.animated {
    animation: slideFromBottom 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s forwards;
}

.business-row:nth-child(2) .business-text p.animated {
    animation: slideFromBottom 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s forwards;
}

/* Media queries for responsive design */
@media (max-width: 992px) {
    .business-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.3rem;
        /* Reduced from 1.5rem to match smaller section padding */
    }

    .business-image {
        max-width: 100%;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    .business-row {
        gap: 1.5rem;
        padding: 1rem;
        /* Reduced from 1.2rem to match smaller section padding */
        margin-bottom: 2rem;
        /* Reduced from 2.5rem for smaller screens */
    }
}

@media (max-width: 576px) {
    .business-row {
        padding: 0.8rem;
        /* Reduced from 1rem to match smaller section padding */
        margin-bottom: 1.5rem;
        /* Reduced from 2rem for smallest screens */
    }
}

.business-row:nth-child(2) .business-image,
.business-row:nth-child(2) .business-text h4,
.business-row:nth-child(2) .business-text p {
    opacity: 0;
}

/* Text Scramble Effect */
.scramble-text {
    display: inline-block;
    position: relative;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.scramble-text.active {
    opacity: 1;
}

.scramble-char {
    display: inline-block;
    color: var(--primary-color);
    font-family: monospace;
}

.scramble-placeholder {
    display: inline-block;
    opacity: 0;
    width: 0.5em;
}

/* Tech description animation */
.tech-description {
    position: relative;
    opacity: 0;
    transform: translateY(90px);
    transition: opacity 0s, transform 0s;
}

.tech-description.animated {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1.5s ease, transform 1.5s ease;
}

/* Animation for business heading */
.animate-business-heading {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0s, transform 0s;
}

.animate-business-heading.animated {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1s ease, transform 1s ease;
}

/* Animation for trust-section and help-section elements */
.trust-section h2,
.trust-section p,
.help-section h2,
.help-section p,
.services-section h2 {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0s, transform 0s;
}

.trust-section h2.animated,
.trust-section p.animated,
.help-section h2.animated,
.help-section p.animated,
.services-section h2.animated {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1s ease, transform 1s ease;
}

/* Delay for paragraph animations */
.trust-section p.animated,
.help-section p.animated {
    transition-delay: 0.2s;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.puzzle-3d.floating-icon img {
    width: 100%;
    height: 100%;
    filter: none;
    transition: filter 0.3s ease;
}

.puzzle-3d.floating-icon:hover img {
    filter: drop-shadow(0 6px 12px rgba(100, 44, 144, 0.4));
    transform: scale(1.05);
}

/* Services Description Section */
.services-description-section {
    padding: 5rem 2rem 8rem;
    background-color: var(--white);
    position: relative;
    z-index: 1;
    margin-top: 0;
    /* Ensure no gap between sections */
    background-position: bottom;
    background-repeat: no-repeat;
    background-size: 100% auto;
    overflow: visible;
}

.services-description-section .content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

/* Add styles for paragraph tags to match the width of use-case-list */
.services-description-section p {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

/* Floating 3D icons for services-description-section */
.services-description-section .floating-icon {
    position: absolute;
    transform-origin: center;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    z-index: 2;
}

.services-description-section .floating-icon img {
    width: 100%;
    height: 100%;
    filter: none;
    transition: filter 0.3s ease;
}

.services-description-section .floating-icon:hover img {
    filter: drop-shadow(0 6px 12px rgba(100, 44, 144, 0.4));
    transform: scale(1.05);
}

/* Individual services icon properties */
.services-icon-1 {
    width: 130px;
    height: 130px;
    top: 5%;
    /* Moving higher (was 10%) */
    left: 5%;
    transform: rotate(-10deg);
    animation-name: services-float-1;
    animation-duration: 6s;
}

.services-icon-2 {
    width: 250px;
    /* Adjusted for proper aspect ratio */
    height: 175px;
    /* Adjusted for proper aspect ratio (laptop is wider than tall) */
    top: 25%;
    right: 8%;
    transform: rotate(-5deg);
    /* Changed from 5deg to -5deg to flip direction from right to left */
    animation-name: services-float-2;
    animation-duration: 7s;
}

.services-icon-3 {
    width: 240px;
    /* Increased from 200px while maintaining aspect ratio */
    height: 173px;
    /* Increased proportionally (calculated from 240 ÷ 2000 × 1444) */
    bottom: 5%;
    left: 5%;
    transform: rotate(15deg);
    /* Reduced angle from 40deg to 15deg for a more subtle rotation */
    animation-name: services-float-3;
    animation-duration: 5.5s;
}

/* Floating animations for services icons */
@keyframes services-float-1 {
    0% {
        transform: translateY(0) rotate(-10deg);
    }

    50% {
        transform: translateY(-20px) rotate(-5deg);
    }

    100% {
        transform: translateY(-8px) rotate(-12deg);
    }
}

@keyframes services-float-2 {
    0% {
        transform: translateY(0) rotate(-5deg);
        /* Changed from positive to negative */
    }

    50% {
        transform: translateY(-25px) rotate(-8deg);
        /* Changed from positive to negative */
    }

    100% {
        transform: translateY(-10px) rotate(-3deg);
        /* Changed from positive to negative */
    }
}

@keyframes services-float-3 {
    0% {
        transform: translateY(0) rotate(15deg);
        /* Updated to match the new rotation */
    }

    50% {
        transform: translateY(-15px) rotate(18deg);
        /* Slight increase in rotation during animation */
    }

    100% {
        transform: translateY(-6px) rotate(12deg);
        /* Slight decrease in rotation during animation */
    }
}

/* Media queries for responsive services icons */
@media (max-width: 992px) {
    .services-icon-1 {
        width: 120px;
        height: 120px;
        top: 4%;
        /* Adjusted to keep higher position */
        left: 3%;
    }

    .services-icon-2 {
        width: 200px;
        /* Maintaining aspect ratio */
        height: 140px;
        /* Maintaining aspect ratio */
        top: 25%;
        right: 5%;
    }

    .services-icon-3 {
        width: 180px;
        /* Increased from 150px */
        height: 130px;
        /* Maintained aspect ratio */
        bottom: 18%;
        left: 5%;
    }
}

@media (max-width: 768px) {
    .services-icon-1 {
        width: 90px;
        height: 90px;
        top: 3%;
        /* Adjusted to keep higher position */
        left: 2%;
    }

    .services-icon-2 {
        width: 150px;
        /* Maintaining aspect ratio */
        height: 105px;
        /* Maintaining aspect ratio */
        top: 20%;
        right: 3%;
    }

    .services-icon-3 {
        width: 130px;
        /* Increased from 110px */
        height: 94px;
        /* Maintained aspect ratio */
        bottom: 20%;
        left: 3%;
    }
}

@media (max-width: 576px) {
    .services-icon-1 {
        width: 70px;
        height: 70px;
        top: 2%;
        /* Adjusted to keep higher position */
        left: 1%;
    }

    .services-icon-2 {
        width: 100px;
        /* Maintaining aspect ratio */
        height: 70px;
        /* Maintaining aspect ratio */
        top: 18%;
        right: 2%;
    }

    .services-icon-3 {
        width: 95px;
        /* Increased from 80px */
        height: 69px;
        /* Maintained aspect ratio */
        bottom: 22%;
        left: 2%;
    }
}

/* Add border radius only to outer corners */
.arrows button:first-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.arrows button:last-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

/* Apply border radius to pseudo-element for outer corners */
.arrows button:first-child:before {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.arrows button:last-child:before {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

@media screen and (max-width: 992px) {
    .carousel .list .item .main-content {
        margin: 0 45px;
        /* Slightly smaller margins on medium screens */
    }
}

@media screen and (max-width: 768px) {
    .carousel .list .item .main-content {
        display: block;
        height: auto;
        margin: 0 40px;
        /* Smaller margins on mobile screens */
    }
}

@media screen and (max-width: 576px) {
    .carousel .list .item .main-content {
        margin: 0 30px;
        /* Even smaller margins on smallest screens */
    }
}

/* Add multiple decorative circles to real-business-section */
.real-business-section .circle {
    position: absolute;
    border-radius: 50%;
    z-index: 0;
}

.real-business-section .circle-1 {
    width: 380px;
    height: 380px;
    top: 75%;
    right: 3%;
    background: rgba(100, 44, 144, 0.04);
}

.real-business-section .circle-2 {
    width: 320px;
    height: 320px;
    bottom: -180px;
    left: -120px;
    background: rgba(100, 44, 144, 0.035);
}

.real-business-section .circle-3 {
    width: 250px;
    height: 250px;
    top: 5%;
    left: 1%;
    background: rgba(100, 44, 144, 0.028);
}

.real-business-section .circle-4 {
    width: 180px;
    height: 180px;
    bottom: 70%;
    right: 15%;
    background: rgba(100, 44, 144, 0.045);
}

.real-business-section .circle-5 {
    width: 130px;
    height: 130px;
    top: 30%;
    right: 45%;
    background: rgba(100, 44, 144, 0.03);
}

.real-business-section .circle-6 {
    width: 210px;
    height: 210px;
    bottom: 5%;
    left: 45%;
    background: rgba(100, 44, 144, 0.032);
}

/* Repositioning additional circles to avoid overlap */
.real-business-section .circle-7 {
    width: 160px;
    height: 160px;
    top: 55%;
    left: 15%;
    background: rgba(100, 44, 144, 0.025);
}

.real-business-section .circle-8 {
    width: 240px;
    height: 240px;
    bottom: 20%;
    right: 40%;
    background: rgba(100, 44, 144, 0.03);
}

.real-business-section .circle-9 {
    width: 120px;
    height: 120px;
    top: 10%;
    right: 10%;
    background: rgba(100, 44, 144, 0.035);
}

.real-business-section .circle-10 {
    width: 150px;
    height: 150px;
    bottom: 50%;
    left: 60%;
    background: rgba(100, 44, 144, 0.04);
}

/* Media queries for responsive padding in real-business-section */
@media (max-width: 768px) {
    .real-business-section {
        padding: 3rem 1.5rem;
        /* Even smaller padding on tablets */
    }
}

@media (max-width: 576px) {
    .real-business-section {
        padding: 2.5rem 1.2rem;
        /* Smallest padding on mobile */
    }
}

.trust-section h2 {
    padding-top: 0.5rem;
    /* Even smaller top padding for the trust section */
}

.trust-star-icon img,
.trust-rating-icon img {
    width: 100%;
    height: auto;
    opacity: 0.8;
    transition: transform 0.3s ease;
}

.trust-star-icon:hover img,
.trust-rating-icon:hover img {
    transform: scale(1.1);
    opacity: 1;
}

/* Responsive adjustments for bold text in formula-text */
@media (max-width: 768px) {
    .formula-text p b {
        font-weight: 700;
        padding: 0 2px;
    }

    .formula-text p b::after {
        height: 1.5px;
        bottom: -1.5px;
    }
}

@media (max-width: 576px) {
    .formula-text p b {
        font-size: 1.05rem;
    }
}

.trust-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--light-text);
    margin-bottom: 1.5rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Contact Form Section Styles */
.contact-form-section {
    padding: 3rem 2rem 3rem;
    background: rgba(185, 133, 224, 0.1);
    position: relative;
}

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

.contact-heading {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-heading h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
    padding-top: 0;
}

.contact-heading h2:after {
    display: none;
}

.contact-heading h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0;
    text-align: center;
    opacity: 0.9;
}

.contact-footer {
    text-align: center;
    margin-top: 2rem;
}

.contact-footer h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0;
    text-align: center;
    opacity: 0.9;
    line-height: 2;
}

.form-container {
    background: var(--white);
    border-radius: 24px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.form-content {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 3rem;
    padding: 3rem;
}

.form-left {
    min-width: 0;
    background: linear-gradient(135deg, #f8f5ff 0%, #e8e0ff 100%);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.form-left h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: left;
}

.form-left h2:after {
    display: none;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 1;
    justify-content: flex-start;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.form-group label {
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.95rem;
}

.required {
    color: #ff0000;
    margin-left: 0.2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #CCCCCC;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #CCCCCC;
    font-weight: 300;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(100, 44, 144, 0.1);
}

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

.form-group:has(textarea) {
    flex: 1;
}

.attach-files {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.attach-files:hover {
    color: var(--primary-dark);
}

.attach-files i {
    font-size: 1rem;
}

.form-right {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-pic-placeholder {
    width: 50%;
    height: auto;
    border-radius: var(--border-radius);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: var(--white);
    margin: 0 auto;
}

.profile-pic-placeholder span {
    color: var(--text-color);
    font-weight: 500;
    text-align: center;
}

.profile-pic-placeholder img {
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
    object-fit: cover;
}

.process-steps h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
    text-align: left;
}

.process-steps h3:after {
    display: none;
}

.process-steps ol {
    list-style: none;
    counter-reset: step-counter;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.process-steps li {
    counter-increment: step-counter;
    position: relative;
    padding-left: 2.3rem;
    line-height: 1.6;
    color: var(--text-color);
}

.process-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0.2rem;
    width: 1.5rem;
    height: 1.5rem;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}



/* Responsive Design for Contact Form */
@media (max-width: 992px) {
    .contact-heading h2 {
        font-size: 2.2rem;
    }

    .contact-heading h3 {
        font-size: 1.6rem;
    }

    .contact-footer h3 {
        font-size: 1.6rem;
    }

    .form-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }

    .form-left {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .contact-form-section {
        padding: 4rem 1rem;
    }

    .contact-heading h2 {
        font-size: 1.9rem;
    }

    .contact-heading h3 {
        font-size: 1.4rem;
    }

    .contact-footer h3 {
        font-size: 1.4rem;
    }

    .form-content {
        padding: 1.5rem;
    }

    .form-left {
        padding: 1.5rem;
    }

    .form-left h2 {
        font-size: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .profile-pic-placeholder {
        width: 120px;
        height: 120px;
    }

    .process-steps h3 {
        font-size: 1.2rem;
    }

    .process-steps li {
        padding-left: 2.5rem;
    }

    .process-steps li::before {
        width: 1.8rem;
        height: 1.8rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .contact-form-section {
        padding: 3rem 1rem;
    }

    .contact-heading h2 {
        font-size: 1.6rem;
    }

    .contact-heading h3 {
        font-size: 1.2rem;
    }

    .contact-footer h3 {
        font-size: 1.2rem;
    }

    .form-content {
        padding: 1rem;
    }

    .form-left {
        padding: 1rem;
    }

    .form-left h2 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }

    .contact-form {
        gap: 1rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.6rem 0.8rem;
        font-size: 0.95rem;
    }

    .profile-pic-placeholder {
        width: 100px;
        height: 100px;
    }

    .profile-pic-placeholder span {
        font-size: 0.9rem;
    }

    .process-steps h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .process-steps li {
        padding-left: 2rem;
        font-size: 0.95rem;
    }

    .process-steps li::before {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.75rem;
    }
}

/* Automation Page Styles */
.automation-hero {
    background: var(--white);
    color: var(--text-color);
    padding: 8rem 0 0;
    position: relative;
    overflow: hidden;
}

/* Light purple blur background for automation hero */
.automation-hero .automation-hero-blur {
    position: absolute;
    top: 45%;
    right: 8%;
    transform: translate(50%, -50%);
    width: 520px;
    height: 520px;
    background: radial-gradient(circle at 50% 50%, #b39ddb 60%, #ede7f6 100%);
    opacity: 0.45;
    filter: blur(110px);
    z-index: 1;
    pointer-events: none;
    border-radius: 50%;
}

.automation-hero .content-wrapper,
.automation-hero .hero-content,
.automation-hero .hero-image,
.automation-hero .hero-text {
    position: relative;
    z-index: 2;
}

.automation-hero .content-wrapper {
    position: relative;
    z-index: 2;
}

.automation-hero .hero-content {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
}

.automation-hero .hero-text {
    flex: 0 0 calc(60% - 1.5rem);
    max-width: calc(60% - 1.5rem);
}

.automation-hero .hero-image {
    flex: 0 0 calc(40% - 1.5rem);
    max-width: calc(40% - 1.5rem);
    max-height: none;
    /* Ensure container doesn't clip video height */
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 0;
    /* Override generic .hero-image padding */
    margin-top: 0;
    /* Override generic .hero-image negative margin */
    overflow: visible;
    /* Allow full video to be seen (no clipping) */
    transform: translateX(50px);
    opacity: 0;
    animation: slideInFromRight 0.5s ease-out forwards;
    animation-delay: 0.3s;
}

@keyframes slideInFromRight {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.automation-hero .hero-image img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    object-fit: contain;
}

/* Ensure video fits nicely within hero image container on automation page */
.automation-hero .hero-image video {
    width: 75%;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.automation-hero h1 {
    color: var(--primary-color);
    background: none;
    -webkit-text-fill-color: var(--primary-color);
    filter: none;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.automation-hero h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.automation-hero h2:after {
    display: none;
}

/* Automation page header styling - use scrolled colors but transparent background */
body:has(.automation-hero) .logo {
    color: var(--primary-color);
    text-shadow: none;
}

body:has(.automation-hero) .logo img {
    content: url('../../images/SYNCFINITY LOGO (B).png');
    filter: none;
}

body:has(.automation-hero) nav ul li a {
    color: var(--primary-dark);
    text-shadow: none;
}

body:has(.automation-hero) nav ul li a:after {
    background: var(--primary-gradient);
}

body:has(.automation-hero) .mobile-menu-toggle span {
    background-color: var(--primary-color);
}

/* Legal/Terms and AI Portfolio page header styling - match automation page behavior at top */
body:has(.legal-page) .logo,
body.ai-portfolio .logo {
    color: var(--primary-color);
    text-shadow: none;
}

body:has(.legal-page) .logo img,
body.ai-portfolio .logo img {
    content: url('../../images/SYNCFINITY LOGO (B).png');
    filter: none;
}

body:has(.legal-page) nav ul li a,
body.ai-portfolio nav ul li a {
    color: var(--primary-dark);
    text-shadow: none;
}

body:has(.legal-page) nav ul li a:after,
body.ai-portfolio nav ul li a:after {
    background: var(--primary-gradient);
}

body:has(.legal-page) .mobile-menu-toggle span,
body.ai-portfolio .mobile-menu-toggle span {
    background-color: var(--primary-color);
}

/* AI Portfolio has a white top, so the white menu icon would be invisible. */
body.ai-portfolio .mobile-menu-toggle {
    color: var(--primary-dark);
}

/* Portfolio page header styling - use scrolled colors but transparent background */
body:has(main[style*="min-height: 100vh"]) header:not(.scrolled) {
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    border-bottom: none;
}

body:has(main[style*="min-height: 100vh"]) .logo {
    color: var(--primary-color);
    text-shadow: none;
}

body:has(main[style*="min-height: 100vh"]) .logo img {
    content: url('../../images/SYNCFINITY LOGO (B).png');
    filter: none;
}

/* Portfolio page header - ensure purple text for nav links */
body:has(main[style*="min-height: 100vh"]) header nav a {
    color: var(--primary-color);
}

/* Portfolio page header - ensure purple button styling */
body:has(main[style*="min-height: 100vh"]) header .btn-small {
    background-color: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
}

body:has(main[style*="display: flex"]) nav ul li a {
    color: var(--primary-dark);
    text-shadow: none;
}

body:has(main[style*="display: flex"]) nav ul li a:after {
    background: var(--primary-gradient);
}

body:has(main[style*="display: flex"]) .mobile-menu-toggle span {
    background-color: var(--primary-color);
}

/* Terms/Legal page: plain heading (no gradient) */
.legal-page h1 {
    color: var(--primary-color);
    background: none !important;
    background-clip: initial !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: var(--primary-color) !important;
    animation: none !important;
}

.content-rows {
    margin: 3rem 0;
}

.content-row {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100vh;
    margin-bottom: 2rem;
    position: relative;
}

.content-row dotlottie-wc {
    position: absolute;
    bottom: 3rem;
    right: 6rem;
    z-index: 10;
}

/* Second content-row animation (bottom left) */
.content-row-2 dotlottie-wc {
    bottom: 7rem;
    left: 6rem;
    right: auto;
}

/* Mirrored icon for content-row-2 (top right, matching lottie size and offset) */
.content-row-2 .think-icon {
    position: absolute;
    bottom: 12rem;
    right: 3rem;
    width: 210px;
    height: 210px;
    z-index: 10;
}

/* Third content-row animation (top left) */
.content-row-3 dotlottie-wc {
    top: 5rem;
    left: 5rem;
    bottom: auto;
    right: auto;
}

/* Bottom-left icon for content-row-3 */
.content-row-3 .gift-icon {
    position: absolute;
    bottom: 10rem;
    right: 5rem;
    width: 280px;
    height: auto;
    z-index: 10;
}

/* Removed .happy-icon styles (icon no longer used) */

/* Fourth content-row animation (top left) */
.content-row-4 dotlottie-wc {
    top: 5rem;
    left: 3rem;
    bottom: auto;
    right: auto;
}

/* Bottom-right icon for content-row-4 */
.content-row-4 .rating-icon {
    position: absolute;
    bottom: 15rem;
    right: 1rem;
    width: 280px;
    height: auto;
    z-index: 10;
}

/* Bottom-left icon for content-row-4 */
.content-row-4 .presents-icon {
    position: absolute;
    bottom: 8rem;
    left: 13rem;
    width: 180px;
    height: auto;
    z-index: 9;
    transform: rotate(-15deg);
}

.content-row:last-child {
    margin-bottom: 0;
}

.content-row h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.content-row p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.content-row p:last-child {
    margin-bottom: 0;
}

.content-row .image-placeholder {
    display: none;
}

.content-row .image-placeholder img {
    max-width: 100%;
    height: auto;
}

/* Make the customised image bigger */
.content-row .image-placeholder img[src*="customised.png"] {
    transform: scale(1.3);
    max-width: 130%;
}

/* Make the automation image bigger */
.content-row .image-placeholder img[src*="automation."] {
    transform: scale(1.3);
    max-width: 130%;
}

/* Make the demo image bigger */
.content-row .image-placeholder img[src*="demo.png"] {
    transform: scale(1.3);
    max-width: 130%;
}

.content-row ul {
    list-style: none;
    padding: 0;
    margin-bottom: 0;
}

.content-row li {
    position: relative;
    padding-left: 2rem;
    line-height: 2;
    margin-bottom: 1rem;
    text-align: left;
    font-size: 1.5rem !important;
    text-indent: -1rem;
    padding-left: 3rem;
}

.content-row li:last-child {
    margin-bottom: 0;
}

.content-row li:before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.5rem;
}

.content-row h3:after {
    display: none;
}

/* Floating down arrows between content rows */
.content-row-arrow {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 20;
}

.content-row-arrow:hover {
    transform: translateX(-50%) scale(1.1);
}

.content-row-arrow i {
    color: black;
    font-size: 5rem;
    animation: floatUpDown 2s ease-in-out infinite;
    transition: color 0.3s ease;
}

.content-row-arrow:hover i {
    color: var(--primary-color);
}

@keyframes floatUpDown {

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

    50% {
        transform: translateY(-10px);
    }
}

.center-section {
    text-align: center;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.center-section p {
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.steps-section {
    padding: 5rem 0;
    background-image: url('../../images/documents.optimized.webp');
    background-size: 120%;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.steps-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 1;
}

.steps-section .content-wrapper {
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
}

.automation-hero .problem-list {
    margin-top: 0;
    margin-bottom: 0;
}

.automation-hero .problem-list ul {
    margin-bottom: 0;
    list-style: disc;
    padding-left: 1.5rem;
}

.automation-hero .problem-list li {
    list-style: disc;
    padding-left: 0;
    text-indent: 0;
    position: static;
    line-height: 2;
    margin-bottom: 1rem;
    font-size: 1.1rem !important;
}

.automation-hero .problem-list li:before {
    display: none;
}

.automation-hero .problem-item {
    background: var(--light-gray);
    border: 1px solid var(--medium-gray);
}

.automation-section {
    padding: 0;
    position: relative;
    background-image: url("data:image/svg+xml,%3Csvg id='visual' viewBox='0 0 900 600' width='900' height='600' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1'%3E%3Crect x='0' y='0' width='900' height='600' fill='%23ffffff'%3E%3C/rect%3E%3Cpath d='M0 0L100 0C150 0 200 10 300 20C400 30 500 40 600 30C700 20 800 10 900 0L900 601L0 601Z' fill='%23fbf8ff' stroke-linecap='round' stroke-linejoin='miter'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    padding-top: 60px;
}

.automation-content {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.problem-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.problem-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.problem-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.problem-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
}

.problem-item p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

.desire-list {
    margin-bottom: 3rem;
}

.desire-list h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.desire-list ul {
    list-style: none;
    padding: 0;
}

.desire-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.desire-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.different-approach {
    text-align: center;
    margin-top: 3rem;
}

.different-approach p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.highlight-box {
    background: var(--primary-gradient);
    color: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    margin-top: 2rem;
    box-shadow: var(--box-shadow);
}

.highlight-box h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.highlight-box h3:after {
    display: none;
}

.highlight-box p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.3rem;
    color: var(--light-text);
    margin-bottom: 3rem;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 5rem;
    margin-bottom: 2rem;
    width: 80%;
    margin-left: 10%;
    margin-right: 10%;
}

.step-item {
    background-color: rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 0 8px rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(100, 44, 144, 0.3);
}

.step-content-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 2rem;
}

.step-content {
    flex: 1;
}

.step-video {
    flex: 0 0 250px;
    border-radius: 8px;
    overflow: hidden;
}

.step-video dotlottie-wc {
    width: 100%;
    height: auto;
    display: block;
}

.step-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.9);
}

.step-content h3:after {
    display: none;
}

.step-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.step-content ul {
    margin: 0 0 1rem;
    padding-left: 1.5rem;
}

.step-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: var(--text-color);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.note {
    color: #999999 !important;
    text-shadow: none !important;
}

.clarification-box {
    text-align: center;
    padding: 2rem;
}

.clarification-box h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.clarification-box h3:after {
    display: none;
}

/* Notion-style callout */
.notion-callout {
    margin: 3.5rem auto 0;
    width: fit-content;
    /* shrink to content */
    max-width: 80vw;
    /* but do not exceed 80% of viewport width */
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 1rem;
    padding: 2rem 2rem;
    background: #fafafc;
    border-radius: 12px;
    border: 1px solid #ececf3;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

.notion-callout .callout-icon {
    line-height: 1;
    align-self: flex-start;
    flex: 0 0 40px;
}

.notion-callout .callout-icon img {
    display: block;
    width: 30px;
    height: 30px;
}

.notion-callout .callout-text {
    text-align: left;
    display: inline-flex;
    /* shrink-to-fit content */
    flex-direction: row;
    gap: 1rem;
    flex: 0 1 auto;
    /* hug content, but allow shrinking when constrained */
    width: auto;
    /* hug content width */
    max-width: 100%;
    /* prevent overflow when container hits max width */
    min-width: 0;
}

.notion-callout .callout-text p {
    margin: 0.25rem 0;
    font-size: 1.05rem;
}

.benefits-section {
    padding: 5rem 0;
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
    padding: 0 5rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 10;
    position: relative;
}

.benefit-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.benefit-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.benefit-item p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

.solutions-section {
    padding: 0;
    position: relative;
    z-index: 10;
}

.solutions-section h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.6rem;
}

.solutions-section h3:after {
    left: 50%;
    transform: translateX(-50%);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(2, 500px);
    gap: 2rem;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.solution-card {
    background-color: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    max-width: 500px;
    z-index: 10;
    position: relative;
}

.solution-card p {
    margin-bottom: 1rem;
}

.solution-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #7105A9 0%, #F95DC3 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.solution-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

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

.approach-note {
    padding: 2rem;
    margin-top: 3rem;
    text-align: center;
}

.approach-note p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
    line-height: 2.5;
}

/* Benefits Section Circles */
.benefits-section {
    position: relative;
    overflow: hidden;
}

.benefits-section .circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(113, 5, 169, 0.1) 0%, rgba(249, 93, 195, 0.1) 100%);
    z-index: 1;
}



.benefits-section .circle-3 {
    width: 220px;
    height: 220px;
    top: 50%;
    left: 2%;
}

.benefits-section .circle-4 {
    width: 40px;
    height: 40px;
    top: 35%;
    right: 35%;
}

.benefits-section .circle-5 {
    width: 180px;
    height: 180px;
    top: 92%;
    right: 8%;
}

.benefits-section .circle-7 {
    width: 50px;
    height: 50px;
    top: 82%;
    left: 85%;
}

.benefits-section .circle-8 {
    width: 220px;
    height: 220px;
    top: 28%;
    left: 92%;
}

.benefits-section .circle-9 {
    width: 50px;
    height: 50px;
    top: 92%;
    left: 30%;
}

.benefits-section .circle-10 {
    width: 160px;
    height: 160px;
    top: 45%;
    right: 55%;
}

.benefits-section .circle-11 {
    width: 80px;
    height: 80px;
    top: 22%;
    left: 55%;
}

.benefits-section .circle-12 {
    width: 45px;
    height: 45px;
    top: 38%;
    right: 25%;
}

.benefits-section .circle-13 {
    width: 200px;
    height: 200px;
    top: 75%;
    left: -8%;
}

.benefits-section .circle-14 {
    width: 30px;
    height: 30px;
    top: 58%;
    right: 2%;
}

.benefits-section .circle-16 {
    width: 120px;
    height: 120px;
    top: 12%;
    left: 88%;
}

.benefits-section .circle-17 {
    width: 55px;
    height: 55px;
    top: 78%;
    right: 42%;
}

.benefits-section .circle-18 {
    width: 240px;
    height: 240px;
    top: 20%;
    right: 65%;
}

.benefits-section .circle-19 {
    width: 25px;
    height: 25px;
    top: 98%;
    left: 15%;
}

.benefits-section .circle-20 {
    width: 120px;
    height: 120px;
    top: 52%;
    left: 68%;
}





/* Responsive Design for Automation Page */
@media (max-width: 992px) {
    .automation-hero {
        padding: 6rem 0 4rem;
    }

    .automation-hero .hero-content {
        flex-direction: column;
        gap: 2rem;
    }

    .automation-hero .hero-text,
    .automation-hero .hero-image {
        flex: 1;
        max-width: 100%;
    }

    .automation-hero h1 {
        font-size: 2.5rem;
    }

    .automation-hero .hero-image video {
        width: 100%;
    }

    .problem-list,
    .steps-container,
    .benefits-list,
    .solutions-grid {
        grid-template-columns: 1fr;
    }

    /* Hide some circles on smaller screens */
    .benefits-section .circle-3,
    .benefits-section .circle-5,
    .benefits-section .circle-7,
    .benefits-section .circle-9,
    .benefits-section .circle-11,
    .benefits-section .circle-13,
    .benefits-section .circle-17,
    .benefits-section .circle-19,


    .step-item {
        margin-bottom: 2rem;
    }

    .step-content-wrapper {
        flex-direction: column;
        gap: 1.5rem;
    }

    .step-video {
        flex: 0 0 auto;
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .automation-hero {
        padding: 4rem 0 3rem;
    }

    .automation-hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .automation-section {
        padding: 4rem 0;
    }

    .problem-item,
    .step-item,
    .benefit-item,
    .solution-card {
        padding: 1.5rem;
    }

    .highlight-box {
        padding: 1.5rem;
    }

    .highlight-box h3 {
        font-size: 1.5rem;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        top: -15px;
    }

    .benefit-icon,
    .solution-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .benefit-icon img {
        width: 30px;
        height: 30px;
    }

    .solution-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .automation-hero h1 {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .automation-section {
        padding: 3rem 0;
    }

    .problem-item,
    .step-item,
    .benefit-item,
    .solution-card {
        padding: 1rem;
    }

    .highlight-box {
        padding: 1rem;
    }

    .highlight-box h3 {
        font-size: 1.3rem;
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        top: -12px;
        left: 1rem;
    }

    .benefit-icon {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .benefit-icon img {
        width: 25px;
        height: 25px;
    }

    .solution-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
    }

    /* Hide all circles on mobile for better performance */
    .benefits-section .circle {
        display: none;
    }
}

/* Floating Icons for Automation Section */
.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-icon {
    position: absolute;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.floating-icon:hover {
    opacity: 1;
    transform: scale(1.1);
}

.floating-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.floating-icon.magic-hat {
    top: 20%;
    left: 8%;
    width: 120px;
    height: 120px;
    transform: rotate(-15deg);
}

.floating-icon.rocket {
    top: 30%;
    left: 85%;
    width: 130px;
    height: 130px;
    transform: rotate(0deg);
}

/* Responsive adjustments for floating icons */
@media (max-width: 768px) {
    .floating-icon.magic-hat {
        top: 30px;
        left: 30px;
        width: 80px;
        height: 80px;
        transform: rotate(-18deg);
    }

    .floating-icon.rocket {
        bottom: 30px;
        left: 30px;
        width: 65px;
        height: 65px;
        transform: rotate(25deg);
    }
}

@media (max-width: 576px) {
    .floating-icon.magic-hat {
        top: 20px;
        left: 20px;
        width: 60px;
        height: 60px;
        transform: rotate(-15deg);
    }

    .floating-icon.rocket {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
        transform: rotate(20deg);
    }
}

/* Portfolio Showcase Styles */
.portfolio-showcase {
    padding: 4rem 0 2rem;
    position: relative;
    background-image: url("data:image/svg+xml,%3Csvg id='visual' viewBox='0 0 900 600' width='900' height='600' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1'%3E%3Crect x='0' y='0' width='900' height='600' fill='%23ffffff'%3E%3C/rect%3E%3Cpath d='M0 0L100 0C150 0 200 10 300 20C400 30 500 40 600 30C700 20 800 10 900 0L900 601L0 601Z' fill='%23fbf8ff' stroke-linecap='round' stroke-linejoin='miter'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
}

.portfolio-item {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 1rem;
    padding: 2rem 0;
}

.portfolio-item-1,
.portfolio-item-3 {
    flex-direction: row;
    /* Text left, Image right */
}

.portfolio-item-2 {
    flex-direction: row;
    /* Image left, Text right */
}

.portfolio-item-2 .portfolio-image {
    order: 1;
    /* Image first (left) */
}

.portfolio-item-2 .portfolio-text {
    order: 2;
    /* Text second (right) */
}

.portfolio-text {
    flex: 1;
    padding: 0 1rem;
}

.portfolio-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #333;
}

.portfolio-image {
    flex: 1;
    padding: 0 1rem;
}

.portfolio-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.portfolio-item-3 .portfolio-image img {
    object-position: center top;
}

/* Case Study Section Styles */
.case-study-section {
    padding: 2rem 0;
    background: #ffffff;
    position: relative;
}

/* Portfolio-specific case study section with background image */
.portfolio-case-study {
    background-image: url('../../images/portfolio-background.optimized.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.case-study-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    opacity: 0.9;
    z-index: 1;
}

.case-study-section .content-wrapper {
    position: relative;
    z-index: 2;
}

.case-study-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.case-study-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #333;
}

.case-study-icon-left {
    position: absolute;
    left: -120px;
    top: 20%;
    transform: translateY(-50%) rotate(20deg);
    width: 80px;
    height: auto;
    z-index: 1;
}

.case-study-icon-right {
    position: absolute;
    left: 90%;
    bottom: -32px;
    width: 320px;
    height: auto;
    z-index: 1;
}

/* Industry Cards Grid */
.spotlight-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 100%;
    margin: 3.5rem auto;
}

.card-spotlight {
    position: relative;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background-color: rgba(255, 255, 255, 0.05);
    background-image: radial-gradient(circle at center,
            rgba(255, 255, 255, 0.08) 0%,
            rgba(255, 255, 255, 0.02) 70%);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 2rem 5rem;
    overflow: hidden;
    --mouse-x: 50%;
    --mouse-y: 50%;
    cursor: pointer;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08),
        inset 0 0 30px rgba(255, 255, 255, 0.1);
    width: 90%;
    min-height: 720px;
    margin: 0 auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-spotlight:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12),
        inset 0 0 30px rgba(255, 255, 255, 0.15);
}

.card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 656px;
    gap: 2rem;
}

.card-top {
    width: 80%;
    color: var(--primary-color);
    text-align: left;
}

.card-top h2 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-align: left;
}

.card-top h2::after {
    display: none;
}

.card-top p {
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
    margin-bottom: 0;
    color: #111111 !important;
    text-align: left;
}

.card-top h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2rem !important;
    color: var(--primary-color);
    text-align: left;
}

/* Arrow pointer clicking animation */

@keyframes moveLeftRight {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(5px);
    }

    100% {
        transform: translateX(0);
    }
}

.animated-angles-right {
    animation: moveLeftRight 0.8s ease-in-out infinite;
    display: inline-block;
}

.card-bottom {
    display: flex;
    flex: 1;
    gap: 2rem;
}

.card-bottom-text {
    flex: 0 0 40%;
    color: var(--primary-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.card-bottom-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem !important;
    color: var(--primary-color) !important;
    text-align: left;
}

.card-bottom-text p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
    color: #111111 !important;
    text-align: left;
    flex: 1;
}

.card-bottom-text ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-bottom-text li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: #111111 !important;
    font-size: 1.1rem;
    line-height: 1.6;
}

.card-bottom-text li::before {
    content: "•";
    color: #111111 !important;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

.card-bottom-image {
    flex: 0 0 60%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.card-bottom-image img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    object-fit: contain;
}



.card-air-conditioner {
    background-color: rgba(0, 164, 141, 0.1) !important;
}

.card-automotive {
    background-color: rgba(126, 106, 234, 0.1) !important;
}

.card-construction {
    background-color: rgba(254, 172, 64, 0.1) !important;
}

.card-construction .card-bottom-image {
    justify-content: flex-start;
    align-items: center;
    padding: 0;
    overflow: visible;
}

.card-construction .card-bottom-image img {
    transform: scale(1.1) translateX(-3rem) !important;
    max-width: 100%;
    width: auto;
    height: auto;
}

.card-spotlight p {
    color: rgb(161, 161, 170);
    font-size: 0.9rem;
    line-height: 1.4;
    position: relative;
    z-index: 2;
    margin: 0.5rem 0 0 0;
    font-weight: 400;
}

@media (max-width: 768px) {
    .spotlight-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .card-content {
        gap: 1.5rem;
    }

    .card-bottom {
        flex-direction: column;
        gap: 1.5rem;
    }

    .card-bottom-text,
    .card-bottom-image {
        flex: 1;
        width: 100%;
    }

    .card-top h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .spotlight-cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Mobile hamburger menu for 480px and below */
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        margin-left: auto;
    }

    .mobile-menu-toggle i {
        font-size: 1.5rem;
    }

    header.scrolled .mobile-menu-toggle i {
        color: inherit;
    }

    /* Hide regular nav on mobile */
    nav {
        display: none;
    }

    /* Show mobile nav when active */
    nav.active {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        width: 70%;
        height: 100vh;
        padding: 4.5rem 1.75rem 2.5rem;
        background-color: var(--white);
        box-shadow: -5px 0 18px rgba(0, 0, 0, 0.18);
        border-left: 1px solid rgba(0, 0, 0, 0.05);
        transition: right 0.3s ease, opacity 0.3s ease;
        justify-content: center;
        align-items: center;
        overflow-y: auto;
        z-index: 1000;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        width: 100%;
    }

    nav ul li {
        margin: 0;
    }

    nav.active ul li a {
        color: var(--primary-dark);
        text-shadow: none;
        font-size: 1.05rem;
    }

    nav.active ul li a:after {
        background: var(--primary-gradient);
    }

    nav.active .btn-small {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        pointer-events: none;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* Hero section mobile layout - image on top, text below */
    .hero-content {
        flex-direction: column;
        gap: 2rem;
    }

    .hero-image {
        order: -1;
        /* Put image first */
        width: 90%;
        max-width: 90%;
        margin: 0 auto;
        padding: 0;
    }

    .hero-text {
        order: 1;
        /* Put text second */
        width: 100%;
        padding: 0 1rem;
    }

    .image-placeholder {
        width: 100%;
        max-width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 180px;
        padding: 10px;
    }

    .image-placeholder video {
        width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
    }
}

@media (max-width: 768px) {
    .portfolio-item {
        flex-direction: column !important;
        gap: 2rem;
    }

    .portfolio-text,
    .portfolio-image {
        flex: none;
        width: 100%;
    }
}
/* Shared navigation must fit phones and tablets, including landscape widths. */
@media (max-width: 1279px) {
    header .header-content {
        width: 100%;
        max-width: 100%;
        overflow: visible !important;
    }
    header .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
        margin-left: auto;
        position: relative;
        z-index: 1002;
    }
    header .mobile-menu-toggle i { display: block; font-size: 1.5rem; }
    header nav { display: none; }
    header nav.active {
        display: flex;
        position: fixed;
        inset: 0 0 0 auto;
        width: min(360px, 85vw);
        height: 100vh;
        height: 100dvh;
        padding: 5rem 1.5rem 2rem;
        background: var(--white);
        box-shadow: -5px 0 18px rgba(0, 0, 0, .18);
        overflow-y: auto;
        align-items: flex-start;
        justify-content: center;
        z-index: 1001;
    }
    header nav.active ul {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 1.25rem;
    }
    header nav.active li { margin: 0; }
    header nav.active ul li a {
        display: block;
        color: var(--primary-dark) !important;
        text-shadow: none;
        white-space: normal;
        font-size: 1.05rem;
    }
    header nav.active ul li a.btn-small { color: white !important; text-align: center; }
    header .nav-overlay {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: rgba(0, 0, 0, .5);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        z-index: 1000;
    }
    header .nav-overlay.active { opacity: 1; visibility: visible; pointer-events: auto; }
    body.menu-open { overflow: hidden; }
    body.menu-open header {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        overflow: visible !important;
    }
    body.menu-open header .mobile-menu-toggle i { color: var(--primary-dark) !important; }
}

/* Intrinsic file-input widths must not widen the single-column mobile grid. */
@media (max-width: 992px) {
    .form-content { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 768px) {
    .portfolio-text, .portfolio-image { min-width: 0; }
    .portfolio-image { max-width: 100%; }
    .portfolio-image img:not(.floating-icon) { max-width: 100%; }
    .form-row { grid-template-columns: minmax(0, 1fr); }
}

@media (min-width: 481px) and (max-width: 1279px) {
    .case-study-content { padding-bottom: 120px; }
    .case-study-icon-left {
        left: 0;
        top: auto;
        bottom: 0;
        width: 70px;
        transform: none;
    }
    .case-study-icon-right {
        left: auto;
        right: 0;
        bottom: 0;
        width: 120px;
    }
}

/* Landscape tablets need their own layout between phone and wide desktop. */
@media (min-width: 769px) and (max-width: 1279px) {
    .hero .hero-content { gap: 2rem; padding-inline: 2.5rem; }
    .hero .hero-text, .hero .hero-image { flex: 1; min-width: 0; padding-inline: 0; }
    .hero .hero-title h1 { font-size: clamp(2.5rem, 4.1vw, 3.25rem); }
    .hero .hero-image .image-placeholder { width: 100%; padding: 1rem; }
    .case-study-content { padding-bottom: 200px; }
    .case-study-icon-left { width: 100px; }
    .case-study-icon-right { width: 240px; max-width: 35%; }
    .portfolio-image dotlottie-wc { flex-shrink: 0; max-width: 100%; }
    .tech-section .content-wrapper > h2 { max-width: 75%; margin-inline: auto; }
    .tech-section .icon { width: 32px; height: 32px; }
    .tech-section .icon:nth-child(1) { --end-x: 1% !important; --end-y: 20px !important; }
    .tech-section .icon:nth-child(2) { left: 6%; --end-x: 0px !important; --end-y: 100px !important; }
    .tech-section .icon:nth-child(3) { left: auto; right: 0; --end-x: 0px !important; --end-y: 20px !important; }
    .tech-section .icon:nth-child(4) { left: auto; right: 5%; --end-x: 0px !important; --end-y: 100px !important; }
    .tech-section .icon:nth-child(5) { left: 0; --end-x: 0px !important; --end-y: 220px !important; }
    .tech-section .icon:nth-child(6) { left: auto; right: 0; --end-x: 0px !important; --end-y: 220px !important; }
    .tech-section .tech-description { padding-inline: 5rem; }
    .solved-section .content-wrapper { padding-bottom: 130px; }
    .solved-section .puzzle-small { left: 2rem; top: auto; bottom: 0; width: 60px; height: 60px; }
    .solved-section .puzzle-3d { left: 12%; bottom: 0; width: 100px; height: 100px; }
    .solved-section .puzzle-large { right: 2rem; bottom: 0; width: 110px; height: 110px; }
}

/* Allow the extra Home link without crowding the desktop logo. */
@media (min-width: 1280px) {
    header .logo { flex-shrink: 0; }
    header .header-content { gap: 1.5rem; }
    header nav ul { align-items: center; gap: clamp(.75rem, 1.4vw, 1.5rem); }
    header nav ul li { margin-left: 0; }
    header nav ul li a { white-space: nowrap; font-size: clamp(.8rem, 1.1vw, 1rem); }
}

@media (min-width: 769px) and (max-width: 1279px) {
    /* Reserve an illustration band instead of placing artwork over the copy. */
    #who-is-this-for .content-row { height: auto; padding: 3rem 2.5rem 240px; }
    #who-is-this-for .content-row h3 { font-size: 2rem; }
    #who-is-this-for .content-row p,
    #who-is-this-for .content-row li { font-size: 1.15rem; }
    #who-is-this-for .content-row li {
        font-size: 1.15rem !important;
        padding-left: 2rem;
        text-indent: 0;
    }
    #who-is-this-for .content-row-arrow { bottom: 2rem; }
    #who-is-this-for .content-row-arrow i { font-size: 2.5rem; }
    #who-is-this-for .content-row dotlottie-wc,
    #who-is-this-for .content-row .think-icon,
    #who-is-this-for .content-row .gift-icon,
    #who-is-this-for .content-row .rating-icon,
    #who-is-this-for .content-row .presents-icon,
    #who-is-this-for .content-row .floating-icon {
        top: auto; bottom: 60px; width: 150px !important; height: 150px !important;
        object-fit: contain; transform: none;
    }
    #who-is-this-for .content-row dotlottie-wc { left: 12%; right: auto; }
    #who-is-this-for .content-row .think-icon,
    #who-is-this-for .content-row .gift-icon,
    #who-is-this-for .content-row .rating-icon { left: auto; right: 12%; }
    #who-is-this-for .content-row .presents-icon { left: calc(50% - 60px); bottom: 100px; width: 120px !important; }
    #who-is-this-for .content-row .magic-hat { left: 7%; right: auto; width: 90px !important; }
    #who-is-this-for .content-row .rocket { left: auto; right: 7%; width: 90px !important; }
    #who-is-this-for .content-row:first-child dotlottie-wc { left: calc(50% - 75px); bottom: 100px; }
    .form-content { padding: 2rem; gap: 2rem; }
    .form-left { padding: 1.5rem; }
    .form-left h2 { font-size: 2rem; }
}

@media (min-width: 769px) and (max-width: 1279px) {
    /* Hide the two decorations that overlap copy on landscape tablets. */
    .services-description-section .services-icon-1,
    .services-description-section .services-icon-3 { display: none; }
}

/* Each automation step occupies the visible screen beneath the fixed header.
   Content may grow beyond one screen on short viewports rather than being clipped. */
#who-is-this-for .content-row {
    height: auto;
    min-height: calc(100vh - var(--automation-header-height, 80px));
    min-height: calc(100svh - var(--automation-header-height, 80px));
    margin-bottom: 0;
}

@media (min-width: 993px) and (max-width: 1279px) {
    .solutions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        max-width: calc(100vw - 5rem);
        margin-inline: auto;
    }
    .solutions-grid .solution-card { min-width: 0; max-width: none; }
}

/* Tablet portrait only: keep desktop, phone and landscape layouts intact. */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    header .mobile-menu-toggle i { color: var(--primary-color) !important; }
    body:has(.hero):not(.menu-open) header:not(.scrolled) .mobile-menu-toggle i,
    body:has(#root):not(.menu-open) header .mobile-menu-toggle i { color: white !important; }
    .automation-hero { padding-top: 8rem !important; }

    .hero .hero-content { flex-direction: column; gap: 2.5rem; }
    .hero .hero-text,
    .hero .hero-image { flex: none; width: 100%; max-width: 100%; }
    .hero .hero-text { text-align: center; align-items: center; }
    .hero .hero-image { justify-content: center; }
    .hero .hero-image .image-placeholder { max-width: 680px; }

    /* Avoid narrow result columns and transformed screenshots escaping their cards. */
    .card-spotlight { width: 100%; padding: 2rem; min-height: 0; }
    .card-content { min-height: 0; }
    .card-top { width: 100%; }
    .card-top h2 { font-size: 2rem; }
    .card-bottom { flex-direction: column; gap: 2rem; }
    .card-bottom-text,
    .card-bottom-image { flex: none; width: 100%; min-width: 0; }
    .card-bottom-image { order: -1; padding: 0; }
    .card-spotlight .card-bottom-image img { --portrait-card-image-transform: none; max-width: 100%; max-height: 460px; transform: none !important; }

    /* Inline desktop widths otherwise survive the existing stacked layout. */
    .portfolio-showcase .portfolio-item { flex-direction: column; gap: 2rem !important; }
    .portfolio-showcase .portfolio-text,
    .portfolio-showcase .portfolio-image { flex: none !important; width: 100% !important; min-width: 0; padding-inline: 0; }
    .portfolio-showcase .portfolio-text { order: 0; }
    .portfolio-showcase .portfolio-image { order: 1; justify-content: center !important; }
    .portfolio-showcase .portfolio-image dotlottie-wc { max-width: 100%; max-height: 320px; }

    .form-content { grid-template-columns: minmax(0, 1fr); padding: 2rem; gap: 2rem; }
    .form-left { padding: 1.5rem; }
    .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .form-row > .form-group:only-child { grid-column: 1 / -1; }
}

/* Homepage refinements for tablet portrait. */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .tech-section .content-wrapper > h2 { max-width: calc(100% - 128px); margin-inline: auto; }
    .tech-section .tech-description { padding-inline: 4rem; }
    .tech-section .icon { width: 28px; height: 28px; --end-x: 0px !important; }
    .tech-section .icon:nth-child(odd) { left: -.5rem; right: auto; }
    .tech-section .icon:nth-child(even) { left: auto; right: -.5rem; }
    .tech-section .icon:nth-child(1),
    .tech-section .icon:nth-child(2) { --end-y: 20px !important; }
    .tech-section .icon:nth-child(3),
    .tech-section .icon:nth-child(4) { --end-y: 120px !important; }
    .tech-section .icon:nth-child(5),
    .tech-section .icon:nth-child(6) { --end-y: 220px !important; }

    .tech-section .display-container { padding-inline: 2rem; }
    .tech-section .tool-container.horizontal { gap: clamp(.375rem, 1vw, .75rem); }

    .solved-section .content-wrapper { padding-bottom: 190px; }
    .solved-section .puzzle-small { left: 2rem; top: auto; bottom: 0; width: 60px; height: 60px; }
    .solved-section .puzzle-large { right: 2rem; bottom: 0; width: 110px; height: 110px; }
    .solved-section .puzzle-3d { top: auto; bottom: 0; width: 100px; height: 100px; }

    .trust-section .marquee-item { background-size: cover !important; background-repeat: no-repeat !important; }

    .services-description-section .services-icon-1,
    .services-description-section .services-icon-3 { display: none; }
    .services-description-section .services-icon-2 { top: 280px; right: 5%; width: 200px; height: 140px; }
    .services-description-section .content-wrapper > p:nth-of-type(3) { margin-bottom: 180px; }
    .services-description-section .use-case-list { margin: 0; max-width: none; }

    .site-footer .footer-inner { row-gap: 2rem; }
    .site-footer .footer-inner .footer-logo { align-items: flex-end; text-align: right; }
    .site-footer .footer-inner .footer-legal { text-align: right; }
}

/* Homepage phone layout: readable tool labels and decorations clear of copy. */
@media (max-width: 767px) {
    .homepage header .mobile-menu-toggle { flex-basis: 44px; width: 44px; height: 44px; }
    .homepage header nav.active ul li a { min-height: 44px; }
    .homepage header nav.active ul li a:not(.btn-small) { text-align: left; font-weight: 600; padding: .5rem 0; border-radius: 0; }
    .homepage header nav.active ul li a:not(.btn-small):hover { background-color: transparent; transform: none; }
    .homepage header nav.active ul li a.btn-small { border-radius: 50px; padding: .6rem 1.4rem; font-weight: 500; }

    .homepage .solved-section .content-wrapper { padding-bottom: 120px; }
    .homepage .solved-section .puzzle-small { top: auto; bottom: 35px; left: 15%; width: 60px; height: 60px; }
    .homepage .solved-section .puzzle-large { bottom: 20px; right: 15%; width: 90px; height: 90px; scale: 1; }
    .homepage .solved-section .puzzle-3d { display: none; }

    .homepage .slideshow-container-full { height: 380px !important; min-height: 380px !important; max-height: none !important; }
    .homepage .slideshow-container-full .display-container { padding: 1rem !important; justify-content: flex-start; }
    .homepage .slideshow-container-full .display-container h3 { font-size: 1.2rem !important; line-height: 1.3 !important; margin-bottom: .5rem !important; }
    .homepage .slideshow-container-full .tool-container.horizontal {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 36px 12px !important;
        width: 100%;
    }
    .homepage #display1 .tool-container.horizontal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .homepage #display2 .tool-container.horizontal { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px !important; }
    .homepage #display2 .tool-item { width: 40px !important; height: 40px !important; }
    .homepage #display2 .tool-label { width: 58px !important; font-size: 10px !important; }
    .homepage .slideshow-container-full .plus-sign { display: none; }
    .homepage .slideshow-container-full .tool-column { min-width: 0; min-height: 64px; }
    .homepage .slideshow-container-full .tool-item { width: 48px !important; height: 48px !important; padding: 6px !important; }
    .homepage .slideshow-container-full .tool-label {
        font-size: 12px !important;
        line-height: 1.2 !important;
        white-space: normal;
        width: 76px !important;
        left: 50%;
        transform: translateX(-50%);
        bottom: auto;
        top: calc(100% + 8px);
    }
    .homepage .slideshow-nav .nav-dot { width: 44px; height: 44px; background-clip: content-box; padding: 15px; border: 0; box-shadow: none; transform: none; }
    .homepage .carousel-controls .carousel-nav { width: 44px; height: 44px; }
    .homepage #contactForm input:not([type="file"]),
    .homepage #contactForm textarea { font-size: 16px; min-height: 44px; }
    .homepage .footer-cta { min-width: 0; }
    .homepage .footer-actions { flex-wrap: nowrap; justify-content: space-between; gap: 8px; }
    .homepage .footer-pill { flex: 1; min-width: 0; justify-content: center; font-size: 12px; padding: 9px 8px; gap: 5px; }
    .homepage .footer-pill img { width: 16px; height: 16px; }
}

/* Automation page refinements for tablet portrait. */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    body:has(#who-is-this-for) main > section > .content-wrapper {
        width: 100%;
        padding-inline: clamp(3rem, 6vw, 4rem);
    }
    body:has(#who-is-this-for) .automation-hero .hero-content { flex-direction: column; gap: 2.5rem; }
    body:has(#who-is-this-for) .automation-hero .hero-text,
    body:has(#who-is-this-for) .automation-hero .hero-image { flex: none; width: 100%; max-width: 100%; }
    body:has(#who-is-this-for) .automation-hero h1 { font-size: 2.5rem; text-align: center; text-wrap: balance; }
    body:has(#who-is-this-for) .automation-hero .problem-list { text-align: left; }
    body:has(#who-is-this-for) .automation-hero .problem-list h3 { text-align: center; }
    body:has(#who-is-this-for) .automation-hero .hero-image { justify-content: center; }
    body:has(#who-is-this-for) .automation-hero .hero-image video { width: 100%; max-width: 640px; }
    body:has(#who-is-this-for) .notion-callout { width: 100%; max-width: none; padding: 2rem; }

    #who-is-this-for .content-row { padding: 3rem clamp(3rem, 6vw, 4rem) 260px; }
    #who-is-this-for .content-row h3 { font-size: 2rem; text-wrap: balance; }
    #who-is-this-for .content-row p { font-size: 1.15rem; }
    #who-is-this-for .content-row li { font-size: 1.15rem !important; padding-left: 2rem; text-indent: 0; }
    #who-is-this-for .content-row dotlottie-wc,
    #who-is-this-for .content-row .think-icon,
    #who-is-this-for .content-row .gift-icon,
    #who-is-this-for .content-row .rating-icon,
    #who-is-this-for .content-row .presents-icon,
    #who-is-this-for .content-row .floating-icon {
        top: auto; bottom: 80px; width: 150px !important; height: 150px !important; object-fit: contain; transform: none;
    }
    #who-is-this-for .content-row dotlottie-wc { left: 12%; right: auto; }
    #who-is-this-for .content-row .think-icon,
    #who-is-this-for .content-row .gift-icon,
    #who-is-this-for .content-row .rating-icon { left: auto; right: 12%; }
    #who-is-this-for .content-row .presents-icon { left: calc(50% - 60px); right: auto; width: 120px !important; height: 120px !important; }
    #who-is-this-for .content-row:first-child dotlottie-wc { left: calc(50% - 75px); }
    #who-is-this-for .content-row .magic-hat { left: 8%; right: auto; width: 90px !important; height: 90px !important; }
    #who-is-this-for .content-row .rocket { left: auto; right: 8%; width: 90px !important; height: 90px !important; }
    #who-is-this-for .content-row-arrow i { font-size: 2.5rem; }

    body:has(#who-is-this-for) .steps-container { width: 100%; margin-inline: 0; gap: 3rem; }
    body:has(#who-is-this-for) .step-item { padding: 2rem; margin-bottom: 0; }
    body:has(#who-is-this-for) .step-content-wrapper { flex-direction: column; gap: 1.5rem; }
    body:has(#who-is-this-for) .step-video { flex: none; width: 240px; max-width: 100%; align-self: center; }
    body:has(#who-is-this-for) .step-video dotlottie-wc { width: 100% !important; height: 220px !important; }
    body:has(#who-is-this-for) .benefits-list { grid-template-columns: minmax(0, 1fr); padding-inline: 0; }
    body:has(#who-is-this-for) .solutions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; max-width: none; margin-inline: 0; gap: 1.5rem; }
    body:has(#who-is-this-for) .solution-card { width: 100%; max-width: none; min-width: 0; padding: 2rem 1.5rem; }
}

/* Portfolio page refinements for tablet portrait. */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    body:has(.portfolio-showcase) .automation-hero { padding-bottom: 1rem; }
    body:has(.portfolio-showcase) .automation-hero h1 { font-size: 4rem !important; }
    .portfolio-showcase { padding-top: 2rem; }
    .portfolio-showcase > .content-wrapper,
    .portfolio-case-study > .content-wrapper { width: 100%; padding-inline: clamp(3rem, 6vw, 4rem); }
    .portfolio-showcase .portfolio-item { padding-block: 1.5rem; margin-bottom: 2rem; }
    .portfolio-showcase .portfolio-text h2 { font-size: 2rem; text-wrap: balance; }
    .portfolio-showcase .portfolio-text b,
    .portfolio-showcase .portfolio-item-3 .portfolio-text span { font-size: 1.35rem !important; }
    .portfolio-showcase .portfolio-text p { margin-bottom: 1.5rem; }
    .portfolio-showcase .portfolio-text p:last-child { margin-bottom: 0; }
    .portfolio-showcase .portfolio-text br { display: none; }
    .portfolio-showcase .portfolio-text ul { padding-left: 1.5rem; font-size: 1.1rem; line-height: 1.8; margin-bottom: 1.5rem; }
    .portfolio-showcase .portfolio-item .portfolio-image { width: min(100%, 420px) !important; }
    .portfolio-showcase .portfolio-image dotlottie-wc { width: 100% !important; height: 280px !important; }
    .portfolio-showcase .portfolio-image img { left: 0 !important; bottom: 0 !important; width: 100px !important; height: 100px !important; object-fit: contain; }
    .portfolio-case-study .case-study-content { padding-bottom: 160px; }
    .portfolio-case-study .case-study-icon-left { width: 80px; }
    .portfolio-case-study .case-study-icon-right { width: 200px; max-width: 35%; }
    .portfolio-case-study .spotlight-cards-grid { margin-top: 2rem; }
    .portfolio-case-study .card-bottom-image { justify-content: center; }
    .portfolio-case-study .card-bottom-image img { max-height: 400px; }
    .portfolio-case-study .card-spotlight:hover { transform: none; }
}

/* Careers page refinements for tablet portrait. */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    body:has(.jobs-section) .legal-page { padding: 8rem clamp(3rem, 6vw, 4rem) 0 !important; }
    body:has(.jobs-section) .legal-page > .content-wrapper { width: 100%; padding: 0; }
    body:has(.jobs-section) .hero-section h1 { font-size: 2.5rem; text-wrap: balance; }
    body:has(.jobs-section) .hero-section .hero-subtitle { max-width: 650px; font-size: 1.125rem; line-height: 1.7; }
    .jobs-section > .content-wrapper { width: 100%; padding-inline: clamp(3rem, 6vw, 4rem); }
    .jobs-section .jobs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1.5rem; gap: 1.5rem; }
    .jobs-section .job-card { min-width: 0; padding: 1.5rem; }
    .jobs-section .job-header { flex-direction: column; gap: .75rem; margin-bottom: 1rem; }
    .jobs-section .job-title { min-height: 3rem; line-height: 1.2; }
    .jobs-section .job-category { white-space: nowrap; }
    .jobs-section .job-description { font-size: 1rem; line-height: 1.6; }
    .jobs-section .job-card:hover { transform: none; }
    .jobs-section .cta-text { margin-top: 2rem; }
    .jobs-section .cta-text p { line-height: 1.7; }
    .jobs-section .cta-text a { overflow-wrap: anywhere; }
    body:has(.jobs-section) .job-modal-content { width: calc(100% - 6rem); max-width: 720px; margin: 3rem auto; max-height: calc(100dvh - 6rem); padding: 2rem; }
    body:has(.jobs-section) .job-modal-header { gap: 1rem; }
    body:has(.jobs-section) .job-modal-title { text-align: left; }
    body:has(.jobs-section) .job-modal-header .close-btn { flex: 0 0 44px; width: 44px; height: 44px; }
}

/* About page refinements for tablet portrait. */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    body:has(.vision-mission-section) .legal-page { padding: 8rem clamp(3rem, 6vw, 4rem) 3rem !important; }
    body:has(.vision-mission-section) .legal-page > .content-wrapper,
    .vision-mission-section > .content-wrapper,
    .what-sets-us-apart-section > .content-wrapper { width: 100%; max-width: 800px; padding: 0; margin-inline: auto; }
    body:has(.vision-mission-section) .legal-page h1 { font-size: 3rem; margin-bottom: 2rem; }
    body:has(.vision-mission-section) .legal-page p,
    body:has(.vision-mission-section) .legal-page li,
    .vision-mission-section p,
    .what-sets-us-apart-section p { font-size: 1.1rem; line-height: 1.75; }
    body:has(.vision-mission-section) .legal-page p { margin-bottom: 1.5rem; }
    body:has(.vision-mission-section) .legal-page .bold-text,
    .vision-mission-section .bold-text { font-size: 1.35rem; line-height: 1.5; margin-bottom: 0; }
    body:has(.vision-mission-section) .legal-page > .content-wrapper > br { display: none; }
    body:has(.vision-mission-section) .legal-page ul { padding-left: 1.5rem; margin-bottom: 1.5rem; }
    body:has(.vision-mission-section) .legal-page li { padding-left: .25rem; margin-bottom: .75rem; }
    body:has(.vision-mission-section) .legal-page .center-text { margin-top: 2rem; text-wrap: balance; }
    .vision-mission-section { padding: 3rem clamp(3rem, 6vw, 4rem); }
    .what-sets-us-apart-section { padding: 3rem clamp(3rem, 6vw, 4rem); }
    .vision-mission-section h2,
    .what-sets-us-apart-section h2 { font-size: 2rem; text-wrap: balance; }
    .vision-mission-section h3 { font-size: 1.5rem; margin-top: 2rem; }
    .what-sets-us-apart-section .feature-item h3 { font-size: 1.35rem; }
    .what-sets-us-apart-section .feature-item { margin-bottom: 2rem; }
    .what-sets-us-apart-section .features-grid { margin-bottom: 3rem; }
}
