/* Navbar & Sidebar Premium Styles */
:root {
    --navbar-bg: #050505;
    --accent-blue: #2196F3;
    --accent-gold: #FFD700;
    --glow-color: rgba(33, 150, 243, 0.6);
    --transition-speed: 0.4s;
    --trigger-size: 150px;
}

/* Menu Trigger (Floating Logo) */
.menu-trigger {
    position: fixed;
    top: 20px;
    left: 20px;
    width: var(--trigger-size);
    height: var(--trigger-size);
    z-index: 1500;
    cursor: pointer;
    background: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* RGB Circular Light Effect */
.menu-trigger::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    z-index: -1;
    background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    background-size: 400%;
    border-radius: 50%;
    filter: blur(10px);
    opacity: 0.8;
    animation: rgb-glow 20s linear infinite;
}

@keyframes rgb-glow {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
}

.menu-trigger:hover {
    transform: scale(1.1);
    border-color: var(--accent-blue);
    box-shadow: 0 0 20px var(--glow-color);
}

.menu-trigger img {
    width: 75%;
    height: auto;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.2));
    animation: logo-pulse 3s infinite ease-in-out;
}

@media (max-width: 768px) {
    .logo img {
        width: 85%;
        max-width: 55px;
    }
}

@keyframes logo-pulse {
    0% {
        filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.1));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 15px var(--glow-color));
        transform: scale(1.05);
    }
    100% {
        filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.1));
        transform: scale(1);
    }
}

.logo:hover img {
    animation: none;
    filter: drop-shadow(0 0 20px var(--accent-blue));
    transform: scale(1.1);
}

/* Hide old menu button and controls as they are now in the overlay */
.menu, .controls {
    display: none;
}

/* PSP STYLE MENU OVERLAY */
.psp-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

/* Dynamic background behind menu items */
.psp-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease, transform 1.2s ease;
    z-index: -1;
    transform: scale(1.1);
}

.psp-background-overlay.active {
    opacity: 0.4;
    transform: scale(1);
}

.psp-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.psp-menu-container {
    width: 90%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.psp-menu-close {
    position: absolute;
    top: 40px;
    right: 40px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.psp-menu-close:hover {
    transform: rotate(90deg) scale(1.2);
    color: var(--accent-blue);
}

.psp-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.psp-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: white;
    text-decoration: none;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(30px);
    opacity: 0;
}

.psp-menu-overlay.active .psp-menu-item {
    transform: translateY(0);
    opacity: 1;
}

/* Staggered animation */
.psp-menu-item:nth-child(1) { transition-delay: 0.1s; }
.psp-menu-item:nth-child(2) { transition-delay: 0.15s; }
.psp-menu-item:nth-child(3) { transition-delay: 0.2s; }
.psp-menu-item:nth-child(4) { transition-delay: 0.25s; }
.psp-menu-item:nth-child(5) { transition-delay: 0.3s; }
.psp-menu-item:nth-child(6) { transition-delay: 0.35s; }
.psp-menu-item:nth-child(7) { transition-delay: 0.4s; }
.psp-menu-item:nth-child(8) { transition-delay: 0.45s; }

.psp-menu-item:hover {
    background: rgba(33, 150, 243, 0.1);
    border-color: var(--accent-blue);
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(33, 150, 243, 0.2);
}

.psp-menu-icon {
    font-size: 40px;
    color: var(--accent-blue);
}

.psp-menu-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

/* Social Section in PSP Menu */
.psp-social-section {
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
    display: flex;
    justify-content: center;
    gap: 40px;
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.5s;
}

.psp-menu-overlay.active .psp-social-section {
    transform: translateY(0);
    opacity: 1;
}

.psp-social-item {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.psp-social-item svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.psp-social-item span {
    font-size: 10px;
    letter-spacing: 1px;
    opacity: 0.6;
    text-transform: uppercase;
}

.psp-social-item:hover {
    transform: scale(1.2);
    color: var(--accent-blue);
}

.psp-social-item.mail:hover { color: #EA4335; }
.psp-social-item.whatsapp:hover { color: #25D366; }
.psp-social-item.instagram:hover { color: #E1306C; }
.psp-social-item.linkedin:hover { color: #0077B5; }

/* Mobile Adjustments */
@media (max-width: 768px) {
    .psp-menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .psp-menu-item {
        padding: 15px;
    }
    .psp-menu-icon {
        font-size: 30px;
    }
    .psp-menu-label {
        font-size: 10px;
    }
}

/* Full width layout */
.main-content {
    margin-left: 0 !important;
    width: 100% !important;
}

@media (max-width: 768px) {
    .menu-trigger {
        top: 15px;
        left: 15px;
        --trigger-size: 80px;
    }
    
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
    }
}
