/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

:root {
    --bg-main: #f5f5f5;
    --bg-dark-soft: #4b2e1ef5;
    --bg-selection: rgba(36, 23, 0, 0.674);

    --coffee-dark: #2e1c01;
    --coffee-main: #6f4e37;
    --coffee-light: #c7a17a;
    --coffee-accent: #3e2723;

    --text-dark: #2b2b2b;
    --text-main: #333333;
    --text-muted: #555555;
    --text-light: #e6d3b3;
    --text-cream: #f3e0c7;

    --border-light: #ddd;
    --border-dark:rgba(255, 255, 255, 0.15);

    --shadow-soft: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 12px 30px rgba(0, 0, 0, 0.12);
    --shadow-strong: 0 18px 40px rgba(0, 0, 0, 0.20);

    --scroll-thumb: #4b3b26f5;
    --scroll-thumb-hover: #746148ea;

    --black-color: rgb(0, 0, 0);
    --white-color: #ffffff;
    --overlay-dark: rgba(0, 0, 0, 0.75);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
    scroll-behavior: smooth;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

html.no-scroll,
body.no-scroll {
    overflow: hidden;
}

::selection {
    background: var(--bg-selection);
    color: var(--bg-main);
}

body {
    background-color: var(--bg-main);
}

/* Stylings for whole site */
ul {
    list-style: none;
}

a {
    text-decoration: none;
}

/* LOGO */
#logo {
    color: var(--white-color);
    width: 150px;
    height: 100px;
    letter-spacing: 1px;
    margin-top: 3px;
    margin-left: 50px;
}

/* NAVBAR */
.navbar {
    top: 0;
    height: 70px;
    width: 100%;
    padding: 0 60px;
    background-color: transparent;
    /*2e1c01*/
    display: flex;
    position: fixed;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.navbar.scrolled {
    background-color: var(--coffee-dark);
    /* #4b2e1e */
    backdrop-filter: blur(6px);
    /* 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); */
    box-shadow: 0px 0px 17px -2px var(--overlay-dark);
}

.navLinks {
    display: flex;
    margin-top: 45px;
    gap: 100px;
    margin-top: -3px;
}

.navLinks a {
    color: var(--text-cream);
    text-decoration: none;
    font-size: 16px;
    position: relative;
}

.navbar .search-form {
    position: absolute;
    top: 115%;
    right: 5%;
    background-color: var(--white-color);
    color: var(--black-color);
    width: 30rem;
    height: 2rem;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-soft);
    border: none;
    padding-right: 10px;
    transform: scaleY(0);
}

.navbar .search-form.active {
    transform: scaleY(1);
}

.navbar .search-form i {
    cursor: pointer;
    background: transparent;
    font-size: 1rem;
    border: none;
}

.navbar .search-form input {
    padding-left: 10px;
    width: 100%;
    height: 2rem;
    border: none;
}

.hidden {
    display: none !important;
}

/* NAV BUTTTONS */
.navbar .buttons button {
    cursor: pointer;
    font-size: 15px;
    margin-left: 7px;
    background-color: transparent;
    color: var(--text-cream);
    border-style: none;
}

/* CART */
.cart-items-container {
    position: absolute;
    top: 115%;
    right: 5%;
    width: 300px;
    background: var(--white-color);
    color: #000;
    padding: 15px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: scaleY(0);
    transform-origin: top;
    transition: 0.3s ease;
}

.cart-items-container.active {
    transform: scaleY(1);
}

.cart-items-container h3 {
    margin-bottom: 10px;
    text-align: center;
}

#cart-items li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}

#menu-btn {
    transition: transform 0.35s ease;
}

#menu-btn.active {
    transform: rotate(90deg);
}

.remove-btn {
    cursor: pointer;
    color: var(--black-color);
    font-size: 14px;
}

.cart-total {
    font-weight: bold;
    margin-top: 10px;
    text-align: center;
}

.btn-buy {
    width: 100%;
    margin-top: 10px;
    padding: 8px;
    background: var(--coffee-main);
    color: var(--white-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

/* HOVER ANIMATION */
.navLinks a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--text-cream);
    left: 0;
    bottom: -6px;
    transition: width 0.5s ease;
}

.navLinks a:hover::after {
    width: 100%;
}

.navLinks a:hover {
    color: var(--text-cream);
}

.navLinks a.active::after {
    width: 100%;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.qty-btn {
    background: var(--coffee-main);
    color: var(--white-color);
    border: none;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
}

.qty-btn:hover {
    background: #5a3d2b;
}

.qty {
    min-width: 18px;
    text-align: center;
}

/* HERO */
.hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    background-color: black;
}

.hero .section-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    color: var(--white-color);
}

/* VIDEO */
.bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

/* OVERLAY */
.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.753);
    z-index: 2;
}

/* HERO CONTENT */
.hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    color: var(--white-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 20px;
}

.hero-content h1 {
    margin: 50px;
    font-size: 100px;
    letter-spacing: 3px;
    margin-bottom: 0;
}

.hero-text p {
    max-width: 80%;
    font-size: 20px;
    margin: 64px 100px 15px;
    font-family: "Press Start 2P", system-ui;
}

.hero-title {
    text-align: center;
    max-width: 100%;
}

/* HERO BUTTON */
.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 22px;
    font-size: 14px;
    letter-spacing: 1px;
    font-weight: 500;
    color: var(--white-color);
    background-color: var(--white-color);
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(180deg, #1f1f1f, #3a3a3a);

    border-top: 2px solid #111;
    border-left: 2px solid #111;
    border-right: 2px solid #6a6a6a;
    border-bottom: 2px solid #6a6a6a;

    box-shadow:
        inset 2px 2px 4px rgba(0, 0, 0, 0.7),
        inset -1px -1px 2px rgba(255, 255, 255, 0.08);
}

.hero-btn:active {
    background: linear-gradient(180deg, #3a3a3a, #1f1f1f);

    border-top: 2px solid #6a6a6a;
    border-left: 2px solid #6a6a6a;
    border-right: 2px solid #111;
    border-bottom: 2px solid #111;

    box-shadow:
        inset 2px 2px 4px rgba(0, 0, 0, 0.7),
        inset -1px -1px 2px rgba(255, 255, 255, 0.08);
}

#menu-btn {
    display: none;
}

.hero-btn i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.hero-btn:hover {
    background-color: #565555ac;
    color: var(--white-color);
    transform: translateY(-2px);
}

/* MENU */
.box-container {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.old-price {
    position: relative;
    color: #000000;
    opacity: 0.8;
    font-size: 13.5px;
}

.old-price::after {
    content: "";
    position: absolute;
    left: -2px;
    right: -2px;
    top: 50%;
    height: 2px;
    opacity: 0.8;
    background-color: var(--coffee-accent);
    transform: rotate(-10deg);
}

.card {
    background: #fff;
    width: 210px;
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.089);
}

.card .box-img {
    width: 100%;
    height: 150px;
    border-radius: 10px;
}

hr {
    margin-bottom: 30px;
}

.card button {
    background-color: var(--coffee-main);
    color: var(--white-color);
    border: none;
    padding: 7px 12px;
    border-radius: 8px;
    cursor: pointer;
    width: 150px;
    margin-top: 5px;
}

.card button:hover {
    background-color: #5a3d2b;
}

.menu-section {
    padding: 80px 60px;
    background-color: var(--bg-main);
}

#menu {
    padding: 100px 60px;
    background-color: var(--bg-main);
    text-align: center;
}

#menu h3 {
    font-size: 26px;
    margin-bottom: 20px;
    color: var(--coffee-dark);
}

#menu h2 {
    font-size: 46px;
    color: var(--coffee-dark);
}

#menu h2 span {
    color: var(--coffee-main);
}

/* ABOUT SECTION */
#about {
    padding: 100px 80px;
    background-color: var(--white-color);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 60px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 42px;
    color: var(--coffee-dark);
    margin-bottom: 20px;
}

.about-text h2 span {
    color: var(--coffee-main);
}

.about-text p {
    font-size: 17px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 16px;
}

.image-wrapper {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    height: 450px;
    box-shadow: var(--shadow-strong);
}

.image-wrapper img {
    width: 100%;
    display: block;
}

.glass-layer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 40%;

    background: linear-gradient(to top,
            rgba(60, 34, 0, 0.847),
            rgba(255, 255, 255, 0));

    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(100%);
    transition: transform 0.45s ease;
}

.glass-logo {
    width: 120px;
    opacity: 0.95;
    transform: translateY(-6px);
    transition: transform 0.7s cubic-bezier(.4, 0, .2, 1);
}

.image-wrapper:hover .glass-layer {
    transform: translateY(0);
}

.image-wrapper:hover .glass-logo {
    opacity: 1;
    transform: scale(1);
}

/* CONTACT SECTION */
#contact {
    padding: 120px 80px;
    background-color: var(--bg-main);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 80px;
    align-items: center;
}

/* Left Side */
.contact-info {
    flex: 1;
}

.contact-info h2 {
    font-size: 42px;
    color: var(--coffee-dark);
    margin-bottom: 20px;
}

.contact-info h2 span {
    color: var(--coffee-main);
}

.contact-info p {
    font-size: 17px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 30px;
}

.contact-info ul li {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    font-size: 16px;
    color: #333;
}

.contact-info ul li i {
    color: var(--coffee-main);
    font-size: 18px;
}

/* Right Side */
.contact-form {
    flex: 1;
}

.contact-form form {
    background: var(--white-color);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 16px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    font-size: 15px;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--coffee-main);
}

.contact-form button {
    background-color: var(--coffee-main);
    color: var(--white-color);
    border: none;
    padding: 14px;
    width: 100%;
    border-radius: 14px;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact-form button:hover {
    background-color: #5a3d2b;
    transform: translateY(-2px);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .contact-container {
        flex-direction: column;
        text-align: center;
    }

    .contact-info ul li {
        justify-content: center;
    }
}

/* FOOTER */
#footer {
    background-color: var(--coffee-dark);
    color: var(--text-cream);
    padding-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 80px 40px;
    display: flex;
    gap: 80px;
    justify-content: space-between;
}

/* About */
.footer-about {
    flex: 1;
}

.footer-about img {
    width: 120px;
    margin-bottom: 16px;
}

.footer-about p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-light);
}

/* Links */
.footer-links {
    flex: 1;
}

.footer-links h4,
.footer-social h4 {
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--white-color);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--text-cream);
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--white-color);
}

/* Social */
.footer-social {
    flex: 1;
}

.social-icons {
    display: flex;
    gap: 18px;
}

.social-icons a {
    font-size: 20px;
    color: var(--text-cream);
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
    color: var(--white-color);
    transform: translateY(-3px);
}

/* Bottom */
.footer-bottom {
    border-top: 1px solid var(--border-dark);
    text-align: center;
    padding: 16px 0;
    font-size: 13px;
    color: var(--text-light);
}

/* BackToTop */
#backToTop {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: #6b4f3f;
    color: #fff;
    font-size: 24px;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateY(10px);
    z-index: 1000;
}

#backToTop.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

#backToTop:hover {
    animation: bounce 2s ease infinite;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .about-container {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .about-text h2 {
        font-size: 36px;
    }

    .about-text p {
        font-size: 16px;
    }

    .image-wrapper {
        width: 100%;
        max-width: 600px;
        height: auto;
        margin: 0 auto;
    }

    .image-wrapper img {
        height: auto;
        object-fit: cover;
    }
}

@media (max-width: 900px) {
    html {
        font-size: 55%;
    }

    .navbar {
        padding: 1.5rem 2rem;
    }

    .navbar #logo {
        height: 7rem;
    }

    section {
        padding: 2 rem;
    }

    .card {
        width: 300px;
    }

    .card p {
        font-size: 22px;
    }

    .navbar #logo {
        height: 100px;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        padding: 0 40px 40px;
    }

    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    #menu-btn {
        display: inline-block;
        font-size: 18px;
    }

    .navbar #logo {
        height: 100px;
    }

    .hero-text h1 {
        font-size: 75px;
    }

    .hero-text p {
        margin-top: 80px;
        font-size: 16px;
    }

    .hero-text hr {
        margin-left: 50px;
        margin-right: 50px;
    }

    .navLinks {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--bg-dark-soft);
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
        right: -100%;
        gap: 1.5rem;
        transform: translateY(-220%);
        transition: transform 0.35s ease;
    }

    .navLinks.active {
        transform: translateY(0);
    }

    .navLinks a {
        color: var(--text-cream);
        font-size: 2rem;
    }

    .navbar .search-form {
        width: 90%;
        right: 5%;
    }

    #about {
        padding: 80px 30px;
    }

    .about-text h2 {
        font-size: 30px;
    }

    .about-text p {
        font-size: 15px;
        line-height: 1.7;
    }

    .image-wrapper {
        height: 320px;
        border-radius: 16px;
    }

    .glass-logo {
        padding: 40px;
        width: 80px;
    }

    .contact-form {
        width: 300px;
    }

    .slide-up {
        transform: translateY(30px);
    }

    .slide-left {
        transform: translateX(-30px);
    }

    .slide-right {
        transform: translateX(30px);
    }
}

@media (max-width: 480px) {
    .about-text h2 {
        font-size: 26px;
    }

    .about-text p {
        font-size: 14px;
    }

    .image-wrapper {
        height: 260px;
    }

    .slide-up {
        transform: translateY(30px);
    }

}

/* Scroll */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--coffee-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--scroll-thumb);
    border-radius: 10px;
    height: 200px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--scroll-thumb-hover);
}

body.no-scroll {
    overflow: hidden;
    height: 100vh;
}

/* Animation */
.hero-text {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 3s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.8s ease;
}

.scroll-animate.active {
    opacity: 1;
    transform: translateY(0);
}

.rotate-90-cw {
    transition: transform 0.4s ease-out;
}

.rotate-90-cw:hover {
    transform: rotate(90deg);
    transition: transform 0.4s ease-in;
}

.slide-left,
.slide-right {
    opacity: 0;
    transition: all 0.8s ease;
}

.slide-left {
    transform: translateX(-60px);
}

.slide-right {
    transform: translateX(60px);
}

.slide-left.show,
.slide-right.show {
    opacity: 1;
    transform: translateX(0);
}

.slide-up {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.9s ease;
}

.slide-up.show {
    opacity: 1;
    transform: translateY(0);
}