@charset "utf-8";

/* Custom Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

@keyframes scrollBounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 1.5s ease-out forwards;
    opacity: 0;
    /* Start hidden */
}

.animate-scroll-bounce {
    animation: scrollBounce 2s infinite;
}

/* Stagger delays */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-500 {
    animation-delay: 0.5s;
}

.delay-700 {
    animation-delay: 0.7s;
}

/* Medical Grid Pattern */
.bg-medical-grid {
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

.bg-medical-grid-dark {
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Slider Handle Cursor */
.cursor-ew-resize {
    cursor: ew-resize;
}

/* 3-Axis Deep Dive Section */
.deep-dive-section {
    position: relative;
    width: 100%;
    background: linear-gradient(to bottom, #121212, #000000);
}

.deep-dive-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    min-height: 100vh;
}

.visual-area {
    position: sticky;
    top: 0;
    width: 50%;
    height: 100vh;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.visual-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.visual-image.active {
    opacity: 1;
}

.text-area {
    width: 50%;
    padding: 0 5%;
}

.step-card {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0.2;
    filter: blur(4px);
    transition: all 0.6s ease-out;
}

.step-card.active {
    opacity: 1;
    filter: blur(0);
}

.step-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.step-desc {
    font-size: 18px;
    color: #E0E0E0;
    line-height: 1.6;
    font-weight: 400;
}

/* Axis Colors */
.color-x {
    color: #3b82f6;
}

/* Blue */
.color-y {
    color: #22c55e;
}

/* Green */
.color-z {
    color: #a855f7;
}

/* Purple */
.color-total {
    color: #fbbf24;
}

/* Gold */

/* Default for mobile image (Hidden on Desktop) */
.mobile-only-image {
    display: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .deep-dive-container {
        flex-direction: column;
    }

    .visual-area {
        display: none;
        /* Hide sticky visual area on mobile */
    }

    .text-area {
        width: 100%;
        padding: 0 24px;
    }

    .step-card {
        height: auto;
        padding: 60px 0;
        opacity: 1;
        filter: blur(0);
    }

    .step-title {
        font-size: 24px;
    }

    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 1.5s ease-out forwards;
    opacity: 0;
    /* Start hidden */
}

.animate-scroll-bounce {
    animation: scrollBounce 2s infinite;
}

/* Stagger delays */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-500 {
    animation-delay: 0.5s;
}

.delay-700 {
    animation-delay: 0.7s;
}

/* Medical Grid Pattern */
.bg-medical-grid {
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

.bg-medical-grid-dark {
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Slider Handle Cursor */
.cursor-ew-resize {
    cursor: ew-resize;
}

/* 3-Axis Deep Dive Section */
.deep-dive-section {
    position: relative;
    width: 100%;
    background: linear-gradient(to bottom, #121212, #000000);
}

.deep-dive-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    min-height: 100vh;
}

.visual-area {
    position: sticky;
    top: 0;
    width: 50%;
    height: 100vh;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.visual-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.visual-image.active {
    opacity: 1;
}

.text-area {
    width: 50%;
    padding: 0 5%;
}

.step-card {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0.2;
    filter: blur(4px);
    transition: all 0.6s ease-out;
}

.step-card.active {
    opacity: 1;
    filter: blur(0);
}

.step-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.step-desc {
    font-size: 18px;
    color: #E0E0E0;
    line-height: 1.6;
    font-weight: 400;
}

/* Axis Colors */
.color-x {
    color: #3b82f6;
}

/* Blue */
.color-y {
    color: #22c55e;
}

/* Green */
.color-z {
    color: #a855f7;
}

/* Purple */
.color-total {
    color: #fbbf24;
}

/* Gold */

/* Default for mobile image (Hidden on Desktop) */
.mobile-only-image {
    display: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .deep-dive-container {
        flex-direction: column;
    }

    .visual-area {
        display: none;
        /* Hide sticky visual area on mobile */
    }

    .text-area {
        width: 100%;
        padding: 0 24px;
    }

    .step-card {
        height: auto;
        padding: 60px 0;
        opacity: 1;
        filter: blur(0);
    }

    .step-title {
        font-size: 24px;
    }

    .step-desc {
        font-size: 16px;
    }

    .mobile-only-image {
        display: block !important;
        width: 100%;
        margin-bottom: 24px;
        border-radius: 16px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
}

/* Infinite Marquee Animation */
@keyframes marquee {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

.animate-marquee {
    animation: marquee 120s linear infinite;
}

/* Gradient Mask for Marquee */
.marquee-mask {
    mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
}

/* =====================================================
   Scrollbar Hide (for Swipe Slider)
   ===================================================== */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}