@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;700&display=swap');

* {
    box-sizing: border-box;
}

body {
    font-family: 'Ubuntu', sans-serif;
    background-color: rgb(201, 201, 201);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100vw;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;

}

header {
    background-color: rgb(31, 31, 31);
    color: white;
    display: inline-flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
}

.header-logo img {
    height: 4rem;
    margin: 5px 0;
    cursor: pointer;
}

.nav-menu {
    display: inline-flex;
}

.nav-menu a {
    color: rgb(146, 146, 146);
    text-decoration: none;
    font-weight: bold;
    padding: 0 0.6rem;
}

.nav-menu a.active {
    color: white;
}

.nav-menu a:hover {
    color: rgb(100, 100, 255);
}

.services, .portfolio {
    position: relative;
}

.sub-service-menu, .sub-portfolio-menu {
    background-color: rgb(201, 201, 201);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: absolute;
    top: 2rem;
    left: 0;
    padding: 1rem;
    line-height: 1.6;
    min-width: fit-content;
    box-shadow: 0px 0px 10px 5px rgba(0, 0, 0, 0.20);
    border: 2px solid black;
    visibility: hidden;
    transition: visibility 0.25s;
}

.sub-service-menu a, .sub-portfolio-menu a {
    color: rgb(31, 31, 31);
    text-decoration: none;
    text-wrap: nowrap;
}

.services:hover, .portfolio:hover {
    .sub-service-menu, .sub-portfolio-menu {
        visibility: visible;
    }
}

main {
    flex: 1;
    background-color: rgb(31, 31, 31);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

h1 {
    font-size: 3.5rem;
    font-weight: 400;
    margin: 4rem 2rem;
}

.hero-container {
    background-color: white;
    color: black;
    margin: 0 6rem 6rem 6rem;
    box-shadow: 0px 0px 10px 5px rgba(0, 0, 0, 0.20);
    display: flex;
    flex-direction: column;
    width: 85%;
    padding: 2rem 10%;
}

.service-header {
    font-weight: 700;
    text-align: center;
    width: 100%;
}

.service-tagline {
    width: 100%;
    padding-bottom: 2rem;
    border-bottom: 1px solid black;
}

.service-details {
    font-size:  1.5rem;
}

.boxes-container {
    display: inline-flex;
    justify-content: space-between;
    width: fit-content;
    margin: 1rem 0;
}

.details-box {
    width: fit-content;
    padding: 0.5rem;
    border: 2px solid black;
}

.details-box:nth-child(2) {
    margin: 0 2rem;
}

.book-now {
    background-color: rgb(31, 31, 31);
    color: white;
    display: inline-flex;
    justify-content: center;
    width: fit-content;
    margin: 1rem 0;
    padding: 0.5rem 1rem;
    border: 2px solid black;
    box-shadow: 0px 0px 10px 5px rgba(0, 0, 0, 0.096);
    cursor: pointer;
}

.book-now:hover {
    background-color: rgb(0, 255, 213);
    color: black;
    box-shadow: 0px 0px 10px 5px rgba(0, 255, 213, 0.33);
}

.contact-details {
    font-size: 1.5rem;
    width: 100%;
    padding-top: 2rem;
    border-top: 1px solid black;
}

p a {
    text-decoration: none;
    color: rgb(100, 100, 255);
    font-weight: 700;
}

footer {
    background-color: rgb(31, 31, 31);
    color: white;
    display: inline-flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
}

.social-icons img {
    height: 1.5rem;
    padding: 0 0.5rem;
}






@media ( min-width: 476px ) and ( max-width: 750px ) {

    html, body {
        width: 100%;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }

    body {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 100%;
        margin: 0;
        overflow-x: hidden;
    }

    header {
        position: relative;
        background-color: rgb(31, 31, 31);
        color: white;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .header-logo {
        transition: transform 1s ease;
    }
    
    .header-logo img {
        position: relative;
        height: 3.5rem;
        margin: 5px 0;
    }

    .nav-menu {
        background-color: rgb(31, 31, 31);
        position: fixed;
        top: 0px;
        right: 0px;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: flex-start;
        padding: 10% 1rem;
        width: 50%;
        height: 100vh;
        z-index: 10;
        font-size: 1.5rem;
        transform: translateX(100%);
        transition: transform 1s ease;
    }
    
    .nav-menu.active {
        background-color: rgb(31, 31, 31);
        position: fixed;
        top: 0px;
        right: 0px;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: flex-start;
        padding: 10% 1rem;
        width: 50%;
        height: 100vh;
        z-index: 10;
        font-size: 1.5rem;
        transform: initial;
        transition: transform 1s ease;
    }
    
    .nav-menu a {
        color: rgb(146, 146, 146);
        text-decoration: none;
        font-weight: bold;
        padding: 0 0.6rem;
    }

    .services, .portfolio {
        position: initial;
    }
    
    .sub-service-menu, .sub-portfolio-menu {
        font-size: 1rem;
        background-color: inherit;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: flex-start;
        position: initial;
        padding: auto;
        line-height: 1.6;
        min-width: auto;
        box-shadow: none;
        border: none;
        visibility: visible;
        transition: none;
        
    }
    
    .sub-service-menu a, .sub-portfolio-menu a {
        color: rgb(146, 146, 146);
        text-decoration: none;
        text-wrap: none;
    }
    
    .nav-menu-toggle {
        position: absolute;
        top: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        align-items: center;
        margin: 0.5rem 1rem;
        background-color: rgb(31, 31, 31);
        height: 3.5rem;
        width: 3.5rem;
        z-index: 100;
        cursor: pointer;
    }

    .top-bar, .middle-bar, .bottom-bar {
        position: relative;
        background-color: rgb(146, 146, 146);
        width: 2.5rem;
        height: 0.25rem;
        border-radius: 2px;
        transition: transform 1s ease, opacity 1s ease;
    }

    .nav-menu-toggle.active {
        position: fixed;

        .top-bar {
            transform: translateY(375%) rotate(225deg);
            transition: transform 1s ease;
        }

        .bottom-bar {
            transform: translateY(-375%) rotate(-225deg);
            transition: transform 1s ease;
        }

        .middle-bar {
            transform: rotate(360deg);
            opacity: 0;
            transition: transform 1s ease, opacity 1s ease;
        }
    }

    .header-logo.active {
        transform: translateX(-80%);
        transition: transform 1s ease;
        z-index: 100;
    }

    footer {
        font-size: 0.75rem;
        background-color: rgb(31, 31, 31);
        color: white;
        display: inline-flex;
        justify-content: space-evenly;
        align-items: center;
        width: 100%;
    }

    .footer p {
        transition: opacity 1s ease;
    }

    .social-icons {
        position: relative;;
        margin: 0.5rem 0;
        flex-wrap: nowrap;
        transition: transform 1s ease;
    }
    
    .social-icons img {
        height: 1.5rem;
        padding: 0 0.5rem;
    }

    .location-and-email {
        display: none;
    }

    .social-icons.active {
        transform: translateX(-200%);
        transition: transform 1s ease;
    }

    .footer.active p {
        opacity: 0;
        transition: opacity 1s ease;
    }

    main {
        flex: 1;
        background-color: rgb(31, 31, 31);
        color: white;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    h1 {
        font-size: 3rem;
        font-weight: 400;
        margin: 2rem 2rem;
        text-align: center;
    }
    
    .hero-container {
        background-color: white;
        color: black;
        margin: 2rem 0;
        box-shadow: 0px 0px 10px 5px rgba(0, 0, 0, 0.20);
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 2rem 10%;
    }

}


@media ( max-width: 475px ) {

    html, body {
        width: 100%;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }

    body {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 100%;
        margin: 0;
        overflow-x: hidden;
    }
    
    header {
        position: relative;
        background-color: rgb(31, 31, 31);
        color: white;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .header-logo {
        transition: transform 1s ease;
        z-index: 200;
    }
    
    .header-logo img {
        position: relative;
        height: 3.5rem;
        margin: 5px 0;
    }

    .nav-menu {
        background-color: rgb(31, 31, 31);
        position: fixed;
        top: 0px;
        right: 0px;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: flex-start;
        padding: 20% 1rem;
        width: 75%;
        height: 100vh;
        z-index: 10;
        font-size: 1.5rem;
        transform: translateX(100%);
        transition: transform 1s ease;
    }
    
    .nav-menu.active {
        background-color: rgb(31, 31, 31);
        position: fixed;
        top: 0px;
        right: 0px;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: flex-start;
        padding: 20% 1rem;
        width: 75%;
        height: 100vh;
        z-index: 10;
        font-size: 1.5rem;
        transform: initial;
        transition: transform 1s ease;
    }
    
    .nav-menu a {
        color: rgb(146, 146, 146);
        text-decoration: none;
        font-weight: bold;
        padding: 0 0.6rem;
    }

    .services, .portfolio {
        position: initial;
    }
    
    .sub-service-menu, .sub-portfolio-menu {
        font-size: 1rem;
        background-color: inherit;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: flex-start;
        position: initial;
        padding: auto;
        line-height: 1.6;
        min-width: auto;
        box-shadow: none;
        border: none;
        visibility: visible;
        transition: none;
        
    }
    
    .sub-service-menu a, .sub-portfolio-menu a {
        color: rgb(146, 146, 146);
        text-decoration: none;
        text-wrap: none;
    }
    
    .nav-menu-toggle {
        position: absolute;
        top: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        align-items: center;
        margin: 0.5rem 1rem;
        background-color: rgb(31, 31, 31);
        height: 3.5rem;
        width: 3.5rem;
        z-index: 100;
        cursor: pointer;
    }

    .top-bar, .middle-bar, .bottom-bar {
        position: relative;
        background-color: rgb(146, 146, 146);
        width: 2.5rem;
        height: 0.25rem;
        border-radius: 2px;
        transition: transform 1s ease, opacity 1s ease;
    }

    .nav-menu-toggle.active {
        position: fixed;

        .top-bar {
            transform: translateY(375%) rotate(225deg);
            transition: transform 1s ease;
        }

        .bottom-bar {
            transform: translateY(-375%) rotate(-225deg);
            transition: transform 1s ease;
        }

        .middle-bar {
            transform: rotate(360deg);
            opacity: 0;
            transition: transform 1s ease, opacity 1s ease;
        }
    }

    .header-logo.active {
        transition: transform 1s ease;
        z-index: 200;
    }

    footer {
        font-size: 0.75rem;
        background-color: rgb(31, 31, 31);
        color: white;
        display: inline-flex;
        justify-content: space-evenly;
        align-items: center;
        width: 100%;
    }

    .footer p {
        text-align: center;
        transition: all 1s ease;
    }

    .social-icons {
        display: flex;
        position: relative;
        margin: 0.5rem 0;
        flex-wrap: nowrap;
        z-index: 200;
        transition: all 1s ease;
    }
    
    .social-icons img {
        height: 1.5rem;
        padding: 0 0.5rem;
    }

    .location-and-email {
        display: none;
    }

    .social-icons.active {
        margin: 0.5rem 0;
        transform: translateX(-75%);
        z-index: 200;
        flex-wrap: nowrap;
        transition: all 1s ease;
    }

    .footer.active p {
        text-align: center;
        opacity: 0;
        transition: all 1s ease;
    }

    main {
        flex: 1;
        background-color: rgb(31, 31, 31);
        color: white;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    h1 {
        font-size: 3rem;
        font-weight: 400;
        margin: 2rem 2rem;
        text-align: center;
    }
    
    .hero-container {
        background-color: white;
        color: black;
        margin: 2rem 0;
        box-shadow: 0px 0px 10px 5px rgba(0, 0, 0, 0.20);
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 2rem 10%;
    }

}