@font-face {
    font-family: 'Hogisogi';
    /* Using multiple extensions just in case */
    src: url('fonts/Hogisogi-Black.ttf') format('truetype'),
         url('fonts/Hogisogi-Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Brand Colors from Palette */
    --brand-bg: #01001c; /* Depth */
    --brand-primary: #ffffff;
    --brand-accent: #1586f5; /* Electric */
    --brand-accent-hover: #0c34e9; /* Cosmic */
    --brand-subtle: #050170; /* Midnight */
    
    /* CSS variables updated by JS for the masking effect */
    --logo-x: 50%;
    --logo-y: 50%;
    --logo-size: 250px; 
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Prevent scrollbars from bouncing logo */
    background-color: var(--brand-bg);
    font-family: 'Inter', sans-serif;
    color: var(--brand-primary);
}

/* Cosmic Background */
.cosmic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0; /* behind everything */
    background: radial-gradient(circle at bottom, var(--brand-subtle) 0%, var(--brand-bg) 70%);
    overflow: hidden;
    pointer-events: none;
}

/* Glowing Nebula Effects */
.nebula {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.7;
    animation: drift 25s infinite alternate ease-in-out;
}

.nebula-1 {
    width: 60vw;
    height: 60vh;
    background: var(--brand-secondary); /* Sapphire */
    top: -20%;
    left: -10%;
}

.nebula-2 {
    width: 50vw;
    height: 50vh;
    background: var(--brand-accent-hover); /* Cosmic */
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
    animation-direction: alternate-reverse;
}

.nebula-3 {
    width: 40vw;
    height: 40vh;
    background: var(--brand-accent); /* Electric */
    top: 30%;
    left: 40%;
    animation-duration: 30s;
    opacity: 0.5;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    100% { transform: translate(15vw, 15vh) scale(1.3) rotate(20deg); }
}

/* Stars */
.stars, .stars-2 {
    width: 2px;
    height: 2px;
    background: transparent;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 50%;
}

.stars {
    animation: moveStars 120s linear infinite;
}

.stars-2 {
    width: 3px;
    height: 3px;
    animation: moveStars 180s linear infinite;
}

@keyframes moveStars {
    from { transform: translateY(0); }
    to { transform: translateY(-2000px); }
}

.container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}



/* Contact Section */
.contact-section {
    position: absolute;
    bottom: 15%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 10;
}

.contact-section p {
    margin: 0;
    font-size: 1.4rem;
    color: #cbd5e1;
    font-weight: 500;
}

.contact-form {
    display: flex;
    gap: 15px;
    background: rgba(5, 1, 112, 0.4); /* Midnight with opacity */
    padding: 12px;
    border-radius: 60px;
    border: 1px solid rgba(21, 134, 245, 0.3); /* Electric border */
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(1, 0, 28, 0.6);
}

.contact-form input {
    padding: 16px 25px;
    border: none;
    background: transparent;
    color: white;
    font-size: 1.2rem;
    outline: none;
    width: 320px;
}

.contact-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.contact-form button {
    padding: 16px 40px;
    border: none;
    border-radius: 50px;
    background-color: var(--brand-accent);
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.3s, box-shadow 0.3s;
}

.contact-form button:hover {
    transform: translateY(-2px);
    background-color: var(--brand-accent-hover);
    box-shadow: 0 4px 15px rgba(21, 134, 245, 0.4);
}

/* Bouncing Logo */
#bouncing-logo {
    position: absolute;
    top: 0;
    left: 0;
    width: var(--logo-size);
    height: var(--logo-size);
    z-index: 2; /* Below the masked text, above the subtle bg text */
    display: flex;
    justify-content: center;
    align-items: center;
    will-change: transform;
    cursor: pointer;
}

#bouncing-logo:hover .logo-overlay {
    opacity: 1;
}

#bouncing-logo:hover #logo-img {
    opacity: 0;
    transform: scale(0.9);
}

.logo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--brand-primary);
    font-family: 'Hogisogi', 'Inter', sans-serif;
    font-weight: 900;
    -webkit-text-stroke: 1.5px var(--brand-primary); /* Forcing extra bold */
    font-size: 1.8rem;
    letter-spacing: 2px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-shadow: 0 0 15px var(--brand-accent);
    z-index: 3;
}

#logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(21, 134, 245, 0.5));
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Add responsive styling for mobile */
@media (max-width: 768px) {
    .contact-form {
        flex-direction: column;
        border-radius: 20px;
        background: transparent;
        border: none;
        padding: 0;
        box-shadow: none;
    }
    .contact-form input {
        background: rgba(5, 1, 112, 0.5);
        border: 1px solid rgba(21, 134, 245, 0.3);
        border-radius: 30px;
        width: 100%;
        box-sizing: border-box;
    }
    :root {
        --logo-size: 150px;
    }
}
