/* slider/style.css */

/* Scope everything to .master-slider to prevent leaks */
.master-slider {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    color: white;
    font-family: 'Poppins', sans-serif;
    margin-left: calc(-50vw + 50%);
    /* Force Full Width Breakout */
}

/* Slider Structure */
.master-slider {
    position: relative;
    width: 100%;
    min-height: 100vh;
    /* Full screen */
    overflow: hidden;
    user-select: none;
    z-index: 10;
    padding-top: 80px;
    /* Offset for fixed header */
}

/* slider/style.css */
/* V9: High-Tech Launch Aesthetic - Zero Gravity */

.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
    font-family: 'Poppins', sans-serif;
    color: white;
}

/* 1. Deep Space Background */
.hs-static-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, #0a0a1a 0%, #000000 100%);
    z-index: 0;
}

/* 2. Floating Icons Container */
.hs-floating-icons {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
    /* Let clicks pass through */
}

.hs-icon {
    position: absolute;
    color: rgba(255, 255, 255, 0.1);
    /* Subtle base color */
    display: flex;
    align-items: center;
    justify-content: center;
    /* Blur and movement handled by JS */
}

/* 3. Glass Content */
.hs-content-container {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    padding-top: 60px;
}

.hs-glass-card {
    /* "Invisible" container for layout */
    width: 100%;
    max-width: 1400px;
    text-align: center;
    position: relative;
}

.hs-text-wrap {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.hs-text-wrap.active {
    display: flex;
}

/* 4. Cinematic Typography */
.hs-title {
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1.1;
    margin: 0;
    padding-bottom: 20px;
    padding-top: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 30px rgba(165, 180, 252, 0.3));
}

.ms-highlight {
    background: linear-gradient(90deg, #00f2ff, #0066ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.hs-desc {
    font-size: 1.5rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    line-height: 1.5;
    letter-spacing: 0.5px;
}

/* 5. Ultra-Glass Buttons */
.hs-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 20px 50px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.hs-btn i {
    font-size: 0.9em;
    transition: transform 0.3s;
}

/* Gradient Border Effect */
.hs-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 100px;
    padding: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
}

.hs-btn-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.4) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.6s ease-out;
    z-index: -1;
}

.hs-btn:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 50px rgba(0, 242, 255, 0.2);
    transform: scale(1.05);
}

.hs-btn:hover .hs-btn-glow {
    transform: translate(-50%, -50%) scale(1);
}

.hs-btn:hover i {
    transform: translateX(5px);
}

/* Animations */
.hs-title,
.hs-desc,
.hs-btn {
    opacity: 0;
    transform: translateY(40px);
}

/* Navigation */
.hs-nav {
    position: absolute;
    bottom: 60px;
    width: 100%;
    z-index: 20;
    display: flex;
    justify-content: center;
}

.hs-dots {
    display: flex;
    gap: 20px;
}

.hs-dot {
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.hs-dot.active {
    background: rgba(255, 255, 255, 0.2);
}

.hs-dot-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* Responsive */
@media (max-width: 1024px) {
    .hs-title {
        font-size: 3.5rem;
    }

    .hs-desc {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .hs-title {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }

    .hs-desc {
        font-size: 1rem;
    }

    .hs-btn {
        padding: 15px 30px;
        font-size: 0.9rem;
    }
}

#slider-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 24px;
    z-index: 10;
    /* Ensure on top of background */
}

/* Animations */
.ms-slide-content.active .ms-title {
    animation: slideUp 0.8s backwards 0.1s;
}

.ms-slide-content.active .ms-desc {
    animation: slideUp 0.8s backwards 0.3s;
}

.ms-slide-content.active .ms-btn {
    animation: slideUp 0.8s backwards 0.5s;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 968px) {
    .ms-container {
        flex-direction: column-reverse;
        justify-content: center;
        text-align: center;
        padding-top: 40px;
    }

    .ms-content {
        align-items: center;
        height: auto;
    }

    .ms-visual-card {
        justify-content: center;
        width: 100%;
        height: 350px;
        margin-bottom: 30px;
    }

    .glass-frame {
        width: 100%;
        max-width: 350px;
        height: 350px;
        transform: none;
    }

    .ms-desc {
        margin: 0 auto 20px;
    }

    .ms-title {
        font-size: 2.5rem;
    }
}

.ms-btn:hover {
    background: white;
    color: black;
    box-shadow: 0 0 50px currentColor;
    /* Glows with current text color logic, handled in JS potentially or generic */
    padding: 20px 60px;
    /* Expand on hover */
}

/* Navigation */
.ms-nav {
    position: absolute;
    bottom: 50px;
    right: 10%;
    z-index: 10;
    display: flex;
    gap: 20px;
}

.ms-dot {
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.ms-dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: white;
    transition: width 0.3s;
}

.ms-dot.active::after {
    width: 100%;
}

/* Animations */
@keyframes textReaveal {
    to {
        opacity: 1;
        transform: translateY(0) skewY(0);
    }
}

@keyframes subReaveal {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes btnReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glass Card Effect for Text (Optional, applied to content wrapper) */
.ms-glass-wrapper {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    padding: 50px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .ms-title {
        font-size: 3.5rem;
    }

    .ms-content {
        max-width: 100%;
        padding: 0 20px;
    }

    .ms-container {
        padding: 0;
        justify-content: center;
        text-align: center;
    }

    .ms-subtitle {
        border-left: none;
        padding-left: 0;
    }

    .ms-nav {
        bottom: 20px;
        right: 50%;
        transform: translateX(50%);
    }
}