:root {
    font-family: "Lato", sans-serif;
    font-size: 62.5%;
}

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

.whitespace {
    height: 100px;
}

body {
    background-color: #000;
    color: #FFF;
    min-height: 100vh;
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    margin: 0;
    padding: 0;
}

#page {
    width: 100%;
    overflow-x: hidden;  /* Prevent horizontal scroll */
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    padding-left: 2rem;
    padding-right: 2rem;
    position: relative;
}

/* Full-width sections that need to break out */
.hero, .slider, .slider2 {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    position: relative;
}

/* Adjust other sections to respect container width */
#mission, #contact, #about {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

@media screen and (max-width: 1200px) {
    .hero, .slider, .slider2 {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    #mission, #contact, #about {
        padding: 0 2rem;
    }
}

@media screen and (max-width: 768px) {
    main {
        padding: 0 1rem;
    }

    #mission, #contact, #about {
        padding: 0 1rem;
    }
}

.hero {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
    max-width: 1200px;
    margin: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 40%),  /* Top fade */
        linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 20%),      /* Bottom fade */
        linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, transparent 10%),  /* Left fade */
        linear-gradient(-90deg, rgba(0, 0, 0, 0.8) 0%, transparent 10%),   /* Right fade */
        url('./assets/images/ideias_em_realidade.png');
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    object-fit: cover;
}

.header-logo {
    position: fixed;
    top: 2rem;
    right: 2rem;
    max-height: 8rem;
    width: auto;
    z-index: 1000;
}

h1 {
    font-size: 5.4rem;
    font-weight: 400;
    text-align: center;
    margin: 4rem auto;
}

.slider {
    height: 50rem;
    margin: 3rem auto;
    position: relative;
    width: 100%;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.slide-track {
    display: flex;
    width: calc(50rem * 16);
    animation: scroll 40s linear infinite;
}

.slide-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50rem * 8));
    }
}

.slide {
    height: 50rem;
    width: 50rem;
    display: flex;
    align-items: center;
    padding: 1.5rem;
    perspective: 10rem;
}

.slide img {
    width: 100%;
    height: 60rem;
    border-radius: 0.4rem;
    object-fit: cover;

    transition: transform 1s;
}

img:hover {
    transform: translateZ(20px);
}

.slider::before, 
.slider::after {
    background: linear-gradient(90deg, rgb(0, 0, 0) 0%, transparent 100%);
    content: '';
    height: 100%;
    position: absolute;
    width: 15%;
    z-index: 2;
}

.slider::before {
    left: 0;
    top: 0;
}

.slider::after {
    right: 0;
    top: 0;
    transform: rotateZ(180deg);
}

#about {
    display: flex;
    align-items: center;
    margin: 0 12.3rem;
    justify-content: space-between;
    gap: 5.2rem; 
    font-size: 2.4rem;
}

.image {
    text-align: center;
}

.slider2 {
    height: 70rem;
    margin: 3rem auto;
    position: relative;
    width: 100%;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.slide-track2 {
    display: flex;
    width: calc(70rem * 16);
    animation: scroll 40s linear infinite;
}

.slide-track2:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-70rem * 8));
    }
}

.slide2 {
    display: flex;
    height: 70rem;
    width: 40rem;
    align-items: center;
    padding: 1.5rem;
    perspective: 10rem;
}

.slide2 video {
    width: 100%;
    height: 70rem;
    border-radius: 0.4rem;
    object-fit: cover;

    transition: transform 1s;
}

img:hover {
    transform: translateZ(20px);
}

.slider2::before, 
.slider2::after {
    background: linear-gradient(90deg, rgb(0, 0, 0) 0%, transparent 100%);
    content: '';
    height: 100%;
    position: absolute;
    width: 15%;
    z-index: 2;
}

.slider2::before {
    left: 0;
    top: 0;
}

.slider2::after {
    right: 0;
    top: 0;
    transform: rotateZ(180deg);
}

.my-video {
    height: 70rem;
    width: 40rem;
    cursor: pointer;
}



video::-webkit-media-controls {
    position: relative;
    z-index: 1;
}
            




#contact {
    position: relative;
    padding: 0 12.3rem;
    margin: 5rem 0;
    width: 100%;
    max-width: 144rem;
    margin: 0 auto;
}

#contact h1 {
    font-size: 5.4rem;
    margin-bottom: 3rem;
    text-align: left;
}

.contact-container {
    display: grid;
    grid-template-columns: 20% 80%;
    gap: 3rem;
    width: 100%;
}

.information {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    font-size: 2.4rem;
    line-height: 1.4;
}

.information p {
    margin-bottom: 2rem;
}

.information img {
    width: 100%;
    max-width: 15rem;
    margin-top: 2rem;
}

#map {
    width: 100%;
    height: 30rem;
    border-radius: 2rem;
    background: #f5f5f5;
}

@media screen and (max-width: 768px) {
    #contact {
        padding: 0 2rem;
        margin: 3rem 0;
    }

    #contact h1 {
        font-size: 2.8rem;
        text-align: center;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    #map {
        height: 30rem;
        border-radius: 2rem;
        order: 2; /* Makes map appear below information on mobile */
    }

    .information {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        font-size: 1.6rem;
    }
}

@media screen and (max-width: 1200px) {
    .slide {
        width: 40rem;
        height: 40rem;
    }
    
    .slide img {
        height: 50rem;
    }
    
    .slide2 {
        width: 35rem;
        height: 60rem;
    }
    
    .slide2 video {
        height: 60rem;
    }
}

@media screen and (max-width: 768px) {
    body {
        overflow-x: hidden; /* Prevent horizontal scroll */
    }

    #page {
        padding: 0;
        width: 100%;
        overflow-x: hidden;
    }

    .slider, .slider2 {
        width: 100%;
        overflow: hidden;
    }

    .slide-track, .slide-track2 {
        width: calc(28rem * 16); /* Adjusted for mobile width */
    }

    @keyframes scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-28rem * 8)); /* Adjusted for mobile width */
        }
    }

    #page {
        padding: 0 1rem;
    }

    .hero {
        height: 60vh;
        max-height: 500px;
    }

    .hero::before {
        background-position: center 25%;
    }

    .header-logo {
        top: 1.5rem;
        right: 1.5rem;
    }

    h1 {
        font-size: 2.8rem;
        margin: 2rem auto;
        padding: 0 1rem;
    }

    #about {
        flex-direction: column;
        margin: 0 1rem;
        gap: 2rem;
        font-size: 1.8rem;
        text-align: center;
    }

    .slider, .slider2 {
        height: auto;
        margin: 2rem auto;
    }

    .slide {
        width: 28rem;
        height: 28rem;
        padding: 0.5rem;
    }

    .slide img {
        height: 35rem;
    }

    .slide2 {
        width: 25rem;
        height: 45rem;
        padding: 0.8rem;
    }

    .slide2 video, .my-video {
        height: 45rem;
        width: 100%;
    }

    .information {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 2rem;
        padding: 0 1rem;
        margin: 5rem auto;
        width: 100%;
        text-align: left;
    }

    .information img {
        max-width: 100%;
        justify-self: center;
    }

    .information p {
        font-size: 1.6rem;
        line-height: 1.5;
    }

    #contact h1 {
        font-size: 2.8rem;
        margin-top: 5rem;
        padding: 0 1rem;
        text-align: center;
    }

    #map {
        width: 90%;
        height: 30rem;
        border-radius: 2rem;
        margin: 0 auto;
        top: 0;
    }

    .whitespace {
        height: 50px;
    }
}

@media screen and (max-width: 480px) {
    .hero {
        height: 50vh;
        max-height: 400px;
    }

    h1 {
        font-size: 2.4rem;
    }

    .slide {
        width: 22rem;
        height: 22rem;
    }

    .slide img {
        height: 25rem;
    }

    .slide2 {
        width: 20rem;
        height: 35rem;
    }

    .slide2 video, .my-video {
        height: 35rem;
    }

    #about {
        font-size: 1.6rem;
    }

    .information {
        font-size: 1.6rem;
    }

    .information {
        gap: 1rem;
    }

    .information p {
        font-size: 1.4rem;
    }

    .whitespace {
        height: 30px;
    }
}


.video-js .vjs-big-play-button {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%);
    margin: 0 !important;
    

    width: 2.5em !important;
    height: 2.5em !important;
    line-height: 2.5em !important;
    font-size: 1.8em !important;  
}


.video-js .vjs-big-play-button {
    border-radius: 50%;
    border: none;
    background-color: rgba(255, 255, 255, 0.7);
}


.video-js:hover .vjs-big-play-button {
    background-color: rgba(255, 255, 255, 0.9);
}

#mission {
    column-count: 2;
    column-gap: 4rem;
    padding: 0 12.3rem;
    font-size: 2.4rem;
    line-height: 1.6;
}

#mission p {
    margin-bottom: 2rem;
}

/* Prevent the image from splitting across columns */
#mission .image {
    break-inside: avoid;
    text-align: center;
    margin: 2rem 0;
}

#mission .image img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

@media screen and (max-width: 768px) {
    #mission {
        column-count: 1; /* Single column on mobile */
        padding: 0 2rem;
        font-size: 1.8rem;
    }

    #mission .image {
        margin: 3rem auto;
    }
}

.information a {
    text-decoration: underline;
    color: #FFF;
}

.information a:hover {
    color: #d6d2d2; /* Optional: lighter color on hover */
}

.information img {
    max-width: 100%;
    height: auto;
    margin-top: 2rem;
}

@media screen and (max-width: 768px) {
    .information {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        font-size: 1.6rem;
    }

    .information img {
        max-width: 100%;
        justify-self: center;
    }
}

/* Tablet styles */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    #contact {
        padding: 0 6rem;
    }

    .contact-container {
        grid-template-columns: 30% 70%; /* Slightly adjusted ratio for tablets */
        gap: 3rem;
    }

    #map {
        height: 35rem;
    }

    .information {
        font-size: 2rem;
    }

    h1 {
        font-size: 4rem;
    }

    /* Adjust sliders for tablet */
    .slide {
        width: 40rem;
        height: 40rem;
    }
    
    .slide img {
        height: 50rem;
    }
    
    .slide2 {
        width: 35rem;
        height: 60rem;
    }
    
    .slide2 video {
        height: 60rem;
    }

    /* Adjust mission section for tablet */
    #mission {
        padding: 0 6rem;
        font-size: 2rem;
    }

    /* Adjust whitespace for tablet */
    .whitespace {
        height: 70px;
    }
}

/* Add this to ensure black background while loading */
.video-js {
    background-color: #000 !important;
}

.vjs-poster {
    background-color: #000;
}

/* Make sure poster images maintain aspect ratio */
.vjs-poster img {
    object-fit: cover;
}

/* Add these new styles for the poster */
.video-js .vjs-poster {
    background-size: cover;
    object-fit: cover;
}

.video-js .vjs-poster img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    text-align: center;
}

footer img {
    max-width: 15rem;
    height: auto;
}

footer p {
    font-size: 1.6rem;
}

@media screen and (max-width: 768px) {
    footer {
        gap: 1rem;
    }
    
    footer img {
        max-width: 12rem;
    }
    
    footer p {
        font-size: 1.4rem;
    }
}

@media screen and (max-width: 1200px) {
    .hero {
        max-width: 100vw;
        width: 100%;
    }

    .hero::before {
        width: 100vw;
        background-size: contain;
        background-position: center;
    }
}

