/* Portfolio Custom Styles */

/* Style Switcher */
#switcher {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
}

#switcher.open {
    right: 0;
}

#showSwitcher {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background: #fff;
    padding: 15px;
    border-radius: 5px 0 0 5px;
    cursor: pointer;
    z-index: 9998;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
}

#hideSwitcher {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

/* Navigation Styles */
.desktop-nav-element,
.mobile-nav-element {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow, opacity;
}

.desktop-nav-element:hover,
.mobile-nav-element:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.desktop-nav-element:active,
.mobile-nav-element:active {
    transform: scale(0.98) translateY(1px);
    transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.desktop-nav-element:focus,
.mobile-nav-element:focus {
    outline: none;
    transform: scale(1.03);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

/* Navigation Links */
.nav-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, color;
}

.nav-link:hover {
    text-decoration: none;
    color: inherit;
    transform: scale(1.02);
}

.nav-link:active {
    transform: scale(0.98);
    transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:focus {
    outline: none;
    transform: scale(1.01);
}

/* Active Navigation State */
.nav-item.active .nav-link {
    color: #ffc107 !important;
}

/* Page Transitions */
.page {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.page--current {
    display: block;
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #switcher {
        width: 280px;
        right: -280px;
    }
    
    .desktop-nav-element {
        display: none;
    }
}

@media (min-width: 769px) {
    .mobile-nav-element {
        display: none;
    }
}
