:root {
    /*Variables*/
    --font-family: "DM Sans", sans-serif;
    --normal-font: 400;
    --bold-font: 700;
    --more-bold-font: 900;
    --borders: 2px;
    --radius-borders:10px;
    --background-colour:#35475e;
    --primary-colour:#f2f5f8;
    --secondary-colour: #f6a76f;
    --primary-shadow: #ebebeb;
    --secondary-shadow:#B27F48;
    --text-links-light:#e5833b;
    --text-links-dark:#ce7331;
    --bottom-margin:0.5rem;
    --bottom-margin-other: 1rem;
    --line-height: 1.7rem;
    --transition:0.1s;
    --page-padding: 1rem 5rem;
    --navbartext: white;
}

html {
    scroll-behavior: smooth;
    transition : 1s;
}

html * :not(.cmdwrite) {
    transition: 0.5s;
}

/* General Page CSS */
* {
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body {
    font-family:var(--font-family);
    overflow-x: hidden;
}

footer {
    background-color: var(--background-colour);
    text-align: center;
    color:var(--primary-colour);
    padding:2rem;
}

ul {
    list-style-type:none;
}
a {
    text-decoration:none;
    color: var(--text-links-light);
}



a:not(#hamburger-menu):hover {
    color: var(--secondary-colour);
}

/* Navigation bar CSS */

.nav-link-mobile {
    display: none;
}

#navbar-container {
    position:sticky;
    display:flex;
    top: 0;
    left: 0;
    z-index: 1;
    align-items: center;
    justify-content: space-between;
    padding:1.5rem 3.5rem;
    background-color: var(--background-colour);
    box-shadow:0 3px 5px rgba(0, 0, 0, 0.1);
}

nav h1 {
    color: var(--navbartext);
}
nav ul {
    display:flex;
    gap: 1.9rem;
}
nav ul li {
    font-weight: var(--bold-font);
}
nav a {
    color: var(--navbartext);
    transition: var(--transition);
}
a:not(.no-underline):hover {
    color: var(--secondary-colour);
    border-bottom: 2px solid var(--secondary-colour);
}
#hamburger-menu {
    float:right;
    cursor: pointer;
    display:none;
}
.profile-container {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  transition: 1s ease-out;    
}
.profile-container:hover {
  width: 75px;
  height: 75px;
  transition: 1s ease-out;
}
#profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#lightDarkToggle {
    width:100%;
    cursor: pointer;
}

/* Hero Section CSS */
.hero-section {
    scroll-margin-top: 8em;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:2.5rem;
    max-width: 68.75rem;
    margin:auto;
    padding:var(--page-padding);
}
#hero-img {
    height: 10rem;
    width: auto;
    max-width: 100%;
    border-radius: var(--radius-borders);
}
#intro {
    padding: 0.7rem;
    border-radius: var(--radius-borders);
    box-shadow: 0px 2px 15px 2px var(--primary-shadow);
}

.intro-links {
    color: var(--text-links-dark);
}

.cmdwrite h2 {
    overflow: hidden;
    border-right: .10em solid var(--secondary-colour);
    white-space:nowrap;
    margin: 0 auto;
    /* letter-spacing: .15em; */
    animation: typing 3.5s steps(30, end), blink-caret .75s step-end infinite;
}

@keyframes typing {
    from {width: 0}
    to {width: 100%}
}

@keyframes blink-caret {
    from, to {border-color: transparent}
    50% {border-color: var(--secondary-colour)}
}


#intro h2 {
    margin-bottom: var(--bottom-margin);
}

#intro p {
    line-height: var(--line-height);
    padding: 0.3rem 0;

}

/*More about me Section CSS */

#more-about-me {
    
    scroll-margin-top: 8em;
    background-color: var(--primary-colour);
    padding: var(--page-padding);
}
#more-about-me-div {
    margin-top: 1rem;
    width: 100%;
    padding-left:8rem;
    padding-right:8rem;
    
}

#more-about-me h2 {
   margin-bottom: var(--bottom-margin);
   text-align: center;
}

#more-about-me p {
    line-height: var(--line-height);
    padding: 0.4rem;
}


/* Skills section CSS */
.skills {
    scroll-margin-top: 10em;
    max-width: 70rem;
    margin:auto;
    text-align:center;
    margin-top: 2.5rem;
}
.skills #skills-title {
    margin-bottom: 1rem;
}

#languages-title {
    padding:2rem;
}

.row1 {
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    flex-direction: row;
    justify-content: center;
}
.row2 {
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    flex-direction: row;
}
.row3 {
    margin-top: 3rem;
    gap: 4rem;
}
.skills-div i {
    padding:1.25rem;
}

.icon-skill {
    font-size: 5rem;
}

.icon-skill-img {
    width: 5rem;
    height: 5rem;
}

.icon-skill-img-sm {
    width: 2rem;
    height: 2rem;
}

#githubimg {
    margin: 5px;
}

.skill-cell {
    margin:1rem;
    margin:auto;
    float:left;
    padding: 1.25rem;
}

.skill-cell:hover {
    transform: translate(0px, 10px);
}

/*Projects Section */

.projects {
    scroll-margin-top: 8em;
    background-color: var(--primary-colour);
    padding:32px 0;
    margin-top:2rem;
    width: 100%;
    /*max-width: 70rem;
    margin:auto;
    text-align:center;
    margin-top: 2.5rem;*/
}
.projects #projects-title, .project-title{
    text-align: center;
    font-weight: var(--bold-font);
    /*margin-bottom: 1rem;*/
}

#project-description {
    padding:3rem;
}


.projects-div {
    align-items:center;
    justify-content: center;
    text-align: center;
    align-content:space-between;
}

.project-cell {
    width:15rem;
    word-wrap: break-word;
    padding:1rem;
    margin-top:5rem !important;
    margin: auto;
    width:15rem ;
    word-wrap: break-word;
    background-color: white;
    border: var(--borders) solid;
    border-color: var(--primary-shadow);
    border-radius: var(--radius-borders);
}

.white-border {
    margin:0px;
    background-color: white;
    border-radius: var(--radius-borders);
}

/* #githubicon {
    height: 80%;
    width: 80%;
} */

.project-img {
    padding:1rem;
    width:100%;
    height:100%;
    border-radius: var(--radius-borders);
    transition:1s ease-out 100ms;
}
.project-img:hover {
    border-radius: 100rem;
}

/* Contact section CSS*/
#contactme {
    scroll-margin-top: 8em;
    margin:2rem;
}
#contactme h2 {
    text-align: center;
    margin-bottom: 2rem;
}



.contact-form-div {
    max-width: 60rem;
    margin: 0 auto;
    padding: 1rem;
    border-radius: var(--radius-borders);
    box-shadow:0 3px 10px var(--secondary-shadow) ;
}

.input-container label{
    line-height:2em;
    font-weight: var(--bold-font);
    
}
.input-container textarea {
    min-height:6.25rem;
    font-size:16px;
    
}

.inputs {
    width:100%;
    border-radius: 5px;
    padding: 10px;
    outline: none;
    border: 0.2em solid;
    transition: var(--transition);
}

.inputs:focus {
    border:0.2em solid var(--primary-colour)
}


#button-container {
    display:flexbox;
    align-items: center;
}

#form-button {
    text-align: center;
    width:100%;
    padding:10px;
    margin:10px 0;
    background-color:white;
    border: 0.2em solid;
    border-radius:5px;
    font-weight: var(--bold-font);
    font-size:16px;
    transition: var(--transition);
}
#form-button:hover {
    background-color: var(--primary-colour);
    cursor:pointer;
}


/* Find me section CSS*/


#findme {
    scroll-margin-top: 8em;
    padding:32px 0;
    /* margin-top:2rem; */
    /*max-width: 70rem;
    margin:auto;
    text-align:center;
    margin-top: 2.5rem;*/
}

#findme h2 {
    text-align: center;
}
#findme .findme-title{
    text-align: center;
    font-weight: var(--bold-font);
    /*margin-bottom: 1rem;*/
}

#findme-tag {
    padding:3rem;
}


.findme-div {
    align-items:center;
    justify-content: center;
    text-align: center;
}

.findme-cell {
    width:15rem;
    word-wrap: break-word;
    padding:1rem;
    margin:auto;
    margin-top:2rem;
    word-wrap: break-word;
    border: var(--borders) solid;
    border-color: var(--background-colour);
    border-radius: var(--radius-borders);
    margin: 0;
}
.findme-img {
    padding:1rem;
    width:100%;
    height:100%;
    border-radius: var(--radius-borders);
    transition:1s ease-out 100ms;
}
.findme-img:hover {
    border-radius: 100rem;
}


/* Slight Web Responsivity for smaller screen sizes*/
@media screen and (max-width: 1200px) {
    html, body {
        overflow-x: hidden;
    }
    #hero-img {
        width: auto;
        height: 10rem;
        max-width: 100%;
        border-radius: 2rem;
    }
    #intro {
        padding-bottom:4rem;
        align-content: center;
    }
    #intro-text {
        margin-top:2rem;
        min-height: 1rem;
    }

    #more-about-me-div {
        padding-left:0rem;
        padding-right:0rem;
        
    }
    
}


/* Mobile/tablet Responsivity*/
@media screen and (max-width: 1000px) {
    * {
        margin: 0;
        box-sizing: border-box;
    }

    html, body {
        overflow-x: hidden;
    }
    /* Navigation menu */
    #profile-img {
        display: none;
    }

    nav {
        position: sticky;
        padding:0rem 1rem;
    }
    #navbar-container {
        width:100%;
        position: fixed;
        top:0;
        left:0;
        z-index: 1;
        
        display:flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding:1.5rem 0rem 0rem 0rem;
        
        background-color: var(--background-colour);
        box-shadow:0 3px 5px rgba(0, 0, 0, 0.1);
    }

    #navbar-container h1 {
        display: none;
    }

    nav ul {
        position:fixed;
        background-color: var(--background-colour);
        flex-direction: column;
        top: 86px;
        left: 10%;
        width: 80%;
        text-align: center;
        transform: translateX(120%);
        transition: transform 0.5s ease-out;
    }
    nav ul li {
        margin:4px 0;
    }

#navbar {
    display: none;
    flex-direction: column;
    background: var(--secondary-shadow);
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    padding: 1rem;
    z-index: 999;
    }

#navbar.show {
    display: flex;
}

    #hamburger-menu {
        padding: 3px;
        display:flex;
        justify-content: center;
        align-items: center;

    }
    nav ul.show {
        transform: translateX(0);
    }

    /* Hero menu */

    .hero-section {
        display: flex;
        flex-direction: column;
        align-content: center;
        gap:0;
        margin-top: 8rem;
        width:100%;
        
    }   
    #hero-img {
        max-width:40rem;
        width:auto;
        height: 10rem;
        border-radius: 0.5rem;
    }

    #intro-text {
        text-align: left;
        width:100%;
    }
    #intro {
        padding-bottom:0rem;
        width:120%;
    }
    #intro p { 
        padding: 0rem 0;
    }
    /* More about me section */

    #more-about-me {
        padding-left:3rem;
        padding-right:3rem;
        margin: auto;
        
    }

    .profile-container {
        height: 30px;
    }

}
/* Mobile-only Responsivity */
@media screen and (max-width: 800px) { 
    #hero-img {
        height: 10rem;
        width: auto;
        max-width: 100%;
        border-radius: 0.5rem;
        margin:1.5rem;
    }

    #intro-text {
        width: 100%;
    }
    
}

