/* whereLumi-menu.css */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Caveat', 'Segoe Script', cursive;
    background: #05030c url('./фон2_1.gif') center / cover no-repeat fixed;
    color: #d5cafb;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background overlay for depth */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 50% 30%, rgba(138, 94, 255, 0.15), rgba(0, 0, 0, 0.7));
    pointer-events: none;
    z-index: 0;
}

/* Menu wrapper */
.menu-wrapper {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 60px 20px;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.menu-logo {
    max-width: 800px;
    width: 90%;
    height: auto;
    margin-bottom: 40px;
    filter: drop-shadow(0 0 20px rgba(130, 83, 255, 0.8))
            drop-shadow(0 0 40px rgba(200, 100, 255, 0.5));
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(130, 83, 255, 0.8))
                drop-shadow(0 0 40px rgba(200, 100, 255, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 30px rgba(130, 83, 255, 1))
                drop-shadow(0 0 60px rgba(200, 100, 255, 0.7));
    }
}

/* X.com logo link */
.x-logo-link {
    display: inline-block;
    margin-bottom: 30px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.x-logo-link:hover {
    transform: scale(1.1);
}

.x-logo {
    font-size: 48px;
    font-weight: bold;
    color: #d5cafb;
    text-shadow: 0 0 15px rgba(130, 83, 255, 0.8),
                 0 0 30px rgba(200, 100, 255, 0.5);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.x-logo-link:hover .x-logo {
    color: #ffffff;
    text-shadow: 0 0 20px rgba(130, 83, 255, 1),
                 0 0 40px rgba(200, 100, 255, 0.8);
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 
            0 0 20px rgba(130, 83, 255, 0.8),
            0 0 40px rgba(200, 100, 255, 0.5),
            0 0 60px rgba(138, 94, 255, 0.3);
    }
    50% {
        text-shadow: 
            0 0 30px rgba(130, 83, 255, 1),
            0 0 60px rgba(200, 100, 255, 0.7),
            0 0 80px rgba(138, 94, 255, 0.5);
    }
}

/* Button container */
.button-container {
    display: flex;
    justify-content: center;
    gap: clamp(40px, 8vw, 80px);
    flex-wrap: wrap;
    width: 100%;
    align-items: flex-end;
    /* prevent accidental cropping by ensuring enough space for big button images */
    min-height: 340px;
}

/* Navigation buttons */
.nav-btn {
    position: relative;
    width: clamp(280px, 38vw, 520px);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 0 15px rgba(138, 94, 255, 0.4));
    padding: 0;
    display: block;
    overflow: visible;
    line-height: 0;
}

/* Image inside button — natural height from asset, no edge clipping */
.nav-btn img {
    position: relative;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    pointer-events: none;
    transition: opacity 0.25s ease, filter 0.3s ease;
    display: block;
}

.nav-btn:hover {
    transform: scale(1.08) translateY(-8px);
    filter: drop-shadow(0 0 25px rgba(200, 100, 255, 0.7));
}

.nav-btn:active {
    transform: scale(0.96) translateY(-4px);
}



.nav-btn .img-hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.nav-btn:hover .img-default,
.nav-btn:focus .img-default {
    opacity: 0;
}

.nav-btn:hover .img-hover,
.nav-btn:focus .img-hover {
    opacity: 1;
}

/* Content sections */
.content-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 25px;
    text-align: center;
    text-shadow: 0 0 12px rgba(130, 83, 255, 0.5);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .button-container {
        gap: clamp(30px, 6vw, 60px);
    }
    
    .menu-logo {
        margin-bottom: 30px;
    }
    
}

@media (max-width: 768px) {
    .menu-wrapper {
        padding: 50px 15px;
        min-height: auto;
    }
    
    .menu-logo {
        max-width: 600px;
        margin-bottom: 25px;
    }
    
    .button-container {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    
    .nav-btn {
        width: clamp(240px, 85vw, 360px);
    }
}

@media (max-width: 480px) {
    .menu-wrapper {
        padding: 40px 10px;
    }
    
    .menu-logo {
        max-width: 500px;
        margin-bottom: 20px;
    }
    
    .button-container {
        gap: 30px;
    }
    
    .nav-btn {
        width: clamp(200px, 92vw, 300px);
    }
}

/* Additional breakpoints for better responsiveness */

/* Very small screens */
@media (max-width: 360px) {
    .menu-wrapper {
        padding: 30px 8px;
    }
    
    .menu-logo {
        max-width: 280px;
        margin-bottom: 15px;
    }
    
    .button-container {
        gap: 25px;
        min-height: 280px;
    }
    
    .nav-btn {
        width: clamp(180px, 95vw, 260px);
    }
    
    .x-logo {
        font-size: 36px;
    }
    
    .x-logo-link {
        margin-bottom: 20px;
    }
}

/* Landscape orientation for mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .menu-wrapper {
        padding: 20px 15px;
        min-height: auto;
        justify-content: flex-start;
    }
    
    .menu-logo {
        max-width: 300px;
        margin-bottom: 15px;
    }
    
    .button-container {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
        min-height: auto;
    }
    
    .nav-btn {
        width: clamp(160px, 40vw, 240px);
    }
    
    .x-logo-link {
        margin-bottom: 15px;
    }
}

/* Tablet portrait */
@media (min-width: 600px) and (max-width: 768px) {
    .menu-wrapper {
        padding: 45px 20px;
    }
    
    .menu-logo {
        max-width: 550px;
    }
    
    .button-container {
        gap: 50px;
    }
    
    .nav-btn {
        width: clamp(260px, 42vw, 380px);
    }
}

/* Large tablets and small desktops */
@media (min-width: 769px) and (max-width: 1024px) {
    .menu-wrapper {
        padding: 50px 25px;
    }
    
    .menu-logo {
        max-width: 700px;
    }
    
    .button-container {
        gap: 60px;
    }
    
    .nav-btn {
        width: clamp(300px, 35vw, 450px);
    }
}

/* Very large screens */
@media (min-width: 1400px) {
    .menu-wrapper {
        padding: 80px 30px;
    }
    
    .menu-logo {
        max-width: 900px;
    }
    
    .button-container {
        gap: 100px;
    }
    
    .nav-btn {
        width: clamp(400px, 30vw, 600px);
    }
    
    .x-logo {
        font-size: 56px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .menu-logo {
        image-rendering: auto;
    }
    
    .nav-btn img {
        image-rendering: auto;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .menu-logo {
        animation: none;
    }
    
    .nav-btn {
        transition: none;
    }
    
    .x-logo-link {
        transition: none;
    }
    
    .x-logo {
        transition: none;
    }
}
