/* default styles */
* {
    margin: 0;
    padding: 0;
}

/* html font-size */

html {
    font-size: 16px;
}

/* body section */

body {
    position: sticky;
    background-image: url(./img/DSCF0125.JPG);
    background-size: cover;
    background-attachment: fixed;

}

/* nav section located in header */

nav {
    background-color: rgba(0, 100, 0, 0.394);
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
    height: 8rem;
}

/* links styles */

nav a {
    color: rgb(13, 52, 13);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-align: center;
}

nav a:hover {
    font-size: 1.8rem;
    text-decoration: none;
    color: rgba(144, 238, 144, 0.414);
    text-align: center;
}

/* Intro section */

.title-container {
    margin: 10% 5% 0 5%;
    width: 90%;
    height: 35em;
    background-color: rgba(0, 255, 255, 0.344);
    word-spacing: 0.3rem;
    text-align: center;
    border: 4px double rgba(77, 77, 77, 0.593);
    border-radius: 5px;
}

h1 {
    padding: 5rem 0 4rem 0;
    font-size: 3rem;
}

.title-container p {
    color: rgb(33, 33, 33);
    font-size: 1.6rem;
    line-height: 4.5rem;
    font-weight: 600;
}

img {
    width: 100%;
    height: 100%;
    border-radius: 4px;
}

/* main section */

.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 2fr);
    grid-template-rows: auto;
    gap: 30px;
    max-width: 1400px;
    justify-items: center;
    justify-content: center;
    padding: 3rem 15%;
}

.grid-title {
    color: aliceblue;
    font-size: 1.5em;
    font-weight: 600;
    padding: 1rem;
}

/* images section */

.grid-img {
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    text-align: center;
}

.grid-img img {
    width: 200px;
    height: auto;
    border-radius: 6px;
    color: aliceblue;
    transition: transform 0.5s ease-out;
    overflow: hidden;
}

.hover-zoom {
    display: block;
    transition: transform 0.6s ease-in-out;
}

.hover-zoom:hover {
    position: absolute;
    /* Allow it to grow without restrictions */
    max-width: none;
    max-height: none;
    /* Enlarge the image on hover */
    transform: scale(3);
    /* Ensure it's above other elements */
    z-index: 10;
}

/* pl section */

.grid-container h2 {
    padding: 2rem 0;
    width: 100%;
    text-align: center;
    color: whitesmoke;
    font-size: 2rem;
    grid-column: span 4;
}

.pl-area {
    background-color: rgba(230, 39, 14, 0.500);
    grid-row: 1;
}

.pl-title {
    grid-row: 2;
}

.pl-img {
    grid-row: 3;
}

/* en section */

.en-area {
    margin-top: 2rem;
    background-color: rgba(121, 242, 236, 0.500);
    grid-row: 4;
}

.en1-title {
    grid-row: 5;
}

.en1-img {
    grid-row: 6;
}

.en2-title {
    grid-row: 7;
}

.en2-img {
    grid-row: 8;
}

/* sk section */

.sk-area {
    background-color: rgba(15, 191, 218, 0.500);
    justify-items: center;
    text-align: center;
    grid-row: 9;
}

.sk-title {
    grid-row: 10;
}

.sk-img {
    grid-row: 11;
}

/* contact section */

.contact {
    display: flex;
    gap: 1.5rem;
    justify-content: space-around;
    align-items: center;
    background-color: rgba(101, 107, 82, 0.582);
    width: 70%;
    height: 5rem;
    margin: 1% auto;
    border-radius: 1.2rem;
}

.contact h2 a {
    text-shadow: 0.5px 2px 12px rgb(214, 235, 247);
}

.contact h2 a:hover {
    color: rgb(140, 247, 247);
    text-decoration: none;
    font-size: 1.3rem;
}


/* footer section */

footer {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 100, 0, 0.805);
    width: 100%;
    height: 100px;
}

footer h3 {
    text-align: center;
    font-size: 1.5em;
    color: rgb(5, 36, 36);
}


/* @media section */

@media only screen and (max-width: 1520px) {

    .title-container {
        height: 30em;
    }

    h1 {
        font-size: 2.5rem;
    }

    .title-container p {
        font-size: 1.2rem;
    }
}

@media only screen and (max-width: 1170px) {

    .title-container {
        height: 27em;
    }

    h1 {
        font-size: 2rem;
    }

    .title-container p {
        font-size: 1rem;
        line-height: 3.5rem;
    }

    .contact h2 a {
        font-size: 1.2rem;
    }

}

@media only screen and (max-width: 1000px) {

    .title-container p {
        padding: 0 5%;
        font-size: 1rem;
        line-height: 2rem;
    }

    footer h3 {
        font-size: 1.8rem;
    }
}

@media only screen and (max-width: 940px) {

    body {
        background-position: center;
    }

    .grid-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        max-width: 900px;
    }

    .grid-img img {
        width: 300px;
        height: auto;
    }

    .grid-container h2 {
        font-size: 1.5rem;
        width: 80%;
    }

    .hover-zoom {
        transition: none;
    }

    .contact {
        justify-content: center;
        width: 90%;
    }

    footer h3 {
        font-size: 1.5rem;
    }
}

@media only screen and (max-width: 800px) {

    .contact {
        height: 7rem;
        flex-direction: column;
        align-items: center;
        flex-wrap: wrap;
    }
}

@media only screen and (max-width: 600px) {
    nav {
        padding: 2rem 0;
        flex-direction: column;
        gap: 1.5rem;
        height: auto;
    }

    .grid-img img {
        width: 200px;
        height: auto;
    }
}

@media only screen and (max-width: 550px) {

    h1 {
        padding: 2rem 0;
        font-size: 1.5rem;
        font-weight: 900;
    }

    .grid-title {
        font-size: 1.3em;
    }

    .contact {
        column-gap: 0.1rem;
        row-gap: 0.5rem;
        height: 6rem;
        border-radius: 0%;
        justify-content: center;
        width: 100%;
    }

    .contact h2 a {
        font-size: 0.9rem;
    }

    footer h3 {
        font-size: 1.2em;
        padding: 0 5%;
        line-height: 1rem;
    }
}

@media only screen and (max-width: 390px) {
    .title-container {
        word-spacing: 0.1rem;
    }

    .title-container p {
        font-size: 0.8rem;
    }

    .grid-title {
        font-size: 1em;
    }

    footer {
        height: 50px;
    }

    footer h3 {
        font-size: 1em;
        padding: 0 5%;
    }

}