:root {
    --bg-color: #121212;
    --text-color: #ffffff;
    --accent-color: #f28e1c;
    --footer-text: #a0a0a0;
    --footer-link: #f8a845;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    overflow-x: hidden;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 2rem;
}

.title {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    color: var(--accent-color);
    text-shadow: 0 4px 12px rgba(242, 142, 28, 0.3);
    text-align: center;
}

.animation-container {
    width: 100%;
    max-width: 400px;
    height: auto;
    position: relative;
    filter: drop-shadow(0 0 20px rgba(242, 142, 28, 0.15));
}

.beer-svg {
    width: 100%;
    height: auto;
    display: block;
}

/* --- ANIMATIONS --- */

/* Pouring stream */
.pour-stream-top,
.pour-stream-inner,
.pour-stream-core,
.pour-stream-top-core {
    animation: pourFlow 0.8s linear infinite;
    transform-origin: center top;
}

@keyframes pourFlow {
    0% {
        transform: scaleY(1) translateY(-5px);
        opacity: 0.8;
    }

    50% {
        transform: scaleY(1.02) translateY(0);
        opacity: 1;
    }

    100% {
        transform: scaleY(1) translateY(-5px);
        opacity: 0.8;
    }
}

/* Impact splash at the liquid surface */
.impact-splash {
    animation: splashPulse 0.4s ease-in-out infinite alternate;
    transform-origin: 100px 80px;
}

@keyframes splashPulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    100% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Bubbles rising */
.bubble {
    animation: rise infinite ease-in;
}

.b1 {
    animation-duration: 2.2s;
    animation-delay: 0.1s;
}

.b2 {
    animation-duration: 1.8s;
    animation-delay: 0.5s;
}

.b3 {
    animation-duration: 2.5s;
    animation-delay: 0.2s;
}

.b4 {
    animation-duration: 2.0s;
    animation-delay: 0.8s;
}

.b5 {
    animation-duration: 2.4s;
    animation-delay: 0.4s;
}

.b6 {
    animation-duration: 1.9s;
    animation-delay: 0.7s;
}

.b7 {
    animation-duration: 2.1s;
    animation-delay: 0.3s;
}

@keyframes rise {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(-160px) scale(1.5);
        opacity: 0;
    }
}

/* Foam undulation */
.foam {
    animation: foamWobble 3s ease-in-out infinite alternate;
    transform-origin: 100px 75px;
}

.foam-bubble {
    animation: foamBreathe 4s ease-in-out infinite alternate;
}

.fb1,
.fb4,
.fb7 {
    animation-delay: 0s;
}

.fb2,
.fb5,
.fb8 {
    animation-delay: 1s;
}

.fb3,
.fb6 {
    animation-delay: 2s;
}

@keyframes foamWobble {
    0% {
        transform: scaleY(1);
    }

    100% {
        transform: scaleY(1.05);
    }
}

@keyframes foamBreathe {
    0% {
        transform: translateY(0) scale(1);
    }

    100% {
        transform: translateY(-2px) scale(1.05);
    }
}

/* Footer Styling */
.footer {
    width: 100%;
    padding: 1.5rem;
    text-align: center;
    color: var(--footer-text);
    font-size: 0.9rem;
    background-color: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer a {
    color: var(--footer-link);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.footer a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 8px rgba(242, 142, 28, 0.5);
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .title {
        font-size: 2.2rem;
    }

    .animation-container {
        max-width: 300px;
    }
}