/* RESET */
html {
  box-sizing: border-box;
  font-size: 16px;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body, h1, h2, h3, h4, h5, h6, p, ol, ul {
  margin: 0;
  padding: 0;
  font-weight: normal;
}

ol, ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}
/* END RESET */

/* GENERAL */
body {
    background-color: #000000;
    color: #ff0000;
    font-family: 'Poppins-extralight', sans-serif;
    overflow: hidden;
    min-height: 100vh;
}

@font-face {
  font-family: 'Nosifer';
  src: url('../font/Nosifer-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Poppins-extralight';
    src: url('../font/Poppins-ExtraLight.ttf') format('truetype');
}

@font-face {
    font-family: 'Poppins-light';
    src: url('../font/Poppins-Light.ttf') format('truetype');
}

@font-face {
    font-family: 'Poppins-medium';
    src: url('../font/Poppins-Medium.ttf') format('truetype');
}

.title {
    padding: 40px 0 40px 0;
    font-family: 'Poppins-medium', sans-serif;
}

footer {
    width: 100%;
    min-height: 30px; /* ou plus */
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 10;
}

/* END GENERAL */


/* HEADER */

/* Header Sticky */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 196px;
    z-index: 20;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: end;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Menu de navigation */
.menu {
    display: flex;
    gap: 2rem;
}

.menu-item {
    color: #ff0000;
    text-decoration: none;
    font-size: 1.3rem;
    font-family: 'Poppins-light', sans-serif;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
}

.menu-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #ff0000;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.menu-item:hover::after,
.menu-item.active::after {
    width: 100%;
}

.menu-item:hover {
    text-shadow: 0 0 10px #ff0000;
}

.burger {
  display: none;
  flex-direction: column;
  width: 35px;
  height: 32px;
  justify-content: space-around;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 20;
  padding: 0;
}
.burger span {
  display: block;
  height: 4px;
  width: 100%;
  background: #ff0000;
  border-radius: 2px;
  transition: 0.3s;
}

.burger.active span:nth-child(1) { transform: rotate(45deg) translateY(10px);}
.burger.active span:nth-child(2) { opacity: 0;}
.burger.active span:nth-child(3) { transform: rotate(-45deg) translateY(-10px); }

/* END HEADER */


/* MAIN SECTION */

.main-content {
  position: absolute;
  left: 0;
  top: 196px; /* header height */
  width: 100vw;
  height: calc(100vh - 196px - 30px); /* 30px = footer height */
  display: flex;
  justify-content: center;
  align-items: start;
  box-sizing: border-box;
  overflow: visible;
  z-index: 5;
}

/* Carousel */
.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}
.carousel-wrapper {
    overflow: hidden;
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    overflow-x: hidden;
    overflow-y: visible;
    padding: 20px 0;
}

.carousel-track {
    display: flex;
    gap: 30px;
    align-items: center;
    height: calc(100% - 40px);
    cursor: default;
    user-select: none;
    padding: 20px 0;
}

.carousel-track:active {
    cursor: grabbing;
}

/* Card with ratio 681:1000 */
.card {
    flex-shrink: 0;
    position: relative;
    perspective: 1000px;
    overflow: hidden;
    position: relative;
    transition: opacity 0.3s ease, box-shadow 0.3s ease;
    opacity: 0.8;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d !important;
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
}


/* Flipping styles */

.card-back-content {
    position: relative;
    z-index: 1;
    padding: 3rem 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card-back-title, .card-back-subtitle {
    font-family: 'Nosifer', sans-serif;
    text-transform: uppercase;
}

.card-back-title {
    font-size: 2.2rem;
}

.card-back-subtitle {
    font-size: 1.8rem;
}

.aka {
    font-family: 'Poppins-medium', sans-serif;
    font-size: 1.3rem;
    text-transform: lowercase;
}

.card-back-text {
    margin-top: 30px;
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 80%;
}


.card-inner.flipped {
    transform: rotateY(180deg);
}

.card-inner.flipping {
    pointer-events: none;
}

.card:hover {
    opacity: 1;
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0; left: 0;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
    -ms-backface-visibility: hidden !important;
}

.card-front {
    z-index: 2;
}

.card-back {
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 3;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.card-back-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.8) 30%,
        rgba(0, 0, 0, 0.4) 60%,
        transparent 100%);
    padding: 4rem 1.5rem 2rem;
}


/* Carousel Button */

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.9);
    border: 3px solid #ff0000;
    color: #ff0000;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.carousel-button:hover {
    background-color: #ff0000;
    color: #000000;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.carousel-button-prev {
    left: 20px;
}

.carousel-button-next {
    right: 20px;
}

.carousel-button svg {
    width: 35px;
    height: 35px;
}


/* RED ZONE PAGE */
.container-redzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80%;
    margin: 50px auto 0 auto;
}

.form-redzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    width: 60%;
}

.form-row-redzone {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 50%;
    padding: 20px;
}

.label-redzone {
    font-family: 'Poppins-light', sans-serif;
    font-size: 1.1rem;
}

.input-redzone {
    padding: 5px;
    width: 50%;
    height: 2.2rem;
    border: 2px solid #ff0000;
    border-radius: 5%;
    background-color: #1f1f1f;
    font-family: 'Poppins-light', sans-serif;
    font-size: 1.1rem;
    color: #ff0000;
}

.button-redzone {
    background-color: #ff0000;
    color: #ffffff;
    border: 2px solid #ff0000;
    border-radius: 5px;
    margin-top: 20px;
    padding: 5px 20px;
    font-family: 'Poppins-light', sans-serif;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button-redzone:hover {
    background-color: #1f1f1f;
    color: #ff0000;
    border: 2px solid #ff0000;
}

.button-redzone:active {
    transform: scale(0.95);
}

.button-redzone:focus {
    outline: none;
    box-shadow: 0 0 10px #ff0000;
}


/* Responsive - Tablet */
@media (max-width: 1024px) {
    .main-content {
        padding: 40px;
    }

    .card-title {
        font-size: 1.6rem;
    }

    .carousel-button {
        width: 60px;
        height: 60px;
    }

    .carousel-button svg {
        width: 30px;
        height: 30px;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .main-content {
    position: static !important;
    height: auto !important;
    min-height: 0 !important;
    padding-top: 64px !important;
    padding-bottom: 16px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    box-sizing: border-box;
    display: block !important;
    overflow: visible !important;
    }

    .header-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 1.5rem;
        height: 80px;
    }

    .sticky-header {
        height: 80px;
    }

    #logo img {
        max-height: 65px;
        height: auto;
        display: block;
    }

    .burger {
        display: flex;
        margin-left: auto;
        margin-right: 0.5rem;
    }

    .menu {
        display: none;
        position: absolute;
        top: 80px;
        left: 0; right: 0;
        width: 100vw;
        background: #000;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 30px 20px;
        z-index: 15;
        box-shadow: 0 6px 25px 0 rgba(0,0,0,0.8);
    }

    .menu.open {
        display: flex;
    }

    .menu-item {
        font-size: 1.4rem;
        padding: 0.7rem 0;
    }

    .carousel-track {
        gap: 20px;
    }

    .card-overlay {
        padding: 3rem 1rem 1.5rem;
    }

    .card-back-title, .card-back-subtitle {
        font-size: 1.1rem;
    }

    .aka {
        font-size: 0.9rem;
    }

    .card-back-text {
        font-size: 0.7rem;
        margin-top: 10px;
        max-width: 95%;
    }

    .card-back-content {
        padding: 0.8rem 0.8rem;
    }

    footer {
        flex-direction: column;
        justify-content: end;
        font-size: 0.7rem;
    }

    .separator {
        visibility: hidden;
        height: 0;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .main-content {
        padding: 15px;
    }

    .header-content {
        padding: 0 8px;
        height: 60px;
    }

    .sticky-header {
        height: 60px;
    }

    #logo img {
        max-height: 50px;
    }

    footer {
        flex-direction: column;
        justify-content: end;
    }

    .separator {
        visibility: hidden;
        height: 0;
    }
}

.carousel-wrapper::-webkit-scrollbar {
    display: none;
}

.carousel-wrapper {
    -ms-overflow-style: none;
    scrollbar-width: none;
}


/* On tactile screens, no carousel buttons */

@media (pointer: coarse) {
  .carousel-button {
    display: none !important;
  }
}