* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: Montserrat, sans-serif;
}

:root {
    --primary-900: 211 60% 7%;
    --primary-600: 212 61% 17%;
    --primary-300: 211 16% 65%;
    --primary-100: 210 35% 85%;
    --primary-50: 200 60% 99%;

    --secondary-900: 0 100% 10%;
    --secondary-600: 0 98% 25%;
    --secondary-300: 0 32% 70%;
    --secondary-100: 0 32% 93%;
    --secondary-50: 0 100% 99%;

}

html {
    scroll-behavior: smooth;
}

body {

    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    gap: 1em;
    padding: 1em 2em;
    min-height: 100vh;
    background: linear-gradient(0deg,rgba(7, 17, 28, 1) 0%, rgba(18, 47, 77, 1) 50%, rgba(7, 17, 28, 1) 100%);
    background-repeat: no-repeat;
    background-attachment: fixed;

}

header {
    max-width: 850px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    z-index: 999;
    background-color: hsl(var(--primary-50));
    padding: .75em 2em;
    border-radius: .25em;
    box-shadow: rgba(17, 12, 46, 0.15) 0px 48px 100px 0px;
}

header .progress-bar {
    position: absolute;
    bottom: .5em;
    margin: 0 auto;
    width: 1%;
    border: .15em solid hsl(var(--secondary-600));
    align-self: flex-end;
    visibility: hidden;

}

header a {
    color: hsl(var(--primary-900));
    text-decoration: none;
}

.ham-menu, .off-screen-menu {
    display: none;
}

.off-screen-menu {
    background-color:  hsl(var(--primary-900));
    color: hsl(var(--primary-50));
    box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px;
    height: 100vh;
    width: 100%;
    max-width: 450px;
    position: fixed;
    top: 0;
    right: -450px;
    display: flex;
    flex-direction: column;
    align-items: center;    
    justify-content: center;
    text-align: center;
    font-size: 2.25rem;
    transition: .3s ease;
}
.off-screen-menu.active {
    right: 0;
}

.off-screen-menu ul {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    margin-top: 3em;
    padding: 1em;
    
}

.off-screen-menu ul a li {
    font-size: 1.25rem;
}

.off-screen-menu .social-links i{
    color: hsl(var(--primary-50));
    font-size: 2.5rem;
}

.off-screen-menu .social-links {

    position: absolute;
    bottom: 2em;
    left: 1em;
}

/* ham menu */
.ham-menu {
    height: 50px;
    width: 40px;
    margin-left: auto;
    position: relative;
}
.ham-menu span {
    height: 5px;
    width: 100%;
    background-color: hsl(var(--primary-900));
    border-radius: 25px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: .3s ease;
}
.ham-menu span:nth-child(1) {
    top: 25%;
}
.ham-menu span:nth-child(3) {
    top: 75%;
}
.ham-menu.active span {
    background-color: white;
}
.ham-menu.active span:nth-child(1) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}
.ham-menu.active span:nth-child(2) {
    opacity: 0;
}
.ham-menu.active span:nth-child(3) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
}

header ul {
    display: flex;
    gap: 1em;
}

ul li {
    list-style: none;
    text-transform: uppercase;
    font-size: .75rem;
    font-weight: 700;
}

nav ul a {
    visibility: hidden;
}

li:hover {
    text-decoration: underline;
}

header button {
    padding: .75em 1em;
    background: none;
    border-radius: .25em;
    border: .21em solid hsl(var(--primary-900));
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
}

#home {
    min-height: 100vh;
    max-width: 850px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: hsl(var(--primary-50));
    border-radius: .25em;
}

#home button {
    padding: 1.1em 1em;
    background: hsl(var(--secondary-600));
    color: hsl(var(--primary-50));
    border: none;
    border-radius: .25em;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;

}

#home .intro, #home .div-img {
    width: 50%;
}

#home .intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: .75em 2em;
    gap: 1.5em;

}

#home .div-img {
    background: no-repeat url(./assets/hero.png);
    background-size: cover;
    border-radius: .25em;
    overflow: hidden;

    
}

#overlay {
    position: fixed; /* Sit on top of the page content */
  display: none; /* Hidden by default */
  width: 100%; /* Full width (cover the whole page) */
  height: 100%; /* Full height (cover the whole page) */
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.5); /* Black background with opacity */
  z-index: 2; /* Specify a stack order in case you're using a different order for other elements */
  cursor: pointer; /* Add a pointer on hover */
}

.div-img img {
    object-fit: cover;
    width: 100%;
    min-height: 100vh;
    visibility: hidden;
}

#home h1 {
    font-size: 2.75rem;
    font-weight: 800;
    visibility: hidden;
}

#home p {
    line-height: 1.5;
    font-size: 1.2rem;
    font-weight: 500;
    visibility: hidden;
}

#home button {
    visibility: hidden;
}

#about {
    max-width: 850px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1em;
    padding-bottom: 4em;
    background-color: hsl(var(--primary-50));
    border-radius: .25em;
}

button:hover {
    scale: 1.025;
    opacity: .8;
    transition: all .25s ease;
    cursor: pointer;
}

.title {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: .75em;
    margin-top: 1.5em;
    color: hsl(var(--secondary-600));
}

.title hr {
    width: 5em;
    border: .15em solid hsl(var(--secondary-600));
}

.vision {
    width: 90%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 4em;
    padding: 1em 2em;
    visibility: hidden;
}

.vision p {
    line-height: 1.75;
    font-size: .95rem;
}

.vision h3 {
    margin-bottom: 1em;
}

.vision img {
    width: 17.5em;
    height: 17.5em;
}

.vision >div {
    width: 50%;
}

.mission {
    width: 90%;
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: center;
    gap: 4em;
    padding: 1em 2em;
}

.mission p {
    line-height: 1.75;
    font-size: .95rem;
}

.mission h3 {
    margin-bottom: 1em;
}

.mission img {
    width: 17.5em;
    height: 17.5em;
}

.mission >div {
    width: 50%;
}

.divider {
    width: 1%;
    border: .1em solid hsl(var(--secondary-600));
    align-self: flex-end;
    visibility: hidden;
}

.title-contact {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: .75em;
    margin-top: 1.5em;
    color: hsl(var(--primary-50));
}

.title-contact hr {
    width: 5em;
    border: .15em solid hsl(var(--primary-50));
}

#services {
    max-width: 850px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1em;
    padding-bottom: 4em;
    background-color: hsl(var(--primary-50));
    border-radius: .25em;
}

.container-service {
    width: 90%;
    padding: 2em 2em;
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
}

.service {
    display: flex;
    flex-direction: column;
    gap: .5em;
    
}

.service img {
    width: 4em;
    opacity: .75;

}

.service p {
    font-size: .95rem;
    line-height: 1.75;
}

#contact {
    max-width: 850px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1em;
    padding-bottom: 4em;
    background: rgba(7, 17, 28, 0.11);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(2px) saturate(136%);
    -webkit-backdrop-filter: blur(2px) saturate(136%);
    border: 1px solid rgba(251, 253, 254, 0.58);
    border-radius: .25em;
}

.columns {
    display: flex;
    gap: 1em;
    width: 90%;
}

.get-touch {
    display: flex;
    flex-direction: column;
    gap: .75em;
    width: 50%;
    background: rgba(255, 255, 255, 0.082);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(2px) saturate(136%);
    -webkit-backdrop-filter: blur(2px) saturate(136%);
    border: 1px solid rgba(251, 253, 254, 0.58);
    border-radius: .25em;
    padding: 1em .75em;
    color: hsl(var(--primary-50));
}

.get-touch .info {
    display: flex;
    flex-direction: column;
    gap: .75em;
}

.info > div {
    display: flex;
    gap: .5em;
    background-color: hsl(var(--primary-50));
    color: hsl(var(--primary-900));
    padding: .75em;
    border-radius: .15em;
}

.info > div > div {
    display: flex;
    flex-direction: column;
    gap: .35em;
}

.call-us a, .email-us a {
    color: hsl(var(--primary-900));
    font-size: .85rem;
}

.address-one address {
    font-size: .85rem;
    font-weight: 500;
    width: 10em;
    line-height: 1.5;
}

.info-icons {
    background: none;
    padding: .15em;
    border: 1px solid hsl(var(--primary-600)/ .5);
    border-radius: .1em;
    color: hsl(var(--secondary-600));
}

.form {
    width: 50%;
    padding: 1em;
    background-color: hsl(var(--primary-50));
    border-radius: .25em;
}

.form form {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

form input {
    background-color: hsl(var(--primary-100));
    border: none;
    padding: .7em;
    border-radius: .15em;
}

.form form div {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap:.25em;
}

form label {
    font-family: Inter, sans-serif;
    font-size: .8rem;
    font-weight: 500;

}

form button {
    border: none;
    background-color: hsl(var(--secondary-600));
    border-radius: .25em;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1em;
    padding: .7em;
    text-transform: uppercase;
    font-weight: 600;
    color: hsl(var(--primary-50));
}

form textarea {
    background-color: hsl(var(--primary-100));
    border: none;
    padding: .7em;
    border-radius: .15em;
    resize: none;
}

.map {
    overflow: hidden;
    width: fit-content;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: .2em;

}

footer {
    max-width: 850px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: hsl(var(--primary-50));
    padding: .75em 2em;
    border-radius: .25em;
}
footer a {
    color: hsl(var(--primary-900));
    text-decoration: none;
}

footer ul {
    display: flex;
    gap: 1em;
}

ul li {
    list-style: none;
    text-transform: uppercase;
    font-size: .75rem;
    font-weight: 700;
}

.copyright {
    color: hsl(var(--primary-50));
    font-weight: 600;
    font-size: .75rem;
    margin: 0 auto;
    padding: 2em;
}

i {
    color: hsl(var(--primary-600));
}

i:hover {
    scale: 1.25;
    color: hsl(var(--primary-300));
    transition: all .25s ease-in-out;
}

@media (max-width: 1024px) {
    html, body {
        overflow-x: hidden;
        padding: 0;
    }

    header {
        position: fixed;
        top: 0;
        z-index: 999;
    }

    .ham-menu, .off-screen-menu {
        display: block;
    }

    .ham-menu {
        z-index: 99;
    }

    .off-screen-menu {
        z-index: 98;
    }

    .off-screen-menu a li {
    z-index: 999;
    color: hsl(var(--primary-50));
    }

    header nav, header button {
        display: none;
    }

    header {
        position: fixed;
        top: 0;
        z-index: 999;
        overflow: hidden;
    }

    #home .intro h1 {
        font-size: 2.5rem;
    }

    #home .intro p {
        font-size: 1rem;
    }

    .map {
        padding: 0 1em;
        width: 95%;
    }
}

@media (max-width: 600px) {

   html, body {
        overflow-x: hidden;
        padding: 0;
    }


    header {
        position: fixed;
        top: 0;
        z-index: 999;
    }

    .ham-menu, .off-screen-menu {
        display: block;
    }

    .ham-menu {
        z-index: 99;
    }

    .off-screen-menu {
        z-index: 98;
    }

    .off-screen-menu a li {
    z-index: 999;
    color: hsl(var(--primary-50));
    }


    header nav, header button {
        display: none;
    }

    #home {
        width: 100%;
        margin: 0 auto;
    }

    #home .intro h1 {
        font-size: 2.65rem;
    }
    
    #home .div-img {
        display: none;
    }

    #home  .intro {
        width: 100%;
    }


    .vision > div, .mission > div{
        width: 100%;
    }
    #about img {
        display: none;
    }

    #contact {

    }

    .columns {
        flex-direction: column;
    }

    .get-touch, .form {
        width: 100%;
    }

    .map {
        padding: 0 1em;
        width: 95%;
    }

    footer nav, footer button {
        display: none;
    }
}