/* Home-page style */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 10px;
    font-family: 'Kalam', cursive;
}

header {
    display: flex;
    background-color: rgba(73, 73, 73, 0.2);
    width: 100%;
    height: 10.4rem;
    text-align: center;
    align-items: center;
    font-size: 1.6rem;
    color: #353535;
    background-image: linear-gradient(to left, #494949, #959595);
}

h1,
p {
    color: #DBDBDB;
}

h1 {
    font-size: 4.3rem;
    font-weight: normal;
    text-align: center;
    margin: 5rem 0 2rem 0;
}

p {
    font-size: 2.4rem;
    text-indent: 5rem;
    text-align: justify;
    margin-bottom: 2rem;
}

h2 {
    color: #DBDBDB;
    font-size: 3rem;
    font-weight: normal;
    padding: 1rem;
    line-height: 4rem;
}

header div:nth-child(2) {
    padding: 0 2rem;
}

header div:nth-child(3) {
    margin-left: auto;
    padding: 0 2rem;
}

img {
    width: 20.8rem;
    height: auto;
}

nav ul {
    display: flex;
    justify-content: center;
    padding: 0.5rem 0;
    list-style: none;
    background-color: rgba(53, 53, 53, 0.902);
}

ul li a {
    font-size: 2.6rem;
    color: #DBDBDB;
    text-decoration: none;
    border-right: 1px solid #999;
    padding: 0 5rem;
}

nav ul li a:hover {
    color: #959595;
    background-color: #222;
    transition: 0.6s;
}

main {
    background-image: linear-gradient(to left, #494949, #959595);
}

footer p {
    text-align: center;
    padding: 3rem 0;
    background-color: #3F3F3F;
    color: #DBDBDB;
}

.main-container {
    display: flex;
    flex-direction: column;
    width: 85%;
    margin: auto;
    height: 100vh;
}

.main-header {
    position: fixed;
    width: 85%;
    margin: auto;
}

.contact {
    border-right: none;
}

.main-image img {
    margin-top: 15.65rem;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
}

.flex-container {
    display: flex;
}

.intro {
    margin: 3rem 11rem;
}

.sidebar {
    display: flex;
}


@media (max-width: 1200px) {

    header .header-mail {
        display: none !important;
    }


    ul li a {
        padding: 0 3rem;
    }
}

@media (max-width: 1024px) {
    ul li a {
        padding: 0 1.5rem;
    }
}

@media (max-width: 996px) {

    header div:nth-child(1),
    header div:nth-child(3) {
        display: none;
    }

    header div:nth-child(2) {
        width: 100%;
        margin: auto;
        font-size: 2rem;
        color: #353535;
    }
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    ul li a {
        border-right: none;
    }

    nav ul li {
        width: 100%;
        border-bottom: 1px solid rgba(99, 98, 98, 0.6);
        text-align: center;
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    nav ul li:hover {
        background-color: rgba(53, 53, 53, 0.8);
        transition: 0.6s;
    }
}




/* Contact-page style */

h3 {
    font-size: 3rem;
    color: #DBDBDB;
    font-weight: normal;
}

form {
    display: flex;
    flex-direction: column;
    border-radius: 1.5rem;
    background-color: #EEEFEA;
    width: 55%;
    margin-top: 1.5rem;
    margin-bottom: 5rem;
}

input,
textarea {
    font-family: 'Kalam', cursive;
    font-size: 2rem;
    border: none;
    background-color: #EEEFEA;
    margin: 0.2rem 8rem;
    padding: 1rem 1.5rem 0.1rem 1.5rem;
    border-bottom: 0.1rem solid rgba(53, 53, 53, 0.4);
    color: #3F3F3F;
    outline: none;
    letter-spacing: 0.1rem;
}

.contact-container,
.main-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 15.65rem;
    background-image: linear-gradient(to left, #494949, #959595);
}

.queries {
    text-indent: 0;
}

.phone {
    margin-top: 1rem;
}

.contact-us,
.enquiry-form {
    margin-top: 5rem;
    font-size: 4.3rem;
    font-weight: normal;
}

.enquiry-form {
    margin-top: 3rem;
}

.contact-top {
    margin-top: 5rem;
}

.sub-res {
    display: flex;
    align-self: center;
}

.submit {
    color: rgba(53, 53, 53, 0.6);
    border: 0.1rem solid rgba(53, 53, 53, 0.4);
    margin: 4rem 1rem 4rem 1rem;
    width: 16rem;
    padding: 0.1rem;
    border-radius: 8rem;
    font-weight: bold;
}

.submit:hover {
    background-color: #3F3F3F;
    color: #EEEFEA;
    transition: 0.9s;
    cursor: pointer;
}



/* Services style */
.section-header {
    width: 80%;
    margin: auto;
    margin-top: 5rem;
}

.section-header h1 {
    font-size: 4.3rem;
    font-weight: normal;
}

.section-p {
    text-indent: 0;
    text-align: center;
}

.section-box {
    width: 100%;
    display: flex;
    justify-content: space-evenly;
}

.boxes {
    width: 30.8%;
    background-color: #EEEFEA;
    border-radius: 1rem;
    margin-bottom: 4rem;
}

.boxes>h3 {
    text-align: center;
    padding: 2rem;
    font-size: 2.6rem;
    color: rgba(53, 53, 53, 0.7);
}

.section-img {
    float: left;
    width: 10rem;
    margin: 0.7rem;
    border: 0.1rem solid rgba(53, 53, 53, 0.2);
    border-radius: 1rem;
}

.ul-col {
    columns: 2;
    column-gap: 1rem;
}

.boxes ul li {
    font-size: 1.8rem;
    list-style: circle;
    list-style-position: inside;
    line-height: 3rem;
    color: rgba(53, 53, 53, 0.7);
    border-bottom: 0.1rem solid rgba(53, 53, 53, 0.08);
    padding: 1.2rem 0.8rem 0 1.8rem;
}

/* Gallery */

.gallery {
    margin-top: 15.65rem;
    display: grid;
    grid-gap: 15px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-auto-rows: repeat(3, 1fr);
    background-color:  #EEEFEA;
    padding: 13px;
}

.gallery-item {
    width: 100%;
    height: 100%;
    position: relative;
}

.gallery-item .image {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-item .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    cursor: pointer;
    transition: .5s ease-in-out;
}

.gallery-item:hover .image img {
    transform: scale(1.5);
}

.gallery-item .gallery-text {
    opacity: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 25px;
    pointer-events: none;
    z-index: 4;
    transition: .3s ease-in-out;
}

.gallery-item:hover .gallery-text {
    opacity: 1;
    animation: move-down .3s linear;
}

.gallery-container {
    box-shadow: 5px 5px 8px  #3F3F3F;
}

@keyframes move-down {
    0% {
        top: 10%;
    }

    50% {
        top: 35%;
    }

    100% {
        top: 50%;
    }
}

