/* ===========================================
   UNIVERSAL CSS - No Flexbox Layout
   Works in Chrome, Safari, Firefox, Edge, iOS
   =========================================== */

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

/* Hide default cursor only on devices with a real mouse (no touch screens) */
@media (pointer: fine) {
    * {
        cursor: none !important;
    }
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #23153c;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
}

/* ===========================================
   VANTA.JS BACKGROUND
   =========================================== */
#vanta-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* ===========================================
   CENTERING - Absolute position + transform
   The oldest, most universal centering method.
   =========================================== */
.center-box {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
    max-width: 600px;
    z-index: 10;
}

/* ===========================================
   LOGO
   =========================================== */
.main-logo {
    display: block;
    width: 80%;
    max-width: 400px;
    height: auto;
    margin: 0 auto 2.5rem auto;
    -webkit-filter: drop-shadow(0px 8px 25px rgba(0, 0, 0, 0.4));
    filter: drop-shadow(0px 8px 25px rgba(0, 0, 0, 0.4));
    
    /* Float animation */
    -webkit-animation: floating 4s ease-in-out infinite;
    animation: floating 4s ease-in-out infinite;
}

@-webkit-keyframes floating {
    0% { -webkit-transform: translateY(0); transform: translateY(0); }
    50% { -webkit-transform: translateY(-12px); transform: translateY(-12px); }
    100% { -webkit-transform: translateY(0); transform: translateY(0); }
}

@keyframes floating {
    0% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0); }
}

/* ===========================================
   TYPOGRAPHY
   =========================================== */
h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 1rem;
    color: #ffffff;
    
    /* Fade in animation */
    -webkit-animation: fadeInUp 1s ease 0.4s both;
    animation: fadeInUp 1s ease 0.4s both;
}

.subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    color: #94a3b8;
    line-height: 1.6;
    
    /* Fade in animation */
    -webkit-animation: fadeInUp 1s ease 0.7s both;
    animation: fadeInUp 1s ease 0.7s both;
}

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

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

/* ===========================================
   ADMIN UI
   =========================================== */
#admin-trigger-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: -webkit-box;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
    cursor: pointer;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    z-index: 100;
}

#admin-trigger-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* ===========================================
   CUSTOM CURSOR (Lightball)
   =========================================== */
#custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.4) 0%, rgba(59, 130, 246, 0.1) 40%, transparent 70%);
    pointer-events: none;
    z-index: 99999;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    mix-blend-mode: screen;
    will-change: left, top;
    display: none; /* Hidden by default until mouse moves */
}

/* Guarantee the glow cursor never shows up on smartphones/touch devices */
@media (pointer: coarse), (hover: none) {
    #custom-cursor {
        display: none !important;
    }
}

/* ===========================================
   PROTOTYPE HUB DASHBOARD
   =========================================== */
.hub-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    align-items: center;
    width: 100%;
    margin-top: 2rem;
}

.hub-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    padding: 1.2rem;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 2px;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    cursor: none; /* Uses custom cursor */
}

.hub-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 600px) {
    h1 {
        font-size: 2.2rem;
    }
    .subtitle {
        font-size: 1rem;
    }
    .main-logo {
        width: 70%;
        margin-bottom: 2rem;
    }
}
