/* ==========================================================================
   Sneak Reveal Section (Peeking Character & Ticker Belt)
   Brand Accent Orange: #FF5733
   ========================================================================== */

/* Clean separation from tools stack without any top glow bleed */
.my-skills {
    position: relative;
    z-index: 5 !important;
    background-color: #0f0f0f;
    padding-bottom: 10px !important;
}

.my-skills .tools-slider-container {
    padding-bottom: 8px !important;
}

.my-skills:after {
    display: none !important;
}

.sneak-reveal-wrap {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    z-index: 2;
    overflow: visible;
}

.sneak-reveal-section {
    position: relative;
    width: 100%;
    height: calc(100vh - 148px);
    min-height: 500px;
    max-height: 790px;
    background-color: #0f0f0f;
    overflow: hidden;
    padding: 0 !important;
    margin: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}

/* Conceal the section divider line between sneak reveal and testimonials */
.sneak-reveal-wrap+.testim-modern.bord-top-grd::before,
.sneak-curtain-belt+.testim-modern.bord-top-grd::before {
    display: none !important;
}

/* Testimonials section sits above face stage with dark background */
.testim-modern {
    position: relative;
    z-index: 5 !important;
    background-color: #121212;
    margin-top: 0 !important;
}

/* Subtle Dotted Background Pattern - Strictly Contained Behind Face */
.sneak-dots-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
    /* Strictly behind Face (2) */
}

.sneak-dots-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.32) 1.25px, transparent 1.25px);
    background-size: 26px 26px;
    background-position: center bottom;
    -webkit-mask-image: linear-gradient(to bottom,
            transparent 0%,
            rgba(0, 0, 0, 0.05) 15%,
            rgba(0, 0, 0, 0.35) 35%,
            rgba(0, 0, 0, 0.75) 65%,
            rgba(0, 0, 0, 1) 85%,
            rgba(0, 0, 0, 1) 100%);
    mask-image: linear-gradient(to bottom,
            transparent 0%,
            rgba(0, 0, 0, 0.05) 15%,
            rgba(0, 0, 0, 0.35) 35%,
            rgba(0, 0, 0, 0.75) 65%,
            rgba(0, 0, 0, 1) 85%,
            rgba(0, 0, 0, 1) 100%);
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

/* Face Stage */
.sneak-face-stage {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: visible;
    z-index: 2;
}

/* Face Layer - Sits behind the belt rim */
.sneak-face-wrapper {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    width: 420px;
    z-index: 2;
    /* Behind orange belt (z-index: 5) */
    will-change: transform;
    pointer-events: auto;
}

/* Face Image - Drop shadow completely removed */
.sneak-face-img {
    width: 100%;
    height: auto;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    filter: none !important;
}

/* ==========================================================================
   Floating Badges Layer (Surrounding Head matching Reference Image)
   ========================================================================== */

.sneak-badges-wrapper {
    position: absolute;
    bottom: -22px;
    /* Anchored to the exact same baseline as the head (#sneakFace) */
    left: 50%;
    transform: translateX(-50%) scale(var(--badge-scale, 1));
    transform-origin: center bottom;
    width: 0;
    height: 0;
    pointer-events: none;
    z-index: 3;
    /* Floating in front of face (2), behind orange belt (5) */
}

.sneak-badge-item {
    position: absolute;
    user-select: none;
    -webkit-user-drag: none;
    will-change: transform;
    pointer-events: auto;
    filter: none !important;
    /* Drop shadow removed */
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.sneak-badge-item:hover {
    transform: scale(1.08) !important;
}

.sneak-badge-img {
    display: block;
    width: 100%;
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
    filter: none !important;
}

/* 1. Top Left: Blue (UI/UX Designer) - Increased size (~40px pill height), widely placed */
.sneak-badge-blue {
    left: -360px;
    bottom: 390px;
    width: 223px;
    animation: badgeFloatA 4.2s ease-in-out infinite;
}

/* 2. Middle Left: Yellow (Visual Design) - Increased size (~40px pill height), widely placed */
.sneak-badge-yellow {
    left: -600px;
    bottom: 270px;
    width: 217px;
    animation: badgeFloatB 4.8s ease-in-out infinite 0.6s;
}

/* 3. Bottom Left: Pink (Storyteller) - Increased size (~40px pill height), widely placed */
.sneak-badge-pink {
    left: -450px;
    bottom: 110px;
    width: 223px;
    animation: badgeFloatA 4.5s ease-in-out infinite 1.2s;
}

/* 4. Top Right: Green (Typography) - Increased size (~40px pill height), widely placed */
.sneak-badge-green {
    left: 250px;
    bottom: 310px;
    width: 223px;
    animation: badgeFloatB 5.0s ease-in-out infinite 0.3s;
}

/* 5. Bottom Right: Purple (Creative Thinker) - Increased size (~40px pill height), widely placed */
.sneak-badge-purple {
    left: 330px;
    bottom: 100px;
    width: 223px;
    animation: badgeFloatA 4.4s ease-in-out infinite 0.9s;
}

/* Gentle Floating Micro-Animations */
@keyframes badgeFloatA {

    0%,
    100% {
        transform: translateY(0);
    }

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

@keyframes badgeFloatB {

    0%,
    100% {
        transform: translateY(0);
    }

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

/* Belt Assembly - Sits directly below face section, slides UP over face */
.sneak-curtain-belt {
    position: relative;
    width: 100%;
    height: 88px;
    z-index: 5;
    margin-bottom: -1px;
    /* Seamless overlap with testimonials */
    overflow: visible;
}

/* Orange Belt - Positioned directly on the section divider line (z-index: 5) */
.sneak-belt {
    position: relative;
    width: 100%;
    height: 88px;
    background-color: #ff5733;
    border-top: 1.5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 32px rgba(255, 87, 51, 0.28), 0 2px 6px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    display: flex;
    align-items: center;
    z-index: 5;
    margin-bottom: 0;
    cursor: default;
}

/* Hands Layer - Positioned ABOVE belt and ticker (z-index: 10) */
.sneak-hands-wrapper {
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 840px;
    z-index: 10;
    pointer-events: none;
    will-change: transform;
}

.sneak-hands-img {
    width: 100%;
    height: auto;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.45));
}

/* Text Ticker Track */
.sneak-ticker-track {
    display: flex;
    width: max-content;
    white-space: nowrap;
    will-change: transform;
    animation: sneakTickerScroll 30s linear infinite;
    user-select: none;
    align-items: center;
}

.sneak-ticker-group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* Text inside the belt in crisp WHITE color */
.sneak-ticker-item {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff !important;
    padding: 0 20px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.sneak-ticker-star {
    font-size: 19px;
    color: #ffffff !important;
    padding: 0 14px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

/* Ticker Continuous Infinite Scroll CSS fallback */
@keyframes sneakTickerScroll {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1200px) {
    .sneak-reveal-section {
        height: calc(100vh - 140px);
        min-height: 460px;
    }

    .sneak-dots-pattern::before {
        background-size: 24px 24px;
    }

    .sneak-face-wrapper {
        width: 370px;
        bottom: -20px;
    }

    .sneak-badges-wrapper {
        bottom: -20px;
        --badge-scale: 0.80;
    }

    .sneak-curtain-belt {
        height: 80px;
    }

    .sneak-belt {
        height: 80px;
    }

    .sneak-hands-wrapper {
        width: 740px;
        bottom: -2px;
    }

    .sneak-ticker-item {
        font-size: 20px;
        letter-spacing: 1.8px;
        padding: 0 16px;
    }

    .sneak-ticker-star {
        font-size: 16px;
        padding: 0 10px;
    }
}

@media (max-width: 991px) {
    .my-skills {
        padding-bottom: 10px !important;
    }

    .sneak-reveal-section {
        height: calc(100vh - 132px);
        min-height: 400px;
    }

    .sneak-dots-pattern::before {
        background-size: 22px 22px;
        background-image: radial-gradient(circle, rgba(255, 255, 255, 0.3) 1.1px, transparent 1.1px);
    }

    .sneak-face-wrapper {
        width: 310px;
        bottom: -18px;
    }

    .sneak-badges-wrapper {
        bottom: -18px;
        --badge-scale: 0.65;
    }

    .sneak-curtain-belt {
        height: 72px;
    }

    .sneak-belt {
        height: 72px;
    }

    .sneak-hands-wrapper {
        width: 620px;
        bottom: -2px;
    }

    .sneak-ticker-item {
        font-size: 17px;
        letter-spacing: 1.4px;
        padding: 0 14px;
    }

    .sneak-ticker-star {
        font-size: 14px;
        padding: 0 8px;
    }
}

@media (max-width: 767px) {
    .sneak-reveal-section {
        height: calc(100vh - 122px);
        min-height: 340px;
    }

    .sneak-dots-pattern::before {
        background-size: 20px 20px;
        background-image: radial-gradient(circle, rgba(255, 255, 255, 0.28) 1px, transparent 1px);
    }

    .sneak-face-wrapper {
        width: 240px;
        bottom: -16px;
    }

    .sneak-badges-wrapper {
        bottom: -16px;
        --badge-scale: 0.48;
    }

    .sneak-curtain-belt {
        height: 62px;
    }

    .sneak-belt {
        height: 62px;
    }

    .sneak-hands-wrapper {
        width: 480px;
        max-width: 98vw;
        bottom: -2px;
    }

    .sneak-ticker-item {
        font-size: 14px;
        letter-spacing: 1px;
        padding: 0 10px;
    }

    .sneak-ticker-star {
        font-size: 12px;
        padding: 0 6px;
    }
}

@media (max-width: 480px) {
    .sneak-reveal-section {
        height: calc(100vh - 114px);
        min-height: 290px;
    }

    .sneak-dots-pattern::before {
        background-size: 18px 18px;
        background-image: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0.9px, transparent 0.9px);
    }

    .sneak-face-wrapper {
        width: 195px;
        bottom: -14px;
    }

    .sneak-badges-wrapper {
        bottom: -14px;
        --badge-scale: 0.32;
    }

    .sneak-curtain-belt {
        height: 54px;
    }

    .sneak-belt {
        height: 54px;
    }

    .sneak-hands-wrapper {
        width: 390px;
        max-width: 100vw;
        bottom: -2px;
    }

    .sneak-ticker-item {
        font-size: 12px;
        letter-spacing: 0.8px;
        padding: 0 8px;
    }

    .sneak-ticker-star {
        font-size: 10px;
        padding: 0 5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sneak-badge-item {
        animation: none !important;
        transition: none !important;
    }
}