@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
}
html{
    font-size: 62.5%;
    scroll-behavior: Smooth;
}
body{
    width: 100%;
    height: 100vh;
    overflow-x: hidden;
    background-color: #0b0f0b;
    color: #c0cfb2;
}
header{
    margin-top: 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 9%;
    background-color: transparent;
    filter: drop-shadow(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}
.logo{
    font-size: 3rem;
    color: #c0cfb2;
    font-weight: 800;
    cursor: pointer;
    transition: 0.5s ease;
}
.logo:hover{
    transform: scale(1.1);
}
nav a{
    font-size: 1.8rem;
    color: #c0cfb2;
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}
nav a:hover,
nav a.active{
    color: #44624a;
    border-bottom: 3px solid 	#44624a;
}
@media(max-width:995px){
    nav{
        position: absolute;
        display: none;
        top: 0;
        right: 0;
        width: 40%;
        border-left: 3px solid #b74b4b;
        border-bottom: 3px solid #b74b4b;
        border-bottom-left-radius: 2rem;
        padding: 1rem solid;
        background-color: #161616;
        border-top: 0.1rem solid rgba(0,0,0,0.1);
    }
    nav.active{
        display: block;
    }
    nav a{
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }
    nav a:hover,
    nav a.active{
        padding: 1rem;
        border-radius: 0.5rem;
        border-bottom: 0.5rem solid #b74b4b;
    }
}
section{
    min-height: 100vh;
    padding: 5rem 9% 5rem;
}
.home{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    background-color:	#0b0f0b/*#44624a*/
}
.home .home-content h1{
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
}
span{
    color:	#8ba888
}
.home-content h3{
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}
.home-content p{
    font-size: 1.6rem;
}
.home-img{
    border-radius: 50%;
}
.home-img img{
    position: relative;
    width: 32vw;
    border-radius: 50%;
    box-shadow: 0 0 25px solid #b74b4b;
    cursor: pointer;
    transition: 0.2s linear;
}
.home-img img:hover{
    font-size: 1.8rem;
    font-weight: 500;
}
.social-icons a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background-color: transparent;
    border: 0.2rem solid #c0cfb2;
    font-size: 2rem;
    border-radius: 50%;
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease;
    color: #8ba888;
}
.social-icons a:hover{
    color: #8ba888;
    transform: scale(1.3) translateY(-5px);
    background-color: #c0cfb2;
    box-shadow: 0  0 25px #c0cfb2;
}
.btn{
    display: inline-block;
    padding: 1rem 2.8rem;
    background-color: rgba(0, 0, 0, 0);
    border-radius: 4rem;
    font-size: 1.6rem;
    color: #8ba888;
    letter-spacing: 0.3rem;
    font-weight: 600;
    border: 2px solid #8ba888;
    transition: 0.3s ease;
    cursor: pointer;
}
.btn:hover{
    transform: scale3d(1.03);
    background-color: #c0cfb2;
    color: black;
    box-shadow: 0 0 25px #c0cfb2;
}
.typing-text{
    font-size: 34px;
    font-weight: 600;
    min-width: 280px;
}
.typing-text span{
    position: relative;
}
.typing-text span::before{
    content: "software Developer";
    color: #b74b4b;
    animation: words 20s infinite;
}
.typing-text span::after{
    content: "";
    background-color: black;
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    border-left: 3px solid black;
    right: -8;
    animation: cursor 0.6s infinite;
}
@keyframes cursor{
    to{
        border-left: 3px solid #b74b4b;
    }
}
@keyframes words{
    0%, 20%{
        content: "Web Developer";
    }
    21%, 40%{
        content: "Developer";
    }
    41%, 60%{
        content: "Web Designer";
    }
    61%, 80%{
        content: "Youtuber";
    }
    81%, 100%{
        content: "Script Writer";
    }
}
@media (max-width: 1000px){
    .home{
        gap: 4rem;
    }
}
@media(max-width:995px){
    .home{
        flex-direction: column;
        margin: 5rem 4rem;
    }
    .home .home-content h3{
        font-size: 2.5rem;
    }
    .home-content h1{
        font-size: 5rem;
    }
    .home-img img{
        width: 70vw;
        margin-top: 4rem;
    }
}

/*Section Projects*/
.projects {
    display: flex;
    flex-direction: column; /* Change from default row to column */
    justify-content: flex-start; /* Align items at the start vertically */
    align-items: flex-start; /* Align items at the start horizontally */
    gap: 2rem; /* Reduce the gap since they'll be stacked vertically */
    background-color: #0b0f0b;
    padding: 5rem 9%;  
    
    
}

.game-projects {
    display: flex; /* Add flex to the container holding the cards */
    flex-direction: row; /* Make cards align horizontally */
    flex-wrap: wrap; /* Allow cards to wrap to next line if needed */
    gap: 2rem; /* Space between cards */
}


.projects-header  h1{
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
}

.projects .card-container  {
    text-align: left;
    color: transparent;
    display: inline-block;
    background-color: transparent; /*TODO: mudar para transparente*/
    font-size: 1rem;
    width: auto;
    min-height: 100%;
    line-height: 1.44;
    border-width: initial;
    border-style: none;
    border-color: initial;
    border-image: initial;
    padding: 24px;
    border-radius: 4px;
    margin: 8px 0px;
}

.projects .card-container .card{
    width: 576px ; /* Fixed width (like YouTube thumbnails) */
    height: 560px; /* Fixed height (adjust as needed) */
    background-color: 		rgba(23, 32, 15, 0.527);
 
    border-radius: 8px;
    overflow: hidden; /* Ensures content doesn't spill out */
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column; /* Stack image and content vertically */
}

.projects .card-container .card img {
    width: 100%;
    height: 325px;
    object-fit: cover;
    /* Reduce color strength (less saturation & brightness) */
    filter: saturate(0.7) brightness(0.9); /* Adjust values as needed */
    transition: filter 0.3s ease; /* Smooth transition on hover */
}

.projects .card-container .card img:hover {
    transform: scale(1.05);
    /* Reset to full color on hover */
    filter: saturate(1) brightness(1);
    

}

.projects .card-container .card-legend {
    display: flex;
    flex-direction: rp;
    position: relative;
    margin-left: 7px;
    margin-right: -32px;
    margin-bottom: -52px;
    left: -8px;
    background-color:#44624aa8;/* #8ba88863;*/
    top: -40px;
    font-size: 0.875rem;

}
 




.projects .card-container .card-content {
    padding: 10px;
    overflow: hidden; /* Hide overflow */
    height: 27.5rem;
     
    
}


.card-legend h1 {
    color: white;
    margin: 0;             /* Remove default h1 margins */
    font-size: 1.5  rem;       /* Adjust size as needed */
    white-space: nowrap;   /* Prevent text wrapping */
}

.legend-item {
    display: flex;         /* Align icon + text horizontally */
    align-items: center;
    gap: 8px;             /* Space between icon and text */
}

.legend-item img {
    max-width: 32px;          /* Use width/height (not max-width/height) */
    max-height: 32px;
    padding-left: 10px ;       /* Replaced by flex gap */
    padding-bottom: 4px;
}

.card-content h1 {
    padding-top: 2rem;
    color: #44624a;
    font-size: 3rem;       /* Adjust size as needed */
    white-space: nowrap;   /* Prevent text wrapping */
}


.card-content h2 {
    padding: 1rem;
    padding-left:0px;
    padding-top: 1px;
    color: #8ba888;
    font-size: 2.5rem;       /* Adjust size as needed */
    white-space: nowrap;   /* Prevent text wrapping */
}

.card-content h3 {
    padding: 1rem;
    padding-left:0px;
    padding-top: 1px;
    color: #c0cfb2;
    font-size: 1.5rem;       /* Adjust size as needed */
    white-space: normal;
    box-sizing: border-box;
}