* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    scroll-behavior: smooth;
}

/* ------------- START HEADER -------------- */
header ul {
    display: flex;
    flex-direction: row;
    justify-content: center;
    list-style: none;
    align-items: center;
}
header ul li {
    padding: 10px;
    margin-top: 10px;
}
header ul li a {
    text-decoration: none;
    color: #0095ff;
    font-size: 1.1em;
    transition: 0.5s;
}
header ul li a:hover {
    color: #4a4a4b;
}
/* --------------- END HEADER -------------- */
/* --------- START FOR ALL SECTIONS -------- */
section.sec1, section.sec4 {
    min-height: 100vh;
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    margin-left: auto;
    margin-right: auto;
}
section.sec2, section.sec3 {
    min-height: 110vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}
section:not(.sec4) {
    width: 80%;
}
section.sec4 {
    width: 100%;
}
/* ---------- END FOR ALL SECTIONS --------- */
/* ------------- START SEC.1 -------------- */
section.sec1 div {
    flex-basis: 50%;
}
section.sec1 div:first-child {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
section.sec1 div:last-child {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}
section.sec1 div:first-child h1 {
    font-size: 3em;
    margin: 10px;
}
section.sec1 div:first-child p {
    width: 90%;
    color: #565555;
    line-height: 2em;
    margin: 10px;
}
section.sec1 div:first-child button {
    width: 150px;
    height: 40px;
    background-color: red;
    padding: 13px 5px;
    border-radius: 5px;
    margin: 10px;
    border: none;
    position: relative;
}
section.sec1 div:first-child button a {
    color: white;
    text-decoration: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 100%;
    z-index: 2;
}
section.sec1 div:first-child button::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background-color: #4a4a4b;
    border-radius: 5px;
    transition: 0.5s;
}
section.sec1 div:first-child button:hover::before {
    cursor: pointer;
    width: 100%;
    z-index: 1;
}
section.sec1 div:last-child img {
    width: 90%;
}
/* -------------- END SEC.1 -------------- */
/* ------------- START SEC.2 -------------- */
section.sec2 h2 {
    font-size: 2em;
    width: 100%;
    padding-bottom: 10px;
}
section.sec2 div {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
}
section.sec2 div div {
    flex-basis: calc(97% / 3);
}
section.sec2 div figure div {
    overflow: hidden;
}
section.sec2 div figure img {
    max-width: 100%;
    transition: 1s;
}
section.sec2 div figure img:hover {
    transform: scale(1.1);
    transition: 1s;
}
section.sec2 div figure figcaption {
    text-align: center;
}
section.sec2 div figure figcaption p {
    margin: 10px;
    padding: 5px;
}
section.sec2 div figure figcaption p:first-child {
    font-size: 1.5em;
    font-family: system-ui;
}
section.sec2 div figure figcaption p:last-child {
    color: red;
}
/* -------------- END SEC.2 -------------- */
/* ------------- START SEC.3 -------------- */
section.sec3 {
    align-items: center;
}
section.sec3 h2 {
    width: 100%;
    text-align: center;
    padding-bottom: 20px;
    font-size: 2em;
}
section.sec3 > p {
    width: 70%;
    text-align: center;
    margin-bottom: 15px;
    color: #565555;
}
section.sec3 div {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    flex-wrap: wrap;
}
section.sec3 div div {
    flex-basis: calc(80% / 3);
}
section.sec3 div figure img {
    max-width: 100%;
}
section.sec3 div figure figcaption {
    text-align: center;
}
section.sec3 div figure div.caption {
    width: 100%;
    position: relative;
}
section.sec3 div figure div.caption::before {
    content: '';
    width: 100%;
    height: 5px;
    background-color: rgb(173, 0, 0);
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    transition: 0.2s;
}
section.sec3 div figure div.caption:hover::before {
    height: 100%;
    transition: 0.5s;
}
p.hid {
    display: none;
}
section.sec3 div figure div.caption:hover figcaption {
    display: none;
}
section.sec3 div figure div.caption:hover p.hid {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    height: 79px;
}
section.sec3 div figure div.caption:hover p.hid a {
    color: white;
    font-size: 26px;
    font-weight: bold;
    text-decoration: none;
}
section.sec3 div figure figcaption p {
    font-size: 1.5em;
    font-family: system-ui;
    margin: 5px 0px;
}
section.sec3 div figure > p {
    text-align: center;
    margin-top: 20px;
    font-size: 1.5em;
    font-family: system-ui;
    color: red;
    font-weight: bold;
    background-color: rgb(228, 228, 228);
    border-radius: 12px;
}
/* -------------- END SEC.3 -------------- */
/* ------------- START SEC.4 -------------- */
section.sec4 div {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
}
section.sec4 div .div1 {
    flex-basis: 49%;
    height: 80%;
}
section.sec4 div .div2 {
    flex-basis: 24%;
    height: 80%;
}
section.sec4 div div.img3and4 {
    flex-basis: 24%;
    height: 80%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}
.div3, .div4  {
    width: 100%;
    height: 49%;
}
.img1, .img2 , .img3 , .img4 {
    max-width: 100%;
    transform: scale(1.2);
    transition: 1.5s all;
}
.div1, .div2, .div3, .div4 {
    overflow: hidden;
    position: relative;
}
.div1::after, .div2::after, .div3::after, .div4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0, 0, 0, 0);
    transition: 1.5s all;
}
.div1:hover::after, .div2:hover::after, .div4:hover::after, .div4:hover::after {
    background-color: rgb(0, 0, 0, 0.6);
}
.div1:hover .img1, .div2:hover .img2, .div3:hover .img3, .div4:hover .img4 {
    transform: scale(1.109);
}
/* --------------- END SEC.4 ---------------- */
/* ------------------------------------------ */


/* ------------------------------------------ */
/* --------------- Media Query -------------- */
/* >>>>>>>>>> BETWEEN 800px and 1000px <<<<<<<<< */ 
@media screen and (max-width:1000px) {
    section.sec1 div:first-child {
        align-items: center;
    }
    section:not(.sec4) {
        width: 95%;
    }
    section.sec1 div:first-child h1 {
        font-size: 2.8em;
        text-align: center;
    }
    section.sec1 div:first-child p {
        text-align: center;
    }
    section.sec1 div:first-child button {
        text-align: center;
    }
    section.sec4 div {
        flex-direction: row;
        justify-content: space-evenly;
        align-items:center;
        flex-wrap: wrap;
    }
    section.sec4 div .div1 {
        flex-basis: 48.5%;
        height: 40%;
    }
    section.sec4 div .div2 {
        flex-basis: 48.5%;
        height: 40%;
    }
    section.sec4 div div.img3and4 {
        flex-basis: 98%;
        height: 40%;
        flex-direction: row;
        justify-content: space-between;
        align-items: baseline;
        margin-top: -100px;
    }
    .div3, .div4 {
        width: 49.3%;
        height: 100%;
    }
}

/* >>>>>>>>>>>> BETWEEN 600px and 800px <<<<<<<<<<< */ 
@media screen and (max-width:800px) {
    section.sec1 div:first-child h1 {
        font-size: 2.1em;
    }
    section.sec2 div div {
        flex-basis: calc(97% / 2);
    }
    section.sec2 div {
        justify-content: space-around;
    }
    section.sec2 h2 {
        text-align: center;
    }
    section.sec3 div div {
        flex-basis: calc(80% / 2);
    }
    section.sec3 h2 {
        margin-top: 50px;
    }
    section.sec4 div {
        flex-direction: row;
        justify-content: space-evenly;
        align-items:center;
        flex-wrap: wrap;
    }
    section.sec4 div .div1 {
        flex-basis: 48.5%;
        height: 40%;
    }
    section.sec4 div .div2 {
        flex-basis: 48.5%;
        height: 40%;
    }
    section.sec4 div div.img3and4 {
        flex-basis: 98%;
        height: 40%;
        flex-direction: row;
        justify-content: space-between;
        align-items: baseline;
        margin-top: -100px;
    }
    .div3, .div4  {
        width: 49.3%;
        height: 100%;
    }
}

/* >>>>>>>>>>> BETWEEN 385px and 600px <<<<<<<<<<< */
@media screen and (max-width:600px) {
    section.sec1, section.sec4 {
        flex-direction: column;
    }
    section.sec1 div:first-child {
        align-items: center;
    }
    section.sec1 div:last-child {
        justify-content: center;
        margin-bottom: 30px;
    }
    section:not(.sec4) {
        width: 95%;
    }
    header ul li {
        margin-top: 20px;
    }
    section.sec1 div:first-child h1 {
        font-size: 2em;
        margin-top: 25px;
    }
    section.sec1 div:first-child p {
        text-align: center;
    }
    section.sec1 div:first-child button {
        margin-bottom: 30px;
    }
    section.sec2 h2 {
        text-align: center;
        margin-top: 35px;
    }
    section.sec2 div div {
        flex-basis: 95%;
    }
    section.sec2 div {
        justify-content: center;
    }
    section.sec3 div div {
        flex-basis: 80%;
    }
    section.sec3>p {
        width: 85%;
    }
    section.sec3 h2 {
        margin-top: 50px;
    }
    section.sec4 div {
        flex-direction: column;
        justify-content: space-evenly;
        align-items: center;
    }
    section.sec4 div .div1 {
        width: 90%;
        margin-top: 50px;
    }
    section.sec4 div .div2 {
        width: 90%;
        margin-top: 20px;
    }
    section.sec4 div div.img3and4 {
        width: 90%;
        margin-top: 20px;
    }
    .div3, .div4 {
        width: 100%;
        height: 40%;
        margin-bottom: 20px;
    }
}

/* >>>>>>>>>>>>>> 385px and BELOW <<<<<<><<<<< */
@media screen and (min-width:0px) and (max-width:385px) {
    header ul {
        flex-direction: column;
    }
    header ul li {
        margin-top: 2px;
        width: 100%;
        background-color: #001a2c;
        text-align: center;
    }
    header ul li a {
        color: white;
    }
    header ul li a:hover {
        color: rgb(142, 177, 255);
    }
    section.sec1 div:first-child h1 {
        font-size: 1.5em;
        text-align: center;
    }
}