:root {
    --theme-color: rgb(172, 2, 2);
    --second-theme-color: #272727;
    --text-main-color: #ffffff;
    --text-second-color: #616060;
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
}

.preloader-container {
    min-height: 100%;
    position: fixed;
    pointer-events: none;
    cursor: none;
    z-index: 101;
    background-color: var(--second-theme-color);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.preloader-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.preloader-img {
    max-width: 150px;
}

.preloader-img img {
    width: 100%;
}

.preloader-text {
    transform: translateX(-30%);
}

.loading-text {
    width: 100px;
    margin: 0 auto;
}

.loading-text img {
    width: 100%;
}

.quick-contact-nav {
    height: 50px;
    width: 100%;
    background-color: var(--second-theme-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    transform-origin: left;
    transition: all .4s ease;
    position: fixed;
    transform: translateY(0);
    z-index: 100;
}

.quick-contact-nav-hide {
    transform: translateY(-100%);
}

.quck-contact-phone-location {
    display: flex;
}

.quick-phone-container {
    display: flex;
    margin-left: 4em;
}

.quck-contact-phone-location a {
    color: var(--text-main-color);
    text-decoration: none;
    transition: all .4s ease;
}

.quck-contact-phone-location a i {
    margin-right: .1em;
    color: var(--theme-color);
}

#second-phone-icon {
    margin-left: .5em;
}

.quick-contact-logos {
    display: flex;
    align-items: center;
}

.quick-contact-logos a {
    margin: 0 1em;
}

.wp-img {
    width: 25px;
    margin-top: 5px;
}

.just-dial-img {
    width: 95px;
    margin-top: 5px;
}

#hero-section-main {
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(8, 8, 8, 0.4)), url('./img/landingpageimg.jpeg.png');
    background-position: center;
    background-size: cover;
    max-height: 100vh;
}

#hero-section {
    height: 100vh;
    width: 100%;
    margin-bottom: 70px;
}

#hero-section-main::before {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    padding: 2% 5%;
    align-items: center;
    height: 50px;
    position: fixed;
    top: 50px;
    transition: all .4s ease;
    width: 100%;
    z-index: 10;
    background-color: transparent;
}

.main-nav-active {
    top: 0;
    background-color: var(--second-theme-color);
}

.main-nav-active-back-ground {
    background-color: var(--second-theme-color);
}

.logo-container {
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-container a {
    text-decoration: none;
    color: var(--text-main-color);
}

.logo-img {
    width: 150px;
}

.logo-text {
    transform: translateX(-30%);
    font-size: 1.4rem;
    font-weight: bold;
    color: white;
}

.logo-color {
    color: var(--theme-color);
}

.nav-link-container {
    display: flex;
    align-items: center;
}

.nav-link-container li {
    margin: 0 2em;
    list-style: none;
}

.nav-link-container li a {
    color: var(--text-main-color);
    text-decoration: none;
    position: relative;
}

.nav-link-container li a::before {
    position: absolute;
    content: '';
    width: 100%;
    left: 0;
    bottom: -5px;
    height: 3px;
    background-color: var(--theme-color);
    transition: transform .4s ease;
    transform-origin: right;
    transform: scaleX(0);
}

.nav-link-container li a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.content-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.content-container::before {
    content: '';
    position: absolute;
    top: -.2em;
    left: 50%;
    transform: translateX(-50%);
    height: 3px;
    width: 20%;
    background-color: var(--theme-color);
    font-weight: bold;
}

.hero-header {
    position: relative;
    color: var(--text-main-color);
    font-size: 3.5rem;
    transform: translateY(0);
    opacity: 1;
    transition: all .5s ease;
    text-align: center;
}

.hero-header-hide {
    transform: translateY(20%);
    opacity: 0;
    transition: all .5s ease;
}

.hero-know-more-btn {
    text-align: center;
}

.knowmorebtn-container {
    width: 100%;
    text-align: center;
    margin-top: 3em;
}

.hero-know-more-btn {
    font-size: 1.5rem;
    text-decoration: none;
    color: var(--text-main-color);
    background-color: var(--theme-color);
    padding: .6em 1.8em;
    position: relative;
    z-index: 1;
    display: inline-block;
    overflow: hidden;
    box-shadow: 3px 2px 4px -1px rgba(0, 0, 0, 0.75);
}

.hero-know-more-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: var(--second-theme-color);
    transform: translateX(-100%);
    transition: all .4s ease;
}

.hero-know-more-btn:hover::before {
    transform: translateX(0);
}


/* SERVISE SECTION START */

#services-section {
    margin-top: 50px;
}

.section-header {
    text-align: center;
    font-size: 2.4rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-header::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -10px;
    transform: translateX(-50%);
    height: 3px;
    background-color: var(--theme-color);
    width: 50%;
}

.our-services-container {
    width: 100%;
    margin: 2em auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.our-services-card {
    max-width: 500px;
    max-width: 550px;
    display: flex;
    padding: .5em;
    margin: 1em;
}

.service-icon {
    margin-right: 1.5em;
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-icon i {
    width: 110px;
    height: 110px;
    font-size: 50px;
    color: var(--text-main-color);
    background-color: var(--theme-color);
    box-shadow: 3px 2px 4px -1px rgba(0, 0, 0, 0.75);
    padding: .4em;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-dis h2 {
    font-weight: lighter;
    margin-bottom: 1em;
}

.service-dis p {
    line-height: 1.6em;
    color: var(--text-second-color);
    text-align: justify;
}


/* <!-- our-history-section --> */

#our-history-section {
    width: 100%;
    padding: 2em;
    margin: 4em auto;
    background-color: #e7e6e6cb;
}

.our-history-inner-container {
    display: flex;
    width: 90%;
    margin: 0 auto;
    justify-content: space-around;
    align-items: center;
}

.history-header {
    left: 0;
    transform: translateX(0);
    margin-bottom: 1em;
}

.history-header::before {
    left: 0;
    top: -10px;
    transform: translateX(0);
}

.left-our-history-dis {
    width: 40%;
}

.left-our-history-dis p {
    line-height: 1.6em;
}

.second-history-dis {
    margin: 2em 0;
    color: var(--text-second-color);
}

.right-history-img-container {
    width: 45%;
    margin-left: 2em;
    box-shadow: 3px 2px 8px -1px rgba(0, 0, 0, 0.75);
}

.right-history-img-container img {
    width: 100%;
    object-fit: cover;
    object-position: center;
}


/* <!-- OUR SPECIALITY SECTION START --> */

.speciality-card-container {
    margin-top: 4em;
}

.speciality-card-row {
    padding: 0 1em;
    display: flex;
    width: 90%;
    margin: 0 auto;
}

.speciality-card {
    padding: 2em;
    min-height: 350px;
    display: flex;
    width: 50%;
    flex-direction: column;
    justify-content: center;
}

.background-icon-container i {
    font-size: 4rem;
}

.speciality-card-icon i {
    font-size: 4rem;
}

.speciality-card-dis-header {
    margin: 1em 0;
    border-bottom: 1px solid var(--text-main-color);
}

.specialty-card-dis p {
    font-size: 1.2rem;
    line-height: 1.6em;
    text-align: justify;
}

.speciality-card:first-child {
    background-color: var(--second-theme-color);
    color: white;
}

.speciality-card-row:first-child .speciality-card:nth-child(2) {
    background-color: rgba(231, 230, 230, 0.796);
    color: black;
}

.speciality-card-row:nth-child(2) .speciality-card:nth-child(1) {
    background-color: rgba(231, 230, 230, 0.796);
    color: black;
}

.speciality-card-row:nth-child(2) .speciality-card:nth-child(2) {
    background-color: var(--theme-color);
    color: white;
}

.speciality-card-row:nth-child(3) .speciality-card:nth-child(2) {
    background-color: rgba(231, 230, 230, 0.796);
    color: black;
}

.speciality-card-row:nth-child(2) .speciality-card:nth-child(1) .speciality-card-dis-header,
.speciality-card-row:nth-child(3) .speciality-card:nth-child(2) .speciality-card-dis-header,
.speciality-card-row:first-child .speciality-card:nth-child(2) .speciality-card-dis-header {
    border-bottom: 1px solid black;
}


/* LATEST WORK SECTION START */

#latest-work-section {
    margin-top: 6em;
}

.latest-work-container {
    width: 90%;
    margin: 4em auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.latest-work-card-container {
    max-width: 350px;
    box-shadow: 3px 2px 8px -1px rgba(0, 0, 0, .3);
    margin: 2em;
    cursor: pointer;
    border-radius: 20px;
    overflow: hidden;
}

.latest-work-card-img-container {
    width: 100%;
    background: rgba(231, 230, 230, 0.796);
}

.latest-work-card-img-container img {
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.latest-work-card-dis {
    color: var(--theme-color);
    background: rgba(231, 230, 230, 0.796);
    background: white;
    text-align: center;
    padding: .5em 0;
}


/* <!-- CONTACT US SECTION START --> */

#contact-us-section {
    margin-top: 4em;
    width: 100%;
    background-color: #e7e6e6cb;
    padding: 4em 0;
}

.contact-us-header {
    color: black;
}

.contact-us-inner-container {
    width: 90%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4em;
    position: relative;
}

#main-form,
.form-map-container {
    width: 45%;
    border-radius: 15px;
}

#main-form {
    background-color: var(--second-theme-color);
    padding: 1em;
}

.input-container {
    display: flex;
    flex-direction: column;
    position: relative;
    margin: 2em 0;
}

.input-container input,
#textdis {
    padding: .6em .4em;
    font-size: 1rem;
    background-color: var(--text-second-color);
    color: var(--text-main-color);
    border-radius: 5px;
    outline: none;
    resize: none;
}

.input-container label {
    color: var(--text-main-color);
    position: absolute;
    top: 50%;
    transform: translate(10%, -50%);
    transition: all .4s ease;
}

#textDisLabel {
    top: 8%;
}

.input-container input:focus~label {
    top: -25%;
    font-size: .8rem;
    color: var(--theme-color);
}

.input-container input:not(:placeholder-shown)~label {
    top: -25%;
    font-size: .8rem;
    color: var(--theme-color);
}

#textdis:not(:placeholder-shown)~#textDisLabel,
#textdis:focus~#textDisLabel {
    top: -5%;
    font-size: .8rem;
    color: var(--theme-color);
}

.submit-btn-container {
    overflow: hidden;
    position: relative;
}

#submit-btn {
    font-size: 1.4rem;
    padding: .6em 2em;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    background-color: var(--theme-color);
    color: var(--text-main-color);
    transition: all .6s ease;
}

.submit-btn-hide {
    transform: translateY(120%);
}

.thank-you-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    display: none;
    transition: all .3s ease;
    width: 100%;
    text-align: center;
}

.thank-you-message-active {
    display: block;
}

.error {
    color: red;
    margin-top: .5em;
    margin-left: .8em;
    display: none;
    transition: all .4s ease;
}

.error-active {
    display: block;
}

.form-map-container {
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
}

.form-map-container iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 15px;
}


/* FOOTER START */

footer {
    background-color: var(--second-theme-color);
    padding: 2em 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.left-footer-container {
    display: flex;
}

.footer-logo-container {
    height: 100px;
    width: 370px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-links-container li {
    list-style: none;
    margin: 1.5em;
}

.footer-links-container li a {
    color: white;
}

#footer-form {
    background-color: rgba(0, 0, 0, 0.3);
    padding: .2em .8em;
}

#footer-form input {
    outline: none;
    border: 1px solid var(--text-main-color);
    font-size: 1.3rem;
    padding: .4em .6em;
    background-color: #616060;
    color: white;
}

#footer-form input:focus {
    border: 1px solid var(--theme-color);
}

#footer-form button {
    color: var(--theme-color);
    font-size: 1.3rem;
    padding: .4em;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.3);
    border: none;
}

.copyright {
    margin-top: 2em;
    color: var(--text-main-color);
}

.credit {
    color: white;
}

.credit i {
    margin-left: .5em;
}