@import url('https://fonts.googleapis.com/css2?family=Calistoga&family=Inter:wght@100..900&display=swap');

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

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    text-align: center;
    overflow-x:hidden;
}

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

/* Logo */
.logo-responsive {
    display:none;
}

nav ul {
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul .logo {
    font-size: 36px; /* Increase size */
    font-weight: bold;
    margin-right: auto; /* Pushes it to the left */
}

nav ul .logo a {
    text-decoration: none;
    color: #fff; /* Adjust color if needed */
    font-size: 32px; /* Increase font size further */
}

nav {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    padding: 20px 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #000;
}

nav ul li {
    list-style: none;
    display: inline-block;
    margin-left: 40px;
}
nav ul li a {
    text-decoration: none;
    color: #fff;
    font-size: 17px;
    font-weight: 500;
}

.content {
    text-align: center;
}

.content h1 {
    font-size: 80px;
    color: #fff;
    font-weight: 600;
    transition: 0.5s;
}

.content h1:hover {
    -webkit-text-stroke: 2px #fff;
    color: transparent;
}

.content a {
    text-decoration: none;
    display: inline-block;
    color: #000000;
    font-size: 24px;
    border: 2px solid #ed9900;
    background-color: #ed9900;
    border-radius: 50px;
    margin-top: 20px;
}

.content a:hover {
    background-color: #000;
    border: 1px solid #000;
    color: #fff;
}

.back-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    bottom: 0;
    z-index: -1;
}

/* Buttons*/
.button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #000;
    color: #ffa500;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    border: 2px solid orange;
    border-radius: 17px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* About us */
.default {
    padding-top:50px;
    padding-bottom:50px;
}
.default .section-title,
.default .section-desc {
    text-align:center;
    text-transform: uppercase;
    font-weight: 600;
}
.default .section-title {
    font-size:20px;
}
.default .section-desc {
    font-size:12px;
    color:#CCC;
    margin-top:10px;
    margin-bottom:40px;
}

.info-about-me {
    display:none;
}

#btn-more-info {
    cursor: pointer;
    color: #db9818;
    display: inline-block;
    margin-top: 10px;
    margin-bottom: 12px;
    text-decoration: underline;
}

/* BLOCO ABOUT ME */
.default .section-body {
    max-width:1190px;
    margin:auto;
}

.section-aboutus p {
    margin-bottom: 5px;
}

.section-aboutus a.button {
    background: #000;
    border-radius: 16px;
    color: #fff;
    border: 1px solid #000;
}

.section-aboutus a.button:hover, #contact-form .button:hover {
    background: #7c7c7c;
    border: 1px solid #7c7c7c;
    color: #000;
}

.default.light {
    background-color:#F7F7F7;
    padding: 47px;
}

.default.light .section-title,
.default.light .section-body {
    color:#000;
}

.default.dark {
    background-color:#000;
}

.default.dark .section-title,
.default.dark .section-body {
    color:#FFF;
}

/* About us image*/
.section-body {
    display: flex;
    align-items: center; /* Align text and image vertically */
    justify-content: space-between;
    flex-wrap: wrap; /* Ensures responsiveness */
    flex-direction: row-reverse;
}

.section-aboutus {
    width: 55%; /* Adjusts text width */
}

.section-aboutus--right {
    width: 40%; /* Adjusts image width */
}

.section-aboutus--right img {
    max-width: 100%; /* Ensures image is responsive */
    height: auto;
    border-radius: 10px; /* Optional: for rounded corners */
    opacity: 0; /* Initially hidden */
    transform: translate(50px); /* Initially shifted to the right */
    transition: opacity 1s ease, transform 1s ease; /* Smooth transition */
}
.section-aboutus--right img.visible {
    opacity: 1; /* Shows the image */
    transform: translate(0); /* Move back to normal position */
}

/* Contact me*/
.contact-me {
    background-color: #FFF;
    color: #000;
    padding: 50px;
    text-align: center;
    max-width: 500px;
    margin: auto;
    border-radius: 10px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.contact-me input, .contact-me textarea {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    background-color: #ebebeb;
    color: #000;
    border: 1px solid #d7d7d7;
    border-radius: 5px;
    transition: 0.3s ease;
}

.success-message {
    transition: opacity 0.3s ease;
    opacity: 0;
    margin-top: 10px;
    font-size: 14px;
}

.success-message.show {
    opacity: 1;
}

/* Resume */
.cv-container {
    /* max-width: 1200px; */
    margin: auto;
    padding: 40px 250px;
    background-image: url(./assets/images/sport-1.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    opacity: 1;
    animation: fadeIn 2s ease-in-out forwards;
}

/* TÍTULO CENTRALIZADO EM BLOCO INDEPENDENTE */
.cv-title {
    width: 100%;
    text-align: left;
    font-size: 3rem;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* CONTAINER DAS DUAS COLUNAS */
.cv-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    width: 100%;
    justify-content: center;
}

/* CADA COLUNA */
.cv-column {
    flex: 1 1 45%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* SEÇÕES */
.section {
    padding: 20px;
    border-radius: 8px;
}

/* CONTATO */
.cv-contact {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    border-radius: 10px;
    text-align: left;
}

#download-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: #322e27;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    transition: 0.3s ease;
}

#download-btn:hover {
    background: #7c7c7c;
}

.custom-link-contact {
    color: #4e82a1;
    text-decoration: none;
    font-weight: 600;
}

.header {
    text-align: center;
}

h1, h2 {
    text-align: left; /* Aligns to left like the example */
    width: 100%;
    font-size: 2rem; /* Adjust size */
    margin-bottom: 10px;
}

.section {
    width: 100%; /* Makes sections full width */
    max-width: 1100px; /* Ensures content is well-distributed */
    text-align: left; /* Aligns text for better readability */
    margin-bottom: 20px;
}

.download-btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    background-color: #007bff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    margin-top: 20px;
    text-align: center;
}

.download-btn:hover {
    background-color: #0056b3;
}

.profile-img {
    display: block;
    max-width: 150px;
    height: auto;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.info {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.info div {
    width: 48%;
}

/* Images Gallery */
.image-gallery {
    text-align: center;
    padding: 50px 0;
    background-color: #f4f4f4;
}

.image-gallery h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 images per row */
    gap: 20px;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
    opacity: 0;
    animation: fadeIn 2s ease-in-out forwards;
}

.image-item {
    display: none; /* Hide all images by default */
}

/* Show only the first 10 images */
.image-item:nth-child(-n+10) {
    display: block;
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.image-item img:hover {
    transform: scale(1.05); /* Zoom effect */
}

.load-more-btn,
.download-all-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #0e0d0b;
    color: white;
    font-size: 16px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.load-more-btn:hover,
.download-all-btn:hover {
    background-color: #7c7c7c;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* When lightbox is active */
.lightbox.active {
    display: flex;
    opacity: 1;
}
.lightbox-content {
    max-width: 80%;
    max-height: 80%;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    overflow: hidden;
}

/* Image animation */
.lightbox img {
    max-width: 80%;
    max-height: 80vh;
    border-radius: 8px;
    transform: scale(0.8);
    transition: transform 0.3s ease-in-out;
}

/* Active image effect */
.lightbox.active img {
    transform: scale(1);
}

/* Close button */
.lightbox .close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 50px;
    color: white;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

/* Close button hover effect */
.lightbox .close:hover {
    transform: scale(1.2);
    color: red;
}

/* Download button */
.lightbox a {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    font-size: 16px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease-in-out, transform 0.2s;
}

/* Download button hover */
.lightbox a:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

/* Download Button */
.lightbox a {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    font-size: 16px;
    border-radius: 5px;
    text-decoration: none;
}

.lightbox a:hover {
    background-color: #0056b3;
}

/* Videos Gallery */
.video-gallery h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    color: #fff;
}

.video-gallery {
    padding: 40px;
    background: #1f1f1f;
    text-align: center;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.video-item {
    position: relative;
    display: block;
}

.video-item iframe {
    width: 100%;
    height: 490px;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    border: 1px solid #000;
}

.video-item video {
    width: 100%;              /* Faz o vídeo ocupar toda a largura da div */
    height: 155px;
    display: block;
}

/* Lightbox */
#video-lightbox {
    position: fixed;
    display: none;
    justify-content: center;
    align-items: center;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 999;
}

#video-lightbox.active {
    display: flex;
}

#video-lightbox-content iframe,
#video-lightbox-content video {
    width: 80%;
    max-height: 80vh;
}

#video-lightbox .close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

/*Download Buttons*/
#download-video-btn {
    margin-top: 10px;
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
}

#download-video-btn:hover {
    background-color: #45a049;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

.close-btn:hover {
    color: #ccc;
}

/* Loader Video */

#video-loader {
  font-weight: bold;
  font-size: 20px;
  text-align: center;
  padding: 40px;
  color: #555;
}

#video-loader::before {
  content: "";
  display: inline-block;
  margin-right: 10px;
  width: 20px;
  height: 20px;
  border: 3px solid #555;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

#contact-form .button {
    background-color: #000;
    border: 1px solid #000;
    color: #fff;
}

/* Footer */
footer {
    background-color: #1f1f1f;
    position: relative;
}

footer .container {
    padding-top: 80px;
    padding-bottom: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer .copyrights {
    font-size: 24px;
    color: #5f5f5f;
    margin-right: 50px;
}

footer .copyrights a {
    color: #5f5f5f;
    text-decoration: none;
}

footer .copyrights a:hover {
    text-decoration: underline;
}

footer .logo a {
    position: absolute;
    left: 100px;
    bottom: 70px;
    font-family: 'Calistoga', Arial, Helvetica, sans-serif;
    font-size: 36px;
    color: #FFF;
    text-decoration: none;
}

/* Responsividade do menu */
.menu-toggle {
  display: none;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
}

/* Adjust Footer for Mobile*/

/* Medias query */
/* Tablets */
@media (min-width: 601px) and (max-width: 992px) {
    .section-aboutus {
        flex-direction: row;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 993px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Two-column layout for better spacing */
@media screen and (min-width: 1024px) {
    .cv-container {
        display: grid;
        gap: 40px; /* Space between columns */
    }

    .section {
        max-width: none;
    }

    .content h1 { font-size: 60px; }
    .content a { font-size: 20px; padding: 12px 50px; }
}

@media screen and (min-width: 1500px) {
    .video-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}


/*==========  Non-Mobile First Method  ==========*/

/* Large Devices, Wide Screens */

@media (max-width: 1390px) {
    .cv-container {
        padding: 40px 170px;
    }

    .video-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1000px) {

    /* Esconder menu em telas pequenas */
    .menu-toggle {
        display: block;
        z-index: 10;
    }

    nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-items {
        display: none;
        flex-direction: column;
        width: 100%;
        background: rgba(0,0,0,0.8);
        padding: 20px;
    }

    .nav-items ul {
        flex-direction: column;
        width: 100%;
    }

    .nav-items ul li {
        margin: 15px 0;
    }

    .nav-items.show {
        display: flex;
    }

    .logo-responsive {
        display: flex;
        justify-content: flex-end;
        width: 86%;
        position: absolute;
    }
    .nav-items .logo {
        display: none;
    }

    .rightside {
        display: flex;
        justify-content: flex-end;
        width: 86%;
        position: absolute;
    }

    .button {
        padding: 10px 17px;
        font-size: 14px;
    }

    footer .logo a {
        position: inherit;
    }

    #footer-container .logo {
        margin-bottom: 35px;
    }

    footer .copyrights {
        font-size: 21px;
        padding-left: 34px;
    }

    .footer-social {
        margin-bottom: 20px;
    }
}

@media (max-width: 820px) {

    /* AJUSTANDO O BLOCO ABOUT ME */
    .section-aboutus {
        width: 100%;
    }

    .section-aboutus--right {
        width: 100%;
        margin-bottom: 30px;
    }

    .section-body {
        flex-direction: column-reverse; /* INVERTE A ORDEM - DEIXANDO A IMAGEM ANTES DO TEXTO  */
    }

    .cv-container {
        padding: 40px 20px;
    }

    .cv-contact {
        max-width: 100%;
    }


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

@media (max-width: 768px) {
    .img-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        height: 50vh;
    }

    .image-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 images per row on smaller screens */
    }

    .video-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .content h1 { font-size: 50px; }
    .content a { font-size: 15px; padding: 10px 30px; }
}

@media (max-width: 600px) {
    .section-aboutus {
        flex-direction: column;
        text-align: center;
    }

    .image-item {
        width: 100%;
    }

    .load-more-btn {
        font-size: 0.9rem;
        padding: 10px;
    }

    .video-item iframe{
        width: 100%;
        height: 525px;
    }

    .video-item video {
        width: 100%;
        height: 304px;
    }

    .contact-form input,
    .contact-form textarea {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .img-grid {
        grid-template-columns: 1fr;
    }

    /* Removi para ficar a apresentação no responsivo mais harmonica */
    /* .image-grid {
        grid-template-columns: 1fr; /* 1 image per row on very small screens 
    } */

    .content h1 { font-size: 35px; }
    .content a { font-size: 16px; padding: 8px 30px; }

    .contact-me {
        margin-top: 0px;
        margin-bottom: 0px;
    }

    .video-grid {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
    }
}

/* For the resume effect */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Images Gallery Scroll effect */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
