@import url('https://fonts.cdnfonts.com/css/playfair-display');
@import url('https://fonts.cdnfonts.com/css/geomanist');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box; 
}

body {
    background-color: #FEF4EA;
    padding-top: 18vh;
}

h1 , h2, h3 , h4 { font-family: 'Playfair Display', sans-serif;}

p, .other-text {
    font-family: 'Geomanist', sans-serif;
    line-height: 1.6em;
    letter-spacing: 0.1rem;
}

.light-text {color: #ECEADA;}
.white-text {color: #FFFFFF;}
.orange-text {color: #CB3B09;}
.dark-text {color: #192733;}
.section-header {font-size: 3rem;}


/*--buttons--*/
.section-button {
    height: 10vh;
    width: 15rem;    
    border: 3px solid #CB3B09;
    background-color: #FFFFFF;    
}

.button-text {
    text-decoration: none;
    color: #CB3B09;
    font-size: 20px;
    font-weight: 600;
}


section {
    padding: 0;
    margin: 0;
}

/* header css done */

header {
    font-family: 'Geomanist', sans-serif;
    position: fixed;
    width: 100%;
    top: 0;
    background-color: #192733;
    border-bottom: 1px solid #ECEADA;
    z-index: 1000;
}

.nav-bar-container {
    
    padding-top: 10px;
    padding-left: 8%;
    padding-right: 8%;
}

.logo {
    height: 80px;
    cursor: pointer;
}

.navbar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    overflow: hidden;
}

.menu-icon .line {
    width: 25px;
    height: 3px;
    background-color: #ECEADA;
    margin: 4px 0;
}

.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.menu li {
    
    display: inline-block;
}

.menu li a {
    display: block;
    text-decoration: none;
    text-align: center;
    color: #ECEADA;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 10px 15px;
}

.menu li a:hover {
    text-decoration: none;
    background-color: #ECEADA;
    border: 5px solid #ECEADA;
    border-radius: 20px;
    padding-left: 10px;
    padding-right: 10px;
    color: #CB3B09;
    font-size: 1.2rem;
    font-weight: 600;
}

#menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    color: #ECEADA;
    padding: 14px 20px;
    cursor: pointer;
    font-weight: 900;
    font-size: x-large;
}

.menu-icon:hover {
    background-color: #ECEADA;
    color: #CB3B09;
    border-radius: 10px;
}

.menu-icon:hover .line {
    background-color: #CB3B09;
}

/* Home CSS done */

#home {
    background-color: #FEF4EA;
}

.home-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10vh;
    color: #CB3B09;
}
.home-container h3 {
    font-size: 2.0rem;
    font-weight: 900;
}

.home-container h1 {
    font-size: 3.75rem;
    display: flex;
    gap: 10px;
}

.my-name-container {
    display: flex;
    gap: 1vw;
    margin-bottom: 10vh;
}

#typed-text {
    display: inline-block;
    overflow: hidden;
    animation: typing 4s steps(40, end), blink-caret 0.75s step-end infinite ;
    animation-iteration-count: infinite;
}

@keyframes typing {
    from {width: 0;}
    to {width: 120%;}
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: black; }
}



.home-container p {
    font-size: 1.6rem;
    text-align: center;
    font-weight: 600;
}

.home-container button {
    margin-top: 10vh;
    margin-bottom: 5vh;
}

#about-me {
    background-color: #E04826;
    padding: 10vh 10vw;
    margin: 0;
}

.about-me-container {
    display: flex;
    flex-direction: row;
}

.about-me-image-box {
    background-image: url(images/abstract-003.png);
    background-size: contain;
    background-repeat: no-repeat;
    flex-basis: 40%;
    padding: 50px;
}

.about-me-text-box {
    display: flex;
    flex-direction: column;
    gap: 5vh;
    flex-basis: 60%;
    padding: 20px;

}

.headshot-image {
    position: relative;
    width: 90%;
    border-radius: 50%;
    border: 2px solid #ECEADA;
    box-shadow: 0.8vw 0.8vw 0.8vw rgba(0,0,0,0.4),
    0.55vw 0.55vw 0.55vw #CB3B09; 
}

/*

.about-me-section {
    width: 100%;
    background-color: #CB3B09;
    overflow: hidden;
    padding: 10vw;
}

.about-me-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.about-me-text-box, .about-me-image-box {
    display: flex;
    width: 50vw;
    justify-content: center;
    
}

.about-me-text-box {
    display: flex;
    flex-direction: column;
}

.about-me-text-box h1 {
    margin-bottom: 5vw;
}

.about-me-image-box {
    justify-content: center;
    align-items: center;
}

.headshot-image {
    position: relative;
    width: 25vw;
    border-radius: 50%;
    border: 2px solid #ECEADA;
    box-shadow: 0.8vw 0.8vw 0.8vw rgba(0,0,0,0.4),
    0.55vw 0.55vw 0.55vw #CB3B09; 
}


.abstract-image {
    position: absolute;
    width: 40vw;
    opacity: 0.9;   
}

*/

#skills {
    background-color: #FFFFFF;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 5vw;
}

#skills h1 {
    padding: 3vh;
}

.skills-icon-container {
    width: 70vw;
    display: grid;
    justify-content: center;
    align-items: center;
    grid-template-columns: repeat(5, 1fr) ;
    grid-template-rows: repeat(3, 1fr);
    gap: 10px;
    padding: 20px;

}

.icons {
    border: 2px solid #CB3B09;
    padding: 2px;
}

.icon-image {
    width: 100%;
    height: 100px;
}

#resume {
    background-color: #192733;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10vh;
    padding: 15vh;    
}

.resume-button {
    height: 10vh;
    width: 15rem;    
    border: 3px solid #ECEADA;
    background-color: #CB3B09;    
}

.resume-button-text {
    text-decoration: none;
    color: #FEF4EA;
    font-size: 20px;
    font-weight: 600;
}

/* services css */

#services {
    display: flex;
    flex-direction: column;
    background-color: #F6F9FC;
    padding-top: 10vh;
}

.services-header {
    display: grid;
    padding: 20px;
    margin-left: 10vw;
    margin-bottom: 5vw;
    gap: 15px;
}

.services-container {
    display: grid;
    justify-content: center;
    align-items: center;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2,1fr);
    gap: 50px;
    margin-left: 10vw;
    margin-right: 10vw;
    margin-bottom: 10vw;
}


.services-box {
    display: inline;
    float: left;
}

.services-box p {
    overflow: hidden;
}

.services-icon {
    width: 35px;
    float: left;
    margin-right: 20px;
}

/* -- Project CSS -- */

#project {
    background-color: #ECEADA;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#project h1 {
    margin-top: 10vh;
}

.project-container {
    display: flex;
    gap: 20px;
    padding: 10vh 10vw;
}

.project-container p {
    text-overflow: hidden;
}

.project-image {
    width: 100%;
    border-top-right-radius: 30px 30px;
    border-top-left-radius: 30px 30px;
}

.project-box {
    background-color: #FFFFFF;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 30px 30px;  
}

.project-box > * {
    margin-bottom: 20px;
}

.a-text-orange {
    font-family: 'Geomanist', sans-serif;
    color: #CB3B09;
    font-size: 1em;
    text-decoration: none;
}



/*-- Contact CSS --*/

#contact {
    background-color: #E04826;
    width: 100%;
    margin: 0;
    padding: 5vw;
}

.contact-container {
    margin-left: 10vw;
    margin-right: 10vw;
    
}

.contact-left {
    flex-basis: 50%;
    padding: 50px;
}

.logo-contact {
    height: 120px;
}

.contact-left h1, .contact-left p {
    margin-bottom: 20px;
}

.contact-icon {
    width: 30px;
    margin-right: 20px;
}

.contact-box, .contact-left-text {
    display: flex;
}

.contact-left-text p {
    margin: 10px;
}

form {
    padding: 20px;
}

.form-group input {
    margin-bottom: 5px;
}

.form-group button {
    border: 2px solid #E04826;
    border-radius: 5px;
    padding: 10px;
    margin-top: 10px;
    cursor: pointer;
    font-size: 1em;
}

.contact-right {
    flex-basis: 50%;
    background-color: #ECEADA;
    padding: 30px;
    border-radius: 20px;
}

input {
    width: 100%;
    height: 30px;
    border: none;
    background-color: #ECEADA;
    border-bottom: 2px solid #E04826;
}

textarea {
    width: 100%;
    border: none;
    background-color: #ECEADA;
    border-bottom: 2px solid #E04826;
}


#footer {
    background-color: #ECEADA;
    display: flex;
    flex-direction: column;
    padding: 2vh;
}

.footer-box1 {
    display: flex;
    padding: 10px;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.footer-box2 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    color: #CB3B09;
    font-weight: 900;
}

.footer-icon {
    width: 40px;
}




@media screen and (max-width: 600px) {

    .section-header {
        font-size: 2.5rem;
    }
    
    .menu {
        position: absolute;
        right: 0;
        height: 100vh;
        top: 100px;
        background-color: #192733;
        flex-direction: column;
        align-items: center;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }

    #menu-toggle:checked ~ .menu {
        transform: translateX(0);
    }

    .menu-icon {
        display: block;
    }

    .nav-bar-container {
        flex-direction: column;
        align-items: center;
    }


    .my-name-container {
        display: grid;    
    }

    .home-container h3 {
        font-size: 1.5rem;
        padding-bottom: 5vh;
    }

    #typed-text , #steady-text {
        justify-content: center;
        font-size: 2.4rem;
        
    }

    #typed-text {
        padding-left: 20px;
        padding-right: 20px;
    }
  
    #steady-text {
        background-color: #CB3B09;
        color: #ECEADA;
        padding: 10px;
        border-radius: 5px;
    }

    /*media query for about me 
    .about-me-section {
        padding: 5vw;
    }

   .about-me-image-box {
        display: inline-block;
        position: relative;
        margin-top: 10px;
        margin-left: 40vw;
   }

   .about-me-text-box {
        position: absolute;
        justify-content: center;
        width: 80%;
        text-align: left;
    }

   .headshot-image  {
        width: 90vw;
   }

   .abstract-image {
        width: 100vw;
   }
    */

    .about-me-container {
        flex-direction: column;
    }



   /*media query for skills*/

   #skills {
    padding: 20px;
   }

   .skills-icon-container {
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
   }

    #skills h1 {
        margin-top: 5vh;
        margin-bottom: 5vh;
    }

    .services-container {
        display: flex;
        flex-direction: column;
        
    }

    .project-container {
        flex-direction: column;
    }

    #project h1 {
        margin-top: 5vh;
        margin-bottom: 5vh;
    }

    .contact-container {
        padding: 0;
        margin-bottom: 20px;
    }

    .contact-box {
        flex-direction: column;
    }

    .contact-left, .contact-right {
        flex-basis: 100%;
    }
    
}

@media screen and (min-width: 601px ) and (max-width: 900px) {
    .section-header {
        font-size: 2.5rem;
    }
    
    .menu {
        position: absolute;
        right: 0;
        height: 100vh;
        top: 100px;
        background-color: #192733;
        flex-direction: column;
        align-items: center;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }

    #menu-toggle:checked ~ .menu {
        transform: translateX(0);
    }

    .menu-icon {
        display: block;
    }

    .nav-bar-container {
        flex-direction: column;
        align-items: center;
    }
    

    .my-name-container {
        display: grid;    
    }

    .home-container h3 {
        font-size: 1.5rem;
        padding-bottom: 5vh;
    }

    #typed-text , #steady-text {
        justify-content: center;
        font-size: 2.4rem;
        padding-left: 20px;
        padding-right: 20px;
    }
  
    #steady-text {
        background-color: #CB3B09;
        color: #ECEADA;
        border-radius: 5px;
    }

    /*media query for about me 
   .about-me-image-box {
        display: inline-block;
        position: relative;
        margin-top: 20px;
        margin-left: 30vw;
   }

   .about-me-text-box {
        position: absolute;
        justify-content: center;
        margin-top: 20vh;
        width: 80%;
    }

   .headshot-image  {
        width: 80vw;
   }

   .abstract-image {
        width: 100vw;
   }

   */
    

    .about-me-container {
        flex-direction: column;
    }

    .about-me-image-box {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .headshot-image {
        width: 80%;
    }


   /*media query for skills*/

   #skills {
    padding: 20px;
   }

   .skills-icon-container {
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
   }

    #skills h1 {
        margin-top: 5vh;
        margin-bottom: 5vh;
    }


    .project-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        padding: 3vh 3vw;
        margin-bottom: 10vh;
    }

    #project h1 {
        margin-top: 8vh;
        margin-bottom: 8vh;
    }


    .services-container {
        display: flex;
        flex-direction: column;   
    }


    .contact-container {
        padding: 20px 0;
    }
    .contact-box {
        flex-direction: column;
    }

    .contact-left, .contact-right {
        flex-basis: 100%;
        margin: 0;
    }
       
    
}

@media screen and (min-width: 901px ) and (max-width: 1023px) {
    
    .section-header {
        font-size: 2.5rem;
    }

    .menu {
    
        display: none;
        flex-direction: column;
        width: 100%;
    }

    #menu-toggle:checked + .menu-icon + .menu {
        display: flex;
    }

    .menu-icon {
        display: block;
    }

    .nav-bar-container {
        flex-direction: column;
        align-items: center;
    }

    .about-me-container {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }

    .about-me-image-box, .headshot-image {
        align-items: center;
        width: 150%;
    }

    .about-me-text-box {
        width: 100%;
    }

    .about-me-text-box {
        transform: translateX(-50px);
    }



    .project-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        padding: 3vh 3vw;
        margin-bottom: 10vh;
    }

    #project h1 {
        margin-top: 8vh;
        margin-bottom: 8vh;
    }

    .contact-container {
        padding: 5vw;
    }
    .contact-box {
        flex-direction: column;
    }

    .contact-left, .contact-right {
        flex-basis: 100%;
        margin: 0;
    }


}