:root {
    --header-color: rgb(198, 98, 3);
    --body-color: #333333;
    --header-font: 'Bebas Neue', 'Impact', 'Arial Narrow', sans-serif;
    --body-font: 'Montserrat', 'Helvetica Neue', 'Arial', sans-serif;
}

/* Resetting CSS */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
}

/* Settings for headers */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Bebas Neue', 'Impact', 'Arial Narrow', sans-serif;
    color: var(--header-color);
}

h1 {
    font-size: 2.5rem;
    letter-spacing: 0.05em;
}

/* Setting body fonts */

body,
p,
a,
li,
label,
button,
input,
textarea {
    font-family: 'Montserrat', 'Helvetica Neue', 'Arial', sans-serif;
    color: var(--body-color);
    line-height: 1.5;
}

/* - -- - - -- -  Anchor settings - -- -- -- -  */
a {
    transition: all .3s ease;
}

/*  - --- -- -- - Header - - -- - - - - - - - */

#header {
    text-align: center;
}

/* - - -- - - - -- -  Making body flexbox - -- - - -- - - - - */

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/*   - - -- - - -- Navbar - -- - - --- --  */

.navbar {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgb(198, 98, 3, 0.7);
    border-radius: 1000px;
    width: 90%;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem;
    bottom: 1rem;
    z-index: 1;
}

.navbar ul {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    width: 100%;
}

.navbar ul li a {
    text-decoration: none;
    color: white;

}

a:hover,
.navbar ul li a:hover {
    color: var(--body-color);
    text-decoration: underline;
}

/*  - - -- - - - - Adding background to wrapper div - - -- - - -- - -  */

.bg-wrapper {
    background-image: url(/images/background-image-nobg.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    min-height: 100vh;
    z-index: -1;
    align-items: center;
    justify-content: center;
}

/*  - - -- - --- -Hero section for overlay text over background image - -- - - -- - -  */

.hero-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15rem;


}

#hero-text {
    text-align: center;
    font-family: 'Bebas Neue', 'Impact', 'Arial Narrow', sans-serif;
    font-size: 5rem;
    color: var(--header-color);
    font-weight: bold;
}



/*  - -- - -- -- Main Home - - -- - - */



.main-home {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
    gap: 2rem;
}


.h2-home {
    font-size: 40px;
    margin-top: 2rem;
}

.div-about {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.about-image {
    max-width: 75%;
    height: auto;
    border-radius: 5%;
    object-fit: cover;
}



/*  - -- - -- -- Main Aboutpage - - -- - - */

.main-about {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/*  Profile img on about page  */

.hero-about img {
    width: 12rem;
    height: auto;
    border-radius: 50%;
}


.hero-about {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-about p {
    font-family: var(--header-font);
    font-size: 22px;
    color: var(--header-color);
    width: 75%;
    margin: 1rem 0 3rem 0;
}

.section-home-about {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    height: auto;
}

/* About - Skills */

.section-skills {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    height: auto;

}

/*  About - Projects */

.h1-about {
    padding: 2rem;
}

.h2-about {
    color: var(--body-color);
}

.hero-about p {
    text-align: center;
}

.section-projects {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    height: auto;
}



/* - -- - - - - -- - - - --   Contact page - -- - - - - - -- -  */


/* - - -- - - - - Form styling - - - -- - - - */



.contact-form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: 3rem auto;
    padding: 2rem;
}

h1 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 20px;
}

.intro-text {
    text-align: center;
    color: var(--body-color);
    margin-bottom: 3rem;
}


.form-group {
    margin-bottom: 2rem;
    position: relative;
}

label {
    font-family: var(--body-font);
    display: block;
    color: var(--body-color);
    margin-bottom: 8px;
    font-size: 14px;
}

input,
textarea {
    width: 100%;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid var(--body-color);
    color: var(--body-color);
    padding: 8px 0;
    outline: none;
}

input:focus,
textarea:focus {
    border-bottom: 1px solid var(--body-color)
}

textarea {
    min-height: 100px;
    resize: vertical;
}

/* - - -- - --  Submit button styles - -- - - ---  */

div.button {
    width: 100%;
    text-align: right;
}

.submit-btn {
    background-color: transparent;
    font-family: var(--body-font);
    color: var(--header-color);
    text-transform: uppercase;
    font-weight: bold;
    border: none;
    padding: 12px 30px;
    cursor: pointer;
    position: relative;
}

/* Orange underline effect */
.submit-btn::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    background-color: var(--header-color);
}


/*  - -- - -- - Footer -- - -- -   */

footer {
    display: flex;
    background-color: #333333;
    padding: 1rem 0rem 7rem 0rem;
    height: auto;
}

.contact-footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;

}

#ul-footer {
    padding: 1rem;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 2rem;

}

#ul-footer a {
    color: white;
    font-size: 30px;
}

footer p {
    color: white;
    font-size: .8rem;

}

/*  - -- - --- -- - -- Media queries - - -- -- - --  */

@media (max-width: 360px) {
    #hero-text {
        font-size: 2.8rem;
    }

    a {
        font-size: 12px;
    }

}

@media (min-width: 768px) {
    .bg-wrapper {
        background-size: contain;
    }

    .navbar {
        background-color: transparent;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 0;
        margin-top: .5rem;
        width: 100%;
    }

    .navbar ul {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 6rem;
        width: 100%;
    }

    .navbar ul li a {
        color: var(--body-color);
        font-weight: 600;
    }

    /*  Home page */

    .section-home-about {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        height: auto;
        max-width: 75%;
    }


    /*  about page */

    .h2-about {
        color: var(--body-color);

    }

    .section-skills {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;

    }

    .section-projects {

        grid-template-columns: repeat(3, 1fr);

    }

    /*  Footer  */

    footer {
        padding: 1rem 0rem 2rem 0rem;

    }

    .contact-footer {
        flex-direction: row;
        margin-right: 3rem;

    }

    #ul-footer {
        display: flex;
        justify-content: flex-end;
        gap: 2rem;

    }


    footer p {
        color: white;
        font-size: .8rem;
        width: 50%;
        margin-left: 3rem;

    }


}