@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --primary-100: #eaf1fd;
    --primary-200: #bfd5fb;
    --primary-300: #78b0f7;
    --primary-400: #338BDB;
    --primary-500: #2366a3;
    --primary-600: #15446e;
    --primary-700: #07243e;


    --secondary-100: #fce1d5;
    --secondary-200: #f9ae7f;
    --secondary-300: #DB8333;
    --secondary-400: #a86325;
    --secondary-500: #774517;
    --secondary-600: #4a280a;
    --secondary-700: #200f02;

    --grey-700: #222224;
    --grey-600: #404144;
    --grey-500: #626367;
    --grey-400: #85878c;
    --grey-300: #abadb0;
    --grey-200: #d3d4d6;
    --grey-100: #d3d4d6;

    --textw-white: #ffffff;
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --text-muted: #6c757d;
    --gradiyan-color: linear-gradient(to left, var(--primary-400), var(--primary-600));
    --gradiyan-secondary-color: linear-gradient(to left, var(--secondary-300), var(--secondary-200));
    --gradiyan-mix-color: linear-gradient(to left, var(--secondary-300), var(--primary-400));
}

body {
    font-family: "Lato", sans-serif;

}

.section-padding {
    padding: 80px 0;

}

.title-font {
    font-family: "Lato", sans-serif;
}

h2.section-title {
    font-size: 48px;
    color: var(--grey-700);
    font-weight: 800;
    text-align: center;
    margin-bottom: 30px;

}

p {
    font: 16px !important;
    color: var(--grey-500);
    margin-bottom: 0;
}

.team-card p {
    color: var(--grey-200);
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes horizontal-bounce {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(20px);
    }
}

.mt-45 {
    margin-top: -45px;
}

.bg-image {
    position: absolute;
    top: 0;
    right: 0;
    animation: bounce 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.bg-image-1 {
    position: absolute;
    top: 0;
    left: 0;
    animation: horizontal-bounce 4s ease-in-out infinite;
    transition: all 0.3s ease;
}

.bg-image-2 {
    position: absolute;
    bottom: 100px;
    animation: rotate 8s linear infinite;
    transition: all 0.3s ease;
}

.fluther-icon {
    display: inline-block;
    background-image: var(--gradiyan-secondary-color);
    padding: 18px 20px;
    border-radius: 30px;
}

.service-card-1 {
    background-color: var(--text-white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
    border: 1px solid var(--grey-200);
    max-width: 350px;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.service-card-1:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

/* Header section with icon and title */
.card-header-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.icon-container {
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: var(--primary-100);
    color: var(--primary-500);
    flex-shrink: 0;
}

.icon-container svg {
    width: 24px;
    height: 24px;
}

.card-title-section h5 {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--primary-700);
}

.card-title-section p {
    margin: 0;
    color: var(--grey-500);
    font-size: 0.95rem;
}

/* Divider line */
.card-divider {
    border-color: var(--grey-200);
    margin-top: 20px;
    margin-bottom: 16px;
}

/* Footer section with turnaround time */
.card-footer-section {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--grey-600);
    font-size: 0.9rem;
}

.card-footer-section svg {
    width: 18px;
    height: 18px;
    color: var(--primary-400);
}

.color-1 {
    width: 400px;
    height: 400px;
    background-color: var(--primary-400);
    border-radius: 100%;
    filter: blur(200px);
    opacity: 0.5;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: -1;
}

.color-2 {
    width: 400px;
    height: 400px;
    background-color: var(--secondary-400);
    border-radius: 100%;
    filter: blur(200px);
    opacity: 0.5;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: -1;
}

.color-3 {
    width: 400px;
    height: 400px;
    background-image: var(--gradiyan-mix-color);
    border-radius: 100%;
    filter: blur(400px);
    /* opacity: 0.8; */
    position: absolute;
    bottom: -100px;
    left: 0;
    right: 0;
    margin: auto;

    z-index: -1;
}

/* Navigation */
header {
    padding: 20px 0;
    border-bottom: 1px solid var(--grey-200);
    background-color: var(--textw-white);
}

.navbar-brand {
    height: 70px;
}

a.nav-link {
    padding: 10px 20px !important;
    border-radius: 50px;
}

a.nav-link:hover {
    background-color: #fff;
}

.navbar-nav {
    background-color: var(--primary-100);
    border-radius: 50px;
    padding: 10px 12px;
    gap: 8px;
}

.logo-box {
    width: 32px;
    height: 32px;
    background-color: black;
    border-radius: 4px;
}

.form-control-lg {
    font-size: 16px !important;
}

.btn-primary-custom {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 13px 24px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: #333;
    color: white;
}

.btn-white-custom {
    background-color: white;
    color: black;
    border: none;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-white-custom:hover {
    background-color: #f8f9fa;
    color: #000;
}

/* Hero Section */
.hero-section {
    padding: 80px 0;
}

.hero-section h6 {
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 500;
    border: 1.5px solid #000;
    display: inline-block;
    margin-bottom: 10px;

}

.hero-section form {
    padding: 20px;
    background: var(--textw-white);
    border-radius: 60px;
    border: 1px solid var(--grey-300);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section form .col-auto {
    margin-top: 0;
}

.hero-section form input,
.hero-section form select {
    border-radius: 30px;
    padding: 12px 20px;
}

.hero-title {
    font-size: 64px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 24px;
    position: relative;
}

.fs-small {
    font-size: 14px !important;
}

.hero-text {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.hero-image {
    width: 100%;
    object-fit: cover;
    border-radius: 20px;
}


/* Team Section */
.team-section {
    background-color: #f8f9fa;
    padding: 80px 0;
}


.team-card {
    background-color: white;
    border-radius: 25px;
    padding: 32px;
    height: 100%;
    border: 1px solid var(--grey-400);
}

.team-card-dark {
    background-color: var(--primary-color);
    color: white;
}

.team-card img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 25px;
}

/* New Testimonials Carousel Styles */
.testimonials-carousel {
    position: relative;
}

.testimonials-container,
.testimonials-track {
    position: relative;
    width: 100%;
    min-height: 500px;
    /* example — adjust per design */
    perspective: 1200px;
    /* 3D rotateY mate */
}

.testimonials-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(0.7) rotateY(90deg) translateZ(-200px);
    transition: all 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    will-change: opacity, transform;
    transform-style: preserve-3d;
}

.testimonial-slide.active {
    opacity: 1;
    transform: scale(1) rotateY(0deg) translateZ(0px);
    z-index: 3;
}

.testimonial-slide.prev {
    transform: scale(0.8) rotateY(-60deg) translateX(-30%) translateZ(-100px);
    z-index: 1;
}

.testimonial-slide.next {
    transform: scale(0.8) rotateY(60deg) translateX(30%) translateZ(-100px);
    z-index: 1;
}



.testimonial-author {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 3px solid transparent;

    position: relative;
    transition: all 0.5s ease;
}

.testimonial-author::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradiyan-color);
    transition: width 0.8s ease;
}

.testimonial-slide.active .testimonial-author::before {
    width: 80px;
}


/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* New Carousel Controls */
.carousel-controls-bottom {
    position: absolute;
    bottom: 30px;
    right: 30px;
    display: flex;
    gap: 15px;
    pointer-events: none;
    z-index: 10;
}

.carousel-btn {
    background: linear-gradient(135deg, var(--primary-400), var(--primary-600));
    border: none;
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: all;
    position: relative;
    overflow: hidden;
}

.carousel-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-400);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.carousel-btn:hover::before {
    opacity: 1;
}

.carousel-btn i {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.carousel-btn:hover i {
    transform: scale(1.2);
}

.prev-btn {
    order: 1;
}

.next-btn {
    order: 2;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Large Tablets and Small Desktops */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }

    .testimonials-carousel {
        height: 600px;
    }
}

@media (max-width: 1200px) {

    .bg-image,
    .bg-image-1,
    .bg-image-2 {
        display: none;

    }
}

/* Tablets */
@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .testimonials-carousel {
        height: 500px;
    }
}

/* Mobile Landscape and Small Tablets */
@media (max-width: 768px) {

    .testimonials-carousel {
        height: 500px;
    }

    .container {
        max-width: 540px;
        padding: 0 15px;
    }



    .testimonial-slide {
        padding: 20px;
    }

    .testimonial-slide .team-card {
        padding: 20px;
    }



    .carousel-controls-bottom {
        display: none;
    }

    .prev-btn,
    .next-btn {
        display: none;
    }

    .testimonial-slide.active .team-card:hover {
        transform: translateY(-8px) scale(1.02);
    }

    .testimonial-author {
        margin-top: 15px;
        padding-top: 15px;
    }

    /* General Typography */

    .stat-number {
        font-size: 2rem;
    }

    /* Services Section */
    .service-card {
        flex-direction: column;
    }

    .service-img,
    .service-content {
        width: 100% !important;
        height: auto;
    }

    /* Portfolio Grid */
    .masonry-grid {
        gap: 15px;
    }

    /* Section Padding */
    .section-padding {
        padding: 60px 0;
    }
}

/* Mobile Portrait */
@media (max-width: 576px) {
    .hero-section {
        text-align: center !important;
    }

    h2 {
        line-height: normal;
    }

    .portfolio-section {
        padding: 50px 0;
    }

    .hero-section {
        padding: 50px 0;
    }

    .hero-text {
        font-size: 14px;
    }

    .hero-section form {
        border-radius: 20px;
    }

    .testimonials-carousel {
        height: 960PX;
    }

    .service-card {
        display: block !important;
        height: auto !important;

    }

    .service-content {
        margin-top: 10px;
    }



    .color-1,
    .color-2,
    .color-3 {
        display: none;
    }

    .hero-section h6 {
        font-size: 14px;
    }

    .container {
        max-width: 100%;
        padding: 0 10px;
    }

    .section-title {
        font-size: 32px !important;
        line-height: normal;
        margin-bottom: 20px !important;
    }

    .work-body {
        padding: 0 !important;
        margin-top: 10px;
    }

    /* Testimonials Mobile */



    .testimonial-slide {
        padding: 15px;
    }

    .testimonial-slide .team-card {
        padding: 15px;
    }


    .testimonial-slide .team-card h3 {
        font-size: 1rem;
    }

    .testimonial-slide .team-card p {
        font-size: 0.9rem;
    }

    .testimonial-slide.active .team-card:hover {
        transform: translateY(-5px) scale(1.01);
    }



    .stat-number {
        font-size: 1.75rem;
    }

    /* Portfolio Single Column */
    .masonry-grid {
        gap: 10px;
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .grid-item-large,
    .grid-item-wide,
    .grid-item-tall {
        grid-column: auto;
        grid-row: auto;
    }

    /* Section Padding Mobile */
    .section-padding {
        padding: 40px 0;
    }

    /* Navigation */
    .navbar-nav {
        text-align: center;
    }

    .navbar-nav .nav-link {
        padding: 10px 0;
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    .container {
        padding: 0 8px;
    }

    /* Testimonials Extra Small */

    .testimonial-slide {
        padding: 12px;
    }

    .testimonial-slide .team-card {
        padding: 12px;
    }



    .testimonial-slide .team-card h3 {
        font-size: 0.9rem;
    }

    .testimonial-slide .team-card p {
        font-size: 0.8rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    /* Section Padding Extra Small */
    .section-padding {
        padding: 30px 0;
    }
}

@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .testimonial-slide .team-card img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 500px) {



    .section-padding {
        padding: 30px 0;
    }
}


/* Services Section */
.service-card {
    padding: 20px;
    border: 1px solid var(--grey-300);
    border-radius: 25px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    /* keep layout stable but disable animated transitions on hover */
    transition: none;
    height: 100%;
    gap: 20px;
    align-items: center;
    background: var(--textw-white);
    cursor: default;
    position: relative;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradiyan-color);
    border-radius: 25px;
    z-index: -1;
    /* don't animate opacity on hover */
    transition: none;
    opacity: 0;
}

/* Neutralize hover visual changes for service cards */
.service-card:hover {
    transform: none !important;
    border-color: 1px solid var(--grey-300) !important;
    box-shadow: none !important;
}

.service-card:hover::before {
    opacity: 0 !important;
}

.service-card:hover .service-content h5,
.service-card:hover .service-content p {
    color: inherit !important;
    transition: none !important;
}

.service-img {
    width: 50%;
    object-fit: cover;
    height: 100%;
    border-radius: 15px;
}

.service-content {
    width: 60%;
    color: var(--grey-500);
}

.service-content h5 {
    font-weight: bold;
    color: var(--primary-700);
}


/* Benefits Section */
.benefits-section {
    background-color: #f8f9fa;
    padding: 80px 0;
}

.benefit-card {
    background-color: white;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
}

.benefit-icon {
    width: 48px;
    height: 48px;
    background-color: var(--primary-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

/* Statistics Section */
.stats-section {
    background: var(--gradiyan-color);
    color: white;
    padding: 80px 0;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-label {
    color: var(--textw-white);
}

/* Portfolio Section */
/* .portfolio-section {
        padding: 80px 0;
        background-color: var(--textw-white);
    }

    .masonry-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-gap: 20px;
        padding: 0 15px;
    }

    .grid-item {
        position: relative;
        overflow: hidden;
        border-radius: 20px;
        transition: all 0.3s ease;
    }

    .grid-item-large {
        grid-column: span 2;
        grid-row: span 2;
    }

    .grid-item-wide {
        grid-column: span 2;
    }

    .grid-item-tall {
        grid-row: span 2;
    }

    .gallery-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    .grid-item:hover .gallery-img {
        transform: scale(1.05);
    }

    .grid-item::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.5));
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .grid-item:hover::after {
        opacity: 1;
    } */


/* FAQ Section */
.faq-section {
    background-color: var(--primary-100);
    padding: 80px 0;
}

.accordion-button {
    font-weight: 500;
    font-size: 1.25rem;
}

.accordion-button:not(.collapsed) {
    background-color: white;
    color: var(--primary-color);
}

/* CTA Section */
.cta-section {
    background-color: var(--primary-color);
    color: white;
    padding: 80px 0;
    text-align: center;
}

/* Footer */
footer {
    background: var(--primary-100);
    color: white;
    padding: 60px 0 20px;
}

footer .container {
    max-width: 1140px;
}

footer p.small {
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.5;
    font-size: 14px;
}

.text-justify {
    text-align: justify;
}

footer h5 {
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--grey-700);
    font-size: 24px;
}

footer .list-unstyled li {
    font-size: 16px;
}

.footer-heading {
    /* color: white; */
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-300);
}


.bi-telephone::before,
.bi-envelope::before,
.bi-geo-alt::before {
    color: #000;
}

footer a {
    color: var(--grey-700);
    text-decoration: none;
}

footer a:focus,
footer a:hover {
    color: var(--primary-500);
    text-decoration: underline;
}

.border-top.border-white {
    border-color: rgba(255, 255, 255, 0.12) !important;
}

.border-top.pt-4 {
    padding-top: 28px !important;
}

@media (max-width: 767.98px) {
    .mt-3.fs-small.text-justify {
        text-align: center;
    }

    .footer-heading::after {
        content: '';
        display: none;
    }

    .text-muted.text-justify.small {
        text-align: center !important;
    }

    footer .row.g-4 {
        text-align: center;
    }

    footer .row.g-4>div {
        margin-bottom: 18px;
    }

    footer .d-flex {
        justify-content: center;
    }
}

.trusted-section h6 {
    font-size: 16px;
    font-weight: 500;
    color: var(--grey-500);
    display: inline-block;
    position: relative;
    margin-bottom: 40px;
}

.trusted-section h6::before,
.trusted-section h6::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 50px;
    height: 1px;
    background: var(--grey-300);
}

.trusted-section h6::before {
    left: -60px;
}

.trusted-section h6::after {
    right: -60px;
}

.logo-img {
    max-height: 40px;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    /* gray effect */
    transition: filter 0.3s;
}

.logo-img:hover {
    filter: grayscale(0);
    /* color on hover */
}

.work-card {
    background: var(--);
    color: var(--primary-700);
    border: 2px solid var(--grey-300);
    border-radius: 25px;
    /* box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2); */
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    height: 100%;
    padding: 20px;
    position: relative;
}

.work-card:hover {
    transform: translateY(-8px);
    box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.3);
}

.work-img {
    height: 220px;
    width: 100%;
    object-fit: cover;
    border-radius: 25px;
}

.work-body {
    padding: 20px;
}

.work-step {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #fff;
    color: var(--primary-400);
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 30px;
    top: 209px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.btn-view {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-700);
    text-decoration: none;
    display: inline-block;
    margin-top: 15px;
    padding: 8px 18px;
    border: 1px solid var(--primary-700);
    border-radius: 25px;
    transition: all 0.3s;
}

.btn-view:hover {
    background: var(--primary-700);
    color: var(--textw-white);
}





/* Global safety: prevent unexpected hover transitions (keeps layout stable) */
*:hover,
*:focus {
    transition: none !important;
    animation: none !important;
}

/* Keep keyboard focus visible for accessibility (no animated outline) */
:focus {
    outline: 3px solid rgba(0, 0, 0, 0.05);
    outline-offset: 2px;
}

/* End of hover/animation overrides */

/* ===== Testimonial smooth transition (override specific only) ===== */
.testimonial-slide {
    /* start slightly lowered and faded */
    display: none;
    transform: translateY(10px) scale(0.99);
    transition: opacity 600ms cubic-bezier(0.22, 0.9, 0.36, 1), transform 600ms cubic-bezier(0.22, 0.9, 0.36, 1);
    will-change: opacity, transform;
}

.testimonial-slide.active {
    display: inline-block;
    transform: translateY(0) scale(1);
    z-index: 3;
}

/* Slightly stagger internal card entrance for perceived smoothness */
.testimonial-slide.active .team-card {
    opacity: 1;
    transform: translateY(0);
    transition: transform 420ms ease, opacity 420ms ease;
    border: 1px solid var(--grey-500);
}

/* Ensure team-card hover rules remain disabled (we only animate slide container) */
.testimonial-slide .team-card {
    transition: none !important;
}


.blink-btn {
    animation: blinkPulse 1.5s infinite;
}

@keyframes blinkPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 123, 206, 0.6);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.05);
        box-shadow: 0 0 20px 5px rgba(0, 123, 206, 0.4);
    }
}

/* End testimonial animation overrides */

.portfolio-section {
    padding: 80px 0;
    background-color: var(--textw-white);
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 20px;
    padding: 0 15px;
}

.grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.grid-item-large {
    grid-column: span 2;
    grid-row: span 2;
}

.grid-item-wide {
    grid-column: span 2;
}

.grid-item-tall {
    grid-row: span 2;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.grid-item:hover .gallery-img {
    transform: scale(1.05);
}

.grid-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.5));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.grid-item:hover::after {
    opacity: 1;
}





/* ====== Fullscreen Lightbox CSS ====== */
.image-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.image-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.image-lightbox img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Navigation buttons */
.lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 2rem;
    background: rgba(0, 0, 0, 0.4);
    border: none;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 50%;
    transition: background 0.3s;
}

.lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
}


@media only screen and (max-width: 1024px) {
    .navbar-brand {
        width: 130px;
        height: auto !important;
    }

    .navbar-brand img {
        width: 100%;
    }

    a.nav-link {
        padding: 2px 8px !important;
    }

    .navbar .btn-primary-custom {
        font-size: 16px !important;
    }

}



@media only screen and (max-width: 991px) {
    header {
        text-align: center;
    }

    .accordion-button {
        font-size: 16px;
    }

    .accordion-button:not(.collapsed) {
        font-size: 16px;
    }

    .accordion-button::after {
        font-size: 16px;
    }

    .accordion-button:not(.collapsed)::after {
        font-size: 16px;
    }

    .navbar-nav {
        margin: 15px 0;
    }
}