body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #1a1a1a;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#art-canvas {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

/* --- استایل کلمات خوشنویسی پس‌زمینه --- */
.letter-element {
    position: absolute;
    transform-origin: center center;
    pointer-events: none;
    animation-name: floatAnimation;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

@keyframes floatAnimation {
    0% { transform: translate(-50%, -50%) translateY(0px) translateX(0px); }
    50% { transform: translate(-50%, -50%) translateY(-15px) translateX(8px); }
    100% { transform: translate(-50%, -50%) translateY(0px) translateX(0px); }
}

/* --- دکمه اصلی منو --- */
#menu-toggle-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 100;
    padding: 10px;
     
}


#menu-toggle-btn .burger-svg

{

    width: 28px;      
    height: auto;

    transition: all 0.3s ease;
       filter: brightness(0) invert(1); 
    opacity: 0.8;
}

#menu-toggle-btn .close-svg {
    width: 35px;      
    height: auto;

    transition: all 0.3s ease;
}

/* مدیریت نمایش آیکون‌ها هنگام باز/بسته شدن */
#menu-toggle-btn .close-svg { display: none; }
#menu-toggle-btn.open .burger-svg { display: none; }
#menu-toggle-btn.open .close-svg { display: block; }

#menu-toggle-btn:hover img {
    opacity: 1;
    transform: scale(1.05);
}

/* --- لایه سفید شفاف منو --- */
#menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #c6faffc7; 
    backdrop-filter: blur(2px); 
    -webkit-backdrop-filter: blur(15px);
    z-index: 90;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

#menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.menu-links {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.menu-links li { margin: 25px 0; }

.menu-links .menu-svg-text {
    height: 35px; 
    width: auto;  
    display: block;
    margin: 0 auto; 

    transition: all 0.3s ease;
}

.menu-links a:hover .menu-svg-text {
    opacity: 1; 
    transform: scale(1.05); 
}




/* --- لوگوی پایین صفحه --- */
#bottom-logo {
    position: fixed;
    bottom: 40px;
    left: 30px;
        z-index: 10;
}




#bottom-logo a { display: block; text-decoration: none; }
#bottom-logo img {
    display: block;
    height: 30px; 
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
    transition: all 0.3s ease; 
}

#bottom-logo a:hover img {
    transform: scale(1.06);
    filter: drop-shadow(0 6px 12px rgba(255, 255, 255, 0.2)); 
}

/* --- باکس مربع شیشه‌ای (وسط صفحه) --- */
#profile-card.square-card {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 450px;
    height: 300px;
    background-color: rgba(255, 255, 255, 0.055); 
    backdrop-filter: blur(5px); 
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 32px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    z-index: 20;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    box-sizing: border-box;
}

.card-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    align-items: center;
}

.svg-title {
    height: 35px; 
    width: auto;  
    display: block;
}

/* --- ردیف افقی آیکون‌ها --- */
.social-row {
    display: flex;
    flex-direction: row-reverse; 
    justify-content: center;
    gap: 2px; 
    margin-bottom: 30px;
    width: 100%;
}



.social-row a img {
    width: 65px;
    height: 65px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.social-row a:hover {
    transform: translateY(-5px);
    shadow: 0 8px 25px rgba(255, 255, 255, 0.3); 
}

.social-row a:hover img { filter: brightness(0.4); }

/* --- رسپانسیو موبایل و تبلت --- */
@media (max-width: 768px) {



  

   

    .menu-links .menu-svg-text { height: 38px; }

    #profile-card.square-card {
        width: 85vw;
        height: auto; 
        min-height: 230px;
        padding: 35px;
        border-radius: 24px;
    }

    .social-row { gap: 5px; margin-bottom: 5px; }
    .social-row a { width: 42px; height: 42px; }
    .social-row a img { width: 40px; height: 40px; }
}