/********** Template CSS **********/
:root {
    --primary: #4f6df5;
    --secondary: #7b64ff;
    --accent: #ff7eb5;
    --dark: #2d3748;
    --darker: #1a202c;
    --light: #f8fafc;
    --lighter: #ffffff;
    --gray: #718096;
    --gray-light: #e2e8f0;
    --text-dark: #1a202c;
    --text-bold: #000000;
    --bs-primary: #4f6df5;
    --bs-primary-rgb: 79, 109, 245;
    --bs-secondary: #7b64ff;
    --bs-secondary-rgb: 123, 100, 255;
}

/*** Bootstrap Color Overrides ***/
.text-primary {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-primary {
    background: linear-gradient(90deg, var(--primary), var(--secondary)) !important;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(79, 109, 245, 0.3);
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    border-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(123, 100, 255, 0.4);
    color: white;
}

.btn-secondary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.border-primary {
    border-color: var(--primary) !important;
}

.bg-dark {
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
}

.text-dark {
    color: #1a202c !important;
}

a {
    color: var(--primary);
    text-decoration: none;
}

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


/*** Spinner ***/
.spinner {
    width: 40px;
    height: 40px;
    background: var(--primary);
    margin: 100px auto;
    -webkit-animation: sk-rotateplane 1.2s infinite ease-in-out;
    animation: sk-rotateplane 1.2s infinite ease-in-out;
}

@-webkit-keyframes sk-rotateplane {
    0% {
        -webkit-transform: perspective(120px)
    }

    50% {
        -webkit-transform: perspective(120px) rotateY(180deg)
    }

    100% {
        -webkit-transform: perspective(120px) rotateY(180deg) rotateX(180deg)
    }
}

@keyframes sk-rotateplane {
    0% {
        transform: perspective(120px) rotateX(0deg) rotateY(0deg);
        -webkit-transform: perspective(120px) rotateX(0deg) rotateY(0deg)
    }

    50% {
        transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
        -webkit-transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg)
    }

    100% {
        transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
        -webkit-transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
    }
}

#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Heading ***/
h1,
h2,
.fw-bold {
    font-weight: 800 !important;
}

h3,
h4,
.fw-semi-bold {
    font-weight: 700 !important;
}

h5,
h6,
.fw-medium {
    font-weight: 600 !important;
}


/*** Button ***/
.btn {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    transition: .5s;
}

.btn-primary,
.btn-secondary {
    color: #FFFFFF;
    box-shadow: inset 0 0 0 50px transparent;
}

.btn-primary:hover {
    box-shadow: inset 0 0 0 0 var(--primary);
}

.btn-secondary:hover {
    box-shadow: inset 0 0 0 0 var(--primary);
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 30px;
    height: 30px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}


/*** Navbar ***/
.navbar-light .navbar-nav .nav-link {
    font-family: 'Nunito', sans-serif;
    position: relative;
    margin-left: 25px;
    padding: 35px 0;
    color: var(--dark) !important;
    font-size: 19px;
    font-weight: bolder;
    outline: none;
    transition: .5s;
}

.sticky-top.navbar-light .navbar-nav .nav-link {
    padding: 20px 0;
    color: var(--dark) !important;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary) !important;
}

.inner-page .navbar-light {
    background: #FFFFFF !important;
}

.inner-page .navbar-light .navbar-nav .nav-link {
    color: var(--dark) !important;
}

.inner-page .navbar-light .navbar-nav .nav-link:hover,
.inner-page .navbar-light .navbar-nav .nav-link.active {
    color: var(--primary) !important;
}

.navbar-light .navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-light .navbar-brand h1 {
    color: #4f6df5;
    /* Fallback for browsers that don't support gradient text */
    background: linear-gradient(90deg, #4f6df5 0%, #7b64ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 300;
    /* letter-spacing: -0.5px; */
    position: relative;
    display: inline-block;
    margin: 0;
}

.navbar-light .navbar-brand h1 i {
    color: var(--primary);
    display: inline-block;
    margin-right: 8px;
    filter: drop-shadow(0 0 2px rgba(107, 70, 193, 0.3));
}

.navbar-light .navbar-brand img {
    height: 60px;
    width: auto;
    object-fit: contain;
    margin-right: 10px;
    transition: .5s;
}

.sticky-top.navbar-light .navbar-brand img {
    height: 45px;
    width: auto;
}

@media (max-width: 991.98px) {
    .sticky-top.navbar-light {
        position: relative;
        background: #FFFFFF;
    }

    .navbar-light .navbar-collapse {
        margin-top: 10px;
        border-top: 1px solid #DDDDDD;
    }

    .navbar-light .navbar-nav .nav-link,
    .sticky-top.navbar-light .navbar-nav .nav-link {
        padding: 10px 0;
        margin-left: 0;
        color: var(--dark) !important;
    }

    .navbar-light .navbar-brand h1 {
        background: linear-gradient(90deg, #4f6df5 0%, #7b64ff 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .navbar-light .navbar-brand img {
        height: 45px;
        width: auto;
    }
}

@media (min-width: 992px) {
    .navbar-light {
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        background: transparent !important;
        transition: background 0.3s ease;
        z-index: 999;
    }

    .navbar-light:hover {
        background: #FFFFFF !important;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    }

    .sticky-top.navbar-light {
        position: fixed;
        background: #FFFFFF !important;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    }

    .navbar-light .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 2px;
        bottom: -1px;
        left: 50%;
        background: var(--primary);
        transition: .5s;
    }

    .navbar-light .navbar-nav .nav-link:hover::before,
    .navbar-light .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }

    .navbar-light .navbar-nav .nav-link.nav-contact::before {
        display: none;
    }

    .sticky-top.navbar-light .navbar-brand h1 {
        background: linear-gradient(90deg, #4f6df5 0%, #7b64ff 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
}


/*** Carousel ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(9, 30, 62, .3);
    z-index: 1;
}

@media (max-width: 576px) {
    .carousel-caption h5 {
        font-size: 14px;
        font-weight: 500 !important;
    }

    .carousel-caption h1 {
        font-size: 30px;
        font-weight: 600 !important;
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}


/*** Section Title ***/
.gradient-heading {
    color: #4f6df5;
    /* Fallback for browsers that don't support gradient text */
    background: linear-gradient(90deg, #4f6df5 0%, #7b64ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.section-title-1::before,
.section-title-2::before {
    position: absolute;
    content: "";
    width: 150px;
    height: 5px;
    left: 0;
    bottom: 0;
    background: var(--primary);
    border-radius: 2px;
}

.section-title-2::before {
    height: 1px;
}

.section-title-1.text-center::before,
.section-title-2.text-center::before {
    left: 50%;
    margin-left: -75px;
}

.section-title-1.section-title-sm::before,
.section-title-2.section-title-sm::before {
    width: 90px;
    height: 3px;
}

.section-title-2.section-title-sm::before {
    height: 1px;
}

.section-title-1::after,
.section-title-2::after {
    position: absolute;
    content: "";
    width: 6px;
    height: 5px;
    bottom: 0px;
    background: #FFFFFF;
    -webkit-animation: section-title-run 5s infinite linear;
    animation: section-title-run 5s infinite linear;
}

.section-title-2::after {
    bottom: -2px;
    background: var(--primary);
}

.section-title-1.section-title-sm::after,
.section-title-2.section-title-sm::after {
    width: 4px;
    height: 3px;
}

.section-title-2.section-title-sm::after {
    bottom: -1px;
}

.section-title-1.text-center::after,
.section-title-2.text-center::after {
    -webkit-animation: section-title-run-center 5s infinite linear;
    animation: section-title-run-center 5s infinite linear;
}

.section-title-1.section-title-sm::after,
.section-title-2.section-title-sm::after {
    -webkit-animation: section-title-run-sm 5s infinite linear;
    animation: section-title-run-sm 5s infinite linear;
}

@-webkit-keyframes section-title-run {
    0% {
        left: 0;
    }

    50% {
        left: 145px;
    }

    100% {
        left: 0;
    }
}

@keyframes section-title-run {
    0% {
        left: 0;
    }

    50% {
        left: 145px;
    }

    100% {
        left: 0;
    }
}

@-webkit-keyframes section-title-run-center {
    0% {
        left: 50%;
        margin-left: -75px;
    }

    50% {
        left: 50%;
        margin-left: 70px;
    }

    100% {
        left: 50%;
        margin-left: -75px;
    }
}

@keyframes section-title-run-center {
    0% {
        left: 50%;
        margin-left: -75px;
    }

    50% {
        left: 50%;
        margin-left: 70px;
    }

    100% {
        left: 50%;
        margin-left: -75px;
    }
}

@-webkit-keyframes section-title-run-sm {
    0% {
        left: 0;
    }

    50% {
        left: 85px;
    }

    100% {
        left: 0;
    }
}

@keyframes section-title-run-sm {
    0% {
        left: 0;
    }

    50% {
        left: 85px;
    }

    100% {
        left: 0;
    }
}


/*** Story Timeline ***/
.story::after {
    position: absolute;
    content: "";
    width: 1px;
    height: 100%;
    top: 0;
    left: 50%;
    margin-left: -1px;
    background: var(--primary);
    z-index: -1;
}

.story .story-right::before,
.story .story-left::before {
    position: absolute;
    content: "";
    width: 14px;
    height: 14px;
    top: 2px;
    left: 50%;
    margin-left: -7px;
    background: var(--primary);
    border-radius: 2px;
    transform: rotate(45deg);
    z-index: 1;
}

.story .story-right .story-text::before,
.story .story-left .story-text::before {
    position: absolute;
    content: "";
    width: 0;
    height: 0;
    top: 0;
    border: 9px solid;
}

.story .story-right .story-text::before {
    left: -18px;
    border-color: transparent var(--light) transparent transparent;
}

.story .story-left .story-text::before {
    right: -18px;
    border-color: transparent transparent transparent var(--light);
}

@media (max-width: 768px) {
    .story::after {
        left: 13px;
    }

    .story .story-right::before,
    .story .story-left::before {
        left: 24px;
    }

    .story .story-right .story-text::before,
    .story .story-left .story-text::before {
        top: -18px;
        left: 0;
        border-color: transparent transparent var(--light) transparent;
    }
}


/*** Service ***/
.service-item {
    position: relative;
    min-height: 300px;
    height: auto;
    padding: 30px;
    transition: .5s;
}

.service-item .service-icon {
    margin-bottom: 30px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
    transform: rotate(-45deg);
}

.service-item .service-icon i {
    transform: rotate(45deg);
}

.service-item a.btn {
    position: relative;
    width: auto;
    min-width: 140px;
    margin-top: 20px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.service-item:hover a.btn {
    opacity: 1;
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(79, 109, 245, 0.3);
}

.service3-item>div {
    z-index: 1;
}

.service3-item div::after {
    position: absolute;
    content: "";
    width: 0;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 2px 2px 0 0;
    transition: .5s;
    z-index: -1;
}

.service3-item div:hover::after {
    width: 100%;
    background: var(--primary);
}

.service3-item * {
    transition: .5s;
}

.service3-item:hover * {
    color: #FFFFFF !important;
}

.service3-item .service-icon {
    margin-bottom: 30px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
    transition: .5s;
}

.service3-item:hover .service-icon {
    background: #FFFFFF !important;
}

.service3-item:hover .service-icon i {
    color: var(--primary) !important;
}


/*** Pricing Plan ***/
.price-table>thead>tr>td,
.price-table>thead>tr>th,
.price-table>tbody>tr>td,
.price-table>tbody>tr>th,
.price-table>tfoot>tr>td,
.price-table>tfoot>tr>th {
    padding: 15px 20px;
}


/*** Testimonial ***/
.testimonial-carousel .owl-dots {
    margin-top: 15px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: #DDDDDD;
    border-radius: 2px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 30px;
    background: var(--primary);
}

.testimonial-carousel .owl-item.center {
    position: relative;
    z-index: 1;
}

.testimonial-carousel .owl-item .testimonial-item {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: #FFFFFF !important;
    box-shadow: 0 0 30px rgba(79, 109, 245, 0.4);
}


/*** Team ***/
.team-item {
    transition: .5s;
}

.team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .5s;
}

.team-social a.btn {
    position: relative;
    margin: 0 3px;
    margin-top: 100px;
    opacity: 0;
}

.team-item:hover {
    box-shadow: 0 0 30px rgba(79, 109, 245, 0.4);
}

.team-item:hover .team-social {
    background: rgba(26, 32, 44, .7);
}

.team-item:hover .team-social a.btn:first-child {
    opacity: 1;
    margin-top: 0;
    transition: .3s 0s;
}

.team-item:hover .team-social a.btn:nth-child(2) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .05s;
}

.team-item:hover .team-social a.btn:nth-child(3) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .1s;
}

.team-item:hover .team-social a.btn:nth-child(4) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .15s;
}

.team-item .team-img img,
.blog-item .blog-img img {
    transition: .5s;
}

.team-item:hover .team-img img,
.blog-item:hover .blog-img img {
    transform: scale(1.15);
}


/*** Project Portfolio ***/
#portfolio-flters .btn {
    position: relative;
    display: inline-block;
    margin: 10px 4px 0 4px;
    transition: .5s;
}

#portfolio-flters .btn:hover,
#portfolio-flters .btn.active {
    color: #FFFFFF !important;
}

.portfolio-item {
    margin-bottom: 60px;
}

.portfolio-img img {
    transition: .3s;
}

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.2);
}

.portfolio-title {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 120px;
    padding: 0 30px;
    right: 30px;
    left: 30px;
    bottom: -60px;
    background: #FFFFFF;
    box-shadow: 0 0 30px rgba(79, 109, 245, 0.4);
    transition: .5s;
    z-index: 3;
}

.portfolio-item:hover .portfolio-title {
    bottom: -45px;
}

.portfolio-btn {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .5s;
    z-index: 2;
    opacity: 0;
}

.portfolio-item:hover .portfolio-btn {
    opacity: 1;
}

.portfolio-btn a {
    transition: .5s;
}

.portfolio-item:hover .portfolio-btn a {
    margin-top: -60px;
}

.portfolio-box::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    left: 0;
    bottom: 0;
    border-radius: 2px;
    background: rgba(26, 32, 44, .7);
    transition: .5s;
    z-index: 1;
}

.portfolio-item:hover .portfolio-box::after {
    height: 100%;
}

.project-carousel .owl-nav {
    margin-top: 30px;
    width: 100%;
    height: 46px;
    display: flex;
    justify-content: center;
}

.project-carousel .owl-nav .owl-prev,
.project-carousel .owl-nav .owl-next {
    position: relative;
    margin: 0 5px;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 2px;
    font-size: 22px;
    transition: .5s;
}


/*** Work Process ***/
.process-icon {
    width: 75px;
    height: 75px;
}

.process-item .position-relative::after {
    position: absolute;
    content: "\f101";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 50px;
    color: #DDDDDD;
    top: 0;
    right: -45px;
    -webkit-animation: process-item-icon 3s infinite linear;
    animation: process-item-icon 3s infinite linear;
}

@-webkit-keyframes process-item-icon {
    0% {
        right: -30px;
    }

    50% {
        right: -45px;
    }

    100% {
        right: -30px;
    }
}

@keyframes process-item-icon {
    0% {
        right: -30px;
    }

    50% {
        right: -45px;
    }

    100% {
        right: -30px;
    }
}

.process-item:last-child .position-relative::after {
    display: none;
}

@media (max-width: 992px) {
    .process-item:nth-child(2) .position-relative::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .process-item .position-relative::after {
        display: none;
    }
}


/*** Custom Accordion ***/
.accordion-custom .accordion-item {
    border: none;
    margin-bottom: 15px;
}

.accordion-custom .accordion-button {
    background: var(--light);
    border-radius: 2px;
}

.accordion-custom .accordion-button:not(.collapsed) {
    color: #FFFFFF;
    background: var(--primary);
    box-shadow: none;
}

.accordion-custom .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-custom .accordion-body {
    padding: 15px 0 0 0;
}


/*** Miscellaneous ***/
@media (min-width: 991.98px) {
    .facts {
        position: relative;
        margin-top: -75px;
        z-index: 1;
    }
}

.progress {
    height: 5px;
}

.progress .progress-bar {
    width: 0px;
    transition: 2s;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

.hero-header {
    background: url(../img/hero-header.jpg) top right no-repeat;
    background-size: cover;
}

.bg-header {
    background: linear-gradient(rgba(26, 32, 44, .7), rgba(26, 32, 44, .7)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.link-animated a {
    transition: .5s;
}

.link-animated a:hover {
    padding-left: 10px;
}

.contact-form .help-block ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

@media (min-width: 767.98px) {
    .footer-about {
        margin-bottom: 0;
    }
}

.button-example .btn {
    margin: .25rem .125rem;
}

.home-demo-item a,
.inner-demo-item a {
    display: flex;
    width: 100%;
    height: 800px;
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
    transition: 10s;
}

.inner-demo-item a {
    height: 400px;
    transition: 5s;
}


.home-demo-item:hover a,
.inner-demo-item:hover a {
    background-position: bottom center;
}

/* Team Section Popup Styles */
.team-member-card {
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 1;
    /* Default z-index */
}

.team-member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(79, 109, 245, 0.2);
    z-index: 100 !important;
    /* Bring to front on hover */
}

.team-img img {
    height: 380px;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

/* Fix specific head cutoff for members */
.team-member-card[data-member="saurabh"] .team-img img,
.team-member-card[data-member="saurabh-k"] .team-img img,
.team-member-card[data-member="ankita"] .team-img img,
.team-member-card[data-member="insiya"] .team-img img {
    object-position: top;
}

.team-details {
    position: absolute;
    top: 0;
    left: 95%;
    /* Default: popup to right */
    width: 350px;
    height: 100%;
    /* Match height of card */
    background: white;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
    border-radius: 0 8px 8px 0;
    overflow-y: auto;
    padding: 0;
}

/* Hover Effect */
.team-member-card:hover .team-details {
    opacity: 1;
    visibility: visible;
    left: 100%;
}

.team-details .p-4 {
    height: 100%;
    display: flex;
    align-items: center;
}

/* Responsive Popup Direction */
/* Large Screens: 3 columns */
@media (min-width: 992px) {

    /* For the 3rd, 6th, 9th... items (Right column), show popup to LEFT */
    .col-lg-4:nth-child(3n) .team-details {
        left: auto;
        right: 95%;
        border-radius: 8px 0 0 8px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }

    .col-lg-4:nth-child(3n):hover .team-details {
        left: auto;
        right: 100%;
    }
}

/* Medium Screens: 2 columns */
@media (min-width: 768px) and (max-width: 991px) {

    /* For the 2nd, 4th, 6th... items (Right column), show popup to LEFT */
    .col-md-6:nth-child(2n) .team-details {
        left: auto;
        right: 95%;
        border-radius: 8px 0 0 8px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }

    .col-md-6:nth-child(2n):hover .team-details {
        left: auto;
        right: 100%;
    }

    .team-details {
        width: 300px;
        /* Slightly smaller on tablets */
    }
}

/* Mobile Screens */
@media (max-width: 767px) {
    .team-details {
        position: relative;
        left: 0 !important;
        right: 0 !important;
        width: 100%;
        height: auto;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        display: block;
        /* Show always? or on click? */
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        background: white;
    }

    .team-member-card:hover .team-details {
        left: 0;
        max-height: 500px;
        /* Expand down */
    }
}

/*** Photo Collage ***/
.photo-collage-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(4, auto);
    gap: 10px;
    max-width: 1200px;
    margin: 0 auto;
}

.collage-item {
    overflow: hidden;
    border-radius: 8px;
}

.collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.collage-item:hover img {
    transform: scale(1.05);
}

/* Grid positioning */
.collage-item-1 {
    grid-column: 1 / 5;
    grid-row: 1 / 2;
    min-height: 200px;
}

.collage-item-2 {
    grid-column: 5 / 7;
    grid-row: 1 / 2;
    min-height: 200px;
}

.collage-item-3 {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
    min-height: 200px;
}

.collage-item-4 {
    grid-column: 1 / 3;
    grid-row: 3 / 4;
    min-height: 200px;
}

.collage-item-center {
    grid-column: 3 / 5;
    grid-row: 2 / 3;
    min-height: 200px;
}

.collage-item-5 {
    grid-column: 5 / 7;
    grid-row: 2 / 3;
    min-height: 200px;
}

.collage-item-6 {
    grid-column: 5 / 7;
    grid-row: 3 / 4;
    min-height: 200px;
}

.collage-item-7 {
    grid-column: 3 / 5;
    grid-row: 3 / 4;
    min-height: 250px;
}

/* Purple text box */
.collage-text-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 35px 25px;
    border-radius: 8px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
}

.collage-text-box p {
    font-size: 18px;
    line-height: 1.6;
    color: white;
}

.collage-text-box .btn {
    background: white;
    color: #6b46c1;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.collage-text-box .btn:hover {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
    border-color: white;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(79, 109, 245, 0.4);
}

/* Responsive Design */
@media (max-width: 992px) {
    .photo-collage-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: auto;
    }

    .collage-item-1 {
        grid-column: 1 / 3;
        grid-row: 1 / 2;
    }

    .collage-item-2 {
        grid-column: 3 / 5;
        grid-row: 1 / 2;
    }

    .collage-item-3 {
        grid-column: 1 / 3;
        grid-row: 2 / 3;
    }

    .collage-item-center {
        grid-column: 1 / 5;
        grid-row: 3 / 4;
        min-height: 250px;
    }

    .collage-item-4 {
        grid-column: 3 / 5;
        grid-row: 2 / 3;
    }

    .collage-item-5 {
        grid-column: 1 / 3;
        grid-row: 4 / 5;
    }

    .collage-item-6 {
        grid-column: 3 / 5;
        grid-row: 4 / 5;
    }

    .collage-item-7 {
        grid-column: 1 / 5;
        grid-row: 5 / 6;
    }
}

@media (max-width: 768px) {
    .photo-collage-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .collage-item-1,
    .collage-item-2,
    .collage-item-3,
    .collage-item-4,
    .collage-item-5,
    .collage-item-6,
    .collage-item-7,
    .collage-item-center {
        grid-column: 1 / 2;
        grid-row: auto;
        min-height: 200px;
    }

    .collage-item-center {
        min-height: 250px;
    }

    .collage-text-box {
        padding: 30px 20px;
    }

    .collage-text-box p {
        font-size: 16px;
    }
}

/*** Contact Card Section ***/
.contact-card-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

.company-logo-decoration {
    position: absolute;
    top: -50px;
    right: -30px;
    z-index: 10;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-logo-decoration .logo-icon {
    width: 150px;
    height: auto;
    filter: drop-shadow(0 4px 15px rgba(79, 109, 245, 0.3));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

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

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

.contact-card {
    background: linear-gradient(135deg, #4f6df5 0%, #7b64ff 100%);
    border-radius: 20px;
    padding: 80px 70px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(79, 109, 245, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 80px;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.contact-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    line-height: 1.3;
    margin-bottom: 30px;
}

.contact-details {
    flex: 1;
    z-index: 2;
}

.contact-item {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.contact-item i {
    color: white;
    font-size: 1.2rem;
    width: 30px;
}

.contact-item a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-item a:hover {
    color: #e0e7ff;
    transform: translateX(5px);
}

.contact-location {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.contact-location p {
    color: white;
    font-size: 0.95rem;
}

.contact-location .contact-link {
    color: white;
    text-decoration: underline;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.contact-location .contact-link:hover {
    color: #e0e7ff;
}

.contact-image {
    position: absolute;
    right: 50px;
    bottom: 30px;
    width: 180px;
    height: 180px;
    z-index: 2;
}

.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 992px) {
    .company-logo-decoration {
        width: 100px;
        height: 100px;
        right: -20px;
        top: -20px;
    }

    .company-logo-decoration .logo-icon {
        width: 80px;
    }

    .contact-card {
        padding: 40px 30px;
        padding-bottom: 220px;
    }

    .contact-title {
        font-size: 1.6rem;
    }

    .contact-image {
        right: 30px;
        bottom: 20px;
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 768px) {
    .company-logo-decoration {
        position: relative;
        top: 0;
        right: 0;
        margin: 0 auto 20px;
    }

    .contact-card {
        padding: 30px 25px;
        padding-bottom: 200px;
        text-align: center;
    }

    .contact-title {
        font-size: 1.4rem;
    }

    .contact-item {
        justify-content: center;
    }

    .contact-image {
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        width: 130px;
        height: 130px;
    }
}