.text-bold {
    font-weight: 700;
}

/* Menu item animation states */
.menu-item-show {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* todo: check if i can make this image dynamic */
.home .landing {
    background-image: url('../../images/home-bg.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    /* Add padding to account for fixed header */
    /* overflow: hidden; */
}

.home .landing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 0;
    transition: filter 0.8s ease-out;
}

.home .landing::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 85% 50%,
            rgba(48, 53, 55, 0.2) 20%,
            rgba(48, 53, 55, 0.5) 30%,
            rgba(48, 53, 55, 0.8) 40%,
            rgba(48, 53, 55, 1) 100%),
        linear-gradient(to top, #303537, transparent 10%);
    opacity: 0;
    z-index: 1;
    animation: fadeInOverlay 0.8s ease-out forwards;
    animation-delay: 1s;
}

.home .wrapper {
    position: relative;
    border-radius: 0.5rem;
    z-index: 2;
    /* background: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(0); */
    /* animation:.home  wrapperBlurDesktop 0.8s ease-out forwards;
    animation-delay: 1s; */
}

.home .wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: inherit;
    /* inherits from landing background */
    z-index: -1;
    /* behind wrapper content */
    transition: filter 0.8s ease-out;
    animation: blurBackground 0.8s ease-out forwards;
    animation-delay: 1s;
}

@keyframes wrapperBlurDesktop {
    from {
        backdrop-filter: blur(0);
    }

    to {
        backdrop-filter: blur(8px);
    }
}

@keyframes blurBackground {
    from {
        backdrop-filter: blur(0);
    }

    to {
        backdrop-filter: blur(8px);
    }
}


@keyframes fadeInOverlay {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes overlayAppear {
    from {
        background: radial-gradient(circle at 85% 50%,
                rgba(48, 53, 55, 0) 20%,
                rgba(48, 53, 55, 0) 30%,
                rgba(48, 53, 55, 0) 40%,
                rgba(48, 53, 55, 0) 100%);
    }

    to {
        background: radial-gradient(circle at 85% 50%,
                rgba(48, 53, 55, 0.2) 20%,
                rgba(48, 53, 55, 0.5) 30%,
                rgba(48, 53, 55, 0.9) 40%,
                rgba(48, 53, 55, 1) 100%);
    }
}

.landing>* {
    position: relative;
    z-index: 2;
}

.landing-container {
    position: relative;
    z-index: 3;
    opacity: 0;
    animation: fadeInOverlay 0.8s ease-out forwards;
    animation-delay: 1s;
}

/* Border animation wrapper - Default state for non-landing sections */
.border-animation-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 2;
}

/* Other sections start with elements hidden and animate on scroll */
section:not(.landing) .corner-dot {
    opacity: 0;
    transform: scale(0);
}

section:not(.landing) .border-line {
    opacity: 0;
}

section:not(.landing) .extension-line {
    opacity: 0;
}

/* When section is in view, trigger animations */
section:not(.landing).in-view .corner-dot.top-right {
    animation: topDotAppear 0.3s ease-out forwards;
    animation-delay: 0.2s;
}

section:not(.landing).in-view .corner-dot.bottom-left {
    animation: bottomDotAppear 0.3s ease-out forwards;
    animation-delay: 0.2s;
}

section:not(.landing).in-view .border-top {
    animation: borderTopGrow 0.8s ease-out forwards;
    animation-delay: 0s;
}

section:not(.landing).in-view .border-right {
    animation: borderRightGrow 0.8s ease-out forwards;
    animation-delay: 0s;
}

section:not(.landing).in-view .border-bottom {
    animation: borderBottomGrow 0.8s ease-out forwards;
    animation-delay: 0.4s;
}

section:not(.landing).in-view .border-left {
    animation: borderLeftGrow 0.8s ease-out forwards;
    animation-delay: 0.4s;
}

section:not(.landing).in-view .extension-top-right-horizontal {
    animation: extensionGrowHorizontal 0.4s ease-out forwards;
    animation-delay: 0.4s;
}

section:not(.landing).in-view .extension-top-right-vertical {
    animation: extensionGrowVertical 0.4s ease-out forwards;
    animation-delay: 0.4s;
}

section:not(.landing).in-view .extension-bottom-left-horizontal {
    animation: extensionGrowHorizontal 0.4s ease-out forwards;
    animation-delay: 0.4s;
}

section:not(.landing).in-view .extension-bottom-left-vertical {
    animation: extensionGrowVertical 0.4s ease-out forwards;
    animation-delay: 0.4s;
}

/* Corner dots */
.corner-dot {
    position: absolute;
    width: 1rem;
    height: 1rem;
    background: white;
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
}

.corner-dot.top-right {
    top: 8rem;
    right: 3rem;
}

.corner-dot.bottom-left {
    bottom: 3rem;
    left: 3rem;
}

/* Landing section specific animations (keep original timing) */
.landing .corner-dot.top-right {
    animation: topDotAppear 0.3s ease-out forwards;
    animation-delay: 1.6s;
}

.landing .corner-dot.bottom-left {
    animation: bottomDotAppear 0.3s ease-out forwards;
    animation-delay: 1.6s;
}

/* Border lines */
.border-line {
    position: absolute;
    background: linear-gradient(to right, white, transparent 90%);
}

/* Top border - from top-right going left */
.border-top {
    top: 8rem;
    right: 60px;
    height: 4px;
    width: 0;
    background: linear-gradient(to left, white, transparent 90%);
}

/* Right border - from top-right going down */
.border-right {
    top: 60px;
    right: 48px;
    width: 2px;
    height: 0;
    background: linear-gradient(to bottom, white, transparent 90%);
}

/* Bottom border - from bottom-left going right */
.border-bottom {
    bottom: 48px;
    left: 60px;
    height: 2px;
    width: 0;
    background: linear-gradient(to right, white, transparent 90%);
}

/* Left border - from bottom-left going up */
.border-left {
    bottom: 60px;
    left: 48px;
    width: 2px;
    height: 0;
    background: linear-gradient(to top, white, transparent 90%);
}

/* Landing section specific border animations (keep original timing) */
.landing .border-top {
    opacity: 0;
    animation: borderTopGrow 0.8s ease-out forwards;
    animation-delay: 1.2s;
}

.landing .border-right {
    opacity: 0;
    animation: borderRightGrow 0.8s ease-out forwards;
    animation-delay: 1.2s;
}

.landing .border-bottom {
    opacity: 0;
    animation: borderBottomGrow 0.8s ease-out forwards;
    animation-delay: 1.6s;
}

.landing .border-left {
    opacity: 0;
    animation: borderLeftGrow 0.8s ease-out forwards;
    animation-delay: 1.6s;
}

/* Extension lines */
.extension-line {
    position: absolute;
    background: white;
}

.extension-top-right-horizontal {
    top: 8rem;
    right: 0;
    height: 2px;
    width: 0;
}

.extension-top-right-vertical {
    top: 0;
    right: 48px;
    width: 2px;
    height: 0;
}

.extension-bottom-left-horizontal {
    bottom: 48px;
    left: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(to right, white, transparent) !important;
}

.extension-bottom-left-vertical {
    bottom: 0;
    left: 48px;
    width: 2px;
    height: 0;
    background: linear-gradient(to top, white, transparent) !important;
}

/* Landing section specific extension animations (keep original timing) */
.landing .extension-top-right-horizontal {
    opacity: 0;
    animation: extensionGrowHorizontal 0.4s ease-out forwards;
    animation-delay: 1.6s;
}

.landing .extension-top-right-vertical {
    opacity: 0;
    animation: extensionGrowVertical 0.4s ease-out forwards;
    animation-delay: 1.6s;
}

.landing .extension-bottom-left-horizontal {
    opacity: 0;
    animation: extensionGrowHorizontal 0.4s ease-out forwards;
    animation-delay: 1.6s;
}

.landing .extension-bottom-left-vertical {
    opacity: 0;
    animation: extensionGrowVertical 0.4s ease-out forwards;
    animation-delay: 1.6s;
}

/* Animations */
@keyframes borderTopGrow {
    from {
        width: 0;
        opacity: 1;
    }

    to {
        width: calc(100% - 120px);
        opacity: 1;
    }
}

@keyframes borderRightGrow {
    from {
        height: 0;
        opacity: 1;
    }

    to {
        height: calc(100% - 120px);
        opacity: 1;
    }
}

@keyframes borderBottomGrow {
    from {
        width: 0;
        opacity: 1;
    }

    to {
        width: calc(100% - 120px);
        opacity: 1;
    }
}

@keyframes borderLeftGrow {
    from {
        height: 0;
        opacity: 1;
    }

    to {
        height: calc(100% - 120px);
        opacity: 1;
    }
}

@keyframes extensionGrowHorizontal {
    from {
        width: 0;
        opacity: 1;
    }

    to {
        width: 60px;
        opacity: 1;
    }
}

@keyframes extensionGrowVertical {
    from {
        height: 0;
        opacity: 1;
    }

    to {
        height: 60px;
        opacity: 1;
    }
}

@keyframes topDotAppear {
    from {
        opacity: 0;
        transform: scale(0);
    }

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

@keyframes bottomDotAppear {
    from {
        opacity: 0;
        transform: scale(0);
    }

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

/* Content animations for sections */
.home section:not(.landing) .company-title,
.home section:not(.landing) p,
.home section:not(.landing) .services-image,
.home section:not(.landing) .about-image,
.home section:not(.landing) .swiper,
.home section:not(.landing) .members-image {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.home section:not(.landing).in-view .company-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

.home section:not(.landing).in-view p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.8s;
}

.home section:not(.landing).in-view .services-image,
.home section:not(.landing).in-view .about-image,
.home section:not(.landing).in-view .swiper,
.home section:not(.landing).in-view .members-image {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1s;
}

/* Content animations for landing (keep original) */
.content-fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: contentFadeIn 0.6s ease-out forwards;
}

.content-fade-in.delay-1 {
    animation-delay: 2.4s;
}

.content-fade-in.delay-2 {
    animation-delay: 2.6s;
}

.content-fade-in.delay-3 {
    animation-delay: 2.8s;
}

.content-fade-in.delay-4 {
    animation-delay: 3.0s;
}

.content-fade-in.delay-5 {
    animation-delay: 3.2s;
}

@keyframes contentFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glass card effect */

.multi-logo-section {
    z-index: 100;
}

.glass-card {
    position: relative;
    /* for pseudo-element overlay */
    transition: all 0.5s ease-in-out;
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    /* background: rgba(255, 255, 255, 0.15); */
    /* subtle translucency */
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.3), transparent 10%, transparent 80%, rgba(255, 255, 255, 0.3) 90%);
    border-radius: 1rem;
    overflow: hidden;
    /* ensures gradient overlay doesn't leak */
}

/* Subtle gradient overlay for shading */
.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.05) 0%,
            /* top-left slightly white */
            rgba(255, 255, 255, 0) 50%,
            /* middle transparent */
            rgba(0, 0, 0, 0.05) 100%
            /* bottom-right slightly dark */
        );
    z-index: 1;
    /* above background but below content */
    pointer-events: none;
    /* allow clicks through overlay */
    transition: background 0.3s ease-in-out;
}

/* Ensure card content stays above gradient overlay */
.glass-card>* {
    position: relative;
    z-index: 2;
}

.logo-card.active {
    backdrop-filter: blur(20px);
}

/* Hover effect: subtle gradient shift */
.glass-card:hover::before {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.1) 0%,
            /* slightly brighter */
            rgba(255, 255, 255, 0) 50%,
            rgba(0, 0, 0, 0.1) 100%
            /* slightly darker */
        );
}

/* .glass-card:hover {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
} */

/* Button hover effect */
.button {
    transition: all 0.5s ease-in-out;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid white;
}

.button:hover {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.3), transparent 90%);
}


/* Image animation */
.zoom-out-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2rem;
    transform: scale(1.1);
    animation: zoomOut 0.8s ease-out forwards;
    animation-delay: 3.0s;
}

@keyframes zoomOut {
    from {
        transform: scale(1.1);
    }

    to {
        transform: scale(1);
    }
}


/* Make swiper responsive on desktop */
@media (min-width: 1024px) {
    :root {
        --border-width-desktop: 0.075rem;
        --dot-radius: 0.5rem;
    }

    /* Service Card Hover Content */
    .service-card-content {
        /* Add your CSS animations here */
        animation: displayServiceInfo 0.6s ease-out forwards;
    }

    /* Service Card Title (inside hover overlay) */
    .service-card-title {
        /* Add your CSS animations here */
    }

    /* Service Card Description */
    .service-card-description {
        opacity: 0;
        transition: opacity 0.8s ease;
    }

    /* Service Card Button */
    .service-card-button {
        opacity: 0;
        transition: opacity 0.8s ease;
    }


    /* Group hover states */
    .group:hover .service-card-default-title {
        bottom: 80%;
        transform: translate(-50%, 50%) !important;
        transition: bottom 0.8s ease, transform 0.8s ease 150ms;
        transition-delay: 0 !important;
    }


    .group:hover .service-card-description {
        opacity: 1;
        transition: opacity 0.8s ease;
        /* duration timing-function delay */
    }

    .group:hover .service-card-button {
        opacity: 1;
        transition: opacity 0.8s ease;
        /* duration timing-function delay */
    }

    .projectSwiper {
        padding: 2rem 0;
    }

    .projectSwiper .swiper-slide {
        transition: transform 0.3s ease;
    }

    .projectSwiper .swiper-slide-active {
        transform: scale(1.05);
    }

    /* Corner dots */
    .corner-dot {
        width: var(--dot-radius);
        /* larger for desktop */
        height: var(--dot-radius);
    }

    .corner-dot.top-right {
        top: 0;
        /* adjust as needed */
        right: 0;
        transform: translate(50%, 50%);
    }

    .corner-dot.bottom-left {
        bottom: 0;
        left: 0;
    }

    /* Border lines */
    .border-top {
        top: 0;
        /* reposition relative to dot */
        right: 0;
        height: var(--border-width-desktop);
        /* thicker border */
    }

    .border-right {
        top: 0;
        right: 0;
        width: var(--border-width-desktop);
    }

    .border-bottom {
        bottom: 0;
        left: 0;
        height: var(--border-width-desktop);
    }

    .border-left {
        bottom: 0;
        left: 0;
        width: var(--border-width-desktop);
    }

    /* Extension lines */
    .extension-top-right-horizontal {
        top: 0;
        right: -4rem;
        height: var(--border-width-desktop);
        background: linear-gradient(to left, white, transparent) !important;
    }

    .extension-top-right-vertical {
        top: -5rem;
        right: 0;
        width: var(--border-width-desktop);
        background: linear-gradient(to bottom, white, transparent) !important;
    }

    .extension-bottom-left-horizontal {
        bottom: 0;
        left: -4rem;
        height: var(--border-width-desktop);
        background: linear-gradient(to right, white, transparent) !important;
    }

    .extension-bottom-left-vertical {
        bottom: -5rem;
        left: 0;
        width: var(--border-width-desktop);
        background: linear-gradient(to top, white, transparent) !important;
    }



    @keyframes wrapperBlurDesktop {
        from {
            backdrop-filter: blur(0);
        }

        to {
            backdrop-filter: blur(0.45rem);
        }
    }


    /* Desktop-specific animations with longer widths */
    @keyframes extensionGrowHorizontalDesktop {
        from {
            width: 0;
            opacity: 1;
        }

        to {
            width: 20rem;
            /* 160px instead of 60px */
            opacity: 1;
        }
    }

    @keyframes extensionGrowVerticalDesktop {
        from {
            height: 0;
            opacity: 1;
        }

        to {
            height: 20rem;
            /* 160px instead of 60px */
            opacity: 1;
        }
    }

    @keyframes borderTopGrowDesktop {
        from {
            width: 0;
            opacity: 1;
        }

        to {
            width: calc(100% - 160px);
            /* More space for longer extensions */
            opacity: 1;
        }
    }

    @keyframes borderRightGrowDesktop {
        from {
            height: 0;
            opacity: 1;
        }

        to {
            height: calc(100% - 160px);
            /* More space for longer extensions */
            opacity: 1;
        }
    }

    @keyframes borderBottomGrowDesktop {
        from {
            width: 0;
            opacity: 1;
        }

        to {
            width: calc(100% - 160px);
            /* More space for longer extensions */
            opacity: 1;
        }
    }

    @keyframes borderLeftGrowDesktop {
        from {
            height: 0;
            opacity: 1;
        }

        to {
            height: calc(100% - 160px);
            /* More space for longer extensions */
            opacity: 1;
        }
    }

    /* Apply desktop animations to landing section */
    .landing .extension-top-right-horizontal {
        animation: extensionGrowHorizontalDesktop 0.4s ease-out forwards;
        animation-delay: 1.6s;
    }

    .landing .extension-top-right-vertical {
        animation: extensionGrowVerticalDesktop 0.4s ease-out forwards;
        animation-delay: 1.6s;
    }

    .landing .extension-bottom-left-horizontal {
        animation: extensionGrowHorizontalDesktop 0.4s ease-out forwards;
        animation-delay: 1.6s;
    }

    .landing .extension-bottom-left-vertical {
        animation: extensionGrowVerticalDesktop 0.4s ease-out forwards;
        animation-delay: 1.6s;
    }

    .landing .border-top {
        animation: borderTopGrowDesktop 0.8s ease-out forwards;
        animation-delay: 1.2s;
    }

    .landing .border-right {
        animation: borderRightGrowDesktop 0.8s ease-out forwards;
        animation-delay: 1.2s;
    }

    .landing .border-bottom {
        animation: borderBottomGrowDesktop 0.8s ease-out forwards;
        animation-delay: 1.6s;
    }

    .landing .border-left {
        animation: borderLeftGrowDesktop 0.8s ease-out forwards;
        animation-delay: 1.6s;
    }

    /* Apply desktop animations to other sections as well */
    section:not(.landing).in-view .extension-top-right-horizontal {
        animation: extensionGrowHorizontalDesktop 0.4s ease-out forwards;
        animation-delay: 0.4s;
    }

    section:not(.landing).in-view .extension-top-right-vertical {
        animation: extensionGrowVerticalDesktop 0.4s ease-out forwards;
        animation-delay: 0.4s;
    }

    section:not(.landing).in-view .extension-bottom-left-horizontal {
        animation: extensionGrowHorizontalDesktop 0.4s ease-out forwards;
        animation-delay: 0.4s;
    }

    section:not(.landing).in-view .extension-bottom-left-vertical {
        animation: extensionGrowVerticalDesktop 0.4s ease-out forwards;
        animation-delay: 0.4s;
    }

    section:not(.landing).in-view .border-top {
        animation: borderTopGrowDesktop 0.8s ease-out forwards;
        animation-delay: 0s;
    }

    section:not(.landing).in-view .border-right {
        animation: borderRightGrowDesktop 0.8s ease-out forwards;
        animation-delay: 0s;
    }

    section:not(.landing).in-view .border-bottom {
        animation: borderBottomGrowDesktop 0.8s ease-out forwards;
        animation-delay: 0.4s;
    }

    section:not(.landing).in-view .border-left {
        animation: borderLeftGrowDesktop 0.8s ease-out forwards;
        animation-delay: 0.4s;
    }

    .landing {
        margin-bottom: 2rem;
    }

    .landing::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: inherit;
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        /* filter: blur(0); */
        animation: none;
        z-index: 0;
        /* transition: filter 0.8s ease-out; */
        /* animation: blurBackgroundDesktop 0.8s ease-out forwards; */
        /* animation-delay: 1s; */
    }


    .landing::after {
        content: '';
        background: linear-gradient(to top, transparent 80%, rgba(48, 53, 55, 0.8)),
            linear-gradient(to bottom, transparent 80%,
                rgba(48, 53, 55, 0.4),
                rgba(48, 53, 55, 0.7),
                rgba(48, 53, 55, 1)) !important;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1;
    }



    .gradient-bg {
        background: linear-gradient(to top, transparent 40%,
                rgba(48, 53, 55, 0.4),
                rgba(48, 53, 55, 0.6),
                rgba(48, 53, 55, 0.8),
                rgba(48, 53, 55, 1)),
            linear-gradient(to bottom, transparent 40%,
                rgba(48, 53, 55, 0.4),
                rgba(48, 53, 55, 0.6),
                rgba(48, 53, 55, 0.8),
                rgba(48, 53, 55, 1)) !important;

    }


    .membersSwiper {
        padding: 2rem 0;
        overflow: visible;
    }

    .membersSwiper .swiper-slide {
        opacity: 0.7;
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .membersSwiper .swiper-slide-active {
        opacity: 1;
        transform: scale(1.1);
    }

    .membersSwiper .swiper-slide-prev,
    .membersSwiper .swiper-slide-next {
        opacity: 0.85;
    }
}


/* ===============================
   DESKTOP STYLES: Landing Borders
   =============================== */




.members-button-next {
    z-index: 100
}

.members-button-prev {
    z-index: 100
}

/* Member Slides Styling */
.member-slide {
    transition: transform 0.3s ease;
    padding: 1rem;
}

.member-image-container {
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
}

.swiper-slide-active .member-image-container {
    transform: scale(1.05);
    opacity: 1;
}

.project-wall {
    z-index: 100
}

.project-next-button,
.project-prev-button {
    z-index: 110;
}

/* Fix for project overlay description visibility */
#overlay-project-description {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Project overlay improvements */
#project-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 9999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#project-overlay.hidden {
    display: none !important;
}

#project-overlay .w-\[90vw\] {
    max-width: 90vw !important;
    max-height: 90vh !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
}

/* Project button animation - only width expansion, no height changes */
.project-button:hover {
    width: 12rem !important;
    padding-right: 1.5rem !important;
}

.project-button:hover .project-text {
    margin-left: 0.5rem !important;
    max-width: 8rem !important;
    opacity: 1 !important;
}

.project-button:hover img {
    transform: rotate(30deg) !important;
}

/* Initial state */
.animate-in-initial {
    opacity: 0;
    transform: translateY(20px);
}

.animate-in {
    opacity: 1 !important;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}


/* smooth fade/slide in/out */
.member-row {
    transition: all 0.4s ease;
}

.member-row.hidden-row {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.overlay-gradient {
    background: radial-gradient(circle at center, rgba(48, 53, 55, 0.6) 0%, rgba(48, 53, 55, 0.9) 40%, rgba(48, 53, 55, 1) 100%);
}

#service-overlay,
#member-overlay {
    border: 1px solid rgba(200, 200, 200, 0.5);
    /* subtle grey */
    border-radius: 1rem;
    overflow: hidden;
    /* makes children respect radius */
}

/* Fade in */
.service-page .fade-enter {
    opacity: 0;
    transform: translateY(10px);
    visibility: hidden;
}

.service-page .fade-enter-active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Fade out */
.service-page .fade-exit {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.service-page .fade-exit-active {
    opacity: 0;
    transform: translateY(10px);
    visibility: hidden;
    transition: opacity 0.5s ease, transform 0.5s ease;
}


/* Fade in */
.members-page .fade-enter {
    opacity: 0;
    transform: translateY(10px);
    /* small upward slide */
    visibility: hidden;
}

.members-page .fade-enter-active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Fade out */
.members-page .fade-exit {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.members-page .fade-exit-active {
    opacity: 0;
    transform: translateY(10px);
    visibility: hidden;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.members-page .works-container {
    border: 1px solid white;
    border-radius: 1rem;
    background-color: transparent;
    /* light grey background */
}

.members-page .works-title {
    color: #2c2c2c;
}

.members-page .works-main img {
    max-height: 400px;
}

.members-page .works-thumbnails img {
    transition: transform 0.2s ease;
}

.members-page .works-thumbnails img:hover {
    transform: scale(1.05);
}


.members-page .works-title {
    color: #2c2c2c;
}

.members-page .works-main img {
    max-height: 400px;
}

.members-page .works-thumbnails img {
    transition: transform 0.2s ease;
}

.members-page .works-thumbnails img:hover {
    transform: scale(1.05);
}


/* Fix for project overlay description visibility */
#overlay-project-description {
    opacity: 1 !important;
    transform: translateY(0) !important;
}


/* Fix for project overlay description visibility */
#overlay-project-description {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Project overlay improvements */
#project-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 9999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#project-overlay.hidden {
    display: none !important;
}

#project-overlay .w-\[90vw\] {
    max-width: 90vw !important;
    max-height: 90vh !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
}


/* Fix for project overlay description visibility */
#overlay-project-description {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Project overlay improvements */
#project-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 9999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#project-overlay.hidden {
    display: none !important;
}

#project-overlay .w-\[90vw\] {
    max-width: 90vw !important;
    max-height: 90vh !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
}

/* Project button animation similar to about page */
.project-button:hover {
    max-width: 12rem !important;
    padding-right: 1.5rem !important;
}

.project-button:hover div:first-child {
    margin-left: 0.5rem !important;
    max-width: 70% !important;
    opacity: 1 !important;
}

.project-button img {
    transform: rotate(210deg) !important;

}

.project-button:hover img {
    transform: rotate(180deg) !important;
}

/* Member button animation - same as project button */
.member-button:hover {
    width: 12rem !important;
    padding-right: 1.5rem !important;
}

.member-button:hover .member-text {
    margin-left: 0.5rem !important;
    max-width: 8rem !important;
    opacity: 1 !important;
}

.member-button:hover img {
    transform: rotate(180deg) !important;
}

@keyframes blinker {
    50% {
        opacity: 0.2;
    }
}

.warning-blinker {
    animation: blinker 2s linear infinite;
}

.works-thumbnails .swiper {
    height: auto !important;
}

.works-thumbnails .swiper-wrapper {
    height: auto !important;
}

.works-thumbnails .swiper-slide {
    height: 120px !important;
    width: auto !important;
}

.works-thumbnails .swiper-slide img {
    width: 120px !important;
    height: 120px !important;
    object-fit: cover;
}

.mobile-arrow {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mobile-arrow svg {
    fill: white;
    width: 20px;
    height: 20px;
}