:root{
    --primary-text: rgb(234, 234, 234); 
    --sec-background: #232222;
}

*{
    margin: 0;
    padding: 0;
}

ul{
    list-style: none;
}

.heading{
    text-align: center;
    color: var(--primary-text);
    font-size: clamp(1rem, .8vw + 1rem, 4rem);
    background-color: var(--sec-background);
    padding: 2rem 0;
}

body{
    background-color: #191818;
}

header{
    background-color: var(--sec-background);
    color: var(--primary-text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
    padding: 0 4rem 0 2rem;
    margin-bottom: 5rem;

    ul{
        display: flex;
        gap: 2rem;

        li{

            a{
                color: var(--primary-text);
                text-decoration: none;
                font-size: 1.1rem;
            }
        }
    }

    @media (max-width: 700px) {
        display: none;
    }
}

.hero-section{
    min-height: 100vh;
    
    img{
        width: clamp(20rem, 30vw + 1rem, 1000px);
        margin: 0 auto;
        display: block;
    }

    h2{
        color: var(--primary-text);
        text-align: center;
        margin-top: 2rem;
        font-size: clamp(1rem, 1.2vw + 1rem, 4rem);
        letter-spacing: 1px;
    }

    .button{
        background-color: var(--sec-background);
        border: none;
        color: var(--primary-text);
        padding: 1rem 4rem;
        border-radius: 3px;
        display: block;
        width: fit-content;
        margin: 2rem auto 0rem auto;
        text-decoration: none;
    }

    button:hover{
        cursor: pointer;
    }

    @media (max-width: 700px) {
        width: 80%;
        margin: 0 auto;
        min-height: 80vh;
        
        img{
            margin-top: 5rem;
            width: 100%;
        }
    }
}

.services-section{
    min-height: 100vh;
    width: fit-content;
    margin: 5rem auto 5rem auto;
    display: flex;
    flex-direction: column;
    gap: 5rem;

    .service-card{
        display: flex;
        width: clamp(800px, 60vw + 1rem, 1200px);
        color: var(--primary-text);
        gap: 3rem;
        background-color: var(--sec-background);
        padding: 1rem;
        border-radius: 6px;

        img{
            width: 40%;
            object-fit: cover;
        }

        h3{
            font-size: clamp(2rem, 1.2vw + 1rem, 4rem);
        }

        ul{
            display: flex;
            gap: .5rem;
            margin-bottom: 2rem;
        }

        p{
            font-size: clamp(.8rem, 0.002vw + 1rem, 4rem);
        }
    }

    .service-card:nth-of-type(even){
        flex-direction: row-reverse;
    }

    @media (max-width: 915px) {

        .service-card{
            flex-direction: column;
            align-items: center;
            gap: 1rem;
            width: clamp(200px, 60vw + 1rem, 1200px);
            text-align: center;
            margin: 0rem auto;

            img{
                width: 100%;
            }

            div{
                display: flex;
                flex-direction: column;
                align-items: center;
            }

            ul{
                margin-bottom: 1rem;
            }
        }

        .service-card:nth-of-type(even){
            flex-direction: column;
        }
    }

    @media (max-width: 600px) {
        
        .service-card{
            width: 90%;

            img{
                width: 100%;
            }
        }
    }
}

.about-section{
    min-height: 80vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    
    .about-card{
        display: flex;
        gap: 2rem;
        width: clamp(800px, 60vw + 1rem, 1200px);
        margin: 0 auto 0 auto;
        color: var(--primary-text);
        background-color: var(--sec-background);
        padding: 2rem;
        border-radius: 6px;

        img{
            width: 40%;
            object-fit: cover;
        }

        h3{
            font-size: clamp(2rem, 1.2vw + 1rem, 4rem);
            margin-bottom: 1rem;
        }
    }

    @media (max-width: 915px) {

        .about-card{
            flex-direction: column;
            align-items: center;
            width: clamp(200px, 60vw + 1rem, 1200px);
            text-align: center;

            img{
                width: 60%;
            }

            div{
                display: flex;
                flex-direction: column;
                align-items: center;
            }
        }
    }

    @media (max-width: 600px) {
        min-height: 100vh;
        
        .about-card{
            width: 85%;

            img{
                width: 100%;
            }
        }
    }
}


.contact-section{
    margin: 5rem 0 5rem 0;

    #contact-card{
        color: var(--primary-text);
        background-color: var(--sec-background);
        margin: 0rem auto;
        width: 70%;
        padding: 3rem 1rem;
        display: flex;
        justify-content: space-around;
        border-radius: 12px;

        .contact-heading{
            font-size: 1.6rem;   
            font-weight: bold; 
            margin-bottom: 1rem !important;
        }

        #quick-contact{

            form{
                display: flex;
                flex-direction: column;
                gap: 1rem;
            }

            .input-div{
                display: flex;
                flex-direction: column;

                label{
                    font-weight: 700;
                    margin-left: .5rem;
                    transform: translatey(17%);
                }

                input, textarea{
                    font-size: 1rem;
                    padding: .5rem;
                    background-color: transparent;
                    border: solid 2px var(--primary-text);
                    border-radius: 4px;
                    color: var(--primary-text);
                }

                #txtEmail{
                    width: 22rem;
                }

                #txtSubject{
                    width: 28rem;
                }

                #txtBody{
                    width: 28rem;
                    height: 17rem;
                    font-size: .9rem;
                }
            }

            button{
                width: 100%;
                background-color: transparent;
                border: solid 2px var(--primary-text);
                color: var(--primary-text);
                padding: .5rem;
                font-size: 1.1rem;
                font-weight: 700;
                border-radius: 4px;
            }

            button:hover{
                cursor: pointer;
            }
        }

        #personal-contact{
            font-weight: 700;
            font-size: 1rem;
            p{
                margin-bottom: .5rem;
            }

            :last-child{
                margin: 0;
            }
        }
    }

    @media (max-width: 980px) {
        margin-bottom: 4rem;

        #contact-card{
            flex-direction: column-reverse;
            align-items: center;
            width: 70%;

            .contact-heading{
                display: none;
            }

            #personal-contact{
                text-align: center;
                margin-bottom: 1rem;
            }

            #quick-contact{
                width: 90%;

                button{
                    padding: .8rem 1rem;
                }

                .input-div{
                    input{
                        padding: .8rem .5rem;
                    }

                    #txtEmail{
                        width: calc(100% - 1rem);
                    }

                    #txtSubject{
                        width: calc(100% - 1rem);
                    }

                    #txtBody{
                        width: calc(100% - 1rem);
                        height: 17rem;
                    }
                }
            }
        }
    }

    @media (max-width: 500px) {
        #contact-card{
            width: 75%;

            .contact-heading{
                display: none;
            }

            #personal-contact{
                text-align: center;
            }

            #quick-contact{
                width: 100%;

                button{
                    padding: .8rem 1rem;
                }

                .input-div{
                    input{
                        padding: .8rem .5rem;
                    }

                    #txtEmail{
                        width: calc(100% - 1rem);
                        font-size: .9rem;
                    }

                    #txtSubject{
                        width: calc(100% - 1rem);
                        font-size: .9rem;
                    }

                    #txtBody{
                        width: calc(100% - 1rem);
                        height: 17rem;
                        font-size: .8rem;
                    }
                }
            }
        }
    }
}

footer{
    background-color: var(--sec-background);
    height: 5rem;
    font-size: 1.1rem;
    color: var(--primary-text);
    display: flex;
    align-items: center;
    justify-content: center;
}
