/* ═══════════════════════════════════════════════════════════
   INTERNSHIP PROGRAM — Animated Side Button (Right Edge)
   Fixed vertical tab that slides in from right on page load.
   ═══════════════════════════════════════════════════════════ */

/* ── Container ─────────────────────────────────────────────── */
.ip-side-btn {
    position: fixed;
    right: 0;
    top: 50%;
    z-index: 9998;
    transform: translateY(-50%) translateX(100%);
    animation: ipSideBtnSlideIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0s forwards;
    text-decoration: none;
    outline: none;
}

@keyframes ipSideBtnSlideIn {
    from { transform: translateY(-50%) translateX(100%); }
    to   { transform: translateY(-50%) translateX(0); }
}

/* ── Button body ───────────────────────────────────────────── */
.ip-side-btn-inner {
    display: flex;
    align-items: center;
    gap: 0;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    padding: 20px 12px;
    border-radius: 14px 0 0 14px;
    background: linear-gradient(180deg, #0a0e1a 0%, #0f2040 100%);
    border: 1.5px solid rgba(0, 195, 255, 0.25);
    border-right: none;
    box-shadow:
        -4px 0 25px rgba(0, 0, 0, 0.4),
        -2px 0 15px rgba(0, 195, 255, 0.1),
        inset 0 0 20px rgba(0, 195, 255, 0.04);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.35s ease;
}

/* Nebula glow inside button */
.ip-side-btn-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 40% at 50% 20%, rgba(0, 195, 255, 0.1) 0%, transparent 70%),
        radial-gradient(ellipse 80% 40% at 50% 80%, rgba(110, 69, 226, 0.08) 0%, transparent 70%);
    animation: ipSideBtnGlow 3s ease-in-out infinite alternate;
    pointer-events: none;
}

/* Shimmer sweep */
.ip-side-btn-inner::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 30%, rgba(255, 255, 255, 0.08) 50%, transparent 70%);
    animation: ipSideBtnShimmer 3.5s ease-in-out 3s infinite;
    pointer-events: none;
}

@keyframes ipSideBtnGlow {
    0%   { opacity: 0.5; }
    100% { opacity: 1; }
}

@keyframes ipSideBtnShimmer {
    0%   { top: -100%; }
    100% { top: 200%; }
}

/* ── Hover state ───────────────────────────────────────────── */
.ip-side-btn:hover .ip-side-btn-inner {
    border-color: rgba(0, 195, 255, 0.6);
    box-shadow:
        -6px 0 35px rgba(0, 0, 0, 0.5),
        -3px 0 20px rgba(0, 195, 255, 0.25),
        0 0 40px rgba(110, 69, 226, 0.12),
        inset 0 0 25px rgba(0, 195, 255, 0.08);
    transform: translateX(-4px);
}

/* ── Rocket icon ───────────────────────────────────────────── */
.ip-side-btn-icon {
    font-size: 1.3rem;
    margin-bottom: 10px;
    display: block;
    position: relative;
    z-index: 1;
    animation: ipSideBtnRocket 2s ease-in-out infinite;
    filter: drop-shadow(0 0 6px rgba(0, 195, 255, 0.5));
}

@keyframes ipSideBtnRocket {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-4px); }
}

/* ── Text label ────────────────────────────────────────────── */
.ip-side-btn-text {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
    background: linear-gradient(0deg, #00c3ff, #ffffff, #ffd700);
    background-size: 100% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: ipSideBtnTextFlow 4s ease infinite;
}

@keyframes ipSideBtnTextFlow {
    0%   { background-position: center 0%; }
    50%  { background-position: center 100%; }
    100% { background-position: center 0%; }
}

/* ── Animated border accent (top/bottom edges) ─────────────── */
.ip-side-btn-accent {
    position: absolute;
    left: 0;
    width: 3px;
    height: 30%;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(180deg, #00c3ff, #6e45e2, #ffd700);
    background-size: 100% 300%;
    animation: ipSideBtnAccent 3s ease infinite;
}

.ip-side-btn-accent--top {
    top: 8px;
}

.ip-side-btn-accent--bottom {
    bottom: 8px;
    animation-delay: 1.5s;
}

@keyframes ipSideBtnAccent {
    0%   { background-position: center 0%; opacity: 0.5; }
    50%  { background-position: center 100%; opacity: 1; }
    100% { background-position: center 0%; opacity: 0.5; }
}

/* ── Pulse ring on hover ───────────────────────────────────── */
.ip-side-btn:hover .ip-side-btn-icon {
    animation: ipSideBtnRocketHover 0.6s ease-in-out infinite;
}

@keyframes ipSideBtnRocketHover {
    0%, 100% { transform: translateY(0) scale(1); }
    50%      { transform: translateY(-5px) scale(1.15); }
}

/* ── Tooltip (appears on hover, left side) ─────────────────── */
.ip-side-btn-tooltip {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    writing-mode: horizontal-tb;
    text-orientation: initial;
    background: linear-gradient(135deg, #0f2040, #0a0e1a);
    border: 1px solid rgba(0, 195, 255, 0.3);
    color: #ffffff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 10px 18px;
    border-radius: 10px;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 195, 255, 0.08);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.ip-side-btn-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: rgba(0, 195, 255, 0.3);
}

.ip-side-btn:hover .ip-side-btn-tooltip {
    opacity: 1;
    visibility: visible;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .ip-side-btn-inner {
        padding: 14px 9px;
    }

    .ip-side-btn-icon {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

    .ip-side-btn-text {
        font-size: 0.7rem;
        letter-spacing: 2px;
    }

    .ip-side-btn-tooltip {
        display: none;
    }

    .ip-side-btn-accent {
        width: 2px;
    }
}

@media (max-width: 480px) {
    .ip-side-btn-inner {
        padding: 10px 7px;
    }

    .ip-side-btn-icon {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }

    .ip-side-btn-text {
        font-size: 0.62rem;
        letter-spacing: 1.5px;
    }
}
