/* ============================================================
   SWIPE NAVIGATION — Page Transitions & Indicators
   Added externally — does NOT modify any existing styles
   ============================================================ */

/* ——— Transition Overlay ——— */
.swipe-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 99999;
    pointer-events: none;
    background: linear-gradient(135deg, #020617 0%, #0b3c5d 50%, #020617 100%);
    transform: translateY(100%);
    opacity: 0;
    will-change: transform, opacity;
}

/* Slide the overlay IN from bottom (swipe-up → going to next page) */
.swipe-nav-overlay.slide-up {
    animation: overlaySlideUp 0.7s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

/* Slide the overlay IN from top (swipe-down → going to prev page) */
.swipe-nav-overlay.slide-down {
    animation: overlaySlideDown 0.7s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

@keyframes overlaySlideUp {
    0%   { transform: translateY(100%);  opacity: 0.6; }
    40%  { opacity: 1; }
    100% { transform: translateY(0%);    opacity: 1; }
}

@keyframes overlaySlideDown {
    0%   { transform: translateY(-100%); opacity: 0.6; }
    40%  { opacity: 1; }
    100% { transform: translateY(0%);    opacity: 1; }
}

/* ——— Overlay inner content (page label shown during transition) ——— */
.swipe-nav-overlay-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.swipe-nav-overlay-label {
    font-family: 'Segoe UI', sans-serif;
    font-size: 14px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #38bdf8;
    opacity: 0;
    animation: labelFadeIn 0.4s 0.25s ease forwards;
}

.swipe-nav-overlay-title {
    font-family: 'Segoe UI', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: #e2e8f0;
    opacity: 0;
    transform: translateY(20px);
    animation: titleReveal 0.45s 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.swipe-nav-overlay-line {
    width: 60px;
    height: 3px;
    border-radius: 4px;
    background: linear-gradient(90deg, #38bdf8, #0ea5e9);
    opacity: 0;
    animation: lineFadeIn 0.35s 0.4s ease forwards;
}

@keyframes labelFadeIn {
    to { opacity: 0.7; }
}

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

@keyframes lineFadeIn {
    to { opacity: 1; }
}

/* ——— Page Entrance Animation ——— */
.swipe-nav-enter-up {
    animation: pageEnterFromBottom 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.swipe-nav-enter-down {
    animation: pageEnterFromTop 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes pageEnterFromBottom {
    0%   { opacity: 0; transform: translateY(60px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes pageEnterFromTop {
    0%   { opacity: 0; transform: translateY(-60px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ——— Page Dots Indicator ——— */
.swipe-nav-dots {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 10000;
    padding: 12px 6px;
}

.swipe-nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(226, 232, 240, 0.2);
    border: 1.5px solid rgba(56, 189, 248, 0.3);
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}

.swipe-nav-dot:hover {
    background: rgba(56, 189, 248, 0.4);
    transform: scale(1.3);
}

.swipe-nav-dot.active {
    background: #38bdf8;
    border-color: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.6),
                0 0 20px rgba(56, 189, 248, 0.3);
    transform: scale(1.3);
}

/* Tooltip on hover */
.swipe-nav-dot::before {
    content: attr(data-label);
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    white-space: nowrap;
    background: rgba(2, 6, 23, 0.92);
    color: #e2e8f0;
    font-family: 'Segoe UI', sans-serif;
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 6px;
    border: 1px solid rgba(56, 189, 248, 0.2);
    pointer-events: none;
    opacity: 0;
    transition: all 0.25s ease;
}

.swipe-nav-dot:hover::before {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* ——— Scroll Hint Arrow (Home page only) ——— */
.swipe-nav-scroll-hint {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0;
    animation: hintFadeIn 1s 2.5s ease forwards;
}

.swipe-nav-scroll-hint span {
    font-family: 'Segoe UI', sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(56, 189, 248, 0.6);
}

.swipe-nav-scroll-hint .arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid rgba(56, 189, 248, 0.5);
    border-bottom: 2px solid rgba(56, 189, 248, 0.5);
    transform: rotate(45deg);
    animation: arrowBounce 1.5s ease-in-out infinite;
}

@keyframes hintFadeIn {
    to { opacity: 1; }
}

@keyframes arrowBounce {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50%      { transform: rotate(45deg) translateY(6px); }
}

/* ——— Mobile Responsive ——— */
@media (max-width: 768px) {
    .swipe-nav-dots {
        right: 10px;
        gap: 12px;
    }

    .swipe-nav-dot {
        width: 8px;
        height: 8px;
    }

    .swipe-nav-dot::before {
        display: none;
    }

    .swipe-nav-overlay-title {
        font-size: 28px;
    }

    .swipe-nav-overlay-label {
        font-size: 11px;
    }
}
