/* Tube Animation Section - OVINA Pain Relief Gel */

.tube-section {
    min-height: 100vh;
    position: relative;
    background: #FFF9F5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Decorative background overlays - only visible when overlay is active */
.tube-section::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(205, 241, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.tube-section::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 181, 52, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Show decorative elements when overlay is active */
.tube-section.overlay-active::before,
.tube-section.overlay-active::after {
    opacity: 1;
}

/* Dark Overlay - for GSAP animation - this changes the background to navy */
.tube-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1A375B;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

.tube-content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--container-max);
    padding: 0 var(--container-padding);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

/* Tube Mockup */
.tube-mockup {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tube-mockup img {
    width: 100%;
    max-width: 220px;
    height: auto;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.3));
}

/* Text Content */
.tube-text-content {
    opacity: 0;
    color: var(--color-navy-blue);
    transition: color 0.5s ease;
}

/* Text becomes white when overlay is active */
.tube-section.overlay-active .tube-text-content {
    color: var(--color-white);
}

.tube-section-title {
    font-size: var(--fs-h1);
    margin-bottom: var(--spacing-sm);
    color: var(--color-navy-blue);
    transition: color 0.5s ease;
}

.tube-section.overlay-active .tube-section-title {
    color: var(--color-white);
}

.tube-section-title .gradient-text {
    background: linear-gradient(135deg, #2EB2E3, #95E1FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tube-section-subtitle {
    font-size: var(--fs-body);
    margin-bottom: var(--spacing-xl);
    color: var(--color-accent-blue-1);
    transition: color 0.5s ease;
}

.tube-section.overlay-active .tube-section-subtitle {
    color: #CDF1FF;
}

.tube-features {
    list-style: none;
}

.tube-feature-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background: rgba(26, 76, 139, 0.05);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(26, 76, 139, 0.1);
    transition: var(--transition-normal);
}

.tube-section.overlay-active .tube-feature-item {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(205, 241, 255, 0.15);
}

.tube-feature-item:hover {
    transform: translateX(10px);
}

.tube-section.overlay-active .tube-feature-item:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(46, 178, 227, 0.3);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-orange), var(--color-light-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 30px;
    height: 30px;
    fill: var(--color-white);
}

.feature-text h3 {
    font-size: var(--fs-h3);
    margin-bottom: var(--spacing-xs);
    color: var(--color-navy-blue);
    transition: color 0.5s ease;
}

.tube-section.overlay-active .feature-text h3 {
    color: var(--color-white);
}

.feature-text p {
    font-size: var(--fs-small);
    color: var(--color-accent-blue-1);
    margin: 0;
    transition: color 0.5s ease;
    text-align: justify;
}

.tube-section.overlay-active .feature-text p {
    color: #CDF1FF;
}

/* Tablet */
@media (max-width: 1199px) {
    .tube-content-wrapper {
        gap: var(--spacing-xl);
    }

    .tube-mockup img {
        max-width: 200px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .tube-section {
        min-height: 100vh;
        padding: var(--spacing-lg-mobile) 0;
    }

    .tube-content-wrapper {
        grid-template-columns: 0.9fr 1.1fr;
        gap: var(--spacing-md-mobile);
        align-items: center;
    }

    .tube-mockup {
        order: 0;
        justify-content: center;
    }

    .tube-mockup img {
        max-width: 180px;
    }

    .tube-text-content {
        text-align: left;
    }

    .tube-section-title {
        font-size: 18px;
        margin-bottom: var(--spacing-xs-mobile);
        display: none;
    }

    .tube-section-subtitle {
        font-size: 12px;
        margin-bottom: var(--spacing-sm-mobile);
        display: none;
    }

    .tube-feature-item {
        flex-direction: row;
        align-items: center;
        text-align: left;
        padding: var(--spacing-md-mobile);
        margin-bottom: var(--spacing-md-mobile);
        gap: var(--spacing-sm-mobile);
        min-height: 95px;
        transition: transform 0.1s ease, box-shadow 0.1s ease;
    }

    /* Disable hover, add tap effect */
    .tube-feature-item:hover {
        transform: none;
        background: inherit;
        border-color: inherit;
    }

    .tube-feature-item:active {
        transform: scale(0.97);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .tube-section.overlay-active .tube-feature-item:hover {
        transform: none;
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(205, 241, 255, 0.15);
    }

    .tube-section.overlay-active .tube-feature-item:active {
        transform: scale(0.97);
        box-shadow: 0 6px 16px rgba(46, 178, 227, 0.2);
    }

    .feature-icon {
        width: 48px;
        height: 48px;
        flex-shrink: 0;
    }

    .feature-icon svg {
        width: 24px;
        height: 24px;
    }

    .feature-text h3 {
        font-size: var(--fs-body-mobile);
        margin-bottom: 4px;
    }

    .feature-text p {
        font-size: var(--fs-small-mobile);
        line-height: 1.5;
    }
}

@media (max-width: 479px) {
    .tube-content-wrapper {
        grid-template-columns: 0.85fr 1.15fr;
    }

    .tube-mockup img {
        max-width: 160px;
    }

    .feature-icon {
        width: 44px;
        height: 44px;
    }

    .feature-icon svg {
        width: 22px;
        height: 22px;
    }

    .feature-text h3 {
        font-size: var(--fs-small-mobile);
    }

    .feature-text p {
        font-size: 11px;
    }

    .tube-feature-item {
        min-height: 90px;
    }
}