/* ======== GOOGLE FONTS ======== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root {
    /*=======header height========*/
    --header-height: 3rem;
  
    /*=======color========*/
    --first-color: #003170;
    --first-color-alt: #4a82fc;
    --text-color: rgb(5,5,5);
    --text-color-light: rgb(50, 50, 50);
    --body-color: rgb(245,245,245);
    --container-color: rgb(255,255,255);
  
    /*=======font size and typography========*/
    --body-font: 'Poppins', sans-serif;
    --biggest-font-size: 2.3rem;
    --h1-font-size: 1.7rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.3rem;
    --normal-font-size: 1.18rem;
    --small-font-size: 1.07rem;
    --smaller-font-size: 1rem;

    /*=======font weight========*/
    --font-medium: 400;
    --font-semi-bold: 600;
    --font-bold: 700;
  
    /*=======margins========*/
    --mb-0-25: 0.25rem;
    --mb-0-5: 0.5rem;
    --mb-0-75: 0.75rem;
    --mb-1: 1rem;
    --mb-1-25: 1.25rem;
    --mb-1-5: 1.5rem;
    --mb-2: 2rem;
    --mb-2-5: 2.5rem;
  
    /*=======z-index========*/
    --z-normal: 1;
    --z-tooltip: 10;
    --z-fixed: 100;
}
  
@media screen and (min-width: 1024px) {
    :root {
        --biggest-font-size: 3.5rem;
        --h1-font-size: 1.8rem;
        --h2-font-size: 1.5rem;
        --h3-font-size: 1.3rem;
        --normal-font-size: 1.15rem;
        --small-font-size: 1.05rem;
        --smaller-font-size: 0.9rem;
    }
}

/* ======== BASE ======== */
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: var(--header-height) 0 0 0;
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    font-weight: var(--font-medium);
    background-color: var(--body-color);
    color: var(--text-color);
}

h1, h2, h3 {
    color: var(--first-color);
    font-weight: var(--font-bold);
    font-family: var(--first-font);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

img, video {
    max-width: 100%;
    height: auto;
}

button, input {
    border: none;
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
}

button {
    cursor: pointer;
}

input {
    outline: none;
}

.main {
    overflow-x: hidden;
}

/* ======== REUSABLE CSS CLASSES ======== */
.section {
    padding: 3rem 0 2rem;
}

.section-title, .section-subtitle {
    text-align: center;
}

.section-title {
    font-size: var(--h1-font-size);
    color: var(--first-color);
    text-transform: capitalize;
    margin-bottom: var(--mb-2-5);
}

.section-subtitle {
    display: block;
    font-size: var(--smaller-font-size);
    font-weight: var(--font-semi-bold);
    color: var(--text-color-light);
}

.container {
    max-width: 1024px;
    margin-left: var(--mb-1);
    margin-right: var(--mb-1);
}

.grid {
    display: grid;
    gap: 1.5rem;
}

/* ======== HEADER ======== */
.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-fixed);
    background-color: transparent;
}

/* ======== NAV ======== */
.nav {
    height: var(--header-height);
    max-width: 1152px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.nav-logo {
    font-size: var(--h3-font-size);
    color: var(--container-color);
    font-weight: var(--font-bold);
}

.nav-logo span {
    color: var(--first-color-alt);
}

.nav-toggle {
    color: var(--container-color);
    font-size: 1.2rem;
    cursor: pointer;
}

.nav-menu {
    position: relative
}

@media screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        background-color: var(--body-color);
        top: 0;
        right: -100%;
        width: 80%;
        height: 90%;
        box-shadow: -1px 0 4px rgba(0,0,0,0.2);
        padding: 3rem;
        transition: 0.4s;
    }
}

.nav-list {
    display: flex;
    flex-direction: column;
    row-gap: 2.5rem;
}

.nav-link {
    color: var(--text-color-light);
    font-weight: var(--font-semi-bold);
    text-transform: uppercase;
}

.nav-link:hover {
    color: var(--text-color);
}

.nav-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    font-size: 1.5rem;
    color: var(--first-color);
    cursor: pointer;
}

/* Show menu */
.show-menu {
    right: 0;
}

/* ======== Change background header ======== */
.scroll-header {
    background-color: var(--first-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.scroll-header .nav-logo, .nav-toggle {
    color: var(--container-color);
}

/* ======== Active link ======== */
.active-link {
    position: relative;
    color: var(--first-color);
}

.active-link::before {
    content: '';
    position: absolute;
    background-color: var(--first-color);
    width: 100%;
    height: 2px;
    bottom: -0.5rem;
    left: 0;
}

/* ======== BUTTONS ======== */
.button {
    display: inline-block;
    background-color: var(--first-color);
    color: var(--container-color);
    padding: 0.8rem 1.2rem;
    font-weight: var(--font-semi-bold);
    transition: 0.5s;
}

.button:hover {
    background-color: var(--container-color);
    color: var(--first-color);
}

.services-btn {
    width: 150px;
    margin-left: auto;
    margin-right: auto;
}

.contact-btn {
    width: 200px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
}

/* ======== HOME ======== */
.home-img {
    width: 100%;
    height: 100vh;
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('images/inv1.jpg');
    background-position: center;
    background-size: cover;
    margin-top: -3rem;
}

.home-container {
    position: relative;
    height: calc(100vh - var(--header-height));
    align-content: center;
    row-gap: 3rem;
}

.home-data {
    text-align: center;
    padding-top: 9rem;
    margin: auto;
}

.home-data-title, .home-social-link {
    color: var(--container-color);
}

.home-data-title {
    font-size: var(--h1-font-size);
    font-weight: var(--font-medium);
    margin-bottom: var(--mb-2-5);
}

.home-social {
    margin-top: 2rem;
    margin-left: 90%;
    display: flex;
    flex-direction: column;
    row-gap: 1.5rem;
}

.home-social-link {
    font-size: 1.2rem;
    width: max-content;
}

.home-social-link:hover {
    color: var(--first-color-alt);
}

/* ======== ABOUT ======== */
.about-container {
    grid-template-columns: 1fr;
    row-gap: var(--mb-2);
}

.about-description {
    text-align: center;
}

.about-title {
    font-size: var(--h2-font-size);
    font-weight: var(--font-semi-bold);
    color: var(--first-color-alt);
    padding-bottom: var(--mb-2-5);
}

.about-img-bg {
    margin-top: var(--mb-2-5);
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.about-img, .about-square {
    width: 230px;
}

.about-square {
    height: 155px;
    background-color: var(--first-color);
}

.about-img {
    position: absolute;
    left: -1rem;
    top: -1rem;
}

/* ======== SERVICES ======== */
.services-container {
    grid-template-columns: 1fr;
    row-gap: var(--mb-2-5);
}

.services-content {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
    grid-template-columns: 1fr;
    max-width: 400px;
    padding: 2rem 1.5rem 1.5rem;
    row-gap: var(--mb-2);
    background-color: var(--container-color);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.services-title {
    font-size: var(--h2-font-size);
    color: var(--first-color-alt);
}

.services-img {
    margin-right: auto;
    margin-left: auto;
    width: 200px;
    height: 150px;
    background-position: center;
    background-size: cover;
}

.img1 {
    background-image: url("images/inv2.jpg");
}

.img2 {
    background-image: url("images/inv13.jpg");
}

.img3 {
    background-image: url("images/inv9.jpg");
}

.img4 {
    background-image: url("images/inv6.jpg");
}

.img5 {
    background-image: url("images/inv7.jpg");
}

.img6 {
    background-image: url("images/inv10.jpg");
}

/* ======== CONTACT ======== */
.contact-container {
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url("images/inv12.jpg");
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    grid-template-columns: 1fr;
    text-align: center;
    margin-right: auto;
    margin-left: auto;
}

.contact-icon {
    font-size: 7rem;
    color: var(--first-color-alt);
    font-weight: var(--font-bold);
    margin-top: 4rem;
    margin-right: auto;
    margin-left: auto;
}

.contact-description {
    color: var(--container-color);
    margin: 1.5rem;
}

/* ======== FOOTER ======== */
.footer-container {
    row-gap: 3rem;
}

.footer-content {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    row-gap: 2rem;
}

.footer-title, .footer-subtitle {
    font-size: var(--h3-font-size);
}

.footer-title {
    margin-bottom: var(--mb-1-5);
    color: var(--text-color-light);
}

.footer-title span {
    color: var(--first-color-alt);
}

.footer-description {
    margin-bottom: var(--mb-2);
}

.footer-social {
    font-size: 1.25rem;
    color: var(--title-color);
    margin-right: var(--mb-1-25);
}

.footer-subtitle {
    margin-bottom: var(--mb-1);
}

.footer-item {
    margin-bottom: var(--mb-0-75);
}

.footer-link {
    color: var(--text-color);
}

footer-link:hover {
    color: var(--title-color);
}

.footer-copy {
    color: var(--text-color-light);
    font-size: var(--small-font-size);
    text-align: center;
}

/* ======== MEDIA QUERIES ======== */
@media screen and (min-width: 576px) {
    .home-social-link {
        font-size: 1.5rem;
    }
    
    .about-img, .about-square {
        width: 350px;
    }
    
    .about-square {
        height: 235px;
    }

    .about-img {
        left: -2rem;
        top: -2rem;
    }

    .services-content {
        max-width: 700px;
    }
    
    .services-img {
        width: 450px;
        height: 300px;
    }

    .contact-icon {
        font-size: 12rem;
        margin-top: 7rem;
    }

    .contact-description {
        margin: 3rem;
    }

    .contact-btn {
        margin-bottom: 5rem;
    }
}

@media screen and (min-width: 768px) {
    body {
        margin: 0;
    }

    .nav {
        height: calc(var(--header-height) + 1.5rem);
    }

    .nav-link {
        color: var(--container-color);
        text-transform: initial;
    }
    
    .nav-link:hover {
        color: var(--body-color);
    }

    .nav-menu {
        display: flex;
        column-gap: 1rem;
    }

    .nav-list {
        flex-direction: row;
        column-gap: 3rem;
    }

    .nav-toggle, .nav-close {
        display: none;
    }

    .active-link {
        position: relative;
        color: var(--first-color-alt);
    }
    
    .active-link::before {
        content: '';
        position: absolute;
        background-color: var(--container-color);
        width: 100%;
        height: 2px;
        bottom: -0.5rem;
        left: 0;
    }

    .home-img {
        width: 100%;
        height: 100vh;
        margin-top: 0;
    }
    
    .home-container {
        height: 100vh;
    }

    .home-data {
        padding-top: 15rem;
    }

    .about-container {
        grid-template-columns: repeat(2, 1fr);
        column-gap: var(--mb-2-5);
        align-items: center;
    }

    .about-img, .about-square {
        width: 300px;
    }
    
    .about-square {
        height: 200px;
    }

    .about-img {
        left: -1.5rem;
        top: -1.5rem;
    }

    .services-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-content {
        max-width: 500px;
    }
    
    .services-img {
        width: 300px;
        height: 220px;
    }
}

@media screen and (min-width: 1024px) {
    .container {
        margin-left: auto;
        margin-right: auto;
    }

    .home-data {
        padding-top: 10rem;
    }

    .home-social {
        margin-left: 95%;
    }

    .services-container {
        grid-template-columns: repeat(3, 1fr);
    }

    .services-content {
        max-width: 500px;
    }
    
    .services-img {
        width: 250px;
        height: 180px;
    }

    .contact-container {
        grid-template-columns: repeat(3, 1fr);
        column-gap: var(--mb-2-5);
        align-items: center;
        padding-top: 10rem;
        padding-bottom: 8rem;
    }

    .contact-icon {
        font-size: 12rem;
        margin-top: 0;
    }
    
    .contact-description {
        margin: 0 2rem;
    }

    .contact-btn {
        margin-bottom: 0;
    }
}