
@media screen and (max-width: 820px) {
    
     .logo-caption{
    position: absolute;                                 
    top: calc(env(safe-area-inset-top) + 48px);      
    left: 50%;
    transform: translateX(-50%);                     
    font-size: 1.7rem;                                 
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: .5px;
    white-space: nowrap;
    pointer-events: none;                            
    z-index: 35;                                     
    opacity: 0;                                      
    transition: opacity .4s;
  }
  .logo-caption.visible{ opacity: 1; } 

        .logo-caption.active {
            opacity: 1;
            transition: opacity 0.3s ease 0s;
            pointer-events: all;
        }

    .top-bar .nav-menu {
        display: none !important;
    }
}



.side-icons {
    overflow-x: hidden;
    max-width: 100vw;
    box-sizing: border-box;
}


.menu-toggle.active {
    transition: transform 0.4s ease 0s;
}

:root {
    --drop-len: 25dvh;
}

html, body {
    min-height: 100vh;
    background: #0e1316;
    font-family: 'Montserrat', Arial, sans-serif;
    color: #fff;
    background: #151527 url('../img/Backgraund.png') no-repeat center center fixed;
    background-size: cover;
    overflow-x: hidden !important;
}

.menu-toggle {
    position: fixed;
    top: 3rem;
    right: 1rem;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    cursor: pointer;
    z-index: 99;
}

    .menu-toggle svg.logo {
        width: 42px;
        height: 42px;
        overflow: visible;
    }

.drop {
    position: absolute;
    top: 0px;
    right: 45px;
    width: 6px; 
    height: var(--drop-len);
    background: #671647;
    border-radius: 2px;
    outline: 2px solid #671647;
    outline-offset: -2px;
    transform-origin: top right;
    transform: scaleY(0);
    z-index: 99;
}


.mobile-menu {
    position: absolute;
    padding: 24px 0 24px 0;   
    margin: 0;
    width: var(--panel-w);
    transform-origin: top right;
    background: #8e44ad;
    transform: rotate(-90deg) scaleY(0);
    background: linear-gradient( 90deg, #473656 0%, #671647 100% );
    border: none;
    z-index: 99;
}


.mobile-menu-list {
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: center;
}

.mobile-menu-list li + li {
    margin-top: 8px; 
}

.mobile-menu-list a {
    display: block;
    padding: 10px 0; 
    text-decoration: none;
    font-size: 1.13rem;
    font-weight: 500;
    border-radius: 6px;
    letter-spacing: 0.04em;
    transition: background 0.18s, color 0.18s;
    background: rgba(255,255,255,0.03);
}

.mobile-menu-list a:hover,
.mobile-menu-list a:focus {
    background: #2b3237;
    color: #fff;
    outline: none;
}


#fx-layer {
    position: fixed;
    inset: 0;
    z-index: 98; 
    background: #151527; 
    overflow: hidden;
    display: none; 
}

    
    #fx-layer.show {
        display: block;
    }

    
    #fx-layer > * {
        z-index: 98;
        filter: blur(8px); 
    }


.fx-bg {
    z-index: 98;
    position: absolute;
    inset: 0;
    background: #151527 url('../img/Backgraund.png') no-repeat center center fixed;
    background-size: cover;
    background-color: #151527;
}


#particles-canvas,
#fog-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; 
}




.side-icons {
    position: fixed;
    top: auto; 
    right: auto; 
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(env(safe-area-inset-bottom) + 2.5rem);
    display: flex;
    flex-direction: row;
    gap: .8rem;
    z-index: 100;
}

.side-icons {
    position: fixed !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    bottom: calc(env(safe-area-inset-bottom) + 2.5rem);
    display: flex;
    flex-direction: row !important;
    gap: .8rem !important;
    z-index: 100 !important;
}

.main-footer {
    position: fixed;
    bottom: calc(env(safe-area-inset-bottom) + 1rem); 
    left: 50%;
    transform: translateX(-50%);
    right: auto; 
    text-align: center;
    width: 100%;
    pointer-events: none; 
    font-size: 0.9rem; 
}

 body::after{
    content: "";
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    backdrop-filter: blur(1px);
    height: calc(env(safe-area-inset-bottom) + 7rem); 
    background: linear-gradient(to bottom,
            rgba(0,0,0,0.00)   0%,   
            rgba(0,0,0,0.25) 45%,   
            rgba(0,0,0,0.65) 100%);                     
    pointer-events: none;
    z-index: 22;                                      
  }

