/* VARIABLES */
:root {
    --primaryBackgroundColor: #0a0816;
    --accentColour: rgb(98, 134, 235);

}


/* FONTS */
@font-face {
    font-family: Poppins;
    src: url("../fonts/Poppins/Poppins-Medium.ttf");
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: Quicksand;
    src: url("../fonts/Quicksand/static/Quicksand-Medium.ttf");
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: Nunito;
    src: url("../fonts/Nunito2/static/Nunito-Medium.ttf");
    font-weight: normal;
    font-style: normal;
}

/* DEFAULTS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Nunito;
    color: #a19e9e;
}

html {
    scroll-behavior: smooth;
}

body{
    /* background-color: rgb(15, 23, 46); */
    background-color: var(--primaryBackgroundColor);

}

.main-container {
    display: flex;
    flex-direction: column;
    position:relative;
}

a {
    text-decoration: none;
    color: inherit;
}

li {
    list-style: none;
    z-index: 12;
}

/* ALL SECTIONS */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 70%;
    border-bottom: 1px dotted var(--accentColour);
    z-index: 5;
}

.about-container, .skills-container, .projects-container, .experience-container, .contact-container {
    justify-content: start;
    margin-top: 100px;
    padding: 50px;
    background-color: var(--primaryBackgroundColor);
}

/* NAV SECTION */
.nav-container {
    display: flex;
    flex-direction: row;
    height: 50px;
    width: 100%;
    color: #eee;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    right: 0;
    left:0;
    z-index: 10;
    transition: 0.5s;
}

.desktop-scrolled {
    background-color: rgba(10,8,22,0.5);
    backdrop-filter: blur(10px);
}

.mobile-scrolled {
    background-color: var(--primaryBackgroundColor);
    box-shadow: 0 10px 20px black;
}

nav {
    filter: blur(0px);
    display: flex;
    flex-direction: row;
    width: 70%;
    color: #91a3aa;
    justify-content: space-between;
    align-items: center;
    z-index: 11;
}
nav ul {
    display:flex;
    width: 70%;
    flex-direction: row;
    justify-content: end;
    gap: 30px;
}
nav ul li {
    display: flex;
    gap: 7px;
}
nav ul li:hover {
    color: var(--accentColour);
}

/* Hambuger Menu */
.hamburger-menu-btn {
    display: none;
    width: 30px;
    height: 25px;
    cursor: pointer;
}

.hamburger-bar {
    display: block;
    width: 80%;
    height: 1px;
    border: none;
    background-color: #eee;
}

.mobile-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 60px;
    overflow: hidden;
    height: 400px;
    max-height: 450px;
    width: 100%;
    background-color: var(--primaryBackgroundColor);
    text-align: center;
    position: fixed;
    left: 0;
    right: 0px;
    font-size: 1.5rem;
    line-height: 3.5rem;
    top: -450px;
    transition: top 0.3s ease-in;
    border-bottom: 1px dotted var(--accentColour);
    z-index: 8;
}
.mobile-menu.mobile-menu-active {
    top: 0px;
}

.mobile-title {
    display: none;
    font-family: Nunito;
    font-size: 1.5rem;
}

/* Blur background when opening mobile menu */
.sections::after {
    content: '';
    display: none;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.mobile-menu.mobile-menu-active ~ .sections::after {
    display: block;
    backdrop-filter: blur(10px);
    z-index: 7;
}

.mobile-menu ul, .mobile-menu ul li {
    width: 100%;
}

.mobile-menu ul li a {
    display: block;
    height: 100%;
    width: 100%
}

.mobile-menu ul li:hover, .mobile-menu ul li:focus {
    color: var(--accentColour);
}

.sections {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: 100vh;
}

.about, .skills, .projects, .experience, .contact {
    opacity: 1;
    transition: 4s; /* mainly used for timing of fade-in's */
}

.in-view {
    opacity: 1;
}


/* HERO SECTION */
.hero > .container {
    border: none;
}

.hero {
    display:flex;
    justify-content: center;
    min-height: 100vh;
    background-image: url("../images/carbonFibreTile.png");
    background-size: 4px;
    position: relative;
    color: #eee;
}

.hero-mask, .hero-mask2 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;   
}

.hero-mask {
    background-image: url("../images/hero_banner3.jpg");
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: 1;
}

.hero-mask2 {
    /* background-color: rgba(12, 20, 31, 0.7); */
    background: linear-gradient(
        180deg, 
        rgba(0, 0, 0, 0.20) 10%,
         rgba(0, 0, 0, 0.50) 50%,
          rgba(0, 0, 0, 1) 100%,
            rgba(0, 0, 0, 0.50) 50%,
             rgba(0, 0, 0, 0.20) 10% );
    z-index: 2;
}

.hero-block, .about-block {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;;
    margin-top: 200px;
}

.img-container{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 220px;
    height: 220px;
    /* border: 2px solid rgb(230, 151, 151); */
    border: 2px solid var(--accentColour);
    border-radius: 50%;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0px 0px 40px rgba(156, 178, 241, 0.8);
    z-index: 10;
}

.pic {
    width: 200px;
    height: 200px;
    border-radius: 50%;
}

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

.header {
    font-family: Poppins;
    font-size: 4rem;
    letter-spacing: 0.3rem;
    animation: headerIntro 2s;  
}

.sub-header {
    font-size: 1.5rem;
    text-align: center;
    color: var(--accentColour);
    animation: detailsIntro 2s;
}

.hero-text {
    width: 80%;
    text-align: center;
    margin-top: 40px;
    font-size: 1.2rem;
    color: #a19e9e;
    animation: detailsIntro 2s;
}

.hero-button {
    padding: 15px 20px;
    cursor: pointer;
    font-size: 1.1rem;
    border: 2px solid #7b7b83;
    border-radius: 7px;
    background-color: #131222;
    color: #b8b7c2;
    margin: 5px;
    transition-duration: 0.3s;
}

.hero-btns { 
    display: flex;
    text-align: center;
    margin-top: 40px;
}

.get-in-touch {
    background-color: #b8b7c2;
    border-color: #b8b7c2;
    color: #131222; 
}

.get-in-touch:hover{
    background-color: #9e9ea3;
}

.view-work:hover {
    background-color: #2e2c49; 
}

.arrow-svg {
    margin-top: 50px;
    animation: downArrowAnimation 1.5s infinite;
}

.container > h1 {
    font-family: Poppins;
    font-size: 3rem;
    margin-bottom: 40px;
    position: relative;
}

.container > h1:after {
    content: "";
    display: flex;
    width: 100px;
    height: 3px;
    border: none;
    border-top: 1px dotted var(--accentColour);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.container > .text > p {
    font-size: 1.2rem;
    line-height: 2rem;
    margin-bottom: 30px;
}

/* ABOUT SECTION */
#about {
     background-image: linear-gradient(to bottom, #020101, var(--primaryBackgroundColor));
}
.about-container {
    padding: 50px;
    position: relative;
    margin-top: 160px;
    background-color: transparent;
}

.about-container:after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    top: -10px;
    left: 40px;
    background-color: black;
    border-radius: 50%;
    background-image: url('../images/me.jpeg');
    background-repeat: no-repeat;
    background-size: cover;
    border: 6px solid rgb(24, 25, 27);
    box-shadow: 1px 1px 0 rgb(98, 134, 235), -1px -1px 0 rgb(98, 134, 235), 1px -1px 0 rgb(98, 134, 235),  -1px 1px 0 rgb(98, 134, 235), 0px 0px 20px rgba(156, 178, 241, 0.8);
}

.about .text {
    margin-top: 30px;
}

.card-container {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(300px, 300px));
    grid-template-rows: auto;
    justify-content: center;
    align-items: center;
    gap: 20px;
    grid-auto-flow: row; 
}

/* SKILLS SECTION */
.skill-card {
    display: flex;
    flex-direction: column;
    min-width: 300px;
    width: 300px;
    height: 200px;
    user-select: none;
    background-color: #24273b;
    padding: 15px;
}

.skills-icon > img {
    margin-bottom: 10px;
}

.skills-icons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    width: 100%;
    max-width: 1100px;
    margin-top: 60px;
}

.skills-icons > img {
    height: 27px;
}

.tags {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    align-items: start;
    justify-content: start;
    margin-top: 12px;
}

.tag {
    font-size: 0.8rem;
    background-color: #455fa5af;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    height: 26px;
}


/* PROJECTS */
.project-card {
    display: flex;
    flex-direction: column;
    min-width: 300px;
    width: 300px;
    height: 400px;
    user-select: none;
    background-color: #24273b;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    overflow: hidden;
}

.projects-banner-image {
    display: flex;
    height: 150px;
    background-repeat: no-repeat;
    background-size:cover;
    background-position-x: center;
    background-color: #161e22;
    border-bottom: 1px solid var(--accentColour);
}

.shop-times {
    background-image: url('../images/project-card-banners/ShopOpeningTimes.png');
}

.csv-file {
    background-image: url('../images/project-card-banners/JSON_CSV_Table.png');
    background-position-x: 25px;
    background-position-y: 15px;
}

.feed-read {
    background-image: url('../images/project-card-banners/Feed_Read.png');
}

.upload_and_view {
    background-image: url('../images/project-card-banners/upload_&_view.png');
}

.vanilla_mvc {
    background-image: url('../images/project-card-banners/vanilla_mvc.png');
}

.ntw_website {
    background-image: url('../images/project-card-banners/ntw_websites.png');
}

.ntwwebdesign {
    background-image: url('../images/project-card-banners/WordPressDemo2.png');
}

.ntwgeeksville {
    background-image: url('../images/project-card-banners/ntwgeeksville.png');
}

.card-details {
    display: flex;
    flex-direction: column;
    height: 250px;
    padding: 20px;
    /* gap: 10px; */
    justify-content: space-between;
    
}

.card-details h3 {
    color: white;
}

.project-links {
    display: flex;
    flex-direction: row;
    margin-top: 20px;
    gap: 15px;
}

.github-icon, .open-in-browser-icon {
    display: flex;
    align-items: center;
    font-size: 1rem;
    gap: 5px;
}

.github-svg, .open-in-browser-svg {
    height: 1rem;
}

.github-icon:hover, .open-in-browser-icon:hover {
    color: var(--accentColour);
    stroke-color: var(--accentColour);
}
.open-in-browser-icon:hover svg > path {
    stroke: var(--accentColour);
}
.github-icon:hover svg > path {
    stroke: var(--accentColour);
}



/* EXPERIENCE */
.experience-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 50px;
}
ul.experience-list {
    display: flex;
    flex-direction: column;
    gap: 30px;

} 
.link-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    height:50px;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--accentColour);
    align-items: end;
    justify-content: end;
}
.link-container a {
    transition: 0.3s;
    color: white;
}
.link-container a svg:hover {
    color: var(--accentColour);
}
.link-container a:hover {
    color: var(--accentColour);
}
.link-container a svg g path {
    stroke: white;
    fill: white;
    transition: 0.3s;
}
.link-container a:hover svg > g > path {
    stroke: var(--accentColour);
    fill: var(--accentColour);
}

.item-wrapper {
    display:flex;
    flex-direction: row;
}
.years {
    line-height: 2.1rem;
    padding-right: 50px;
    color:rgba(156, 178, 241, 0.8);
}
/* .ex-description ul{
    padding-left: 30px;
} */
 .ex-description h2 {
    color:var(--accentColour);
 }
.ex-description ul li {
    list-style: circle;
    list-style-position: inside;
}
.ex-description li::marker {
    color: var(--accentColour);
}


/* CONTACT */
.contact-container {
    display: flex;
    padding: 50px;
    border-bottom: none;
    align-items: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    min-height: 100px;
    border-radius: 7px;
    padding: 30px;
    gap: 15px;
}

.contact-form input[type='email'], .contact-form input[type='text'], .contact-form textarea {
    background: transparent;
    border: 1px solid var(--accentColour);
    width: 100%;
    padding:12px;
    color: #a19e9e;
    font-size: 1.2rem;
    outline: none;
}

.contact-form input::placeholder, .contact-form textarea::placeholder {
    color: #3d3c3c;
}

.contact-form input[type='text'], .contact-form input[type='email'] {
    height: 50px;
}

.contact-form-btn {
    display: block;
    height: 50px;
    background-color: var(--primaryBackgroundColor);
    color: var(--primaryBackgroundColor);
    border: 1px solid var(--accentColour);
    border-radius: 7px;
    color: #b8b7c2;
    font-size: 1.2rem;
    cursor: pointer;
}

.contact-form-btn:hover {
    background-color: #2e2c49;
}

.recaptcha-container {
    margin-top: 20px;
    margin-bottom: 20px;
}


.flash-msg {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    width: 100%;
    padding: 20px;
    text-align: center;
    margin-bottom: 15px;
    border: none;
    border-radius: 7px;
    color: rgb(0,0,0);
    z-index: 10;
}

.flash-msg.failed {
    background-color: rgb(221, 155, 155);
}

.flash-msg.success {
    background-color: rgb(167, 233, 194);
}

.contactFormError {
    color: rgb(226, 115, 115);
}

.toTop {
    display: none;  /* Default - JS will display btn on scroll */
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    height: 40px;
    width: 40px;
    position: fixed;
    bottom: 10px;
    right: 20px;
    background-color: var(--accentColour);
    color: var(--primaryBackgroundColor);
    border: none;
    border-radius: 3px;
    z-index: 11;
}

/* FOOTER */
footer {
    min-height: 50px;
    background-color: #080710;
    text-align: center;
    padding: 20px 0;
    border-top: 1px dotted var(--accentColour);
}
footer p {
    line-height: 3rem;
}
footer a:hover {
    color: var(--accentColour);
}

@media (max-width: 1330px) {

    /* EXPERIENCE */
    .experience-container {
        margin-top: 40px;
        gap: 0px;
    }
    .ex-description ul, .years {
        /* text-align: center; */
        padding-right: 0;
    }
    .ex-description ul li {
        list-style-position: outside;
        margin-left: 1rem;
    }
    .link-container {
        margin-top: 40px;
        border: 1px solid #7b7b83;
        border-radius: 7px;
        overflow: hidden;
    }
    .link-container > a {
        color: #b8b7c2;
        background-color: #131222;
        display: flex;
        width: 100%;
        height: 100%;
        justify-content: center;
        align-items: center;
        font-size: 1rem;
    }
    .link-container > a:focus {
        background-color: #2e2c49;
    }
    .link-container a svg {
        margin-left: 5px;
        margin-bottom: 4px;
        height: 16px;
    }
    /* Experience Dates */
    .item-wrapper {
        flex-direction: column;
    }
    
}

@media (max-width: 1100px) {

    .mobile-title {
        display: flex;
        margin-left: 30px;
        font-size: 1.2rem;
        color: transparent;
    }   

    .nav-container {
        height: 70px;
        justify-content: space-between;
        align-items:self-start;
        padding-top: 20px;
     }

    .desktop-menu {
        display: none;
    }

    .hamburger-menu-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-around;
        margin-right: 30px;
        z-index: 10;
    }

    .container {
        align-items:  start;
        /* border-bottom: none; */
        width: 100%;
        margin-top: 40px;
    }

    .container > h1 {
        font-size: 2rem;
        font-weight: normal;
        text-align: left;
    }

    .container > h1::after {
        left: 0;
        transform: translateX(0);
        width: 50px;
    }

    /* HERO */
    .hero-block {
        margin-top: 70px;
    }
    .header {
        font-size: 2rem;
    }
    .sub-header {
        font-size: 1.2rem;
    }
    .hero-text {
        font-size: 1rem;
        overflow-wrap: normal;
    }
    .hero-button {
        font-size: 1rem;
    }

    /* ABOUT */
    .about-container {
        margin-top: 220px;
    }
    .about-container:after {
        width: 130px;
        height: 130px;
        top: -120px;
        left: 50%;
        transform: translateX(-50%);
    }
    .about .text {
        margin-top: 0;
    }
    .container .text p {
        font-size: 1rem;
    }
    .container .text p:last-child {
        margin-bottom: 0;
    }

    /* SKILLS */
    .skills-container {
        margin-top: 40px;
    }
    .skills-container > .card-container {
        gap: 70px;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1000px));
    }
    .skill-card {
        width: 100%;
        height: auto;
        max-height: 200px;
    }
    .skills-icons {
        margin-top: 60px;
        width: 100%;
    }
    .skills-icons > img {
        height: 1.2rem;
    }

    /* PROJECTS */
    .projects-container {
        margin-top: 40px;
    }
    .projects-container > .card-container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1000px));
        gap: 70px;
    }
    .project-card {
        display: block;
        width: 100%;
        border-radius: 0;
    }
    .projects-banner-image {
        background-size: 400px;
    }
    .csv-file {
        background-position-x: 50%;
        background-position-y: auto;
    }



    /* CONTACT FORM */
    .contact-form {
        padding: 0;
    }
    .contact-form input[type='text'], .contact-form input[type='email'] {
        border-bottom: 1px solid var(--accentColour);
        font-size: 1rem;
    }
    .contact-form input::placeholder, .contact-form textarea::placeholder {
        font-size: 1rem;
        text-transform: uppercase;
    }
    .contact-form-btn {
        font-size: 1rem;
    }
}

/* Animations */
@keyframes downArrowAnimation {
    0% {transform: translateY(0px);}
    70% {transform: translateY(10px);}
    100% {transform: translateY(0px);}
}

@keyframes headerIntro {
    0% {
        transform: translateY(-50%);
        opacity: 0;
    }
    100% {
        transform: translateY(0px);
        opacity: 1;
    }
}

@keyframes detailsIntro {
    from {opacity: 0;}
    to {opacity: 1;}
}

@keyframes scrollFadeIn {
    0% {
        transform: scale(0.7); 
        opacity: 0.2;
    }
    100% { 
        transform: scale(1); 
        opacity: 1;
     }
}