/* Font Face */
@font-face {
    font-family: 'HelveticaNowDisplay';
    src: url('../assets/fonts/HelveticaNowDisplay-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #000;
    color: #fff;
    font-family: 'HelveticaNowDisplay', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    position: relative;
}

/* Canvas */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0;
    animation: fadeInCanvas 1s ease forwards 0.3s;
}

@keyframes fadeInCanvas {
    to {
        opacity: 1;
    }
}

/* UI Container */
.ui-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

/* UI Buttons */
.ui-button {
    position: fixed;
    font-family: 'HelveticaNowDisplay', sans-serif;
    font-size: 48px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    pointer-events: auto;
    transition: opacity 0.2s ease;
    opacity: 0;
    animation: fadeInUI 0.6s ease forwards;
}

.ui-button:hover {
    opacity: 0.7;
}

/* Scramble Glitch Effect Styles */
.ui-button {
    font-family: 'HelveticaNowDisplay', 'Courier New', monospace;
    letter-spacing: 0.05em;
}

.ui-logo {
    top: 40px;
    left: 50px;
    animation-delay: 0.5s;
}

.ui-about {
    top: 40px;
    right: 50px;
    animation-delay: 0.7s;
}

.ui-mystery {
    bottom: 40px;
    left: 50px;
    animation-delay: 0.9s;
}

.ui-contact {
    bottom: 40px;
    right: 50px;
    animation-delay: 1.1s;
}

@keyframes fadeInUI {
    to {
        opacity: 1;
    }
}

/* Modal Backdrop */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 20;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

/* Modals */
.modal {
    position: fixed;
    z-index: 30;
    padding: 50px;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.modal.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

/* White Modals (About, Contact, Mystery) */
.modal-white {
    background: #fff;
    color: #000;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
}

.modal-white.active {
    transform: translate(-50%, -50%) scale(1);
}

.modal-white .modal-content h2 {
    font-family: 'HelveticaNowDisplay', sans-serif;
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: bold;
}

.modal-white .modal-content p {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.modal-white .modal-content ul {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
    padding-left: 20px;
}

.modal-white .modal-content li {
    margin-bottom: 8px;
}

.modal-white .modal-content strong {
    font-weight: bold;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .ui-button {
        font-size: 40px;
    }

    .modal {
        padding: 40px;
        max-width: 600px;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .ui-button {
        font-size: 32px;
    }

    .ui-logo,
    .ui-about {
        top: 25px;
    }

    .ui-mystery,
    .ui-contact {
        bottom: 25px;
    }

    .ui-logo,
    .ui-mystery {
        left: 25px;
    }

    .ui-about,
    .ui-contact {
        right: 25px;
    }

    .modal {
        padding: 30px;
        max-width: 90%;
    }

    .modal-white {
        width: 90%;
    }

    .modal-white .modal-content h2 {
        font-size: 24px;
    }
}
