@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;700;900&display=swap');

/* ==================== CSS Custom Properties ==================== */
:root {
    --primary-color: #ff3000;
    --secondary-color: #eeeeee;
    --tertiary-color: #dddddd;
    --overlay-dark: rgba(0, 0, 0, 0.7);
    --radius-md: 16px;
    --header-height: 100px;
    --content-width: 80%;
}

/* ==================== Reset & Base Typography ==================== */
* {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: black;
    overflow-x: hidden;
}

h1 {
    color: white;
    font-size: 60px;
}

h2 {
    color: var(--primary-color);
    font-size: 48px;
}

h3 {
    color: white;
    font-size: 28px;
}

h4 {
    color: var(--primary-color);
    font-size: 24px;
}

h5 {
    font-size: 16px;
}

p {
    font-size: 20px;
}

a {
    text-decoration: none;
    color: currentColor;
}

.background {
    width: 100%;
    margin-top: -100px;
    z-index: -1;
    position: fixed;
}

/* ==================== Shared Animations ==================== */
@keyframes ring-ring {
    0% {
        rotate: 0deg;
    }
    25% {
        rotate: -10deg;
    }
    50% {
        rotate: 0deg;
    }
    75% {
        rotate: 10deg;
    }
    100% {
        rotate: 0deg;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(45deg);
    }
    40% {
        transform: translateY(-10px) rotate(45deg);
    }
    60% {
        transform: translateY(-5px) rotate(45deg);
    }
}

@keyframes fade-in-slide-up {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }
    100% {
        transform: translateY(0px);
        opacity: 1;
    }
}

@keyframes card-left {
    0% {
        transform: translate(70%, 50px) rotate(0deg);
    }
    100% {
        transform: translate(20%, 50px) rotate(-5deg);
    }
}

@keyframes card-right {
    0% {
        transform: translate(80%, 50px) rotate(0deg);
    }
    100% {
        transform: translate(100%, 50px) rotate(7deg);
    }
}

/* ==================== Header / Navigation ==================== */
.dark-header-for-blending {
    background-color: var(--overlay-dark);
    width: 100%;
    height: var(--header-height);
    position: absolute;
    top: 0;
}

/* Desktop nav bar */
.nav-bar {
    width: 100%;
    height: var(--header-height);
    position: fixed;
    z-index: 5;
    top: 0;
    background-color: var(--overlay-dark);
    display: flex;
    align-items: center;
}

.nav-bar:hover {
    background-color: rgba(0, 0, 0, 0.9);
    height: 110px;
    transition: 1s;
}

.nav-bar img {
    left: 0;
    margin-left: 20px;
    height: 80px;
    width: 100%;
}

.nav-bar img:hover {
    scale: 1.1;
    transition: 0.5s;
}

.nav-bar nav {
    position: absolute;
    width: 100%;
    text-align: center;
}

.nav-links {
    font-size: 32px;
    padding: 20px;
    text-decoration: none;
    color: white;
    border-right: 1px solid #ccc;
}

.nav-links:last-child {
    border-right: none;
}

.active {
    text-decoration: underline;
}

.nav-bar h3 {
    position: absolute;
    right: 0;
    margin-right: 20px;
}

.nav-bar h3 span {
    margin-right: 10px;
    scale: 1.3;
    animation: ring-ring 2s infinite;
}

/* Mobile-only elements — hidden by default */
.mobile-logo {
    display: none;
}

.mobile-number {
    display: none;
}

#mobile-nav-bar {
    display: none;
}

#nav-toggle {
    display: none;
}

/* ==================== Scroll Indicator ==================== */
#scroll-indicator {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    transition: bottom 0.5s ease-in-out;
    z-index: 4;
    color: white;
}

#scroll-indicator.show {
    bottom: 20px;
}

#scroll-indicator.hide {
    bottom: -100px;
}

.arrow {
    width: 20px;
    height: 20px;
    border: solid white;
    border-width: 0 4px 4px 0;
    display: inline-block;
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

/* ==================== Section 1: Welcome to Cafe Zoo ==================== */
.section1 {
    margin-top: 100px;
    height: 700px;
    width: 100%;
}

.split-left {
    width: 60%;
    height: 100%;
    background-color: var(--overlay-dark);
    display: grid;
    place-content: center;
    text-align: center;
}

.divider {
    background-color: white;
    width: 30px;
    height: 10px;
    place-self: center;
    margin: 20px;
    animation: fade-in-slide-up 1.5s;
}

.split-left h1 {
    place-self: center;
    width: 800px;
    animation: fade-in-slide-up 1s;
}

.split-left h3 {
    place-self: center;
    width: 400px;
    animation: fade-in-slide-up 2s;
}

/* ==================== Section 2: About Us ==================== */
.section2 {
    width: 100%;
    height: 500px;
    background-color: var(--overlay-dark);
    display: grid;
    place-items: center;
}

.white-space {
    width: var(--content-width);
    max-height: 100%;
    min-height: 100%;
    background-color: var(--secondary-color);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    display: flex;
    clip-path: fill-box;
}

.section2 .text-space {
    text-align: center;
    margin-left: 20px;
    margin-right: 20px;
    width: 50%;
}

.section2 h2 {
    margin-top: 30px;
}

.section2 p {
    margin-top: 20px;
}

.section2 .image-space {
    top: 0;
    width: 60%;
    height: 100%;
    position: relative;
}

.section2 .image1 {
    position: absolute;
    width: 300px;
    border-radius: 8px;
    border: 4px solid var(--primary-color);
    transform: translate(70%, 50px) rotate(0deg);
    animation: card-left 1.5s 2.5s forwards;
    scale: 1.05;
}

.section2 .image1:hover {
    scale: 1.1;
    transition: 0.5s;
    z-index: 2;
}

.section2 .image2 {
    position: absolute;
    width: 300px;
    border-radius: 8px;
    border: 4px solid var(--primary-color);
    transform: translate(80%, 50px) rotate(0deg);
    animation: card-right 1s 3s forwards;
    scale: 1.05;
}

.section2 .image2:hover {
    scale: 1.1;
    transition: 0.5s;
    z-index: 2;
}

/* ==================== Section 3: Top Dishes ==================== */
.section3 {
    width: 100%;
    height: 700px;
    background-color: var(--overlay-dark);
    display: grid;
    place-items: center;
}

.grey-space {
    width: var(--content-width);
    height: 100%;
    background-color: var(--tertiary-color);
    overflow: hidden;
}

.shadow-top {
    height: 500px;
    width: var(--content-width);
    position: absolute;
    background: linear-gradient(to bottom, #8b8b8b 0%, transparent 10%);
}

.shadow-bottom {
    height: 700px;
    width: var(--content-width);
    position: absolute;
    background: linear-gradient(to top, #8b8b8b 0%, transparent 10%);
}

.section3 .text-space {
    width: 100%;
    height: 80px;
    margin-top: 20px;
    display: grid;
    place-items: center;
}

.section3 h4 {
    position: absolute;
    justify-self: right;
    margin-right: 20px;
    text-decoration: underline 4px;
}

.section3 h4:hover {
    cursor: pointer;
    color: #ff6000;
    transition: 0.2s;
}

.section3 .dish-list {
    width: 100%;
    height: 550px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    animation: scroll-dishes 20s linear infinite;
}

.section3 .dish-list:hover {
    animation-play-state: paused;
}

.section3 .dish-list .dish {
    z-index: 2;
    display: flex;
    justify-content: center;
    height: 450px;
    width: 300px;
    flex-shrink: 0;
    background-color: white;
    margin: 20px;
    border-radius: var(--radius-md);
    box-shadow: 0px 0px 32px #808080;
    transition: transform 0.3s, scale 0.3s, box-shadow 0.3s;
}

.section3 .dish-list .dish:hover {
    scale: 1.08;
    transform: translateY(-10px);
    box-shadow: 0px 0px 32px var(--primary-color);
}

.dish .image-area {
    display: flex;
    justify-content: center;
    width: 90%;
    height: 50%;
}

.dish .image-area img {
    width: 100%;
    height: 100%;
    margin-top: 10px;
    border-radius: var(--radius-md);
    border: 4px solid var(--primary-color);
}

.dish .text-area {
    position: absolute;
    transform: translateY(280px);
}

.dish .text-area p {
    text-align: center;
    width: 250px;
    font-size: 16px;
}

.dish .text-area b {
    font-size: 20px;
}

.dish .text-area .button-area {
    display: none;
    place-items: center;
    margin-top: 10px;
}

.dish .text-area .view-dish {
    display: none;
    background-color: var(--primary-color);
    border: none;
    padding: 10px;
    border-radius: 8px;
    justify-self: center;
    align-self: center;
    transition: 0.3s;
}

.dish .text-area .view-dish:hover {
    background-color: #ff6000;
    box-shadow: 0 0 8px #ff6000;
    scale: 1.025;
}

@keyframes scroll-dishes {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ==================== Section 4: Feeling Hungry? ==================== */
.section4 {
    width: 100%;
    height: 500px;
    display: grid;
    place-items: center;
    clip-path: fill-box;
    background-color: var(--overlay-dark);
}

.section4 img {
    position: absolute;
    transform: translateY(-50px);
    width: var(--content-width);
    height: 150%;
}

.section4 .img-dimmer {
    position: absolute;
    height: 100%;
    width: var(--content-width);
    background-color: rgba(0, 0, 0, 0.6);
}

.section4 .text-area {
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    height: 250px;
    width: 100%;
    z-index: 2;
}

.section4 .text-area .divider {
    animation: none;
}

.section4 .uber-eats-container {
    width: 100%;
    font-size: 20px;
    z-index: 2;
}

.section4 a {
    display: flex;
    justify-content: center;
    align-items: center;
}

.section4 a img {
    width: 150px;
    height: 150px;
}

/* ==================== Section Empty (End Column) ==================== */
.section-empty {
    position: absolute;
    width: 100%;
    height: 200px;
    background-color: var(--overlay-dark);
    display: flex;
    justify-content: center;
}

.section-empty .end-column {
    width: var(--content-width);
    height: 50px;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    background-color: var(--secondary-color);
}

/* ==================== Footer ==================== */
.footer-container {
    position: relative;
    margin-top: 160px;
    width: 100%;
    height: 250px;
    background-color: var(--secondary-color);
    border-top: 8px solid var(--primary-color);
    bottom: 0;
}

.footer-container .text-area {
    margin-top: 20px;
    text-align: center;
}

.footer-container .text-area h3 {
    margin-bottom: 10px;
    color: black;
}

.footer-container .text-area h5 {
    margin-bottom: 5px;
}

.footer-container .socials-area {
    display: flex;
    position: absolute;
    width: 100%;
    justify-content: center;
}

.footer-container .socials-area a {
    padding: 10px;
}

/* ==================== Mobile: max-width 768px ==================== */
@media (max-width: 768px) {
    /* Typography */
    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 32px;
    }

    h3 {
        font-size: 20px;
    }

    h4 {
        font-size: 18px;
    }

    p {
        font-size: 16px;
    }

    /* Background */
    .background {
        width: auto;
        height: 100vh;
        object-fit: cover;
    }

    /* Hide desktop nav, show mobile nav elements */
    .nav-bar {
        display: none;
    }

    .mobile-logo {
        display: block;
        position: fixed;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 6;
    }

    .mobile-logo img {
        height: 60px;
        width: auto;
    }

    .mobile-number {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        margin-right: 15px;
        margin-top: 25px;
        z-index: 6;
        font-size: 16px;
    }

    .mobile-number span {
        margin-right: 5px;
        scale: 1;
        animation: ring-ring 2s infinite;
    }

    #nav-toggle {
        display: block;
        position: fixed;
        top: 10px;
        left: 10px;
        z-index: 1000;
        background-color: transparent;
        color: white;
        border: none;
        font-size: 36px;
        cursor: pointer;
    }

    /* Mobile sliding nav panel */
    #mobile-nav-bar {
        display: block;
        position: fixed;
        top: 0;
        left: -200px;
        width: 150px;
        height: 100%;
        background-color: var(--overlay-dark);
        transition: left 0.3s ease-in-out;
        z-index: 999;
    }

    #mobile-nav-bar.open {
        left: 0;
    }

    #mobile-nav-bar .spacer {
        height: 60px;
    }

    #mobile-nav-bar ul {
        list-style-type: none;
        padding: 20px;
        margin: 0;
    }

    #mobile-nav-bar li {
        margin-bottom: 20px;
    }

    #mobile-nav-bar a {
        color: white;
        text-decoration: none;
        font-size: 20px;
        font-weight: 700;
        letter-spacing: 1px;
    }

    #mobile-nav-bar a.active {
        text-decoration: underline;
    }

    .dark-header-for-blending {
        position: fixed;
        z-index: 5;
    }

    /* Scroll indicator — mobile overrides */
    #scroll-indicator {
        bottom: -80px;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.9);
        padding: 10px 0;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    }

    #scroll-indicator.show {
        bottom: 0;
    }

    #scroll-indicator.hide {
        bottom: -80px;
    }

    #scroll-indicator p {
        margin: 5px 0 0;
        font-size: 14px;
    }

    .arrow {
        border-width: 0 3px 3px 0;
    }

    /* Section 1 */
    .section1 {
        margin-top: 100px;
        height: auto;
        min-height: 400px;
    }

    .split-left {
        width: 100%;
        padding: 2rem 1rem;
        box-sizing: border-box;
    }

    .split-left h1 {
        width: 100%;
    }

    .split-left h3 {
        width: 100%;
    }

    /* Section 2 */
    .section2 {
        height: auto;
    }

    .white-space {
        flex-direction: column;
        width: 100%;
        border-radius: 0;
    }

    .section2 .text-space {
        width: auto;
        padding: 1.5rem;
        margin: 0;
    }

    .section2 .image-space {
        position: static;
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 1rem;
        padding: 1.5rem;
        box-sizing: border-box;
    }

    .section2 .image1,
    .section2 .image2 {
        position: static;
        width: 40%;
        max-width: 200px;
        transform: none;
        animation: none;
        scale: 1;
    }

    /* Section 3 */
    .section3 {
        height: auto;
    }

    .grey-space {
        width: 100%;
    }

    .shadow-top,
    .shadow-bottom {
        display: none;
    }

    .section3 .text-space {
        height: auto;
        padding: 1rem;
    }

    .section3 h4 {
        position: static;
        margin-right: 0;
        margin-top: 8px;
    }

    .section3 .dish-list {
        height: auto;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        animation: none;
        padding: 1rem;
        gap: 1rem;
    }

    .section3 .dish-list .dish[aria-hidden="true"] {
        display: none;
    }

    .section3 .dish-list .dish {
        width: 250px;
        min-width: 250px;
        height: auto;
        flex-direction: column;
        margin: 0;
    }

    .dish .image-area {
        width: 100%;
        height: auto;
    }

    .dish .text-area {
        position: static;
        transform: none;
        padding: 1rem;
    }

    .dish .text-area p {
        width: 100%;
    }

    /* Section 4 */
    .section4 {
        height: auto;
        padding: 0;
        position: relative;
    }

    .section4 img {
        position: absolute;
        object-fit: cover;
        width: 100%;
        height: 100%;
        transform: none;
    }

    .section4 .img-dimmer {
        position: absolute;
        width: 100%;
        height: 100%;
    }

    .section4 .text-area {
        height: auto;
        padding: 3rem 1rem;
    }

    .section4 a img {
        position: static;
        width: 100px;
        height: 100px;
    }

    .section4 .uber-eats-container {
        padding-bottom: 2rem;
    }

    /* Section Empty */
    .section-empty {
        display: none;
    }

    /* Footer */
    .footer-container {
        margin-top: 0;
        height: auto;
        padding: 1.5rem 1rem;
    }

    .footer-container .socials-area {
        position: static;
        margin-top: 1rem;
    }
}

/* ==================== Extra-Small Screens: max-width 480px ==================== */
@media (max-width: 480px) {
    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 26px;
    }

    h3 {
        font-size: 18px;
    }

    .mobile-number {
        font-size: 14px;
    }

    .mobile-logo img {
        height: 50px;
    }

    .arrow {
        width: 15px;
        height: 15px;
    }

    #scroll-indicator p {
        font-size: 12px;
    }

    .split-left {
        padding: 1.5rem 0.75rem;
    }

    .section3 .dish-list .dish {
        width: min(95%, 20rem);
    }
}
