/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #030712; /* Very dark blue, almost black */
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

/* Background Animations */
.background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    background: radial-gradient(circle at center, #0f172a 0%, #030712 100%);
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(79, 70, 229, 0.4);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: rgba(6, 182, 212, 0.3);
    bottom: -150px;
    right: -100px;
    animation-delay: -5s;
    animation-direction: reverse;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: rgba(139, 92, 246, 0.4);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 10s infinite alternate;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    33% { transform: translate(50px, -50px) rotate(120deg) scale(1.1); }
    66% { transform: translate(-20px, 50px) rotate(240deg) scale(0.9); }
    100% { transform: translate(0, 0) rotate(360deg) scale(1); }
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0.6; }
}

/* Logo Animations */
.logo-container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    /* initial state for entry animation */
    opacity: 0;
    transform: scale(0.8);
    animation: logoEntrance 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes logoEntrance {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.main-logo {
    width: 600px;
    max-width: 80vw;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.15));
    animation: floatLogo 6s ease-in-out infinite 2s;
    transition: all 0.3s ease;
}

@keyframes floatLogo {
    0%, 100% { transform: translateY(0); filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.15)); }
    50% { transform: translateY(-15px); filter: drop-shadow(0 0 35px rgba(255, 255, 255, 0.3)); }
}

/* Interactive Hover effect */
.logo-container:hover .main-logo {
    filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.4));
    transform: scale(1.02);
}

.logo-container {
    transition: all 0.3s ease;
}

/* Visitor Panel Styles */
.visitor-panel {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    color: #e2e8f0;
    width: 350px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    animation: panelEntrance 1s ease-out forwards 1s;
    z-index: 20;
}

@keyframes panelEntrance {
    to { opacity: 1; transform: translateY(0); }
}

.panel-header {
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #38bdf8;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(56, 189, 248, 0.3);
    padding-bottom: 8px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    line-height: 1.4;
}

.detail-label {
    color: #94a3b8;
}

.detail-value {
    color: #f8fafc;
    font-weight: 600;
    text-align: right;
    max-width: 60%;
    word-break: break-word;
}

.loading {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #94a3b8;
}

.loading::after {
    content: '';
    width: 12px;
    height: 12px;
    border: 2px solid #38bdf8;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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