@font-face {
    font-family: 'alvarocondensed';
    src: url('fonts/alvarocondensed.woff2') format('woff2'),
         url('fonts/alvarocondensed.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}
@font-face {
    font-family: 'haboro_exbold';
    src: url('fonts/haboro-exbold.woff2') format('woff2'),
         url('fonts/haboro-exbold.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}
.alvaro {
    font-family: 'alvarocondensed', "Helvetica Neue Condensed Bold", "Arial Narrow", sans-serif !important;
    font-weight: normal !important;
}
.haboro {
    font-family: 'haboro_exbold', serif !important;
    font-weight: normal !important;
}

:root {
    --black: #0a0c09;
    --white: #fff6e1;
    --green: #96af90;
    --orange: #b75700;
}
.black {
    color: var(--black);
}
.white {
    color: var(--white);
}
.green {
    color: var(--green);
}
.orange {
    color: var(--orange);
}
.bg-black {
    background-color: var(--black);
}
.bg-white {
    background-color: var(--white);
}
.bg-green {
    background-color: var(--green);
}
.bg-orange {
    background-color: var(--orange);
}


/* Basic Reset & Body Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-optical-sizing: auto;
    font-style: normal;
    text-decoration: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    /*no select*/
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #0a0c09;
    color: #fff;
}

/* Hero Banner Styles */
.hero-banner {
    height: 100dvh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 33.33%;
    background: linear-gradient(to top, var(--black), rgba(10, 12, 9, 0));
    z-index: -1;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
    object-fit: cover;
}

.hero-poster-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: -2;
    object-fit: cover;
}

.hero-content {
    padding: 20px;
    border-radius: 10px;
    position: relative;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

.hero-content h1 {
    font-size: 15rem;
    font-weight: normal !important;
    display: block;
    line-height: 1;
}

.last-name {
    --lastname-fs: clamp(5rem, 26vw, 15rem);
    font-size: var(--lastname-fs);
}

@media (max-width: 1200px) {
    .hero-content h1 {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .last-name {
        margin-top: -0.2em;
    }
}

.hero-content p {
    font-size: 1.5rem;
}

.portfolio-button {
    display: inline-block;
    transition: transform 0.2s ease-out, filter 0.2s ease-out;
    filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.2));
}

.portfolio-button img {
    height: 2.75rem;
    width: auto;
    display: block;
}

/* Scroll Down Arrows */
.scroll-down-container {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.scroll-down-arrow {
    position: relative;
    width: 25px;
    height: 25px;
    opacity: 0;
    animation: scroll-down-fade-in 2s ease-out forwards;
    filter: drop-shadow(2px 1.5px 2px rgba(0, 0, 0, 0.25));
}

.scroll-down-arrow::before,
.scroll-down-arrow::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 4px;
    background-color: var(--white);
    border-radius: 2px;
    top: 50%;
    left: 50%;
}

.scroll-down-arrow::before {
    transform: translate(-50%, -50%) rotate(45deg) translateX(-42%);
}
.scroll-down-arrow::after {
    transform: translate(-50%, -50%) rotate(-45deg) translateX(42%);
}

.scroll-down-arrow:first-child {
    margin-bottom: -9px;
}

.scroll-down-arrow:last-child {
    animation-delay: 0.2s;
}

@keyframes scroll-down-fade-in {
    0% {
        opacity: 0;
        transform: translateY(-15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cards Container */
.cards-container {
    position: relative;
    padding-bottom: 100vh; 
}

.intro-section {
    height: 50vh;
    position: sticky;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background-color: var(--black);
}

.intro-section .card-content {
    text-align: center;
}

.card-wrapper {
    height: 100vh;
    position: sticky;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    overflow: hidden;
}

.card {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.card-scene {
    min-height: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
}

#card-1 .card-scene {
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0) 50%), url('images/BSOTM_1.webp');
}
#card-2 .card-scene {
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0) 50%), url('images/placeholder.webp');
}
#card-3 .card-scene {
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0) 50%), url('images/microtransactions_2.webp');
}
#card-4 .card-scene {
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0) 50%), url('images/moon_1.webp');
}
#card-5 .card-scene {
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0) 50%), url('images/oneiroi_1.webp');
}

.card .card-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 2rem;
    pointer-events: none;
    will-change: transform;
}

.card .card-content {
    display: flex;
    align-items: flex-start;
    text-align: left;
}

.card-content h2 {
    font-size: 2.5rem;
    font-family: serif;
}

.intro-section .card-content h2{
    font-size: clamp(3rem, 25vw, 8rem);
    margin-top: 5rem;
    line-height: 0.8;
}
.intro-section .card-content p{
    font-size: clamp(0.65rem, 5.5vw, 1.75rem);
}
@media (min-aspect-ratio: 16/9) {
    .card-scene {
        min-width: 100%;
    }
}

/* Play Button Styles */
.play-button-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.35s cubic-bezier(0.68, -0.6, 0.27, 1.85);
}
.play-button-wrapper { pointer-events: auto; }

.play-button-link {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, transparent 30%, rgba(255, 246, 225, 0.03) 45%, rgba(255, 246, 225, 0.2) 100%),
                rgba(255, 246, 225, 0.25); /* Faint white background */
    position: relative; /* Needed for the ::after pseudo-element */
    backdrop-filter: blur(8px); /* This blurs the content behind the button */
    -webkit-backdrop-filter: blur(8px); /* Safari support */
}


/* Create a pseudo-element to act as a directional gradient border */
.play-button-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%; /* Inherit the circular shape */
    padding: 0.85px; /* This padding creates the thickness of the border */
    background: conic-gradient(from -135deg, transparent 0% 0%, rgb(255, 255, 255) 25%, transparent 55% 55%, rgba(255, 255, 255, 0.65) 75%, transparent 100% 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude; /* Standard syntax for the 'xor' operation */
    transition: opacity 0.3s ease;
}

/* Styles for the embedded Vimeo player */
.card-scene .vimeo-player {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw; /* Fallback for browsers that don't support aspect-ratio */
    height: 56.25vw; /* 100 * 9 / 16 */
    min-width: 177.77vh; /* 100 * 16 / 9 */
    min-height: 100vh;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none; /* Initially not interactive */
}

.card.video-playing .card-scene .vimeo-player {
    opacity: 1;
    pointer-events: auto; /* Make it interactive when playing */
}

/* Hide the play button and background image when video is active */
.card.video-playing .play-button-wrapper {
    opacity: 0;
    pointer-events: none;
}
/* This pseudo-element creates the solid white play triangle */
.play-button-link::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 21px 0 21px 35px; /* Creates a triangle pointing right */
    border-color: transparent transparent transparent var(--white);
    /* Adjust positioning to center the triangle */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-40%, -50%); /* Fine-tune centering */
}

.play-button-link:hover {
    backdrop-filter: blur(12px); /* Increase blur on hover */
    -webkit-backdrop-filter: blur(12px);
}

/* Scale the entire wrapper on hover to make the button and shadow grow together */
.play-button-wrapper:hover {
    transform: translate(-50%, -50%) scale(1.05);
}

/* Add an active state for the "press down" effect */
.play-button-wrapper:active {
    transform: translate(-50%, -50%) scale(0.98);
    /* Use a faster, non-bouncy transition for the press down for immediate feedback */
    transition: transform 0.1s ease-out;
}