@import url('https://fonts.googleapis.com/css2?family=Pacifico&family=Quicksand:wght@400;600;700&display=swap');

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Quicksand', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('/images/milkocafebg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    position: relative;
}

/* dreamy blue overlay */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(160, 210, 255, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(220, 240, 255, 0.22), transparent 28%),
        linear-gradient(
            135deg,
            rgba(246, 251, 255, 0.82),
            rgba(234, 245, 255, 0.78),
            rgba(242, 249, 255, 0.74)
        );
    backdrop-filter: blur(5px);
    z-index: 0;
    pointer-events: none;
}

/* floating HUD vibe */
body::after {
    content: "☁️ 🫐 🧁 ☕";
    position: absolute;
    top: 28px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.25rem;
    letter-spacing: 14px;
    opacity: 0.9;
    animation: floatTop 4s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes floatTop {
    0%, 100% {
        transform: translateX(-50%) translateY(0px);
    }
    50% {
        transform: translateX(-50%) translateY(-8px);
    }
}

.card {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.95), rgba(241,248,255,0.90));
    width: 400px;
    max-width: 90%;
    padding: 42px 34px;
    border-radius: 34px;
    text-align: center;
    border: 3px solid #d7ebff;
    box-shadow:
        0 6px 0 #d9ecff,
        0 18px 42px rgba(135, 186, 255, 0.22),
        0 10px 24px rgba(190, 225, 255, 0.18),
        inset 0 2px 8px rgba(255, 255, 255, 0.85);
    position: relative;
    z-index: 2;
    animation: floatCard 3.5s ease-in-out infinite;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255,255,255,0.28) 35%,
        transparent 65%
    );
    background-size: 220% 100%;
    animation: cardShine 5.5s linear infinite;
    pointer-events: none;
}

@keyframes cardShine {
    0% { background-position: 200% 0; }
    100% { background-position: -40% 0; }
}

.card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow:
        0 8px 0 #d9ecff,
        0 24px 48px rgba(135, 186, 255, 0.28),
        0 14px 28px rgba(190, 225, 255, 0.22),
        inset 0 2px 8px rgba(255, 255, 255, 0.92);
}

@keyframes floatCard {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-6px);
    }
}

/* Game-like title */
h2 {
    position: relative;
    margin-bottom: 26px;
    color: #4a9fff;
    font-family: 'Pacifico', cursive;
    font-size: 2.45rem;
    letter-spacing: 0.5px;
    text-shadow:
        0 2px 0 #ffffff,
        0 5px 0 #d8efff,
        0 10px 18px rgba(70, 140, 220, 0.28),
        0 0 24px rgba(120, 200, 255, 0.26);
    animation:
        titleBob 2.2s ease-in-out infinite,
        titleGlow 2.2s ease-in-out infinite alternate;
}

h2::after {
    content: "☕ WELCOME TO MILKO ☕";
    display: block;
    margin-top: 8px;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 2.8px;
    color: #74a8df;
    text-shadow: 0 0 10px rgba(143, 215, 255, 0.32);
    animation: hudBlink 2s ease-in-out infinite;
}

@keyframes titleBob {
    0%,100% { transform: translateY(0) scale(1); }
    25% { transform: translateY(-5px) scale(1.015); }
    50% { transform: translateY(-10px) scale(1.03); }
    75% { transform: translateY(-4px) scale(1.015); }
}

@keyframes titleGlow {
    from {
        filter: drop-shadow(0 0 0 rgba(120,200,255,0));
    }
    to {
        filter: drop-shadow(0 0 16px rgba(120,200,255,0.30));
    }
}

@keyframes hudBlink {
    0%,100% { opacity: 0.75; letter-spacing: 2.8px; }
    50% { opacity: 1; letter-spacing: 3.6px; }
}

.input-wrapper {
    width: 100%;
    margin: 12px auto;
    position: relative;
}

input {
    width: 100%;
    padding: 15px 18px;
    margin: 8px 0;
    border: 2px solid #d1e7ff;
    border-radius: 18px;
    outline: none;
    font-size: 1rem;
    font-family: 'Quicksand', sans-serif;
    background: linear-gradient(180deg, #ffffff, #f3faff);
    color: #4d6480;
    box-shadow:
        0 4px 0 #d9ecff,
        inset 0 2px 6px rgba(236, 245, 255, 0.95);
    transition: all 0.25s ease;
}

input::placeholder {
    color: #8aa7c6;
}

input:hover {
    transform: translateY(-2px) scale(1.01);
    border-color: #9fcfff;
    box-shadow:
        0 5px 0 #d9ecff,
        0 10px 18px rgba(135,186,255,0.14),
        inset 0 2px 6px rgba(236, 245, 255, 0.98);
}

input:focus {
    border-color: #67b4ff;
    background: #ffffff;
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 5px 0 #d9ecff,
        0 0 0 6px rgba(135, 186, 255, 0.16),
        0 12px 18px rgba(135,186,255,0.16);
}

/* game-like button */
button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 800;
    font-family: 'Quicksand', sans-serif;
    margin-top: 14px;
    color: white;
    background: linear-gradient(135deg, #69b8ff, #8fd7ff, #7aa8ff);
    background-size: 200% 200%;
    box-shadow:
        0 5px 0 #7ec9ff,
        0 14px 24px rgba(115, 180, 255, 0.30),
        inset 0 -3px 0 rgba(255, 255, 255, 0.20);
    transition: all 0.25s ease;
    animation: gradientMove 4s ease infinite;
    position: relative;
    overflow: hidden;
}

button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -80%;
    width: 60%;
    height: 100%;
    background: rgba(255, 255, 255, 0.35);
    transform: skewX(-25deg);
    transition: left 0.5s ease;
}

button:hover::before {
    left: 130%;
}

button:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow:
        0 6px 0 #7ec9ff,
        0 18px 28px rgba(115, 180, 255, 0.36),
        0 0 18px rgba(143, 211, 255, 0.24);
}

button:active {
    transform: translateY(2px) scale(0.98);
    box-shadow:
        0 2px 0 #7ec9ff,
        0 8px 12px rgba(115, 180, 255, 0.20);
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.neon-link {
    color: #4c9eff;
    font-weight: 700;
    text-decoration: none;
    position: relative;
    transition: all 0.25s ease;
}

.neon-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0%;
    height: 2px;
    background: linear-gradient(to right, #67b4ff, #9edcff);
    transition: width 0.3s ease;
}

.neon-link:hover {
    color: #297fe8;
    text-shadow: 0 0 10px rgba(103, 180, 255, 0.38);
}

.neon-link:hover::after {
    width: 100%;
}

p {
    margin-top: 20px;
    color: #64748b;
    font-size: 0.95rem;
}

/* custom animated dropdown */
.filter-row {
    position: relative;
    width: 100%;
    margin: 16px auto;
    text-align: left;
}

.filter-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: #6d97c4;
}

.custom-select {
    position: relative;
    z-index: 5;
}

.custom-select-trigger {
    width: 100%;
    border: 2px solid #cfe6ff;
    background: linear-gradient(180deg, #ffffff 0%, #f1f8ff 100%);
    color: #4d7098;
    font-weight: 900;
    font-size: 0.98rem;
    letter-spacing: 0.2px;
    border-radius: 18px;
    padding: 14px 16px;
    padding-right: 54px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow:
        0 5px 0 #d9ecff,
        inset 0 2px 8px rgba(255,255,255,0.85);
    transition: all 0.22s ease;
    position: relative;
    overflow: hidden;
}

.custom-select-trigger::before {
    content: "";
    position: absolute;
    top: 0;
    left: -80%;
    width: 60%;
    height: 100%;
    background: rgba(255,255,255,0.28);
    transform: skewX(-25deg);
    transition: left 0.5s ease;
}

.custom-select:hover .custom-select-trigger::before {
    left: 130%;
}

.custom-select-trigger:hover {
    transform: translateY(-2px) scale(1.02);
    border-color: #9fcfff;
    box-shadow:
        0 6px 0 #d9ecff,
        0 14px 18px rgba(135,186,255,0.15),
        0 0 16px rgba(143,215,255,0.10);
}

.custom-select.open .custom-select-trigger {
    transform: translateY(4px) scale(1.01);
    border-color: #67b4ff;
    box-shadow:
        0 2px 0 #d9ecff,
        0 0 0 6px rgba(135,186,255,0.16),
        0 10px 16px rgba(135,186,255,0.16);
}

.custom-select-value {
    text-align: left;
}

.custom-select-arrow {
    position: absolute;
    right: 16px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 1.2rem;
    font-weight: 900;
    color: #67aef4;
    background: linear-gradient(180deg, #ffffff, #edf7ff);
    border: 2px solid #d8ebff;
    box-shadow:
        0 4px 0 #d9ecff,
        0 8px 12px rgba(135,186,255,0.12);
    transition: all 0.25s ease;
    animation: arrowBounce 1.8s ease-in-out infinite;
}

.custom-select.open .custom-select-arrow {
    transform: rotate(180deg) scale(1.08);
    color: #2f8fff;
    animation: none;
}

.custom-select-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 100%;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(241,248,255,0.94));
    border: 2px solid #d8ebff;
    border-radius: 20px;
    box-shadow:
        0 12px 24px rgba(135,186,255,0.16),
        0 0 18px rgba(143,215,255,0.10);
    backdrop-filter: blur(10px);
    overflow: hidden;
    opacity: 0;
    transform: translateY(-12px) scale(0.96);
    pointer-events: none;
    transition: all 0.28s ease;
}

.custom-select.open .custom-select-menu {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.custom-select-option {
    padding: 14px 16px;
    font-weight: 800;
    color: #4d7098;
    cursor: pointer;
    transition: all 0.18s ease;
    border-bottom: 1px solid rgba(216,235,255,0.85);
    background: transparent;
}

.custom-select-option:last-child {
    border-bottom: 0;
}

.custom-select-option:hover {
    background: linear-gradient(135deg, #eef8ff, #e2f2ff);
    color: #2f8fff;
    transform: translateX(6px);
}

.custom-select-option.selected {
    background: linear-gradient(135deg, #69b8ff, #8fd7ff);
    color: #fff;
}

@keyframes arrowBounce {
    0%,100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(2px) scale(1.1); }
}

/* corner decorations */
.card::after {
    content: '🫐';
    position: absolute;
    bottom: -18px;
    right: -14px;
    font-size: 2rem;
    animation: wiggle 2.5s ease-in-out infinite 0.5s;
    z-index: 2;
    pointer-events: none;
}

.card > * {
    position: relative;
    z-index: 3;
}

.card > h2::before {
    content: '🧁';
    position: absolute;
    top: -20px;
    left: 4px;
    font-size: 1.8rem;
    animation: wiggle 2.5s ease-in-out infinite;
}

@keyframes wiggle {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(-8deg) scale(1.05);
    }
    50% {
        transform: rotate(8deg) scale(1.08);
    }
    75% {
        transform: rotate(-5deg) scale(1.03);
    }
}

@media (max-width: 480px) {
    .card {
        padding: 34px 22px;
        border-radius: 26px;
    }

    h2 {
        font-size: 2rem;
    }

    h2::after {
        font-size: 0.68rem;
        letter-spacing: 2px;
    }

    body::after {
        font-size: 1rem;
        letter-spacing: 10px;
    }

    .custom-select-trigger {
        padding-right: 48px;
    }

    .custom-select-arrow {
        right: 14px;
        width: 26px;
        height: 26px;
    }
}