:root{
    --main-bg-color: #f0f0f0;
    --main-bg-light: #fff;
    --main-text-color: #333;
    --main-text-light: #ccc;
    --primary-color: #007bff;
    --secondary-color: #003670;
    --light-color: #fff;
    --font-family: Arial, sans-serif;
    --header-height: 60px;
}
*{
    padding: 0;
    margin: 0;
}
html{
    font-size: 62.5%;
}
body{
    font-size: 1.5rem;
    font-family: var(--font-family);
    background-color: var(--main-bg-color);
    color: var(--main-text-color);

}
header{
    background-color: var(--primary-color);
    height: var(--header-height);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);

}
nav ul{
    display: flex;
    list-style: none;
    gap: 2rem;
}
nav a{
    text-decoration: none;
    color: var(--light-color);
    padding: 0.8rem 1.6rem;
    border-radius: 0.8rem;

}
nav a:hover{
    background-color: var(--secondary-color);
}
.nav-hide{
    display: none;
}
main{
    padding: 2rem;
    margin: auto;
    max-width: 120rem;
}
.hero{
    background-image: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--light-color);
    padding: 4rem 2rem;
    border-radius: 0.8rem;
    text-align: center;
}
.hero h1{
    margin-bottom: 2rem;
}

@keyframes bounce {
    0% {
        transform: scale(1);
    }
    50%{
        transform: scale(1.05);
    }
    100%{
        transform: scale(1);
    }
}


.hero .cta{
    display: block;
    text-decoration: none;
    background-color: var(--secondary-color);
    color: var(--light-color);
    margin: 2rem auto 0 auto;
    max-width: 40rem;
    padding: 1.5rem;
    border-radius: 0.8rem;
    animation-name: bounce;
    animation-duration: 2s;
    animation-iteration-count: infinite;
}

.about,
.services,
.portfolio,
.contact {
    text-align: center;
    padding: 4rem 2rem;
}
h2{
    margin-bottom: 2rem;
    text-align: center;
}
.about{
    border-bottom: 1px solid var(--main-text-light);
}
.about img{
    width: 100%;
    max-width: 40rem;
    border-radius: 0.8rem;
    margin-bottom: 1rem;
}
.about p{
    margin: 1rem auto;
    max-width: 60rem;
}

.service-area{
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.service-item{
    flex: 1;
    background-color: var(--main-bg-light);
    padding: 2rem;
    border-radius: 0.8rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}
.service-item h3{
    margin-bottom: 1rem;
}
.service-item .service-icon{
    font-size: 5rem;
}
.service-item:hover {
    transform: scale(1.05);
}

.area-portifolio {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
.grid-item img{
    width: 100%;
    border-radius: 0.8rem;
     box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
     transition: all 0.3s ease;
}
.grid-item img:hover{
    transform: scale(1.05);
}

form{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 40rem;
    margin: auto;
}
form label{
    text-align: left;
}

form input,
form textarea {
    padding: 1rem;
    border: 1px solid var(--main-text-light);
    border-radius: 0.8rem;
}

form button {
    background-color: var(--secondary-color);
    color: var(--light-color);
    border: 0;
    padding: 1rem;
    border-radius: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
form button:hover {
    background-color: var(--main-text-color);
    transform: scale(1.05);
}
footer {
    flex-direction: column;
    display: flex;
    gap: 1rem;
    text-align: center;
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 3rem;
}










@media (width > 700px) {
    .nav-hide{
        display: block;
    }
    .service-area{
        flex-direction: row;
    }
    .area-portifolio{
        grid-template-columns: repeat(2, 1fr);
    }

    footer {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
}