@font-face {
    font-family: 'Barlow Condensed';
    src: url('fonts/BarlowCondensed-Regular.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: 'Great Vibes';
    src: url('fonts/GreatVibes-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Barlow Condensed', Arial, sans-serif;
    width: 100%;
    color: white;
    overflow-x: hidden;
}

/* Typography */
h1 {
    font-family: 'Great Vibes', Arial, sans-serif;
    font-size: 4rem;
    color: #ffffff;
    font-weight: 200;
    font-style: italic;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

span {
    font-size: 1.5rem;
    color: #ffffff;
    letter-spacing: 2px;
    font-weight: lighter;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

p {
    font-weight: 100;
    font-size: 1.2rem;
    margin: 10px 0;
    color: #ffffff;
    letter-spacing: 0.5px;
}

/* Layout & Sections */
.section {
    width: 100vw;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#home {
    justify-content: flex-start;
    background-image: url('images/home_background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

#content1, #content2, #content3, #content4 {
    background-image: url('images/secundary_background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Containers */
.container-home, .container-content {
    text-align: left;
    padding: 20px;
    background-color: transparent;
    border-radius: 10px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.container-home {
    max-width: 90%;
    width: 60vw;
}

.container-content {
    max-width: 90%;
    min-height: 50vh;
}

.container-text {
    text-align: left;
    margin-left: 40px;
}

/* Logos */
.container-logo, #content4-logo {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.container-logo {
    width: 100%;
    height: 100%;
    margin-top: 20px;
}

.verde-azul-logo, .RR-logo {
    width: 25%;
    height: auto;
    border-radius: 10px;
    display: inline-block;
}

/* Audio Button */
.play-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #ffcc00;
    color: #000;
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-family: 'Barlow Condensed', Arial, sans-serif;
    font-weight: 700;
    z-index: 100;
    transition: all 0.3s ease;
}

.play-button:hover {
    background-color: #fff;
}

.play-icon {
    margin-right: 8px;
    font-size: 16px;
}

.play-text {
    font-size: 14px;
    letter-spacing: 1px;
}

.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

/* Charts */
.chart-container, .pie-chart-container {
    width: 90%;
    max-width: 1000px;
    height: 450px;
    margin: 0 auto 40px auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.pie-chart-container {
    max-width: 800px;
    text-align: center;
}

.pie-chart-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 85%;
}

.pie-chart-meta {
    margin: 18px 0 15px;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 8px 15px;
    border-radius: 5px;
}

.pie-chart-meta span {
    font-size: 1.2rem;
    font-weight: bold;
}

/* Carousel */
.carousel-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    padding: 20px 0;
}

.carousel-slide {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
    gap: 20px;
    justify-content: center;
}

.carousel-image {
    width: 300px;
    height: 400px;
    object-fit: cover;
    object-position: center;
    flex-shrink: 0;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    padding: 15px;
    font-size: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.prev-button {
    left: 0;
}

.next-button {
    right: 0;
}

.carousel-dots {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px 0;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    transition: all 0.3s ease;
}

.dot.active, .dot:hover {
    background-color: white;
    transform: scale(1.2);
}

/* Text Content Sections */
#content1-text, #content2-text, #content3-text {
    margin-bottom: 20px;
    width: 100%;
    text-align: center;
}

#content1-text-title, #content2-text-title, #content3-text-title {
    font-family: 'Barlow Condensed', Arial, sans-serif;
    color: white;
    font-style: normal;
}

/* Media Queries */
@media (max-width: 1024px) {
    .carousel-container {
        width: 95%;
    }
    
    .carousel-image {
        width: 250px;
        height: 350px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
        font-weight: bold;
        text-align: center;
        font-weight: 900;
    }

    .carousel-container {
        width: 100%;
    }
    
    .carousel-image {
        width: 200px;
        height: 300px;
    }
    
    .carousel-button {
        width: 40px;
        height: 40px;
        padding: 10px;
        font-size: 16px;
    }

    .chart-container {
        width: 90%;
        height: 350px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.5rem;
        text-align: left;
    }

    .container-text {
        margin-left: 0;
    }

    img {
        width: 60%;
        height: 30%;
    }

    #home .container-home {
        padding-top: 20vw;
    }

    #home {
        background-position: 68% center;
    }

    .verde-azul-logo, .RR-logo {
        width: 60%;
    }

    #content4-logo, .container-logo {
        flex-direction: column;
    }

    .carousel-image {
        width: 180px;
        height: 250px;
    }
    
    .carousel-button {
        width: 35px;
        height: 35px;
        padding: 8px;
        font-size: 14px;
    }
    
    .carousel-dots {
        bottom: -10px;
    }

    .chart-container {
        width: 95%;
        height: 300px;
    }
}
