/* Basic page styles */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Helvetica Neue', sans-serif;
}

/* NEW: Animated Gradient Background */
@keyframes animated-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* The main container or "stage" */
.scene {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(-45deg, #f0f4f8, #ffffff, #e6f0f7, #fdfdfd);
    background-size: 400% 400%;
    animation: animated-gradient 30s ease infinite;
}

/* NEW: Pulsating animation for the central text */
@keyframes pulsate {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.03); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

/* The central $Why? element */
#central-why {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8vw;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    user-select: none;
    z-index: 10;
    animation: pulsate 1.8s ease-in-out infinite; /* Apply the pulsation */
}

#info{
    position: absolute;
    left: 50%;
    top: 58%;
    transform: translate(-50%, -50%);
    font-family: "Fira Code", "Roboto Mono", Consolas, "Courier New", monospace;
    animation: pulsate 1.8s ease-in-out infinite;
    font-size: 1.3rem;
}

/* Container for the bubbles */
#bubble-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

/* "Glass" style for a more realistic effect */
.bubble {
    position: absolute;
    z-index: 1; /* Set to be behind the central text */
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1) 70%);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #333;
    font-weight: 500;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    font-size: 1.2vw;
    box-shadow: inset 0 -10px 20px rgba(0, 0, 0, 0.05), inset 0 10px 15px rgba(255, 255, 255, 0.3), 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: translate(-50%, -50%);
    transition: opacity 0.5s, transform 0.5s;
    will-change: transform, opacity;
    font-family: "Fira Code", "Roboto Mono", Consolas, "Courier New", monospace;
}


/* --- NEW: Footer Styles --- */
#footer-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-icon {
    width: 48px;
    height: 48px;
    transition: transform 0.2s ease-in-out;
}

.social-icon:hover {
    transform: scale(1.1);
}

#ca-container {
    position: relative;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    user-select: none;
    transform: translateY(-2px);
    
    /* Glass style to match bubbles */
    background: rgba(255, 255, 255, 0.4);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: transform 0.2s ease-in-out;
}

#ca-container:hover {
    transform: scale(1.05);
}

.tooltip {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.tooltip.visible {
    opacity: 1;
    visibility: visible;
}