/**
 * Tabbed Features Component Styles
 * Smooth animations and modern tab interface
 */

/* ===================================
   TAB NAVIGATION STYLES
   ================================== */

.tab-navigation {
    position: relative;
}






/* Underline Style */
.tab-underline .tab-button {
    background: transparent;
    border-radius: 0;
    padding-bottom: 16px;
    margin: 0 16px;
    border-bottom: 3px solid transparent;
}

.tab-underline .tab-button:hover {
    color: #374151;
    border-bottom-color: #d1d5db;
}

.tab-underline .tab-button.active {
    color: #1f2937;
    border-bottom-color: #1f2937;
}



/* ===================================
   TAB CONTENT STYLES
   ================================== */

.tab-content-container {
    position: relative;
}

.tab-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

.tab-content.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Content animations */
.tab-content.active .content-text {
    animation: contentSlideIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s both;
}

.tab-content.active .content-image {
    animation: imageSlideIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s both;
}

/* Enhanced content element animations */
.tab-content.active .content-title {
    animation: titleFadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s both;
}

.tab-content.active .content-description {
    animation: descriptionFadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s both;
}

.tab-content.active .content-background {
    animation: backgroundFadeIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s both;
}

/* Image container animation */
.tab-content.active .content-image img {
    animation: imageZoomIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both;
}

/* ===================================
   SHAPE TWO SPECIFIC ANIMATIONS
   ================================== */

/* Shape Two Card Animation */
.tab-content.active .bg-white {
    animation: cardSlideInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* Step Number Animation */
.tab-content.active .bg-\[--dafc71\] {
    animation: stepNumberBounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

/* Phone Mockup Animation */
.tab-content.active .phone-mockup {
    animation: phoneMockupSlideIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s both;
}

/* Image Half Background Animation */
.tab-content.active .bg-\[--2a2341\] {
    animation: imageHalfFadeIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s both;
}

/* Reset animations for inactive content */
.tab-content:not(.active) .content-text,
.tab-content:not(.active) .content-image,
.tab-content:not(.active) .content-title,
.tab-content:not(.active) .content-description,
.tab-content:not(.active) .content-background {
    opacity: 0;
    transform: translateY(20px);
}

.tab-content:not(.active) .content-image img {
    opacity: 0;
    transform: scale(0.9);
}

/* Shape Two Reset States */
.tab-content:not(.active) .bg-white {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
}

.tab-content:not(.active) .bg-\[--dafc71\] {
    opacity: 0;
    transform: scale(0);
}

.tab-content:not(.active) .phone-mockup {
    opacity: 0;
    transform: translateX(30px) rotate(10deg) scale(0.8);
}

.tab-content:not(.active) .bg-\[--2a2341\] {
    opacity: 0;
    transform: scale(1.05);
}

/* ===================================
   SCROLL ANIMATIONS
   ================================== */

/* Animated state - smooth entrance when in view */
.section-scroll-animate.animate-in-view .section-header-animate {
    animation: sectionHeaderFadeIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s both;
}

.section-scroll-animate.animate-in-view .section-title-animate {
    animation: sectionTitleSlideUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s both;
}

.section-scroll-animate.animate-in-view .section-description-animate {
    animation: sectionDescriptionFadeIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s both;
}

.section-scroll-animate.animate-in-view .tab-navigation {
    animation: tabNavSlideUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s both;
}

.section-scroll-animate.animate-in-view .tab-content-container {
    animation: tabContentFadeIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.8s both;
}

/* Staggered tab button animations */
.section-scroll-animate.animate-in-view .tab-button-animate[data-index="0"] {
    animation: tabButtonSlideIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.7s both;
}

.section-scroll-animate.animate-in-view .tab-button-animate[data-index="1"] {
    animation: tabButtonSlideIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.8s both;
}

.section-scroll-animate.animate-in-view .tab-button-animate[data-index="2"] {
    animation: tabButtonSlideIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.9s both;
}

.section-scroll-animate.animate-in-view .tab-button-animate[data-index="3"] {
    animation: tabButtonSlideIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.0s both;
}

.section-scroll-animate.animate-in-view .tab-button-animate[data-index="4"] {
    animation: tabButtonSlideIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.1s both;
}

.section-scroll-animate.animate-in-view .tab-button-animate[data-index="5"] {
    animation: tabButtonSlideIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.2s both;
}

/* ===================================
   KEYFRAME ANIMATIONS
   ================================== */

@keyframes contentSlideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

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

@keyframes imageSlideIn {
    from {
        opacity: 0;
        transform: translateX(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes titleFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes descriptionFadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

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

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

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes imageZoomIn {
    from {
        opacity: 0;
        transform: scale(0.9) rotate(-2deg);
    }

    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes sectionHeaderFadeIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

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

@keyframes sectionTitleSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

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

@keyframes sectionDescriptionFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes tabButtonSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

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

@keyframes tabNavSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes tabContentFadeIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

/* ===================================
   SHAPE TWO KEYFRAME ANIMATIONS
   ================================== */

@keyframes cardSlideInUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

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

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

    60% {
        opacity: 1;
        transform: scale(1.2);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes phoneMockupSlideIn {
    from {
        opacity: 0;
        transform: translateX(30px) rotate(10deg) scale(0.8);
    }

    to {
        opacity: 1;
        transform: translateX(0) rotate(3deg) scale(1);
    }
}

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

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===================================
   RESPONSIVE DESIGN
   ================================== */

@media (max-width: 768px) {
    .tab-button {
        font-size: 14px;
        padding: 10px 20px;
    }

    .tab-content-container {
        min-height: 400px;
    }
}

/* ===================================
   ACCESSIBILITY & REDUCED MOTION
   ================================== */



/* Performance optimizations */
.tab-content,
.content-text,
.content-image,
.content-title,
.content-description,
.content-background {
    will-change: transform, opacity;
}

.tab-content.active .content-text,
.tab-content.active .content-image,
.tab-content.active .content-title,
.tab-content.active .content-description,
.tab-content.active .content-background {
    will-change: auto;
}

@media (prefers-reduced-motion: reduce) {

    .tab-button,
    .tab-content,
    .content-text,
    .content-image,
    .content-title,
    .content-description,
    .content-background,
    .section-header-animate,
    .section-title-animate,
    .section-description-animate,
    .tab-button-animate,
    .tab-content-animate,
    .bg-white,
    .bg-\[--dafc71\],
    .phone-mockup,
    .bg-\[--2a2341\],
    button {
        transition: none !important;
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .tab-content {
        transform: none !important;
    }

    .tab-content.active {
        opacity: 1 !important;
        visibility: visible !important;
    }

    .tab-content:not(.active) .content-text,
    .tab-content:not(.active) .content-image,
    .tab-content:not(.active) .content-title,
    .tab-content:not(.active) .content-description,
    .tab-content:not(.active) .content-background {
        opacity: 1 !important;
        transform: none !important;
    }

    /* Ensure all scroll animation elements are visible */
    .section-scroll-animate:not(.animate-in-view) .section-header-animate,
    .section-scroll-animate:not(.animate-in-view) .section-title-animate,
    .section-scroll-animate:not(.animate-in-view) .section-description-animate,
    .section-scroll-animate:not(.animate-in-view) .tab-navigation,
    .section-scroll-animate:not(.animate-in-view) .tab-content-container,
    .section-scroll-animate:not(.animate-in-view) .tab-button-animate {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ===================================
   SLIDER STYLES (Shape Two)
   ================================== */

/* Slider Navigation */
.slider-navigation-wrapper {
    position: relative;
}

.slider-nav-btn {
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-nav-btn:hover {
    background-color: #f9fafb;
    border-color: #6b7280;
    transform: scale(1.05);
}

.slider-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Step Indicators */
.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 12px;
    border-radius: 12px;
    min-width: 120px;
}

.step-indicator:hover {
    background-color: #f9fafb;
}

.step-indicator.active {
    transform: scale(1.05);
}

.step-indicator.tapped {
    background: none;
    border: none;
    padding: 0;
    height: fit-content;
    padding-block: 10px;
}

.step-number {
    width: 32px;
    height: 32px;
    background-color: #e5e7eb;
    color: #6b7280;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.step-indicator.active .step-number {
    background-color: #1f2937;
    color: white;
}

.step-title {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    text-align: center;
    transition: all 0.3s ease;
    line-height: 1.4;
}

.step-indicator.active .step-title {
    color: #1f2937;
}

/* Slider Content */
.slider-content-wrapper {
    position: relative;
    width: 100%;
}

.slider-content-wrapper:after {
    content: '';
    position: absolute;
    left: 100%;
    width: 100vw;
    top: 0;
    background: #f8f7f4;
    bottom: 0;
}

.slider-content-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    /* Width will be set by JavaScript based on slide count */
}

.slider-content-item {
    width: 100%;
    flex-shrink: 0;
    flex-basis: 90%;
}

/* Content Shape Two Specific */
.content-shape-shape_two .slider-content-item .rounded-custom {
    border-radius: 24px;
}

/* RTL Support for Slider */
[dir="rtl"] .slider-content-track {
    transform: translateX(0%);
}

[dir="rtl"] .slider-nav-btn .hgi-arrow-left-02::before {
    content: "\e916";
    /* Arrow right icon for RTL */
}

[dir="rtl"] .slider-nav-btn .hgi-arrow-right-02::before {
    content: "\e917";
    /* Arrow left icon for RTL */
}

/* Mobile Responsiveness for Slider */
@media (max-width: 768px) {
    .step-indicator {
        min-width: 80px;
        padding: 8px;
        gap: 6px;
    }

    .step-number {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

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

    .slider-nav-btn {
        width: 40px;
        height: 40px;
    }
}