/* 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);
}

* {
    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;
    box-shadow: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    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: auto;
    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.jpg');
    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.jpg');
    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;
    will-change: transform;
    /* Animation will be set via JavaScript for perfect looping */
}

.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(calc(-100% / 2));
    }
}

/* 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-image: url('images/layered-waves.svg');
    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: calc(60% - 1.5rem) calc(40% - 1.5rem);
    gap: 3rem;
    padding: 3rem;
}

.form-left {
    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 {
    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 {
    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 {
    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 page header styling - match automation page behavior at top */
body:has(.legal-page) .logo {
    color: var(--primary-color);
    text-shadow: none;
}

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

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

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

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

/* 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.png"] {
    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.jpg');
    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.jpg');
    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%;
    }
}
