@font-face {
    font-family: RaptorText-Black;
    src: url(font/RaptorText-Black.ttf);
}

/* Hide Spline orbit controls (joysticks) and branding */
spline-viewer::part(orbit-controls) {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

spline-viewer::part(logo) {
    display: none !important;
}

/* Target the controls directly within shadow DOM */
.spline-container spline-viewer {
    --orbit-controls-display: none;
}

/* Hide any canvas overlay controls */
.spline-container canvas + * {
    display: none !important;
}

/* Nuclear option - hide all absolute positioned elements in Spline viewer except canvas */
spline-viewer > *:not(canvas) {
    display: none !important;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: #000000;
    color: #ffffff;
    overflow: hidden;
    height: 100vh;
    position: relative;
}

/* Spline Container - Full Screen */
.spline-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible; /* Allow keyboard to extend beyond if needed */
}

.spline-container canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Allow spline-viewer to overflow */
.spline-container spline-viewer {
    overflow: visible !important;
}

/* Info Card - Desktop: Top Left, Mobile: Centered Top */
.info-card {
    position: absolute;
    top: 50px;
    left: 50px;
    background-color: rgb(30, 30, 30);
    border: 1px solid #808080;
    border-radius: 8px;
    padding: 20px;
    width: 450px;
    max-width: calc(100vw - 100px);
    z-index: 100;
    font-family: Arial, sans-serif;
    color: #ffffff;
}

/* Card Name (Elias.) */
.card-name {
    font-size: 10em;
    font-weight: 900;
    margin: 0;
    line-height: 1;
    font-family: RaptorText-Black, Arial, sans-serif;
    
}

/* Horizontal Dividers */
.card-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 15px 0;
}

/* Greeting and Bio Text */
.card-greeting, 
.card-bio {
    font-size: 0.95em;
    line-height: 1.5;
    margin: 0;
}

/* Actions (Buttons) */
.card-actions {
    display: flex;
    gap: 10px;
}

.action-button {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    flex-grow: 1;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.action-button:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Bottom Center Text Section */
.bottom-section {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
    transition: opacity 0.3s;
}

.interaction-hint {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
}

/* Tablet Breakpoint (768px - 1024px) */
@media (max-width: 1024px) {
    .info-card {
        top: 40px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 500px;
    }

    .card-name {
        font-size: 7em;
    }

    .bottom-section {
        bottom: 40px;
    }
}

/* Mobile Breakpoint (under 768px) */
@media (max-width: 768px) {
    /* Scale down spline viewer on mobile to fit better */
    .spline-container spline-viewer {
        transform: scale(0.75);
        transform-origin: center;
    }
    
    /* Hide orbit controls */
    spline-viewer::part(orbit-controls) {
        display: none !important;
    }
    
    /* Smaller, more compact info card at top */
    .info-card {
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 40px);
        max-width: 360px; /* Narrower */
        padding: 15px; /* Less padding */
    }
    
    .card-name {
        font-size: em; /* Smaller */
        text-align: center; /* Center on mobile */
    }
    
    .card-greeting,
    .card-bio {
        font-size: 0.85em; /* Smaller text */
        text-align: center; /* Center on mobile */
    }
    
    .card-divider {
        margin: 10px 0; /* Tighter spacing */
    }
    
    .card-actions {
        flex-direction: column;
        gap: 6px; /* Tighter */
    }
    
    .action-button {
        width: 100%;
        padding: 10px 16px; /* Smaller buttons */
        font-size: 0.9em;
    }
    
    .bottom-section {
        bottom: 30px;
    }
}

    .card-name {
        font-size: ;
        text-align: left;
    }

    .card-greeting,
    .card-bio {
        font-size: 0.9em;
        text-align: left;
    }

    .card-actions {
        flex-direction: column;
        gap: 8px;
    }

    .action-button {
        width: 100%;
        padding: 12px 20px;
        font-size: 0.95em;
    }

    .bottom-section {
        bottom: 30px;
    }

    .interaction-hint {
        font-size: 14px;
    }
}

/* Small Mobile (under 480px) */
@media (max-width: 480px) {
    .info-card {
        top: 15px;
        width: calc(100% - 30px);
        max-width: 340px;
        padding: 12px;
    }

    .card-name {
        font-size: 3.5em; /* Even smaller */
    }

    .card-greeting,
    .card-bio {
        font-size: 0.8em;
    }

    .card-divider {
        margin: 8px 0;
    }

    .bottom-section {
        bottom: 20px;
    }

    .interaction-hint {
        font-size: 13px;
    }
}