:root {
    --bg1: white;
    --bg2: rgb(4, 0, 65);
    --accent1: rgb(0, 135, 255);
    --accent1light: cyan;
    --textdark: black;
    --textlight: white;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Georgia, 'Times New Roman', Times, serif;
}
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-padding-top: 56px;
    background-color: var(--bg1);
}
html::-webkit-scrollbar {
    display: none;
}
section {
    scroll-snap-align: center;
    scroll-snap-stop: always;
}
a {
    text-decoration: none;
}
.behindnav {
    height: 56px;
}

/* NAVBAR START */

nav {
    width: 100vw;
    height: 56px;
    background-color: var(--bg2);
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0px;
    left: 0px;
    z-index: 10;
}
.nav-contents {
    width: 100%;
    max-width: 1300px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem;
}
.nav-contents-left {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    z-index: 10;
    background-color: var(--bg2);
    height: 56px;
}
.nav-contents-left img {
    border-radius: 50%;
}
.nav-contents-left h1 {
    color: var(--textlight);
}
.menu-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.3rem;
}
.menu-links a {
    padding: 6px 14px;
    border-radius: 16px;
    color: var(--textlight);
    background-color: transparent;
    border: 1.6px solid white;
    transition: all 0.3s ease;
}
.menu-links a:hover {
    background-color: var(--accent1);
    border: 1.6px solid var(--accent1);
    transition: all 0.3s ease;
}
.menu {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    right: 1rem;
    top: 1rem;
    display: none;
}
.menu:hover {
    scale: 1.1;
}
.menu:active {
    scale: .95;
}
.menu-links.active {
    top: 56px;
    transition: all 0.3s ease-out;
}
@media screen and (max-width: 630px) {
    .menu {
        display: flex;
        justify-content: center;
        align-items: center;
        position: fixed;
        right: 1rem;
    }
    .menu-links {
        flex-direction: column;
        position: fixed;
        top: -500px;
        left: 0;
        width: 100%;
        gap: 0px;
        transition: all 0.3s ease-out;
        background-color: var(--bg2);
        
    }
    .menu-links a {
        background-color: var(--bg2);
        width: 100%;
        padding: 1.2rem;
        text-align: center;
        border: none;
    }
    .menu-links a:hover {
        background-color: rgb(0, 2, 99);
        border: none;
    }
}
/* NAVBAR END */

/* HERO START  */

#hero {
    width: 100vw;
    height: fit-content;
}
.hero-contents {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
    max-width: 1300px;
    min-height: calc(100vh - 56px);
    padding: 2rem;
}
.hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-right img:hover {
    scale: 1.05;
}
.hero-left, .hero-right {
    margin: 1rem 2rem;
}
.textbox.in-view {
    opacity: 1;
    transition: all 1s ease;
    transform: translate(0vw, 0);
}
.textbox {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    opacity: 0;
    gap: 1rem;
    transition: all 1s ease;
    transform: translate(-45vw, 0);
}

.hero-right img {
    opacity: 0;
    transition: all 1s ease;
}
.hero-right img.in-view {
    opacity: 1;
    transition: all 1s ease;
    transition-delay: .2s;
}
.textbox h1 {
    font-size: 2rem;
}
.btns {
    display: flex;
    justify-content: left;
    align-items: center;
    gap: 1rem;
    width: 100%;
}
.button {
    border-radius: 20px;
    padding: 10px 15px;
}
.button:hover {
    scale: 1.1;
}
.button:active {
    scale: .95;
}
.btn1 {
    background-color: var(--accent1);
    color: var(--textlight);
    border: 2px solid var(--accent1);
    transition: all 0.3s ease;
}
.btn1:hover {
    background-color: transparent;
    color: var(--textdark);
    border: 2px solid var(--textdark);
    transition: all 0.3s ease;
}
.btn2 {
    background-color: transparent;
    color: var(--textdark);
    border: 2px solid var(--textdark);
    transition: all 0.3s ease;
}
.btn2:hover {
    background-color: var(--accent1);
    color: var(--textlight);
    border: 2px solid var(--accent1);
    transition: all 0.3s ease;
}

/* HERO END */

/* ABOUT START  */

.title {
    width: 100%;
    font-size: 2rem;
    margin-bottom: 3rem;
    text-align: center;
}
#about {
    background-color: var(--bg2);
    width: 100vw;
    height: fit-content;
    padding: 4rem 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
}
#about2 {
    background-color: transparent;
    width: 100vw;
    height: fit-content;
    padding: 4rem 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
}
#about img:hover, #about2 img:hover {
    scale: 1.05;
}
.about-contents2 {
    width: 100%;
    max-width: 1300px;
    color: var(--textdark);
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.about-contents {
    width: 100%;
    max-width: 1300px;
    color: var(--textlight);
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.about-contents img {
    border-radius: 50%;
}
.about-contents p {
    text-align: justify;
}
.about-text {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}
.about2 {
    flex-direction: row-reverse;
}
.about2 img {
    border-radius: 50%;
}
/* ABOUT END */

/* SERVICES START */

#services {
    width: 100%;
    padding: 4rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--bg2);
    color: var(--textlight);
}
.services-contents {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    justify-items: center;
    gap: 1rem;
}
.service-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 1rem;
}
.service-card:hover {
    scale: 1.05;
}
.image {
    width: 120px;
    height: 120px;
    background-color: white;
    border-radius: 20px;
    padding: 10px;
}

/* SERVICES END */

/* CONTACT START */

#contact {
    width: 100%;
    height: fit-content;
    background-color: transparent;
    color: var(--textdark);
    padding: 4rem 1rem 5rem 1rem;
}

.contact-contents {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.contact-wrap {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
    gap: 1.5rem;
}
.contact-left, .contact-right {
    width: fit-content;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}
.contact-right.in-view {
    animation-name: bounce;
    animation-direction: alternate;
    animation-iteration-count: 2;
    animation-timing-function: ease;
    animation-duration: .3s;
    animation-delay: .5s;
}
@keyframes bounce {
    0% {
    }
    100% {
        scale: 1.15;
    }
}
.contact-left {
    gap: 0.8rem;
}
form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 280px;
    max-width: 500px;
    gap: 1rem;
}
.contactbtn {
    border: 2px solid var(--accent1);
}
.contactbtn:hover {
    border: 2px solid gray;
} 
.form-input {
    width: 100%;
    font-size: 1rem;
    padding: 6px;
    color: var(--textlight);
    border-radius: 5px;
    border-style: solid ;
    color: var(--textdark);
}
.form-input:hover {
    scale: 1.05;
}
.form-input:focus {
    outline: 2px solid var(--accent1);
    border: transparent;
}
.contact-left {
    align-items: left;
}
.contact-left a{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    width: 100%;
}
.contact-left img:hover {
    scale: 1.15;
}

/* CONTACT END */


/* FOOTER START */

#footer {
    background-color: var(--bg2);
    color: var(--textlight);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    text-wrap: wrap;
    padding: 1rem 2rem;
}

/* FOOTER END */

/* MEDIAS START */

@media screen and (max-width: 1000px) {
    .hero-contents {
        flex-direction: column-reverse;
        justify-content: center;
        align-items: center;
    }
    .textbox {
        align-items: center;
        text-align: center;
    }
    .btns {
        justify-content: center;
    }
    .about-text img {
        width: 250px;
    }
    .about-text p {
        font-size: 1rem;
    }
}
@media screen and (max-width: 800px) {
    .about-text {
        flex-direction: column;
    }
    .about-text img {
        width: 150px;
    }

}
@media screen and (max-width: 600px) {
    .hero-right img {
        width: 300px;
    }
}
@media screen and (max-width: 430px) {
    .hero-right img {
        width: 250px;
    }
    .hero-contents {
        padding: 1.1rem;
    }
    .hero-left, .hero-right {
        margin: 1rem;
    }
    #about {
        padding: 3rem 1.1rem;
    }
    #about2 {
        padding: 3rem 1.1rem;
    }
    .textbox {
        align-items: flex-start;
        text-align: left;
    }
    .btns {
        justify-content: left;
    }
}
@media screen and (max-width: 400px) {
    .nav-contents-left h1 {
        font-size: 1.1rem;
    }
}
@media screen and (max-width: 345px) {
    .services-contents {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}
/* MEDIAS END */