/*
  Kinetic Orb Studio - Stylesheet
  Copyright © 2026 Shital Sapkota. All rights reserved.
*/

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background: radial-gradient(circle at center, #2c3e50 0%, #000000 100%);
    color: #ecf0f1;
    overflow-x: hidden;
}

h1 {
    text-align: center;
    padding: 2rem 0;
    margin: 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    text-shadow: 0 0 1rem rgba(255, 255, 255, 0.3);
}

.box_shadow {
    width: 10rem;
    height: 10rem;
    margin: 2rem;
    border-radius: 50%;
    position: relative;
    box-shadow: inset -1.25rem -1.25rem 2.5rem rgba(0,0,0,0.5), 
                inset 1.25rem 1.25rem 2.5rem rgba(255,255,255,0.2);
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.05rem;
    color: rgba(255, 255, 255, 0.9);
    user-select: none;
}

.box_shadow:hover {
    animation-play-state: paused;
    filter: brightness(1.2);
    transform: scale(1.1);
}

.container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 8rem);
}

.box_shadow:after {
    content: "";
    width: 80%;
    height: 1.25rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    position: absolute;
    bottom: -2.5rem;
    left: 10%;
    filter: blur(0.625rem);
    z-index: -1;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.box_shadow:hover:after {
    transform: scale(1.2);
    opacity: 0.6;
}

.animate-bounce:after {
    animation: shadow-bounce 2s ease-in-out infinite;
}

@keyframes shadow-bounce {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    40% { 
        transform: scale(0.6);
        opacity: 0.4;
    }
}

.ball-red { background: radial-gradient(circle at 30% 30%, #ff6b6b, #c0392b); }
.ball-green { background: radial-gradient(circle at 30% 30%, #51cf66, #27ae60); }
.ball-yellow { background: radial-gradient(circle at 30% 30%, #fcc419, #f39c12); }
.ball-purple { background: radial-gradient(circle at 30% 30%, #b197fc, #8e44ad); }
.ball-orange { background: radial-gradient(circle at 30% 30%, #ff922b, #d35400); }

.animate-rotate span {
    animation: counter-rotate 3s linear infinite;
}

.animate-spin span {
    animation: counter-rotate 1.5s linear infinite;
}

@keyframes counter-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

.animate-turn span {
    animation: counter-turn 3s ease-in-out infinite;
}

@keyframes counter-turn {
    0%, 100% { transform: rotateY(0deg); }
    50% { transform: rotateY(-180deg); }
}

/* Animations */
.animate-rotate {
    animation: rotate 3s linear infinite;
}

.animate-turn {
    animation: turn 3s ease-in-out infinite;
}

.animate-spin {
    animation: spin 1.5s linear infinite;
}

.animate-shake {
    animation: shake 0.6s cubic-bezier(.36,.07,.19,.97) infinite;
}

.animate-bounce {
    animation: bounce 2s ease-in-out infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes turn {
    0%, 100% { transform: rotateY(0deg); }
    50% { transform: rotateY(180deg); }
}

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes bounce {
    0%, 100% { 
        transform: translateY(0) scaleY(1); 
    }
    40% { 
        transform: translateY(-5rem) scaleY(1.05); 
    }
    90% { 
        transform: translateY(0) scaleY(0.9); 
    }
}

footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

footer p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(236, 240, 241, 0.6);
    letter-spacing: 0.05rem;
    font-weight: 400;
}