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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #0a0a0a;
    color: #f8f8f8;
    height: 100vh;
    overflow: hidden;
    perspective: 1000px;
    background: linear-gradient(135deg, #0a0a0a, #000000);
    background-size: 200% 200%;
    animation: gradientBG 10s ease infinite;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.85;
}

.container {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 120, 255, 0.03) 0%, transparent 70%);
    z-index: -1;
}

.container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1IiBoZWlnaHQ9IjUiPgo8cmVjdCB3aWR0aD0iNSIgaGVpZ2h0PSI1IiBmaWxsPSIjMDAwIj48L3JlY3Q+CjxwYXRoIGQ9Ik0wIDVMNSAwWk02IDRMNCA2Wk0tMSAxTDEgLTFaIiBzdHJva2U9IiMxMTEiIHN0cm9rZS13aWR0aD0iMSI+PC9wYXRoPgo8L3N2Zz4=');
    opacity: 0.08;
    z-index: -2;
}

.content {
    text-align: center;
    z-index: 10;
    padding: 0 0 3rem 0;
    animation: fadeIn 1.5s ease-in-out;
    position: relative;
    backdrop-filter: blur(5px);
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 0;
    border: 1px solid rgba(0, 153, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 120, 255, 0.1);
    max-width: 600px;
    width: 90%;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out, box-shadow 0.1s ease-out;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 20, 40, 0.5) 100%);
    overflow: hidden;
}

.content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(0, 120, 255, 0.02) 0%, transparent 60%);
    opacity: 0.5;
    z-index: -1;
    animation: rotateGradient 30s linear infinite;
    pointer-events: none;
}

@keyframes rotateGradient {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.logo-container {
    margin-bottom: 2.5rem;
    position: relative;
    transform-style: preserve-3d;
    transform: translateZ(20px);
}

.logo-img {
    width: 180px;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(0, 153, 255, 0.3));
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: pulse 6s infinite alternate, floatLogo 6s ease-in-out infinite;
}

@keyframes floatLogo {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) rotate(1deg);
    }
}

.logo-img:hover {
    transform: scale(1.05) rotate(3deg);
    filter: drop-shadow(0 0 25px rgba(0, 153, 255, 0.7));
}

@keyframes pulse {
    0%, 100% {
        filter: drop-shadow(0 0 15px rgba(0, 153, 255, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(0, 153, 255, 0.5));
    }
}

h1 {
    font-size: 2.8rem;
    letter-spacing: 6px;
    margin-bottom: 1.5rem;
    font-weight: 300;
    position: relative;
    text-shadow: 0 0 5px rgba(0, 153, 255, 0.2);
    transform: translateZ(30px);
    color: #f8f8f8;
    text-transform: uppercase;
}

.glitch-text {
    position: relative;
}

/* Adding a subtle glitch effect */
.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.glitch-text::before {
    color: #0099ff;
    opacity: 0;
    z-index: -1;
    animation: subtle-glitch 8s infinite;
    transform: translateX(-2px);
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.glitch-text::after {
    color: rgba(0, 153, 255, 0.7);
    opacity: 0;
    z-index: -1;
    filter: blur(1px);
    animation: subtle-glitch 8s infinite 0.5s;
    transform: translateX(2px);
    clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%);
}

/* Enhanced glitch effect that happens occasionally */
.glitch-text.active-glitch::before {
    animation: none;
    opacity: 0.5;
    transform: translateX(-3px);
    filter: blur(0.5px);
    transition: all 0.1s ease;
}

.glitch-text.active-glitch::after {
    animation: none;
    opacity: 0.5;
    transform: translateX(3px);
    filter: blur(0.5px);
    transition: all 0.1s ease;
}

.glitch-text.active-glitch {
    animation: active-glitch 0.3s ease;
}

@keyframes active-glitch {
    0% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-2px);
    }
    50% {
        transform: translateX(1px);
    }
    75% {
        transform: translateX(-1px);
    }
    100% {
        transform: translateX(0);
    }
}

@keyframes subtle-glitch {
    0%, 100% {
        opacity: 0;
    }
    1%, 5% {
        opacity: 0.3;
    }
    2% {
        opacity: 0.1;
        transform: translateX(-3px);
    }
    3% {
        opacity: 0.2;
        transform: translateX(3px);
    }
    4% {
        opacity: 0.1;
        transform: translateX(-1px);
    }
}

.divider {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto 30px;
    width: 80%;
    max-width: 300px;
    transform: translateZ(15px);
}

.divider span {
    display: inline-block;
    height: 1px;
    margin: 0 5px;
    background-color: #0099ff;
    box-shadow: 0 0 8px rgba(0, 153, 255, 0.5);
}

.divider span:nth-child(1) {
    width: 60px;
    animation: pulsateDivider 4s infinite;
}

.divider span:nth-child(2) {
    width: 40px;
    animation: pulsateDivider 4s infinite 1s;
}

.divider span:nth-child(3) {
    width: 60px;
    animation: pulsateDivider 4s infinite 2s;
}

@keyframes pulsateDivider {
    0%, 100% {
        opacity: 0.3;
        transform: scaleX(0.8);
    }
    50% {
        opacity: 0.8;
        transform: scaleX(1.1);
    }
}

.contact {
    margin-top: 2rem;
    transform: translateZ(25px);
}

.email-btn {
    color: #f8f8f8;
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 1px;
    display: inline-block;
    padding: 14px 28px;
    position: relative;
    overflow: hidden;
    border-radius: 0;
    background: transparent;
    border: 1px solid rgba(0, 153, 255, 0.3);
    transition: all 0.3s ease;
    box-shadow: none;
    font-weight: 300;
}

.btn-content {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.email-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 153, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.email-btn:hover {
    box-shadow: 0 0 20px rgba(0, 153, 255, 0.3);
    transform: translateY(-4px) scale(1.05);
    background: rgba(0, 153, 255, 0.2);
}

.email-btn:hover::before {
    left: 100%;
}

.email-btn:hover .btn-content {
    color: #ffffff;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
        letter-spacing: 4px;
    }
    
    .logo-img {
        width: 140px;
    }
    
    .email-btn {
        font-size: 0.9rem;
        padding: 12px 24px;
    }
    
    .content {
        padding: 2rem;
    }
}

/* Investor Login Button */
.investor-login-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 10px;
}

.investor-login-btn button {
    background-color: rgba(0, 120, 255, 0.2);
    color: #f8f8f8;
    border: 1px solid rgba(0, 153, 255, 0.3);
    padding: 8px 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.investor-login-btn button:hover {
    background-color: rgba(0, 120, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border-color: rgba(0, 153, 255, 0.5);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.9) 0%, rgba(20, 20, 30, 0.9) 100%);
    margin: 15% auto;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    border-radius: 4px;
    border: 1px solid rgba(0, 153, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 120, 255, 0.1);
    animation: fadeIn 0.3s ease-in-out;
    transform-style: preserve-3d;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #0099ff;
}

.modal-content h2 {
    margin-top: 10px;
    margin-bottom: 20px;
    color: #f8f8f8;
    font-size: 24px;
    text-align: center;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.login-form input {
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 153, 255, 0.2);
    border-radius: 4px;
    color: #f8f8f8;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
}

.login-form input:focus {
    outline: none;
    border-color: rgba(0, 153, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 10px rgba(0, 120, 255, 0.2);
}

.login-form button {
    padding: 12px;
    background-color: rgba(0, 120, 255, 0.3);
    color: #f8f8f8;
    border: 1px solid rgba(0, 153, 255, 0.3);
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
}

.login-form button:hover {
    background-color: rgba(0, 120, 255, 0.5);
    transform: translateY(-2px);
}

.error-message {
    color: #ff5555;
    text-align: center;
    font-size: 14px;
    margin-top: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .investor-login-btn {
        top: 10px;
        right: 10px;
    }
    
    .investor-login-btn button {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .modal-content {
        margin-top: 20%;
        padding: 20px;
    }
}

/* Game styles */
.game-container {
    margin: 0 0 2.5rem 0;
    position: relative;
    width: 100%;
    height: 280px;
    border-radius: 0;
    overflow: hidden;
    transform-style: preserve-3d;
    transform: translateZ(20px);
    background: transparent;
    border: none;
    box-shadow: none;
}

@keyframes glow {
    0% {
        box-shadow: none;
    }
    100% {
        box-shadow: none;
    }
}

#gameCanvas {
    width: 100%;
    height: 100%;
    display: block;
    background: transparent;
}

#score {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    font-weight: bold;
    color: #0099ff;
    text-shadow: 0 0 10px rgba(0, 153, 255, 0.7);
    padding: 5px;
    z-index: 10;
    font-family: 'Montserrat', sans-serif;
}