/* TTM Hero Slider Styles */

.ttm-slider-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100vh;
    background: #000;
}

.ttm-slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.ttm-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
}

.ttm-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Slide Background & Parallax */
.ttm-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.ttm-slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ttm-slide.active .ttm-slider-image {
    transform: scale(1);
}

/* Enhanced Overlay for Visibility */
.ttm-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0) 100%),
        linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 40%);
    z-index: 1;
}

/* Content Styles */
.ttm-slider-container {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.ttm-slide-content {
    position: relative;
    height: 100%;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    z-index: 2;
    color: #fff;
}

.ttm-slide .ttm-smooth-btn-wrap {
    opacity: 0;
    visibility: hidden;
}

.ttm-slide-label {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #fff;
    margin-bottom: 20px;
    opacity: 0;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.elementor-editor-active .ttm-slide-label {
    opacity: 1;
    visibility: visible;
}

.ttm-slide-label::before {
    content: '';
    width: 30px;
    height: 2px;
    background: #fff;
}

.ttm-slide-title {
    font-size: clamp(40px, 6vw, 78px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    letter-spacing: -1px;
}

.elementor-editor-active .ttm-slide-title {
    opacity: 1;
    visibility: visible;
}

.ttm-slide-description {
    font-size: clamp(16px, 1.8vw, 20px);
    max-width: 650px;
    margin-bottom: 45px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0;
}

.elementor-editor-active .ttm-slide-description {
    opacity: 1;
    visibility: visible;
}

/* GSAP Smooth Capsule Button */
.ttm-smooth-btn-wrap {
    display: inline-flex;
    align-items: center;
    gap: var(--btn-gap, 8px);
    cursor: pointer;
    position: relative;
    opacity: 1;
    visibility: visible;
    text-decoration: none;
    user-select: none;
    /* Default Variables */
    --btn-bg: #333;
    --btn-color: #fff;
    --btn-hover-bg: #fff;
    --btn-hover-color: #000;
}

.elementor-editor-active .ttm-smooth-btn-wrap {
    opacity: 1;
    visibility: visible;
}

.ttm-smooth-btn-wrap .btn-capsule {
    background: var(--btn-bg);
    color: var(--btn-color);
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.4s ease, color 0.4s ease;
}

.ttm-smooth-btn-wrap .btn-circle {
    width: 48px;
    height: 48px;
    background: var(--btn-bg);
    color: var(--btn-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: background 0.4s ease, color 0.4s ease;
}

.ttm-smooth-btn-wrap .btn-circle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    transition: transform 0.4s ease;
}

/* Hover fallback (JS handles official animation) */
.ttm-smooth-btn-wrap:hover .btn-capsule,
.ttm-smooth-btn-wrap:hover .btn-circle {
    background: var(--btn-hover-bg);
    color: var(--btn-hover-color);
}

.ttm-smooth-btn-wrap.is-hovered .btn-circle svg {
    transform: rotate(180deg);
}

/* New Premium Loading Indicator (Dash + Number) */
.ttm-slider-controls {
    position: absolute;
    bottom: 50px;
    left: 5%;
    z-index: 10;
    color: #fff;
}

.ttm-slider-numbers {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: 'Houschka Pro', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
}

.ttm-current-num,
.ttm-total-num {
    display: inline-block;
    min-width: 25px;
}

.ttm-progress-dash {
    width: 100px;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    margin-top: 2px;
    /* Slight adjustment for visual center */
}

.ttm-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: #fff;
    transition: width 0.1s linear;
}

/* Sidebar Navigation */
.ttm-sidebar-nav {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100; /* Increased to ensure it's on top */
    display: flex;
    flex-direction: column;
    gap: 30px;
    pointer-events: all;
}

.ttm-nav-item {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.ttm-nav-preview {
    position: absolute;
    right: 40px;
    width: 0;
    height: 80px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.ttm-nav-item:hover .ttm-nav-preview {
    width: 140px;
    opacity: 1;
    right: 50px;
}

.ttm-nav-dot {
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.ttm-nav-item.active .ttm-nav-dot {
    background: #fff;
    border-color: #fff;
    transform: scale(1.3);
}

.ttm-nav-item:hover .ttm-nav-dot {
    border-color: #fff;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .ttm-sidebar-nav {
        display: none;
    }

    .ttm-slider-container {
        height: 700px;
    }

    .ttm-slider-controls {
        left: 50%;
        transform: translateX(-50%);
        bottom: 30px;
    }

    .ttm-progress-dash {
        width: 100px;
    }
}

@media (max-width: 767px) {
    .ttm-slide-content {
        align-items: center;
        text-align: center;
    }

    .ttm-slider-container {
        height: 500px;
    }
}