/* PAGE BASE */
.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(135deg, #19b5e6 0%, #35c4f0 45%, #0ea5d8 100%);
    background-size: 200% 200%;
    animation: pageShift 10s ease infinite;
    position: relative;
    overflow: hidden;
}

.page::before,
.page::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
    pointer-events: none;
}

.page::before {
    width: 280px;
    height: 280px;
    background: #ffffff;
    top: 8%;
    left: -80px;
}

.page::after {
    width: 360px;
    height: 360px;
    background: #f6c600;
    bottom: -120px;
    right: -100px;
}

@keyframes pageShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* HEADER */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 3rem;
    position: relative;
    z-index: 2;
}

.logo img {
    width: 300px;
    height: 86px;
    transition: transform 0.35s ease;
}

.logo:hover img {
    transform: scale(1.03);
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 22px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.35) 50%, transparent 80%);
    transform: translateX(-120%);
    transition: transform 0.6s ease;
}

.btn:hover::before {
    transform: translateX(120%);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.btn:active {
    transform: translateY(0);
}

.btn:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.9);
    outline-offset: 3px;
}

.btn-dark {
    background: #000;
    color: #fff;
}

.btn-dark:hover {
    background: #111;
}

.btn-yellow {
    background: #f6c600;
    color: #000;
}

.btn-yellow:hover {
    background: #ffd633;
}

.top-actions {
    display: flex;
    gap: 14px;
}

/* HERO */
.hero {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #000;
    line-height: 1.05;
    animation: fadeUp 0.7s ease both;
}

.hero p {
    font-size: 36px;
    margin-bottom: 40px;
    margin-top: 0;
    color: rgba(0, 0, 0, 0.85);
    animation: fadeUp 0.9s ease both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* SEARCH */
.search-wrap {
    max-width: 760px;
    margin: 0 auto 50px;
    position: relative;
    z-index: 2;
    animation: fadeUp 1.1s ease both;
}

.search-bar {
    display: flex;
    align-items: center;
    background: rgba(236, 236, 236, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 999px;
    overflow: hidden;
    height: 64px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.search-bar:focus-within {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 22px 38px rgba(0, 0, 0, 0.16);
    background: rgba(255, 255, 255, 0.92);
}

.search-left {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 18px;
    flex: 1;
}

.search-left img {
    width: 30px;
    transition: transform 0.25s ease;
}

.search-bar:focus-within .search-left img {
    transform: scale(1.08) rotate(-8deg);
}

.search-left input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 18px;
    outline: none;
    color: #000;
}

.search-left input::placeholder {
    color: rgba(0, 0, 0, 0.5);
    transition: opacity 0.2s ease;
}

.search-left input:focus::placeholder {
    opacity: 0.55;
}

.search-btn {
    width: 80px;
    height: 64px;
    background: #f6c600;
    border: none;
    font-size: 54px;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease;
}

.search-btn:hover {
    background: #ffd633;
}

.search-btn:active {
    transform: scale(0.96);
}

.search-btn:focus-visible {
    outline: 3px solid #000;
    outline-offset: -3px;
}

/* CATEGORIES */
.category-row {
    display: flex;
    justify-content: center;
    gap: 26px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
    animation: fadeUp 1.3s ease both;
}

.category {
    text-align: center;
    width: 120px;
    text-decoration: none;
    color: black;
    padding: 18px 12px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.category:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 18px 28px rgba(0, 0, 0, 0.12);
}

.category:focus-visible {
    outline: 3px solid #000;
    outline-offset: 4px;
}

.category img {
    width: 50px;
    margin-bottom: 8px;
    transition: transform 0.25s ease;
}

.category:hover img {
    transform: scale(1.1) rotate(-4deg);
}

.category span {
    font-weight: 700;
    font-size: 18px;
    display: inline-block;
    transition: transform 0.25s ease;
}

.category:hover span {
    transform: translateY(2px);
}

/* FOOTER */
.footer {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    margin-top: 40px;
    padding: 3rem;
    position: relative;
    z-index: 2;
    color: rgba(0, 0, 0, 0.8);
}

/* REDUCE MOTION */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .page {
        padding: 24px;
    }

    .topbar {
        padding: 1rem 0 2rem;
        flex-direction: column;
        gap: 20px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero p {
        font-size: 22px;
    }

    .category-row {
        gap: 18px;
    }

    .footer {
        flex-direction: column;
        gap: 10px;
        padding: 2rem 0 0;
    }
}

@media (max-width: 600px) {
    .logo img {
        width: 220px;
        height: auto;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 18px;
    }

    .search-bar {
        height: 56px;
    }

    .search-btn {
        height: 56px;
        width: 72px;
        font-size: 42px;
    }

    .category {
        width: 100px;
        padding: 14px 10px;
    }
}