/* Section container */
.section {
    width: 96%;
    background: #fff;
    border-radius: 15px;
    border-top-left-radius: 95px;
    overflow: hidden;
    margin: 10px auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    padding-bottom: 40px;
    position: relative;
    z-index: 3;
}

.section::before,
.section::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 350px;
    height: 150px;
    /* adjust width of side patterns */
    background-image: url('../images/Pattern-bg.png');
    background-position: left;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 0;
    /* push behind content */
    opacity: 0.2;
    /* optional: make subtle */
}

/* Left side */
.section::before {
    left: 5%;
    top: 18%;
    /* offset half width outward */
}

/* Right side */
.section::after {
    right: 5%;
    top: 18%;
}


/* Hero */
.hero-section {
    text-align: center;
    padding: 3rem 1rem;
    z-index: 4;
}

.hero-subtitle {
    color: #6b21a8;
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
}


.hero-title {
    font-size: 2.3rem;
    font-weight: 800;
    color: #2d2d2d;
    line-height: 1.3;
    position: relative;
    height: 120px;
    overflow: hidden;
}

.title-highlight {
    position: relative;
    color: #fff;
    font-weight: 600;
    padding: 0.4rem 1.2rem;
    border-radius: 8px 14px 14px 8px;
    /* display: inline-block; */
    overflow: hidden;
    /* ensures the pseudo-element doesn't spill out */
}

.title-highlight::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #0c1120;
    border-radius: inherit;
    z-index: -1;
    /* behind text */
    transform-origin: center;
    animation: waveSide 6s infinite ease-in-out;
}

/* Animate background only */
@keyframes waveSide {
    0% {
        transform: rotate(0deg) skewX(0deg);
    }

    25% {
        transform: rotate(-2deg) skewX(-6deg);
    }

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

    75% {
        transform: rotate(2deg) skewX(4deg);
    }

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

/* Bottom section layout */
.bottom-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* center vertically */
    padding: 20px 60px;
    gap: 40px;
}

/* Left service list */
.services-list {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.service-item-web {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
    border: 1px solid transparent;
    border-radius: 20px;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.5;
    color: #000;
}

.service-item-web.active {
    border: 1px solid #7800E2;
    opacity: 1;
}

/* Center results glow */
.results-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    /* center horizontally */
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.results-bg {
    width: 100%;
    height: 80px;
    background: radial-gradient(ellipse at center, #323ec3 0%, #7800e2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* remove the margin-left that was breaking centering */
.results-bg::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 350px;
    height: 100px;
    background-image: url('../images/Pattern-bg.png');
    background-position: left;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.1;
    z-index: 0;
}

/* Rotating Text Animation */
.rotating-text {
    position: absolute;
    font-size: 38px;
    font-weight: 700;
    color: #fff;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    animation: floatUp 12s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease-in-out;
}

/* Delay each text for seamless rotation */
.rotating-text:nth-child(1) {
    animation-delay: 0s;
}

.rotating-text:nth-child(2) {
    animation-delay: 4s;
}

.rotating-text:nth-child(3) {
    animation-delay: 8s;
}

/* Smooth, professional motion */
@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
        filter: blur(4px);
    }

    /* Fade in + rise */
    10% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }

    /* Float upward gently */
    30% {
        opacity: 1;
        transform: translateY(-150px) scale(1.02);
    }

    /* Hold (readable pause) */
    50% {
        opacity: 1;
        color: #000;
        font-size: 60px;
        transform: translateY(-150px) scale(1.05);
        text-shadow: 0 0 35px rgba(120, 0, 226, 0.6);
    }

    /* Fade + lift out */
    70% {
        opacity: 0;
        transform: translateY(-180px) scale(1.05);
        filter: blur(1px);
    }

    /* Hidden, reset for next loop */
    100% {
        opacity: 0;
        transform: translateY(-300px) scale(1.05);
        filter: blur(4px);
    }
}

/* Glassy Scroll Button */
.scroll-btn {
    --size: 84px;
    /* outer orb size */
    --inner: 56px;
    /* inner puck size */
    --ring: 12px;
    /* soft rim thickness */
    --indigo: #5A00FF;
    --violet: #7B00FF;

    position: relative;
    width: var(--size);
    height: var(--size);
    border: 0;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    background:
        radial-gradient(circle at 50% 45%,
            rgba(255, 255, 255, 0.95) 0%,
            rgba(255, 255, 255, 0.70) 38%,
            rgba(255, 255, 255, 0.35) 58%,
            rgba(255, 255, 255, 0.18) 72%,
            rgba(255, 255, 255, 0.00) 100%);
    /* frosted look + subtle gloss */
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.20),
        /* drop */
        inset 0 2px 8px rgba(255, 255, 255, 0.45),
        /* inner glow */
        inset 0 -10px 18px rgba(0, 0, 0, 0.06);
    /* inner shade */
    display: grid;
    place-items: center;
    transition: transform .25s ease, box-shadow .25s ease;
    isolation: isolate;
    margin-top: -7%;
    /* keep pseudo elements layered nicely */
}

/* soft glass rim */
.scroll-btn::before {
    content: "";
    position: absolute;
    inset: calc(var(--ring) * -1);
    border-radius: inherit;
    background:
        radial-gradient(circle at 50% 60%,
            rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 60%);
    filter: blur(8px);
    opacity: .9;
    z-index: -1;
}

/* inner purple/indigo puck */
.scroll-btn::after {
    content: "";
    position: absolute;
    width: var(--inner);
    height: var(--inner);
    border-radius: 50%;
    background:
        radial-gradient(120% 120% at 35% 30%,
            #8B5CF6 0%,
            var(--violet) 35%,
            var(--indigo) 100%);
    box-shadow:
        inset 0 6px 14px rgba(255, 255, 255, 0.25),
        /* top sheen */
        inset 0 -10px 16px rgba(0, 0, 0, 0.25),
        /* bottom shade */
        0 8px 20px rgba(90, 0, 255, 0.28);
    /* outer glow */
}

/* svg icon centered */
.scroll-btn svg {
    position: relative;
    z-index: 1;
    stroke: #fff;
    transition: transform .25s ease, opacity .25s ease;
    opacity: .95;
}

/* hover / active interactions */
.scroll-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow:
        0 14px 28px rgba(0, 0, 0, 0.22),
        inset 0 2px 10px rgba(255, 255, 255, 0.5),
        inset 0 -12px 20px rgba(0, 0, 0, 0.08);
}

.scroll-btn:active {
    transform: translateY(0) scale(.98);
}

/* optional: on dark backgrounds, stronger halo */
@media (prefers-color-scheme: dark) {
    .scroll-btn {
        box-shadow:
            0 12px 28px rgba(0, 0, 0, 0.28),
            inset 0 2px 8px rgba(255, 255, 255, 0.35),
            inset 0 -10px 18px rgba(0, 0, 0, 0.08);
    }
}

/* Right image collage */
.image-collage-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
    max-width: 480px;
    height: 320px;
    position: relative;
    justify-self: flex-end;
}

/* Shared container styles */
.image-container {
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-radius: 18px;
    position: relative;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}

/* Left tall image */
.image-container.tall {
    grid-row: 2 / 3;
    grid-column: 1 / 2;
    border-radius: 22px;
}

/* Top-right image */
.image-container.small.top {
    grid-row: 1 / 2;
    grid-column: 2 / 3;
    border-radius: 20px;
}

/* Bottom-right image */
.image-container.small.bottom {
    grid-row: 2 / 3;
    grid-column: 2 / 3;
    border-radius: 20px;
}

/* Floating animation */
.animate-img {
    animation: floatMotion 4s ease-in-out infinite alternate;
}

@keyframes floatMotion {
    0% {
        transform: translateY(0);
    }

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


.overlay-card {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #fff;
    padding: 0.3rem 1rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #6b21a8;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}



@media (max-width: 767px) {
    .section {
        width: 100%;
        border-top-left-radius: 60px;
        padding-bottom: 20px;
        margin: 0;
        box-shadow: none;
    }

    .hero-section {
        padding: 60px 16px 20px;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 0.6rem;
    }

    .hero-title {
        font-size: 1.3rem;
        line-height: 1.3;
    }

    .title-highlight {
        padding: 0.25rem 0.6rem;
        font-size: 0.95rem;
        border-radius: 6px;
    }

    .bottom-section {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 24px;
        padding: 20px 14px;
        text-align: center;
    }

    .services-list ul {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .service-item-web {
        font-size: 13px;
        padding: 8px 12px;
    }

    .results-bg {
        max-width: 220px;
        height: 55px;
        border-radius: 50%;
        margin-top: 50px;
    }

    .rotating-text {
        font-size: 20px;
        transform: translateY(10px) scale(0.9);
        text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    }

    @keyframes floatUp {
        0% {
            opacity: 0;
            transform: translateY(10px) scale(0.9);
            filter: blur(2px);
        }

        10% {
            opacity: 1;
            transform: translateY(0) scale(1);
            filter: blur(0);
        }

        30% {
            opacity: 1;
            transform: translateY(-60px) scale(1.02);
        }

        50% {
            opacity: 1;
            color: #000;
            font-size: 28px;
            transform: translateY(-60px) scale(1.05);
            text-shadow: 0 0 15px rgba(120, 0, 226, 0.6);
        }

        70% {
            opacity: 0;
            transform: translateY(-80px) scale(1.05);
            filter: blur(1px);
        }

        100% {
            opacity: 0;
            transform: translateY(-100px) scale(1.05);
            filter: blur(3px);
        }
    }

    .scroll-btn {
        --size: 58px;
        --inner: 40px;
        margin-top: 12px;
    }

    .scroll-btn svg {
        width: 16px;
        height: 16px;
    }

    .image-collage-grid {
        grid-template-columns: 1fr 1fr;
        width: 100%;
        max-width: 300px;
        height: auto;
        gap: 6px;
    }

    .image-container img {
        aspect-ratio: 1/1;
    }
}

@media (min-width:768px) and (max-width:1023px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .bottom-section {
        flex-wrap: wrap;
        justify-content: center;
        padding: 40px;
        gap: 28px;
    }

    .results-bg {
        max-width: 220px;
        height: 55px;
        border-radius: 50%;
    }

    .rotating-text {
        font-size: 20px;
        transform: translateY(10px) scale(0.9);
        text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    }

    @keyframes floatUp {
        0% {
            opacity: 0;
            transform: translateY(10px) scale(0.9);
            filter: blur(2px);
        }

        10% {
            opacity: 1;
            transform: translateY(0) scale(1);
            filter: blur(0);
        }

        30% {
            opacity: 1;
            transform: translateY(-60px) scale(1.02);
        }

        50% {
            opacity: 1;
            color: #000;
            font-size: 28px;
            transform: translateY(-60px) scale(1.05);
            text-shadow: 0 0 15px rgba(120, 0, 226, 0.6);
        }

        70% {
            opacity: 0;
            transform: translateY(-80px) scale(1.05);
            filter: blur(1px);
        }

        100% {
            opacity: 0;
            transform: translateY(-100px) scale(1.05);
            filter: blur(3px);
        }
    }

    .scroll-btn {
        --size: 70px;
        --inner: 50px;
    }

    .image-collage-grid {
        max-width: 420px;
        height: 260px;
    }
}




/* ******************** Our Story Section ******************** */
.section2 {
    background-image: url(../images/aboutus-bg.png);
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: space-between;
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    margin-top: -2%;
    position: relative;
    z-index: 4;
    /* Important: ensures child pseudo-elements can appear above */
    /* height: 60vh; */
    padding: 5% 3% 0;
}

/* Highlighted animated text */
.title-highlight-blue {
    position: relative;
    color: #fff;
    font-weight: 400;
    padding: 4px 1.2rem;
    border-radius: 8px 14px 14px 8px;
    display: inline-block;
    /* overflow: hidden; */
    z-index: 1;
    /* must be positive to stay above section background */
}

/* animated background only */
.title-highlight-blue::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #7d2fff, #2eb9ff);
    border-radius: inherit;
    z-index: -1;
    transform-origin: center;
    animation: waveSide 6s infinite ease-in-out;
    opacity: 1;
}

/* smooth background wave animation */
@keyframes waveSide {
    0% {
        transform: rotate(0deg) skewX(0deg);
    }

    25% {
        transform: rotate(-2deg) skewX(-6deg);
    }

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

    75% {
        transform: rotate(2deg) skewX(4deg);
    }

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

.our-story-image-container {
    /* width: 100%; */
    height: 100%;
}

.our-story-image-container img {
    width: 350px;
    /* height: 220px; */
}

.explore-our-story {
    color: white;
    font-size: 18px;
    font-weight: 400;
    padding: 20px;
}

.heading-our-story {
    color: white;
    font-size: 34px;
    font-weight: 400;
    padding: 2%;
}

.story-our-para {
    color: white;
    font-size: 14px;
    font-weight: 400;
    padding: 20px;
}


/* ********************** Section 3 */

/* ===== Section 3 ===== */
.services-section {
    background-image: url('../images/aboutus-bg.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: space-between;
    height: fit-content;
    align-items: flex-start;
    padding: 2%;
    z-index: 1;
}

/* ===== Left Side (Services List) ===== */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: white;
    flex: 1;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 18px;
    border: 1px solid transparent;
    border-radius: 20px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.service-item.active {
    border: 1px solid #7800E2;
    opacity: 1;
    background: rgba(120, 0, 226, 0.1);
}

.service-icon img {
    height: 120px;
    width: 120px;
}

/* ===== Right Side (Content) ===== */
.services-content {
    flex: 1;
    margin-left: 50px;
}

.service-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
}

.service-content h3 {
    font-size: 20px;
    font-weight: 500;
}

.service-content p {
    font-size: 14px;
    font-weight: 400;
}


.services-content {
    color: white;
    font-size: 18px;
    font-weight: 700;
}

.services-content h2 {
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 20px;
    color: white;
}

.highlight {
    display: inline-block;
    background: linear-gradient(to right, #7d2fff, #323EC3);
    padding: 4px 8px;
    border-radius: 6px;
    color: #fff;
}

.services-content p {
    font-size: 16px;
    color: #bbb;
    font-weight: 400;
    margin-bottom: 30px;
}

.arrow-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(to right, #7800E2, #2eb9ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    margin-bottom: 30px;
}

/* ===== Images ===== */
.services-image {
    position: relative;
    width: 100%;
    height: 250px;
}

.services-image img {
    position: absolute;
    top: 0;
    left: 20px;
    max-width: 100%;
    border-radius: 15px;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.7s ease;
    height: 400px;
}

.services-image img.active {
    opacity: 1;
    transform: scale(0.95);
    z-index: 0;
    width: 100%;
}

/* --- Medium Screens (Tablets: 992px and below) --- */
@media (max-width: 992px) {
    .services-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 5%;
    }

    .services-list {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .service-item {
        flex-direction: column;
        text-align: center;
        width: 45%;
        opacity: 0.8;
    }

    .service-icon img {
        height: 80px;
        width: 80px;
    }

    .services-content {
        margin-left: 0;
        margin-top: 40px;
    }

    .services-content h2 {
        font-size: 26px;
    }

    .services-content p {
        font-size: 15px;
    }

    .arrow-btn {
        margin: 20px auto;
    }

    .services-image {
        height: 220px;
    }

    .services-image img {
        height: 250px;
    }
}

/* --- Small Screens (Mobiles: 768px and below) --- */
@media (max-width: 768px) {
    .services-section {
        padding: 6% 4%;
        gap: 20px;
    }

    .services-list {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .service-item {
        flex-direction: row;
        align-items: center;
        width: 100%;
        padding: 10px;
        font-size: 16px;
    }

    .service-icon img {
        height: 60px;
        width: 60px;
    }

    .service-content h3 {
        font-size: 18px;
    }

    .service-content p {
        font-size: 13px;
    }

    .services-content h2 {
        font-size: 22px;
        line-height: 1.4;
    }

    .services-content p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .arrow-btn {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .services-image {
        height: 200px;
    }

    .services-image img {
        height: 200px;
        left: 0;
    }
}

/* --- Extra Small Screens (Under 480px) --- */
@media (max-width: 480px) {
    .services-section {
        padding: 8% 5%;
    }

    .service-item {
        flex-direction: column;
        text-align: center;
    }

    .service-icon img {
        height: 50px;
        width: 50px;
    }

    .service-content h3 {
        font-size: 16px;
    }

    .service-content p {
        font-size: 12px;
    }

    .services-content h2 {
        font-size: 20px;
    }

    .services-content p {
        font-size: 13px;
    }

    .arrow-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .services-image img {
        height: 180px;
    }
}

/* ===== Section Layout ===== */
.technologies-section {
    background-image: url('../images/aboutus-bg.png');
    /* background-position: center; */
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 4% 4%;
}

/* ===== Left Content ===== */
.tech-content {
    flex: 1;
    padding-right: 60px;
}

.tech-content h4 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 16px;
    color: #cfc9ff;
}

.tech-content h2 {
    font-size: 40px;
    line-height: 1.3;
    font-weight: 400;
    margin-bottom: 24px;
    color: #fff;
}

.title-highlight-blue {
    display: inline-block;
    background: linear-gradient(90deg, #7d2fff, #2eb9ff);
    padding: 4px 10px;
    border-radius: 14px;
    color: #fff;
    font-weight: 500;
}

.tech-content p {
    font-size: 16px;
    color: #c9c9c9;
    max-width: 520px;
    margin-bottom: 30px;
}

/* Gradient Arrow Button */
.arrow-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7d2fff, #2eb9ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    transition: 0.3s ease;
}

.arrow-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(125, 47, 255, 0.5);
}

.arrow-btn i {
    transform: rotate(-45deg);
}

/* ===== Right Code Section ===== */
.code-editor {
    flex: 1.1;
    background: #111;
    border-radius: 14px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border: 1px solid #7800E2;
}

/* Tabs */
.tab-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-buttons button {
    padding: 8px 18px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

@media screen and (max-width:768px) {
    .tab-buttons button {
        padding: 8px 18px;
        border: none;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
        cursor: pointer;
        font-size: 12px;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
    }

    .tab-buttons button {
        padding: 8px;
        border: none;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
        cursor: pointer;
        font-size: 14px;
        transition: all 0.3s ease;
        padding: 5px;
        backdrop-filter: blur(10px);
    }
}

.tab-buttons button:hover,
.tab-buttons button.active {
    background: linear-gradient(90deg, #7d2fff, #2eb9ff);
    color: #fff;
    transform: translateY(-2px);
}

/* Code Window */
.code-window {
    /* background: #1c1c1c; */
    border-radius: 10px;
    /* overflow: hidden; */
    position: relative;
    height: 280px;
}

.code-window img {
    position: absolute;
    top: 0;
    left: 0;
    max-width: 100%;
    height: 100%;
    border-radius: 10px;
    opacity: 0;
    transform: scale(0.97);
    transition: all 0.6s ease;
    object-fit: cover;
}

.code-window img.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

/* Small glowing gradient border effect */
.code-editor::before {
    content: "";
    position: absolute;
    top: -2px;
    right: -2px;
    bottom: -2px;
    left: -2px;
    border-radius: 16px;
    background: linear-gradient(135deg, #7d2fff, #2eb9ff);
    z-index: -1;
    opacity: 0.2;
}


/******************** Section 5  */
/* Section Container */
.portfolio-section {
    background: linear-gradient(135deg, #f6f2ff, #e9e5ff);
    padding: 40px 8%;
    border-radius: 20px;
    color: #000;
    border-top-left-radius: 45px;
    border-top-right-radius: 45px;
    margin-top: -40px;
    border-bottom-left-radius: 45px;
    border-bottom-right-radius: 45px;

}

/* Heading */
.portfolio-heading {
    text-align: center;
    margin-bottom: 40px;
}

.portfolio-heading h2 {
    display: inline-block;
    background: #0d0d0d;
    color: #fff;
    padding: 10px 40px;
    border-radius: 12px;
    font-size: 20px;
    font-weight: 600;
}

/* Portfolio Cards */
.portfolio-cards {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
}

.portfolio-card {
    flex: 1;
    /* background: #fff; */
    border-radius: 15px;
    padding: 15px;
    text-align: left;
    /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); */
}

.portfolio-card img {
    width: 100%;
    border-radius: 15%;
    margin-bottom: 15px;
    height: 350px;
    object-fit: cover;
}

.portfolio-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.portfolio-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.arrow-portfolio-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    padding: 10px 10px;
    border-radius: 50px;
    background: linear-gradient(to right, #7d2fff, #2eb9ff);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
}

/* Arrow style */
.arrow-portfolio-btn .arrow {
    transform: rotate(-45deg);
    display: inline-block;
    transition: transform 0.4s ease;
    font-size: 16px;
}

/* Text hidden initially */
.arrow-portfolio-btn .text {
    max-width: 0;
    opacity: 0;
    white-space: nowrap;
    overflow: hidden;
    transition: all 0.4s ease;
}

/* Hover effect */
.arrow-portfolio-btn:hover {
    padding-right: 25px;
    /* allow space for text */
}

.arrow-portfolio-btn:hover .arrow {
    transform: translateX(6px);
}

.arrow-portfolio-btn:hover .text {
    max-width: 120px;
    opacity: 1;
}

/* Bottom Section */
.portfolio-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.portfolio-video {
    flex: 1.2;
    position: relative;
}

.portfolio-video img {
    width: 100%;
    border-radius: 15px;
    height: 60vh;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}

.portfolio-text {
    flex: 1;
}

.portfolio-text p {
    font-size: 16px;
    color: #444;
    margin-bottom: 20px;
}

/* ************************* Section 6 */
.testimonial-section {
    padding: 40px 20px;
    text-align: center;
    background-image: url('../images/clients-bg.png');
    /* background-position: center; */
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.testimonial-section h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    font-weight: 600;
    color: #fff;
}

.testimonial-slider {
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial-box {
    background: #1f1f2e;
    border-radius: 16px;
    padding: 30px;
    margin: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease-in-out;
}

.testimonial-box:hover {
    transform: translateY(-5px);
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #ccc;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #6a11cb;
}

.author-info {
    text-align: left;
}

.author-info h4 {
    margin: 0;
    font-size: 1rem;
    color: #fff;
}

.author-info span {
    font-size: 0.9rem;
    color: #aaa;
}

/* Slick Dots Customization */
.slick-dots li button:before {
    font-size: 12px !important;
    color: #fff !important;
    opacity: 0.8;
}

.slick-dots li.slick-active button:before {
    color: #fff;
    opacity: 1;
}

/* Arrows */
.slick-prev:before,
.slick-next:before {
    font-size: 30px;
    color: #6a11cb;
}