/* Section Progress Indicator */
.section-indicator {
    position: fixed;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9997;
    display: flex;
    flex-direction: column;
    gap: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.section-indicator.visible {
    opacity: 1;
}

.section-dot {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    cursor: pointer;
    transition: all 0.3s ease;
}

.section-dot-inner {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.section-dot:hover .section-dot-inner {
    background: rgba(236, 72, 153, 0.5);
    border-color: var(--accent-pink);
    transform: scale(1.3);
}

.section-dot.active .section-dot-inner {
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
    border-color: var(--accent-pink);
    transform: scale(1.5);
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.6),
                0 0 40px rgba(168, 85, 247, 0.4);
}

.section-dot.active .section-dot-inner::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(236, 72, 153, 0.2);
    animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

.section-label {
    position: absolute;
    right: 30px;
    white-space: nowrap;
    padding: 8px 16px;
    background: rgba(17, 24, 39, 0.95);
    border: 1px solid rgba(236, 72, 153, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.section-dot:hover .section-label {
    opacity: 1;
    transform: translateX(0);
}

.section-dot.active .section-label {
    opacity: 1;
    transform: translateX(0);
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(168, 85, 247, 0.2));
    border-color: var(--accent-pink);
    color: var(--accent-pink);
    font-weight: 600;
}

/* Connecting line */
.section-indicator::before {
    content: '';
    position: absolute;
    right: 5px;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 10%,
        rgba(255, 255, 255, 0.1) 90%,
        transparent 100%
    );
    z-index: 1;
}

/* Active line progress */
.section-indicator::after {
    content: '';
    position: absolute;
    right: 5px;
    top: 0;
    width: 2px;
    height: 0%;
    background: linear-gradient(180deg, 
        var(--accent-pink),
        var(--accent-purple)
    );
    z-index: 1;
    transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.5);
}

/* Responsive */
@media (max-width: 1024px) {
    .section-indicator {
        right: 20px;
        gap: 16px;
    }
    
    .section-label {
        font-size: 12px;
        padding: 6px 12px;
    }
}

@media (max-width: 768px) {
    .section-indicator {
        right: 10px; /* Move closer to edge on mobile */
        gap: 14px;
        display: flex; /* Show on mobile */
        top: 50%;
    }
    
    .section-dot-inner {
        width: 10px;
        height: 10px;
    }
    
    .section-dot.active .section-dot-inner {
        transform: scale(1.4);
    }
    
    .section-dot.active .section-dot-inner::before {
        width: 20px;
        height: 20px;
    }
    
    .section-label {
        font-size: 11px;
        padding: 5px 10px;
        right: 25px;
    }
    
    /* Hide labels on mobile, only show on hover/active */
    .section-label {
        display: none;
    }
    
    .section-dot.active .section-label {
        display: block;
    }
}

@media (max-width: 480px) {
    .section-indicator {
        right: 8px;
        gap: 11px;
    }
    
    .section-dot-inner {
        width: 8px;
        height: 8px;
        border-width: 1.5px;
    }
    
    .section-dot.active .section-dot-inner {
        transform: scale(1.3);
    }
    
    .section-dot.active .section-dot-inner::before {
        width: 16px;
        height: 16px;
    }
    
    .section-label {
        font-size: 10px;
        padding: 4px 8px;
        right: 20px;
    }
}

/* Dark theme adjustments */
[data-theme="light"] .section-dot-inner {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .section-label {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(236, 72, 153, 0.3);
    color: var(--text-primary);
}

[data-theme="light"] .section-indicator::before {
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(0, 0, 0, 0.1) 10%,
        rgba(0, 0, 0, 0.1) 90%,
        transparent 100%
    );
}
