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

body {
    min-height: 100vh;
    background: radial-gradient(circle at top, #0f1020 0%, #07070f 100%);
    font-family: 'Outfit', 'Inter', sans-serif;
    color: #e5e5f0;
    overflow-x: hidden;
}

#title {
    text-align: center;
    margin: 3rem auto 1.5rem;
    padding: 1.5rem;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}
.title-changing {
    animation: title-change 0.6s ease;
}
@keyframes title-change {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    50% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

#title h1 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 3px;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

.title-normal {
    background: linear-gradient(135deg, #ffd610, #55ff00);
}
.title-apo {
    background: linear-gradient(135deg, #3e0038, #500000);
}

#gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 60px;
    padding: 50px 20px;
    background: transparent;
    box-shadow: none;
}

/* Base style for robot cards */
.bilin-robot,
.lmakossol-robot,
.aroussele-robot {
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 25px;
    text-align: center;
    border-radius: 24px;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-height: 480px;
    width: 330px;
    backdrop-filter: blur(10px);
    position: relative;
}

.bilin-robot {
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(1, 140, 255, 0.05);
}

.lmakossol-robot {
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(255, 0, 0, 0.03);
}

.aroussele-robot {
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    overflow: visible;
    isolation: isolate;
}

/* Hover scales and glows */
.bilin-robot:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(1, 140, 255, 0.4);
    box-shadow: 0 20px 45px rgba(1, 140, 255, 0.15);
}

.lmakossol-robot:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(255, 0, 0, 0.3);
    box-shadow: 0 20px 45px rgba(255, 0, 0, 0.1);
}

.aroussele-robot:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 45px rgba(255, 255, 255, 0.1);
}

/* Robot structures styling */
section {
    padding: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Reset generic div/p borders inside the gallery */
.bilin-robot div, .bilin-robot p,
.lmakossol-robot div, .lmakossol-robot p,
.aroussele-robot div, .aroussele-robot p {
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
}

/* Eyes containers */
#eyes-bi, #eyes-li, #eyes-ad {
    display: flex;
    background-color: #121324;
    justify-content: space-between;
    align-items: center;
    border-radius: 30px;
    width: 180px;
    height: 76px;
    padding: 8px;
    border: 2px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.6);
}

#eyes-bi {
    width: 250px;
    justify-content: space-around;
    padding: 8px 12px;
}

/* Standard Eyes */
.eye {
    width: 50px;
    height: 50px;
    background-color: #ff3344;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(255, 51, 68, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

#eye-right-li, #eye-right-li-2, #eye-left-li-2 {
    cursor: pointer;
}

.lmakossol-eye-opening {
    animation: lmakossolEyeOpen 0.48s ease-out forwards;
}

.lmakossol-eye-closed {
    height: 7px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ff3344, #8f0f1a);
    box-shadow: 0 0 10px rgba(255, 51, 68, 0.45);
}

@keyframes lmakossolEyeOpen {
    0% {
        height: 7px;
        border-radius: 999px;
        transform: scaleX(1);
        box-shadow: 0 0 10px rgba(255, 51, 68, 0.45);
    }
    55% {
        height: 54px;
        border-radius: 50%;
        transform: scaleX(1.08);
        box-shadow: 0 0 26px rgba(255, 51, 68, 0.95);
    }
    100% {
        height: 50px;
        border-radius: 50%;
        transform: scaleX(1);
        box-shadow: 0 0 15px rgba(255, 51, 68, 0.6);
    }
}

/* Specific Eye Styles for aroussele-robot */
.eye-ad-right-closed {
    height: 6px;
    width: 50px;
    border-radius: 3px;
    background-color: #d60fc5;
    box-shadow: 0 0 10px rgba(214, 15, 197, 0.5);
    transition: all 0.3s ease;
}

.eye-ad-apo {
    width: 50px;
    height: 50px;
    background-color: #d60fc5;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(214, 15, 197, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

/* Robot Torsos */
#torso-bi, #torso-li, #torso-ad {
    width: 110px;
    height: 120px;
    background: linear-gradient(180deg, #1f213a 0%, #151628 100%);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), inset 0 2px 5px rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Robot Arms */
.arm {
    background: linear-gradient(180deg, #1f213a 0%, #151628 100%);
    width: 32px;
    height: 90px;
    margin: 10px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Robot Legs */
.leg {
    background: linear-gradient(180deg, #1f213a 0%, #151628 100%);
    width: 32px;
    height: 95px;
    margin: 0 15px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Custom Leg layout for lmakossol-robot */
#lower-body-li .leg {
    width: 80px;
    height: 32px;
    margin: 10px ;
    background: linear-gradient(90deg, #1f213a 0%, #151628 100%);
}

/* Texts and Descriptions */
h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin: 15px 0 8px;
    letter-spacing: 0.5px;
}

.bilin-robot p,
.lmakossol-robot p,
.aroussele-robot p {
    font-size: 0.9rem;
    color: #8c90aa;
    line-height: 1.4;
    padding: 0 10px;
}

/* Apocalypse background animations for aroussele-robot */
.apo-bg-on {
    animation: apo-color-on 2s ease-in forwards;
}
.apo-bg-off {
    animation: apo-color-off 2s ease-in forwards;
}

@keyframes apo-color-on {
    0% { background-color: rgba(255, 255, 255, 0.03); }
    50% { background-color: rgba(255, 68, 0, 0.2); }
    100% { background-color: rgba(255, 0, 0, 0.15); border-color: rgba(255, 0, 0, 0.4); }
}
@keyframes apo-color-off {
    0% { background-color: rgba(255, 0, 0, 0.15); border-color: rgba(255, 0, 0, 0.4); }
    10% { background-color: rgba(0, 255, 0, 0.1); }
    100% { background-color: rgba(255, 255, 255, 0.03); }
}

/* Blue Hover Glow for aroussele-robot */
.aroussele-robot::before,
.aroussele-robot::after {
    content: "";
    position: absolute;
    pointer-events: none;
    opacity: 0;
    z-index: 0;
    transition: opacity 0.3s ease;
}

.aroussele-robot::before {
    inset: -36px;
    border-radius: 34px;
    background:
        radial-gradient(28px 105px at 8% 18%, rgba(12, 26, 255, 0.55), transparent 68%),
        radial-gradient(32px 120px at 92% 14%, rgba(0, 190, 255, 0.45), transparent 70%),
        radial-gradient(34px 130px at 3% 75%, rgba(32, 0, 160, 0.45), transparent 72%),
        radial-gradient(30px 115px at 97% 78%, rgba(0, 80, 255, 0.5), transparent 70%),
        radial-gradient(115px 34px at 50% -4%, rgba(0, 140, 255, 0.4), transparent 72%),
        radial-gradient(130px 36px at 50% 104%, rgba(40, 0, 180, 0.38), transparent 72%);
    filter: blur(2px);
}

.aroussele-robot::after {
    inset: -14px;
    border: 2px solid rgba(0, 55, 255, 0.45);
    border-radius: 24px;
    box-shadow:
        inset 0 0 22px rgba(0, 47, 255, 0.28),
        0 0 24px rgba(0, 145, 255, 0.32);
}



.aroussele-robot:hover::before {
    opacity: 1;
    animation: tentacleBreathing 2.6s ease-in-out infinite;
}

.aroussele-robot:hover::after {
    opacity: 1;
    animation: tentacleInnerPulse 2.6s ease-in-out infinite;
}

@keyframes tentacleBreathing {
    0%, 100% {
        transform: scale(0.96) rotate(-1deg);
        filter: blur(3px);
    }
    50% {
        transform: scale(1.06) rotate(1deg);
        filter: blur(1px);
    }
}

@keyframes tentacleInnerPulse {
    0%, 100% {
        box-shadow:
            inset 0 0 16px rgba(0, 47, 255, 0.22),
            0 0 18px rgba(0, 145, 255, 0.24);
    }
    50% {
        box-shadow:
            inset 0 0 32px rgba(0, 47, 255, 0.46),
            0 0 34px rgba(0, 145, 255, 0.52);
    }
}

.popup-overlay {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
    background-color: rgba(7, 7, 15, 0.6);
    backdrop-filter: blur(10px);
    border: 0;
    border-radius: 0;
    opacity: 1;
    z-index: 100000;
}

.popup-overlay.visible {
    display: flex;
}

.popup-box {
    width: min(400px, 90vw);
    padding: 35px 25px;
    text-align: center;
    background: rgba(20, 21, 38, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    opacity: 1;
    animation: popupAppear 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.popup-box h2 {
    margin-bottom: 15px;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #ffd610, #ffc400, #55ff00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

.popup-box p {
    border: 0;
    padding: 0;
    margin-bottom: 25px;
    font-size: 1.1rem;
    line-height: 1.5;
    font-weight: 500;
    color: #b0b4d0;
    opacity: 1;
}

.popup-box button {
    padding: 12px 30px;
    cursor: pointer;
    color: #07070f;
    background: linear-gradient(135deg, #ffd610, #ffc400);
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 1;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(255, 214, 16, 0.3);
}

.popup-box button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 214, 16, 0.5);
    background: linear-gradient(135deg, #ffc400, #ffd610);
}

@keyframes popupAppear {
    from {
        transform: scale(0.85);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

#tiny-eye-left-bi, #tiny-eye-right-bi,
#tiny-eye-left-bi-2, #tiny-eye-right-bi-2,
#tiny-eye-left-bi-3, #tiny-eye-right-bi-3 {
    width: 10px;
    height: 10px;
    background-color: #018cff;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.5s ease, transform 0.2s ease, box-shadow 0.5s ease;
    box-shadow: 0 0 8px rgba(1, 140, 255, 0.8);
    display: inline-block;
}

#tiny-eye-left-bi:hover, #tiny-eye-right-bi:hover,
#tiny-eye-left-bi-2:hover, #tiny-eye-right-bi-2:hover,
#tiny-eye-left-bi-3:hover, #tiny-eye-right-bi-3:hover {
    transform: scale(1.3);
}

#torso-bi {
    display: flex;
    justify-content: center;
    align-items: center;
}

#torso-bi button {
    background: linear-gradient(135deg, #018cff, #0055ff);
    color: white;
    border-radius: 10px;
    padding: 5px 10px;
    border: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    width: 80px;
    box-shadow: 0 4px 10px rgba(1, 140, 255, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

#torso-bi button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(1, 140, 255, 0.6);
}

body.all-red {
    background-color: red !important;
}

/* Flood Animation and Floating Potatoes */
.flood-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(180deg, rgba(0, 140, 255, 0.75) 0%, rgba(0, 50, 160, 0.9) 100%);
    z-index: 9999;
    overflow: visible;
    pointer-events: none;
    transition: height 2.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: inset 0 10px 30px rgba(0, 0, 0, 0.2);
}

.waves-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

body.all-red .flood-container {
    height: 50vh;
}

.wave {
    position: absolute;
    left: 0;
    width: 200%;
    background-repeat: repeat-x;
    background-size: 50% 100%;
    pointer-events: none;
}

.wave1 {
    top: -30px;
    height: 50px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 120' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'%3E%3Cpath d='M0,60 Q150,30 300,60 T600,60 T900,60 T1200,60 L1200,120 L0,120 Z' fill='%23008cff' opacity='0.85'/%3E%3C/svg%3E");
    animation: wave-flow 6s linear infinite;
    z-index: 10;
}

.wave2 {
    top: -45px;
    height: 65px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 120' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'%3E%3Cpath d='M0,60 Q150,40 300,60 T600,60 T900,60 T1200,60 L1200,120 L0,120 Z' fill='%2300c3ff' opacity='0.55'/%3E%3C/svg%3E");
    animation: wave-flow 9s linear infinite reverse;
    z-index: 5;
}

@keyframes wave-flow {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.floating-potato {
    position: absolute;
    left: -100px;
    z-index: 8;
    animation-name: float-across;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
    display: flex;
    justify-content: center;
    align-items: center;
}

.potato-inner {
    font-size: inherit;
    animation: bobbing 3.5s ease-in-out infinite alternate;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15));
}

@keyframes float-across {
    0% {
        left: -100px;
    }
    100% {
        left: 110%;
    }
}

@keyframes bobbing {
    0% {
        transform: translateY(-15px) rotate(-25deg);
    }
    100% {
        transform: translateY(15px) rotate(25deg);
    }
}

.falling-ad-hover {
    position: fixed;
    z-index: 9999;
    font-weight: bold;
    font-family: 'Outfit', 'Inter', sans-serif;
    pointer-events: none;
    animation-name: fallAndFade;
    animation-fill-mode: both;
}

@keyframes fallAndFade {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(105vh);
        opacity: 0;
    }
}
.falling-water-potato {
    animation-name: float-across-from-custom;
}

@keyframes float-across-from-custom {
    100% {
        left: 110%;
    }
}

.falling-water-potato .potato-inner {
    animation-name: fall-and-bob;
    animation-duration: inherit;
    animation-timing-function: ease-in-out;
    animation-iteration-count: 1;
    animation-direction: normal;
    animation-delay: 0s !important;
}

@keyframes fall-and-bob {
    0% {
        transform: translateY(-100vh) rotate(-25deg);
    }
    15% {
        transform: translateY(0) rotate(25deg);
    }
    30% {
        transform: translateY(-15px) rotate(-15deg);
    }
    45% {
        transform: translateY(15px) rotate(15deg);
    }
    60% {
        transform: translateY(-15px) rotate(-15deg);
    }
    75% {
        transform: translateY(15px) rotate(15deg);
    }
    90% {
        transform: translateY(-15px) rotate(-15deg);
    }
    100% {
        transform: translateY(0) rotate(0);
    }
}

