*{
    box-sizing: border-box;
}
body {
    background-color:rgb(71, 122, 166);
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

main{
    max-width: 1200px;
    margin: 0 auto;
}
h1{
    font-size: 48px;
    letter-spacing: 2px;
    color: rgb(251, 251, 251);
}
h2{
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 700;
}
h3{
    font-size: 22px;
    margin-bottom: 10px;
}

header{
    padding: 20px 40px;
    background-color: rgb(30, 50, 65);
}
.header-content{
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav{
    display: flex;
    gap: 20px;
}
nav a{
    text-decoration: none;
    color: white;
    transition: 250ms;
}
nav a:hover{
    color:lightblue;
}

.button{
    padding: 15px;
    display: inline-block;
    border-radius: 20px;
    text-decoration: none;
    transition: 500ms;
}
.primary-button{
    background-color: lightblue;
    color: black;
    border: 2px solid black;
}
.secondary-button{
    background-color: transparent;
    color: black;
    border: 2px solid lightblue;
}
.primary-button:hover{
    background-color: rgb(106, 183, 206);
}
.secondary-button:hover{
    background-color: rgb(220, 107, 36);
}

.hero-buttons{
    display: flex;
    justify-content: center;
    gap: 15px;
}

#hero{
    background-color: rgb(215, 231, 236);
    padding: 60px 20px;
    text-align: center;
    border-radius: 20px;
    margin: 20px;
}
#hero h2{
    font-size: 40px;
    font-weight: 400;
}
#hero p{
    font-size: 18px;
}

.service-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.service{
    background-color: whitesmoke;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid black;
    min-height: 180px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: 0.5s;
}

.service h3{
    font-size: 22px;
    margin: 0 0 10px 0;
    color: rgb(30, 50, 65);
}
.service p{
    margin: 0 0 10px 0;
    line-height: 1.5;
}

.service:nth-child(odd):hover{
    background-color: rgba(216, 115, 32, 0.788);
}
.service:nth-child(even):hover{
    background-color: lightblue;
}

.service:hover{
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.service:last-child{
    grid-column: 1/-1;
}

section{
    margin-bottom: 40px;
}

#services{
    padding: 20px;
}
#contact{
    background-color: rgb(30, 50, 65);
    color: white;
    width: auto;
    border-radius: 15px;
    padding:30px 20px;
}

.contact-details{
    display: flex;
    gap: 50px;
}

.contact-item {
    padding: 15px;
    border: 1px solid lightblue;
    border-radius: 10px;
    flex: 1;
}
.contact-item a{
    color: white;
    text-decoration: none;
    transition: 500ms;
}
.contact-item a:hover{
    color: lightblue;
}

.footer-content{
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-column{
    flex: 1;
}
.footer-column:last-child{
    text-align: right;
}
footer{
    background-color: rgba(216, 115, 32, 0.788);
    color: white;
    padding: 30px 40px;
}

form{
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 700px;
    margin: 30px auto;
}
form input,
form select{
    padding: 12px;
}
form textarea{
    padding: 12px;
    min-height: 120px;
}

form input,
form select,
form textarea{
    width: 100%;
    border: 1px solid rgb(30, 50, 65);
    border-radius: 6px;
    transition: 200ms;
}

form input:focus,
form select:focus,
form textarea:focus{
    border-color: rgb(106, 183, 206);
    outline: none;
}

form button{
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background-color: lightblue;
    cursor: pointer;
    transition: 500ms;
}
form button:hover{
    background-color: rgba(216, 115, 32, 0.788);
    transform: translateY(-2px);
}

form label{
    font-weight: 600;
    margin-top: 5px;    
}

.form-message{
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 30px;
    max-width: 700px;
    margin: 15px auto;
}

.form-success {
    background-color: lightgreen;
    color: darkgreen;
}
.form-error {
    background-color: lightcoral;
    color: darkred;
}

@media (max-width: 600px){
    .header-content{
        flex-direction: column;
    }
    nav{
        margin-top: 15px;
    }
    #hero h2{
        font-size: 30px;
    }
    .hero-buttons{
        flex-direction: column;
    }
    .contact-details{
        flex-direction: column;
    }
    .footer-content{
        flex-direction: column;
    }
}