/* Custom Font Declarations */
@font-face {
    font-family: 'Eightgon';
    src: url('../fonts/Eightgon-OGn6p.ttf') format('truetype'),
        url('../fonts/Eightgon-OGn6p.ttf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Eightgon';
    src: url('../fonts/EightgonItalic-Zpw6z.ttf') format('truetype'),
        url('../fonts/EightgonItalic-Zpw6z.ttf') format('opentype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

/* Interactive Canvas Application Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Eightgon', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #080808;
    height: 100vh;
    overflow: hidden;
    cursor: none;
    font-family: 'Eightgon', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* Hide scrollbars */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* Internet Explorer 10+ */
}

/* Hide scrollbars for WebKit browsers (Chrome, Safari, Edge) */
body::-webkit-scrollbar {
    display: none;
}

#canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Overlay styles */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 1920px;
    pointer-events: none;
    /* Allow clicks to pass through to canvas */
    z-index: 10;
    /* Above canvas */
}

.logo-container {
    position: absolute;
    top: 30px;
    left: 30px;
    pointer-events: auto;
    /* Enable interactions with logo if needed */
}

.logo {
    width: 70px;
    height: auto;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 1;
}

/* Bottom menu styles */
.bottom-menu {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
}

.menu-left,
.menu-right {
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}

.menu-item {
    pointer-events: auto;
}

/* Menu item styles */
.menu-item {
    color: #ffffff;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0.8;
    user-select: none;
    position: relative;
    margin-right: 10px;
}

.menu-item::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #ffffff;
    transition: width 0.3s ease;
}

.menu-item:hover {
    opacity: 1;
}

.menu-item:hover::after {
    width: 100%;
}

.menu-item.active::after {
    width: 100%;
}

/* Enhanced Menu System Styles */
.menu-left {
    transition: all 0.3s ease;
    position: relative;
}

.menu-item {
    transition: transform 0.3s ease;
}

#about-content,
#login-content,
#contact-content {
    font-family: 'Eightgon', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    z-index: 100;
}

/* Login input field focus states */
#login-content input:focus {
    border-bottom-color: #ffffff;
}

#login-content input::placeholder {
    color: #888;
    font-family: 'Eightgon', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Responsive design for enhanced menu system */
@media (max-width: 768px) {

    /* Mobile: Left menu items in column */
    .menu-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    /* Mobile: Override positioning to allow JavaScript control */
    #about-content {
        position: static !important;
        bottom: auto !important;
        left: auto !important;
        margin-bottom: 0 !important;
        transform: none !important;
        max-width: 90vw;
        font-size: 13px;
        transition: opacity 0.3s ease, transform 0.3s ease !important;
    }

    #contact-content {
        position: static !important;
        bottom: auto !important;
        left: auto !important;
        margin-bottom: 0 !important;
        transform: none !important;
        width: 300px;
        font-size: 13px;
        transition: opacity 0.3s ease, transform 0.3s ease !important;
    }

    #login-content {
        position: static !important;
        bottom: auto !important;
        left: auto !important;
        margin-bottom: 0 !important;
        transform: none !important;
        transition: opacity 0.3s ease, transform 0.3s ease !important;
    }

    #login-content input {
        width: 180px !important;
        font-size: 13px !important;
    }

    /* Mobile: Narrower About Us content (no input fields, just text width) */
    #about-content {
        max-width: 250px !important;
        width: 250px !important;
    }

    /* Mobile: Contact content - force emails to next line */
    #contact-content {
        width: 250px !important;
        white-space: normal !important;
    }

    #contact-content div {
        word-break: break-word !important;
    }



    /* Adjust bottom menu positioning for mobile */
    .bottom-menu {
        bottom: 20px;
        left: 20px;
        right: 20px;
    }
}

/* Email link styles */
.email-link {
    cursor: pointer;
    transition: color 0.2s ease;
    position: relative;
}

.email-link:hover {
    color: #888;
}

/* Copied indicator */
.copied-indicator {
    position: fixed;
    background-color: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-family: 'Eightgon', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.copied-indicator.show {
    opacity: 1;
}

.copied-indicator::before {
    content: '✓ ';
    color: #4CAF50;
}

/* Show cursor over menu content and make them interactive */
#about-content,
#login-content,
#contact-content {
    cursor: auto;
    pointer-events: auto;
}

/* Make interactive elements within content clickable */
#login-content input,
#contact-content .email-link {
    pointer-events: auto;
    cursor: pointer;
}

#login-content input {
    cursor: text;
}

/* Right side menu item styles */
.menu-item-right::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #ffffff;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.menu-item-right:hover::after {
    transform: scaleX(1);
}

/* Prevent Apply button underline from appearing on click/focus */
.menu-item-right:active::after,
.menu-item-right:focus::after {
    transform: scaleX(0) !important;
    transition: none !important;
}