
.hero {
    position: relative;
    background: url("https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSNKp_lNLZ5wWgI9BlvW6QGlM0CiSKM9Keq39lI_wShKg&s") center/cover no-repeat;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-content {
    text-align: center;
    color: #fff;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--color-light);
    animation: fadeInUp 1s ease-in-out;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-in-out 0.5s;
    text-align: center;
}

.enquire-btn {
    font-size: 1rem;
    color: white;
    background-color: #4ebdff;
    width: 10rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    display: inline-block;
    margin-left: 2rem;
    margin-top: 1rem;
    cursor: default;
}

.enquire-btn:hover {
    background-color: #B7DAE0;
    color: black; /* Darker green */
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* approach */

.approach_section {
    text-align: center;
    margin-top: 10rem;
    margin-bottom: 10rem;
}

.approach_section h1 {
    font-size: 3rem;
    color: var(--color-light);
}

.approach_section p {
    font-size: 1rem;
    color: gainsboro;
}

/* services */


.head_text {
    /* position: relative;
      display: inline-block; */
    font-size: 2.75rem;
    letter-spacing: -0.05em;
    font-weight: 700;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 0px hsl(40, 20%, 90%), -1px 1px 0px hsl(40, 20%, 90%);
    text-align: center; /* Add this line to center the text */

    &:after {
        content: "";
        position: absolute;
        opacity: 0.5;
        z-index: -1;
        bottom: 12px;
        left: 0;
        right: 0;
        background: var(--clr-primary);
        height: 12px;
        width: 100%;
    }
}

.container1 {
    max-width: 1200px;
    width: 100%;
    margin: 20px auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto;
    gap: 1.5rem;
}

.hoverbox {
    position: relative;
    background: hsla(222, 19%, 42%, 0.9);
    padding: 32px 28px;
    overflow: hidden;
    border-radius: 0px;
    transition: 0.35s ease-in;

    &:after {
        content: "";
        position: absolute;
        top: 0;
        left: auto;
        right: 0;
        width: 0%;
        height: 0.35rem;
        background: var(--royal-blue-dark);
        transition: var(--transition1);
    }

    img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
        transition: var(--transition1);
        filter: blur(1px) saturate(0);
    }

    h3 {
        font-size: 1.25rem;
        font-weight: 600;
        color: #fff;
        margin-bottom: 1rem;
    }

    p {
        color: rgba(255, 255, 255, 0.8);
        margin-bottom: 1.125rem;
        font-weight: 300;
    }

    a {
        position: relative;
        color: #fff;
        text-decoration: unset;
        text-transform: uppercase;
        font-size: 0.875rem;
        font-weight: 600;
        letter-spacing: 0.05em;
        transition: color 0.35s;

        &:after {
            content: ">";
            display: inline-flex;
            align-items: center;
            justify-content: center;
            margin-left: 1rem;
            border: 2px solid #fff5;
            border-radius: 50%;
            width: 1.5rem;
            height: 1.5rem;
            transition: all 0.35s, color 0s;
        }

        &:before {
            content: "";
            position: absolute;
            width: 0rem;
            height: 0.125rem;
            background: #fff;
            right: 0.75rem;
            top: calc(50% - 0.025rem);
            transition: 0.35s;
        }
    }

    &:hover {
        background: hsla(219, 48%, 28%, 0.75);
        box-shadow: 0px 16px 24px rgba(0, 15, 0, 0.1);

        &:after {
            width: 100%;
            left: 0;
            right: auto;
        }

        img {
            transform: scale(1.2) rotate(-5deg);
            filter: blur(8px) saturate(0);
        }
    }
}

/* why choose us */

.main {
    min-width: 300px;
    max-width: 500px;
    margin: auto;
}

.main p {
    font-size: 1rem;
    line-height: 1.75em;
    border-top: 3px solid;
    border-image: linear-gradient(to right, #743ad5 0%, #d53a9d 100%);
    border-image-slice: 1;
    border-width: 3px;
    margin: 0;
    padding: 40px;
    counter-increment: section;
    position: relative;
    color: white;

    &:before {
        content: counter(section);
        position: absolute;
        border-radius: 50%;
        padding: 8px;
        height: 1.25em;
        width: 1.5em;
        background-color: rgb(180, 176, 176);
        text-align: center;
        line-height: 0.25em;
        color: black;
        font-size: 1em;
    }
}

.main p:nth-child(odd) {
    border-right: 3px solid;
    padding-left: 0;

    &:before {
        left: 100%;
        margin-left: -33px;
    }
}

.main p:nth-child(even) {
    border-left: 3px solid;
    padding-right: 0;

    &:before {
        right: 100%;
        margin-right: -30px;
    }
}

.main p:first-child {
    border-top: 0;
    border-top-right-radius: 0;
    border-top-left-radius: 0;
}

.main p:last-child {
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.text_2 {
    font-size: 2.5rem;
    text-align: center;
    color: var(--color-light);
    margin: 10vh;
}

@media screen and (max-width: 750px) {
    .container1 {
        grid-template-columns:1fr;
        grid-template-rows:1fr 1fr;
        gap: 1.5rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .approach_section h1 {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }

    .approach_section {
        margin-top: 5rem;
        margin-bottom: 5rem;
    }

}

@media screen and (max-width: 550px) {
    .main {
        margin-left: 2rem;
        margin-right: 2rem;
    }
}
