* {
    margin: 0;
    padding: 0;
    font-family: "Roboto", sans-serif;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
}

:root {
    --bg-color: #1f242d;
    --second-bg-color: #323946;
    --text-color: #fff;
    --main-color: #aaf1ff;

}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
        overflow-x: hidden;

}

section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: var(--bg-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.header .sticky {
    border-bottom: .1rem solid rgba(0, 0, 0, .2);
}

.logo {
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 600;
    cursor: default;
}

.navbar a {
    font-size: 1.7rem;
    color: var(--text-color);
    margin-left: 4rem;
}

.navbar a:hover,
.navbar .active {
    color: var(--main-color);
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--text-color);
    display: none; 
}



.home {
    display: flex;
    justify-content: center;
    align-items: center;
    
}

.home-img img {
    width: 25vw;
    animation: flutuar 4s ease-in-out infinite;
    margin-left: 15rem;
}

@keyframes flutuar {
    0%{
        transform: translateY(0);
    }
     50%{
        transform: translateY(-2.4rem);
    }
     100%{
        transform: translateY(0);
    }
}

.home-content h3 {
    font-size: 3.6rem;
    font-weight: 700;

}

.home-content h3:nth-of-type(2) {
    margin-bottom: 2rem;
}

span {
    color: var(--main-color);
}

.home-content h1 {
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-content p {
    font-size: 1.5rem;
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    margin: 2rem 1.5rem 3rem 0;
    transition: .5s ease;
   
}

.social-media a:hover {
    background: var(--main-color);
    color: var(--second-bg-color);
    box-shadow: 0 0 1rem var(--main-color);
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--main-color);
    font-size: 1.6rem;
    color: var(--second-bg-color);
    letter-spacing: .1rem;
    font-weight: 600px;
    transition: 3s ease;
}

.btn:hover {
    box-shadow: none;
}

.sobre {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--second-bg-color);
    gap: 10rem;
}

.about-img img {
    width: 25vw;
    top: 50rem;
}

.heading {
    text-align: center;
    font-size: 4.2rem;
}

.home-content h2 {
    text-align: left;
    line-height: 1.7;
}

.home-content h3 {
    font-size: 2.6rem;
}

.home-content p {
    font-size: 1.6rem;
    margin: 2rem 0 3rem;
    line-height: 3rem;
    font-weight: 300;
}

/*Custumizando a parte de serviços*/
.serviços h2 {
    margin-bottom: 5rem;
}

.serviços-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.serviços-container .serviços-box {
    flex: 1 1 30rem;
    background: var(--second-bg-color);
    padding: 3rem 2rem 4rem;
    border-radius: 2rem;
    text-align: center;
    border: .2rem solid var(--bg-color);
    transition: .5s ease;
}

.serviços-container .serviços-box:hover {
    border-color: var(--main-color);
    transform: scale(1.02);
}

.serviços-box i {
    font-size: 7rem;
    color: var(--main-color);
}

.serviços-box h3 {
    font-size: 2.5rem;
    font-weight: 400;
}

.serviços-box p {
    font-size: 1.5rem;
    margin: 1rem 0 3rem;
    font-weight: lighter;
}

/*Estelizando o meu portfolio*/
.portfolio {
    background: var(--second-bg-color);
    padding: 6rem 2rem;
}

.projetos-caixa {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;


}

.projetos-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    backdrop-filter: blur(5px);
    overflow: hidden;
    transition: all 0.5s ease;
    cursor: pointer;
}

.projetos-card:hover {
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.2);
    transform: translateY(-10px) scale(1.03);
}

.projetos-imagem {
    height: 200px;
    width: 100%;
    object-fit: cover;

}

.info-projetos {
    margin-bottom: 5px;
    text-align: center;
    font-size: 2.10rem;
}

.paragrafo-projetos {
    color: var(--text-color);
    line-height: 0.25rem;
    text-align: center;
    font-size: 1.50rem;
}

.caixa-textos-projetos {
    padding: 1.5rem;
}

.portfolio h2 {
    margin-bottom: 4rem;

}


/*Estelizando o meu contacto*/
.contacto h2{
    margin-bottom: 3rem;
}

.contacto form {
    max-width: 70rem;
    margin: 1rem auto;
    text-align: center;
    margin-bottom: 3rem;
}

.contacto form .input-box {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.contacto form .input-box input,
.contacto form textarea {
     width: 100%;
     padding: 1.5rem;
     font-size: 1.6rem;
     color: var(--text-color);
     background: var(--second-bg-color);
     border-radius: .8rem;
     margin: .7rem 0;
}

.contacto form textarea {
    resize: none;
}

.contacto form .btn {
    cursor: pointer;
    margin-top: 2rem;
}

/*Meu footer*/
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 9%;
    background: var(--second-bg-color);

}

.footer-text p{
    font-size: 1.6rem;
}

.footer-iconTop a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem;
    background: var(--main-color);
    border-radius: .8rem;
    transition: .5s ease;
}

.footer-iconTop a:hover{
    box-shadow: 0 0 1rem var(--main-color);
}

.footer-iconTop a i{
    font-size: 2.4rem;
    color: var(--second-bg-color);
}

/* Menu Hamburguer */
.menu-hamburguer {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 30px;
    height: 25px;
    justify-content: space-between;
    z-index: 1001;
}
.menu-hamburguer span {
    display: block;
    height: 4px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    transition: 0.4s;
}

/* Navbar Responsivo */
@media (max-width: 768px) {
    .navbar {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        height: 100vh;
        background: var(--bg-color);
        width: 100vw;
        flex-direction: column;
        align-items: flex-start;
        box-shadow: 0 8px 32px rgba(0,0,0,0.18);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-100%);
        transition: opacity 0.4s, transform 0.4s;
        z-index: 1000;
        padding-top: 80px;
    }
    .navbar.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
    .navbar a {
        display: block; /* Cada link ocupa uma linha */
        padding: 18px 32px;
        width: 100%;
        border-bottom: 1px solid #222;
        color: var(--text-color);
        font-weight: 500;
        transition: background 0.2s;
        font-size: 2rem;
        margin-left: 0; /* Remove o espaçamento lateral */
    }
    .navbar a:hover {
        background: var(--second-bg-color);
    }
    .menu-hamburguer {
        display: flex;
    }
    .home-img {
        display: none;
    }
}

/* Efeito corte suave no menu hamburguer */
.menu-hamburguer.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-hamburguer.active span:nth-child(2) {
    opacity: 0;
}
.menu-hamburguer.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/*Pontos que o site quebra*/
@media (max-width: 1200px){
    html{
        font-size: 55%;
    }
}

@media (max-width: 994px) {
    .header {
        padding: 2rem 3%;
    }

    section {
        padding: 10rem 3% 2rem;
    }

    .serviços {
        padding-bottom: 7rem;
    }

    .portfolio {
        padding-bottom: 7rem;
    }

    .projetos-caixa{
        justify-content: center;
        width: 100%;
    }

    .footer{
        padding: 2rem 3%;
    }
}

/* Responsividade para a section home e sobre */
@media (max-width: 994px) {
    .home {
        flex-direction: column;
        align-items: center;
        padding: 6rem 2rem 2rem;
        gap: 2rem;
    }
    .home-content {
        text-align: center;
        width: 100%;
    }
    .home-img img {
        width: 60vw;
        max-width: 320px;
        height: auto;
        margin: 0 auto;
        display: block;
    }
    .sobre {
        flex-direction: column;
        align-items: center;
        padding: 6rem 2rem 2rem;
        gap: 2rem;
    }
    .about-img img {
        width: 60vw;
        max-width: 320px;
        height: auto;
        margin: 0 auto 2rem auto;
        display: block;
    }
    .sobre .home-content {
        text-align: center;
        width: 100%;
    }
    .heading {
        font-size: 2.5rem;
    }
    .home-content h1 {
        font-size: 4rem;
    }
    .home-content h3,
    .sobre .home-content h3 {
        font-size: 2rem;
    }
    .home-content p,
    .sobre .home-content p {
        font-size: 1.7rem;
        line-height: 1.9;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 430px) {
    .home {
        padding: 4rem 1rem 1rem;
    }
    .home-img img,
    .about-img img {
        width: 85vw;
        max-width: 220px;
    }
    .home-content h1 {
        font-size: 2.9rem;
    }
    .home-content h3,
    .sobre .home-content h3 {
        font-size: 1.6rem;
    }
    .home-content p,
    .sobre .home-content p {
        font-size: 1.5rem;
        line-height: 1.7;
    }
    .heading {
        font-size: 2rem;
    }

    .footer-iconTop a{
     margin-left: 40rem;
    }

    .footer-text p{
        font-size: 1.3rem;
    }

   
}

