/* Mobile Panel Styles - Enhanced */
@media (max-width: 768px) {
    .mobile-panel {
        position: fixed;
        top: 0;
        right: 0;
        width: 85%;
        max-width: 350px;
        height: 100%;
        background-color: #1a1a1a;
        z-index: 1000;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        padding: 25px;
        border-radius: 0 0 0 20px;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-panel.open {
        transform: translateX(0);
    }

    .panel-toggle {
        display: block;
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 1001;
        background: #40c9fd;
        color: white;
        border: none;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    .panel-toggle:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    }

    .panel-close {
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        color: white;
        font-size: 24px;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    .panel-close:hover {
        transform: rotate(90deg);
        color: #40c9fd;
    }

    /* Mobile panel buttons */
    .mobile-panel button {
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        padding: 12px 16px;
        font-weight: 500;
        text-align: center;
        border-radius: 8px;
    }

    .mobile-panel button:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    /* Mobile panel header */
    .mobile-panel h2 {
        color: white;
        font-size: 1.5rem;
        font-weight: 600;
        margin-bottom: 0;
        animation: fadeIn 0.5s ease-out;
    }

    /* Mobile panel social icons */
    .mobile-panel svg {
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    .mobile-panel svg:hover {
        transform: scale(1.1);
        color: #40c9fd;
    }

    /* Mobile panel border */
    .mobile-panel .border-t {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Mobile panel button animations */
    .nav-button {
        animation: fadeIn 0.5s ease-out;
    }

    /* Mobile panel scrollbar */
    .mobile-panel::-webkit-scrollbar {
        width: 6px;
    }

    .mobile-panel::-webkit-scrollbar-track {
        background: #1a1a1a;
    }

    .mobile-panel::-webkit-scrollbar-thumb {
        background: #40c9fd;
        border-radius: 3px;
    }

    .mobile-panel::-webkit-scrollbar-thumb:hover {
        background: #375ad8;
    }
}

/* Ensure mobile panel is hidden on desktop */
@media (min-width: 769px) {
    .mobile-panel {
        display: none;
    }

    .panel-toggle {
        display: none;
    }
}
