@font-face {
    font-family: "Ginto Nord Regular";
    src: url("../fonts/ginto-nord-regular.woff") format("woff2");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

html {
    scroll-behavior: smooth;
    font-family: "Ginto Nord Regular", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

:root {
    --pedaleo_yellow: #D89906;
    --background_blue_dark: #021464;
    --background_blue_normal: #001373;
    --background_blue_light: #0021B3;
    --hover_yellow:  #FCD783;
}

@media (prefers-reduced-motion) {
    * {
        animation: none !important;
        transition: none !important;
    }

    html {
        scroll-behavior: auto;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { transform: scale(1) }
    50% { transform: scale(1.01) }
    100% { transform: scale(1) }
}

@keyframes gradientShift {
    0% { background-position: 0 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

@keyframes charReveal {
    from {
        opacity: 0;
        transform: translateY(50%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes sparkle {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes card-animation {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0);
    }
}

body {
    font-family: "Ginto Nord Regular", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(
            135deg,
            var(--background_blue_dark),
            var(--background_blue_normal),
            var(--background_blue_light)
    );
    background-size: 200% 200%;
    margin: 0;
    animation: gradientShift 10s ease infinite;
}

nav {
    animation: slideUp 0.6s ease-out 0.2s both;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    height: 60px;
    display: flex;
    align-items: center;
}

nav li {
    animation: slideUp 0.5s ease-out both;
    display: flex;
    align-items: center;
    height: 100%;
}

nav li:nth-child(1) { animation-delay: 0.3s; }
nav li:nth-child(2) { animation-delay: 0.35s; }
nav li:nth-child(3) { animation-delay: 0.4s; }
nav li:nth-child(4) { animation-delay: 0.45s; }
nav li:nth-child(5) { animation-delay: 0.5s; }
nav li:nth-child(6) { animation-delay: 0.2s; }

nav li:first-child {
    margin-left: 50px;
}

nav li:last-child {
    float: left;
}

nav li a {
    display: flex;
    align-items: center;
    height: 100%;
    text-align: center;
    padding: 0 16px;
    text-decoration: none;
    color: var(--pedaleo_yellow);
    font-size: 22px;
    transition: all 0.3s ease;
}

nav li a:hover {
    color: var(--hover_yellow);
    transform: translateY(-2px);
}

nav .active {
    font-weight: bold;
}

nav #text-logo img {
    height: 35px;
    margin: 0 5px;
}

nav #text-logo-li {
    float: left;
    margin-left: 50px;
    animation-delay: 0.3s;
}

nav {
    font-family: "Ginto Nord Regular", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 50px);
    flex-direction: column;
    position: relative;
    z-index: 1;
    background: linear-gradient(
            135deg,
            var(--background_blue_dark),
            var(--background_blue_normal),
            var(--background_blue_light)
    );
}

.header-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 20px;
}

.logo-container {
    display: flex;
    align-items: center;
    margin-bottom: 3px;
    width: 100%;
    flex-wrap: wrap;
    animation: slideUp 0.8s ease-out 0.4s both;
}

#logo {
    max-width: 350px;
    height: auto;
    margin-right: 120px;
    margin-left: 80px;
    margin-top: 20px;
    animation: pulse 2s ease-in-out 1s both;
}

.side-text {
    font-size: 3.7em;
    font-weight: bold;
    color: white;
    flex: 1;
    line-height: 1.2;
    text-shadow: 1px 1px 2px #000;
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
    max-width: 900px;
}


.side-text span {
    display: inline-block;
    opacity: 0;
    animation: charReveal 0.5s cubic-bezier(0.5, 0, 0.5, 1) forwards;
    will-change: transform, opacity;
}

.bottom-text {
    font-size: 1.8em;
    margin-top: 10px;
    margin-left: 80px;
    margin-bottom: 65px;
    justify-self: center;
    color: var(--pedaleo_yellow);
    animation: slideUp 0.8s ease-out 0.6s both;
}

h1 {
    color: var(--pedaleo_yellow);
    font-size: 3.8em;
    align-self: center;
    padding: 0;
    margin-bottom: 0;
}

.white-a {
    background: #F5F3FF
}
.white-b {
    background: #FFFFFF;
}
.white-a, .white-b {
    position: relative;
    z-index: 2;
    width: 100%;
}

section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

video {
    align-self: center;
    margin-bottom: 30px;
}

.logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
}

.logo-item {
    text-align: center;
    padding: 20px;
}

.logo-item p {
    color: var(--background_blue_normal);
    font-size: 2.2em;
    font-weight: bold;
}

.logo-item img {
    width: 320px;
    height: auto;
    display: block;
    margin-top: 5px;
}

.logo-item:nth-child(2) {
    transition-delay: 200ms;
}
.logo-item:nth-child(3) {
    transition-delay: 200ms;
}



.hidden {
    opacity: 0;
    filter: blur(5px);
    transform: translateX(-100%);
    transition: all 1s;
}

.show {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0);
}

#info-container {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 50px;
}

#info-container img {
    margin-right: 20px;
    max-width: 400px;
    padding: 50px;
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
}

#info-container img:hover {
    transform: rotateY(10deg) rotateX(10deg) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    animation: pulse 1.8s ease-in-out infinite;
}

#info-container img:before {
    content: "";
    position: absolute;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.320, 1);
    z-index: 1;
}

#info-container img:hover:before {
    transform: translateX(-100%);
}

#info-container img:after {
    content: "";
    position: absolute;
    z-index: 1;
}

#info-container img:hover:after {
    transform: translateX(100%);
}

.info-column {
    display: flex;
    flex-direction: column;
    gap: 50px;
    border-radius: 8px;
    color: white;
    overflow: hidden;
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
    padding: 15px;
}

.info-column:hover {
    transform: rotateY(10deg) rotateX(10deg) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

h2 {
    margin: 0;
    padding: 0;
    font-size: 2.5em;
    color: var(--background_blue_normal);
    transition: all 0.3s ease;
    text-align: center;
}

h2:hover {
    transform: translateY(-2px);
}

#donate-button {
    padding: 10px 20px;
    font-size: 2.5em;
    color: white;
    font-weight: bold;
    background: linear-gradient(45deg, var(--background_blue_light), var(--background_blue_dark));
    border: none;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

#donate-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #FFFFFF, #F8F8F8, #E6E6E6);
    color: var(--background_blue_light);
    border-color: var(--background_blue_light);
}

footer {
    display: flex;
    flex-direction: column;
    color: white;
    background-color: #4d4d54;
    width: 100%;
}

.card-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}

.card {
    width: 500px;
    height: 390px;
    background: linear-gradient(45deg, var(--background_blue_light), var(--background_blue_dark));
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    transition: 0.2s ease-in-out;
    margin: 30px;
    position: relative;
    border: 2px solid rgb(255, 255, 255);
}

.title {
    height: 30%;
    position: absolute;
    transition: 0.2s ease-in-out;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: bold;
    color: white;
}

.card:hover .title {
    height: 65%;
    filter: blur(7px);
    animation: card-animation 3s infinite;
    color: white;
}

.img {
    height: 30%;
    position: absolute;
    transition: 0.2s ease-in-out;
    z-index: 1;
}

.textBox {
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: 0.2s ease-in-out;
    z-index: 2;
}

.textBox .text {
    font-weight: bold;
}

.textBox .name {
    font-size: 17px;
}

.textBox span {
    font-size: 13px;
    color: antiquewhite;
}

.card:hover .textBox {
    opacity: 1;
}

.card:hover {
    transform: scale(1.04) rotate(-1deg);
    background-color: black;
}

.legal {
    text-align: right;
    margin: 20px;
}

.socials-card {
    position: relative;
    width: 400px;
    height: 385px;
    background: lightgrey;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: rgba(100, 100, 111, 0.2) 0 7px 29px 0;
    transition: all 1s ease-in-out;
    border: 2px solid rgb(255, 255, 255);
    margin: 30px;
}

.background {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, var(--background_blue_light), var(--background_blue_dark));
}

.logo {
    position: absolute;
    right: 50%;
    bottom: 50%;
    transform: translate(50%, 50%);
    transition: all 0.6s ease-in-out;
    font-size: 1.5em;
    font-weight: 600;
    color: #ffffff;
}

.logo .logo-svg {
    fill: white;
    width: 30px;
    height: 30px;
}

.icon {
    display: inline-block;
    width: 20px;
    height: 20px;
}

.icon .svg {
    fill: rgba(255, 255, 255, 0.797);
    width: 100%;
    transition: all 0.5s ease-in-out;
}

.box {
    position: absolute;
    padding: 10px;
    text-align: right;
    background: rgba(255, 255, 255, 0.389);
    border-top: 2px solid rgb(255, 255, 255);
    border-right: 1px solid white;
    border-radius: 10% 13% 42% 0/10% 12% 75% 0;
    box-shadow: rgba(100, 100, 111, 0.364) -7px 7px 29px 0;
    transform-origin: bottom left;
    transition: all 1s ease-in-out;
}

.box::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: all 0.5s ease-in-out;
}

.box:hover .svg {
    fill: white;
}

.instagram-box {
    width: 70%;
    height: 70%;
    bottom: -70%;
    left: -70%;
}

.instagram-box::before {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #ff53d4 60%);
}

.instagram-box:hover::before {
    opacity: 1;
}

.instagram-box:hover .icon .svg {
    filter: drop-shadow(0 0 5px white);
}

.whatsapp-box {
    width: 50%;
    height: 50%;
    bottom: -50%;
    left: -50%;
    transition-delay: 0.2s;
}

.whatsapp-box::before {
    background: radial-gradient(circle at 30% 107%, #128C7E 0%, #25D366 90%);
}

.whatsapp-box:hover::before {
    opacity: 1;
}

.whatsapp-box:hover .icon .svg {
    filter: drop-shadow(0 0 5px white);
}

.box3 {
    width: 30%;
    height: 30%;
    bottom: -30%;
    left: -30%;
    transition-delay: 0.4s;
}

.socials-card:hover {
    transform: scale(1.1);
}

.socials-card:hover .box {
    bottom: -1px;
    left: -1px;
}

.socials-card:hover .logo {
    transform: translate(70px, -52px);
    letter-spacing: 0;
}

/* Mobile accessibility */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        height: auto;
    }

    nav li {
        justify-content: center;
        width: 100%;
        padding: 10px 0;
    }

    #logo {
        max-width: 70%;
        margin: 0 auto;
    }

    .side-text {
        font-size: 1.3em;
        text-align: center;
        margin: 10px 20px 0;
        padding: 0 16px;
        white-space: normal;
        word-break: normal;
        overflow-wrap: normal;
        hyphens: none;
        max-width: 90%;
}

    .bottom-text {
        font-size: 1em;
        text-align: center;
        margin: 20px;
    }

    .logo-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    h1 {
        font-size: 2em;
        text-align: center;
        padding: 0 16px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        box-sizing: border-box;
        width: 100%;
    }

    video {
        width: 100%;
        height: auto;
    }

    .logos {
        flex-direction: column;
        gap: 20px;
    }

    .logo-item img {
        width: 90%;
    }

    #info-container {
        flex-direction: column;
        padding: 20px;
    }

    #info-container img {
        max-width: 90%;
        padding: 20px;
        margin: 0 auto;
    }

    .info-column {
        gap: 30px;
        padding: 10px;
        width: 100%;
    }

    h2 {
        font-size: 1.2em;
    }

    #donate-button {
        font-size: 1.2em;
        padding: 10px;
        width: 90%;
    }

    .card-container {
        flex-direction: column;
        align-items: center;
    }

    .card,
    .socials-card {
        width: 90%;
        margin: 20px 0;
    }

    .legal {
        text-align: center;
        margin: 10px;
    }
}

#nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 10px 20px;
    z-index: 200;
}

#nav-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--pedaleo_yellow);
    border-radius: 2px;
}

@media (max-width: 768px) {
    #nav-toggle {
        display: flex;
    }

    #nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--background_blue_normal);
    }

    #nav-links.open {
        display: flex;
    }

    #nav-links li {
        width: 100%;
        text-align: center;
    }
}

