@import url('https://fonts.cdnfonts.com/css/ica-rubrik-black');
@import url('https://fonts.cdnfonts.com/css/poppins');


:root {
    --primary-color: #ED213A;
    --border-color: #f0dddd;
    --black-color: #2b2d42;
    --white-color: #f6f3f3e3;
    --primary-font: 'Poppins', sans-serif;
    --secondary-font: 'Bebas Neue', sans-serif;
}

nav {
    background-color: #333;
    padding: 10px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

nav ul {
    list-style: none;
    text-align: center;
    padding: 0;
    margin: 0;
}

nav ul li {
    display: inline;
    margin: 0 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
}

nav ul li a:hover {
    color: #eb0000;

}


.hamburger-menu {
    display: none;
    cursor: pointer;
    color: white;
    font-family: Poppins, sans-serif;
    font-size: 1.1em;
}

.hamburger {
    width: 30px;
    height: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.hamburger span {
    background-color: white;
    height: 4px;
    width: 100%;
}


.banner {
    width: 100%;
    height: 100vh;
    text-align: center;
    overflow: hidden;
    position: relative;
    margin-top: 60px;
}

body {
    cursor: none;
}

.custom-cursor {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: black;
    pointer-events: none;
    transition: transform 0.1s ease;
    transition: background-color 0.2s ease;
    z-index: 9999;
}

button:hover~.custom-cursor,
a:hover~.custom-cursor {
    width: 40px;
    height: 40px;
}

.invert-color {
    background-color: white !important;
    color: black !important;
}

.banner .slider {
    position: absolute;
    width: 200px;
    height: 250px;
    top: 10%;
    left: calc(50% - 100px);
    transform-style: preserve-3d;
    transform: perspective(1000px);
    animation: autoRun 20s linear infinite;
    z-index: 2;
}

@keyframes autoRun {
    from {
        transform: perspective(1000px) rotateX(-16deg) rotateY(0deg);
    }

    to {
        transform: perspective(1000px) rotateX(-16deg) rotateY(360deg);
    }
}

.banner .slider .item {
    position: absolute;
    inset: 0 0 0 0;
    transform: rotateY(calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg)) translateZ(550px);
}

.banner .slider .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner .content {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(1400px, 100vw);
    height: max-content;
    padding-bottom: 1px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    z-index: 1;
}

.banner .content h1 {
    font-family: 'ICA Rubrik';
    font-size: 8em;
    line-height: 1em;
    color: #ff0037;

    position: relative;
}

.banner .content h1::after {
    position: absolute;
    inset: 0 0 0 0;
    content: attr(data-content);
    z-index: 2;
    -webkit-text-stroke: 2px #d2d2d2;
    color: transparent;
}

.banner .content .author {
    font-family: Poppins;
    text-align: right;
    max-width: 200px;
}

.banner .content h2 {
    font-size: 3em;
}

.banner .content .model {
    background-image: url(images/model.png);
    width: 100%;
    height: 75vh;
    position: absolute;
    bottom: 0;
    left: 0;
    background-size: auto 130%;
    background-repeat: no-repeat;
    background-position: top center;
    z-index: 1;
}

@media screen and (max-width: 1023px) {
    .banner .slider {
        width: 160px;
        height: 200px;
        left: calc(50% - 80px);
    }

    .banner .slider .item {
        transform: rotateY(calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg)) translateZ(300px);
    }

    .banner .content h1 {
        text-align: center;
        width: 100%;
        font-size: 3em;
    }

    .banner .content .author {
        color: #fff;
        padding: 20px;
        z-index: 2;
        max-width: unset;
        width: 100%;
        text-align: center;
        padding: 0 30px;
    }
}

@media screen and (max-width: 767px) {
    .banner .slider {
        width: 100px;
        height: 150px;
        left: calc(50% - 50px);
    }

    .banner .slider .item {
        transform: rotateY(calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg)) translateZ(180px);
    }

    .banner .content h1 {
        font-size: 5em;
    }
}

@media (max-width: 768px) {
    nav ul {
            display: flex;
            flex-direction: row;
            justify-content: center;
            align-items: center;
            gap: 30px;
            background-color: #3333338e;
            width: 100%;
            padding: 10px 0;
        }

    nav ul.show {
        display: flex;
    }

                nav ul li {
                    display: inline-block;
                    margin: 0;
                }

    .hamburger-menu {
        display: none;
    }
}

#about-coffeetablebook {
    padding: 60px 20px;
    background-color: #f8f8f8;
    text-align: center;
}

#about-coffeetablebook .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#about-coffeetablebook h2 {
    font-family: 'ICA Rubrik', sans-serif;
    font-size: 3em;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

#about-coffeetablebook p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2em;
    line-height: 1.6;
    color: #666;
    max-width: 900px;
    margin: 0 auto 30px;
}

.button-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.top-row,
.middle-row {
    display: flex;
    justify-content: space-between;
}

.glass-button {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid #fff;
    background-color: rgba(255, 0, 0, 0.664);
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.glass-button:hover {
    background-color: rgb(94, 0, 0);
    transform: scale(1.05);
}

.wide-button {
    width: 100%;
    padding: 15px 20px;
    font-size: 18px;
    text-align: center;
}

@media screen and (max-width: 1023px) {
    #about-coffeetablebook h2 {
        font-size: 2.5em;
    }

    #about-coffeetablebook p {
        font-size: 1.1em;
        max-width: 90%;
    }
}

@media screen and (max-width: 767px) {
    #about-coffeetablebook h2 {
        font-size: 2em;
    }

    #about-coffeetablebook p {
        font-size: 1em;
    }

    .button-container {
        flex-direction: column;
        gap: 15px;
    }
}

/* ASK DUNCS SECTION */
.ask-duncs {
    background: #fff9c4;
    padding: 3rem 1rem;
    color: #000;
    border-top: 4px solid red;
}

.ask-duncs-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.ask-duncs-img {
    max-width: 180px;
    width: 60%;
    padding-bottom: 1rem;
}

.ask-duncs-form-wrapper {
    background: #fefde3;
    padding: 2rem;
    border: 2px solid #222;
    border-radius: 12px;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 420px;
}

.ask-title {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 0.3rem;
    animation: bounceRetro 1.8s ease-in-out infinite;
}

.ask-sub {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.red {
    color: red;
}

.red-bold {
    color: red;
    font-weight: 900;
}

.ask-duncs-form-wrapper form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ask-duncs-form-wrapper label {
    font-weight: bold;
    font-size: 1rem;
}

.ask-duncs-form-wrapper input,
.ask-duncs-form-wrapper textarea {
    padding: 0.8rem;
    border: 2px solid #222;
    font-size: 1rem;
    font-family: 'Rubik Mono One', monospace;
    background: white;
    color: black;
}

.ask-btn {
    align-self: flex-end;
    background: red;
    color: white;
    font-size: 1rem;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 100px;
    font-family: 'Rubik Mono One', monospace;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 0.5rem;
}

.ask-btn:hover {
    background: black;
}

@keyframes bounceRetro {

    0%,
    100% {
        transform: translateY(0);
    }

    20% {
        transform: translateY(-12px);
    }

    40% {
        transform: translateY(0);
    }

    60% {
        transform: translateY(-8px);
    }

    80% {
        transform: translateY(0);
    }
}