/* Clean CSS for Sybil Media with just navigation and worm effect */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* Worm Canvas */
#worm-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    display: block;
    background-color: white;
}

/* Logo and Dropdown Menu */
.logo-menu-container {
    position: fixed;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    cursor: pointer;
}

.logo-nav {
    width: 270px;
    height: auto;
    border-radius: 4px;
    transition: border 0.3s ease;
    border: 3px solid transparent;
}

.logo-nav:hover {
    border: 3px solid #000;
}

/* Enter Store Button */
.enter-store-button {
    display: block;
    margin: 3rem auto 0;
    padding: 0.5rem 0;
    background: transparent;
    color: black;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    max-width: 200px;
}

/* Each letter fades from white to black */
.enter-store-button span {
    display: inline-block;
    color: white;
    animation: fadeToBlack 0.6s ease-out forwards;
}

/* Space between Enter and Store */
.enter-store-button span.space {
    width: 0.3em;
}

/* Stagger each letter by 0.15s (11 letters in ~1.65 seconds) */
.enter-store-button span:nth-child(1) { animation-delay: 0s; }
.enter-store-button span:nth-child(2) { animation-delay: 0.15s; }
.enter-store-button span:nth-child(3) { animation-delay: 0.3s; }
.enter-store-button span:nth-child(4) { animation-delay: 0.45s; }
.enter-store-button span:nth-child(5) { animation-delay: 0.6s; }
.enter-store-button span:nth-child(6) { animation-delay: 0.75s; }
.enter-store-button span:nth-child(7) { animation-delay: 0.9s; }
.enter-store-button span:nth-child(8) { animation-delay: 1.05s; }
.enter-store-button span:nth-child(9) { animation-delay: 1.2s; }
.enter-store-button span:nth-child(10) { animation-delay: 1.35s; }
.enter-store-button span:nth-child(11) { animation-delay: 1.5s; }

@keyframes fadeToBlack {
    from {
        color: white;
    }
    to {
        color: black;
    }
}

.enter-store-button:hover {
    transform: translateY(-2px);
    text-decoration-thickness: 3px;
}

/* Info Button Styles */
.info-button-container {
    position: fixed;
    top: 1rem;
    right: 5rem;
    z-index: 100;
}

.info-button {
    background-color: transparent;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.info-button:hover {
    transform: scale(1.1);
}

.info-icon {
    width: 24px;
    height: 24px;
}

.info-popup {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    border: 3px solid #000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 500;
}

.info-popup p {
    margin: 0;
}

.info-button:hover + .info-popup,
.info-popup:hover {
    opacity: 1;
    visibility: visible;
}

/* Dropdown Menu Styles */
.dropdown-menu {
    position: absolute;
    top: -200px; /* Fixed position above the logo */
    left: 50%;
    transform: translateX(-50%);
    background: white;
    width: 270px;
    z-index: 2;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 2rem;
    border-radius: 4px;
    border: 3px solid #000;
    text-align: center;
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.menu-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.menu-links li {
    margin: 0.8rem 0;
}

.menu-links a {
    text-decoration: none;
    color: #000;
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: 0.7em 0;
    font-size: 1.2rem;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

.menu-links a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #000;
    transition: all 0.3s ease;
}

.menu-links a:hover {
    color: #000;
    font-weight: 600;
}

/* ========================================
   MOBILE RESPONSIVE STYLES
   ======================================== */

/* Tablet and Below (768px) */
@media (max-width: 768px) {
    /* Logo scaling */
    .logo-nav {
        width: 200px;
    }
    
    /* Dropdown menu adjustments */
    .dropdown-menu {
        width: 220px;
        padding: 1.5rem;
        top: -180px;
    }
    
    .menu-links a {
        font-size: 1.1rem;
    }
    
    /* Info button repositioning */
    .info-button-container {
        top: 1rem;
        right: 1rem;
    }
    
    .info-button {
        width: 44px;  /* Better touch target */
        height: 44px;
    }
    
    .info-icon {
        width: 28px;
        height: 28px;
    }
}

/* Mobile (600px and below) */
@media (max-width: 600px) {
    /* Larger logo for better visibility on small screens */
    .logo-nav {
        width: 180px;
    }
    
    /* Position logo higher up */
    .logo-menu-container {
        top: 35%;
    }
    
    /* Compact dropdown */
    .dropdown-menu {
        width: 90vw;
        max-width: 280px;
        padding: 1.25rem;
        top: -160px;
    }
    
    .menu-links li {
        margin: 0.6rem 0;
    }
    
    .menu-links a {
        font-size: 1rem;
        padding: 0.5em 0;
    }
    
    /* Info button touch optimization */
    .info-button {
        width: 48px;
        height: 48px;
    }
    
    .info-popup {
        font-size: 0.85rem;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Small Mobile (400px and below) */
@media (max-width: 400px) {
    .logo-nav {
        width: 160px;
    }
    
    .logo-menu-container {
        top: 30%;
    }
    
    .dropdown-menu {
        width: 95vw;
        padding: 1rem;
        top: -140px;
    }
    
    .menu-links a {
        font-size: 0.95rem;
    }
    
    .info-button-container {
        top: 0.75rem;
        right: 0.75rem;
    }
}
