@font-face {
    font-family: 'Cinzel';
    src: url(Cinzel-VariableFont_wght.ttf) format(truetype);
}
:root {
    --primary-blue-dark: #050513;
    --primary-blue-medium: #0a0f2c;
    --primary-blue-light: #1d234d;
    --accent-sapphire-blue: #4a69bd;
    --accent-light-blue: #a8c7ff;
    --text-color-light: #e0f2ff;
    --orb-shadow-color: rgba(74, 105, 189, 0.6);
    --main-orb-glow: rgba(0, 100, 255, 0.7);
}
body, html {
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100%;
    background: radial-gradient(ellipse at center, var(--primary-blue-medium) 0%, var(--primary-blue-dark) 100%);
    font-family: 'Cinzel', serif;
    color: var(--text-color-light); 
    perspective: 1000px;
}
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1; 
    animation: stardust-pan 60s linear infinite;
    z-index: 0;
}

@keyframes stardust-pan {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}
.sapphire-landing {
    height: 100vh;
    width: 100vw;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center; 
    transition: opacity 1.5s ease-in-out;
    z-index: 10;
}
.sapphire-landing.fade-out {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95);
    filter: blur(5px);
}
.orb-container {
    position: relative;
    top:-15px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #3e488d 0%, var(--primary-blue-light) 50%, #0e1028 100%);
    box-shadow: 0 0 40px var(--orb-shadow-color),
                0 0 80px rgba(74, 105, 189, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}
.orb-container:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px var(--orb-shadow-color),
                0 0 100px rgba(74, 105, 189, 0.5);
}
.main-orb {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    object-fit: cover;
    z-index: 2;
    box-shadow: 0 0 25px var(--main-orb-glow),
                0 0 50px rgba(0, 100, 255, 0.3); 
    animation: pulse-glow 3s infinite alternate ease-in-out;
}
@keyframes pulse-glow {
    0% { box-shadow: 0 0 25px var(--main-orb-glow), 0 0 50px rgba(0, 100, 255, 0.3); }
    100% { box-shadow: 0 0 35px var(--main-orb-glow), 0 0 70px rgba(0, 100, 255, 0.5); }
}
.enter-text {
    position: absolute;
    bottom: 20px;
    top:calc(100%+20px);
    width: 100%;
    text-align: center;
    font-size: 1.5rem;
    color: var(--accent-light-blue);
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(168, 199, 255, 0.8);
    animation: text-fade-in 2s ease-out forwards, pulse-text 2s infinite alternate ease-in-out 3s;
    opacity: 0;
}
@keyframes text-fade-in {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-text {
    0% { transform: scale(1); text-shadow: 0 0 15px rgba(168, 199, 255, 0.8); }
    100% { transform: scale(1.02); text-shadow: 0 0 20px rgba(168, 199, 255, 1); }
}
.orb-container.clicked {
    animation: orb-burst 0.7s forwards;
}
@keyframes orb-burst {
    0% { transform: scale(1.08); opacity: 1; box-shadow: 0 0 50px var(--orb-shadow-color), 0 0 100px rgba(74, 105, 189, 0.5); }
    50% { transform: scale(1.2); opacity: 0.8; box-shadow: 0 0 100px rgba(0, 200, 255, 1), 0 0 200px rgba(0, 200, 255, 0.7); } /* Intense burst glow */
    100% { transform: scale(0.5); opacity: 0; box-shadow: 0 0 0px transparent; }
}
.orb-container.clicked .orbiting-gem,
.orb-container.clicked .main-orb {
    opacity: 0;
    transition: opacity 0.3s ease-out;
}
#dog-ear {
    position: fixed;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: url('../images/right\ corner.png') no-repeat center center;
    background-size: contain;
    filter:
        saturate(0.2) 
        brightness(2) 
        contrast(1.5) 
        drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
    cursor: pointer;
    z-index: 10000;
    transition: filter 0.3s ease, transform 0.3s ease;
    animation: ornate-dog-ear-pulse 3s infinite alternate ease-in-out;
}
#dog-ear:hover {
    filter:
        saturate(0.3)
        brightness(2.5)
        contrast(1.8)
        drop-shadow(0 0 15px rgba(255, 255, 255, 1));
    transform: scale(1.08);
}

@keyframes ornate-dog-ear-pulse {
    0% {
        transform: scale(1);
        filter: saturate(0.2) brightness(2) contrast(1.5) drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
    }
    50% {
        transform: scale(1.02);
        filter: saturate(0.25) brightness(2.2) contrast(1.6) drop-shadow(0 0 12px rgba(255, 255, 255, 0.8));
    }
    100% {
        transform: scale(1);
        filter: saturate(0.2) brightness(2) contrast(1.5) drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
    }
}
