/*FONTS*/
.inter {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: weight;
  font-style: normal;
}

.sora {
  font-family: "Sora", sans-serif;
  font-optical-sizing: auto;
  font-weight: weight;
  font-style: normal;
}

/*HTML*/
body {
    background-color: hsl(0, 0%, 0%);
    margin: 0;
    padding: 0;
}

h1 {
    font-family: Sora, Inter, Arial, Helvetica, sans-serif;
    margin-top: 1em;
    text-align: center;
    font-size: 5em;
    margin-bottom: 0;
    color: hsl(0, 0%, 95%);
}

h2 {
    font-family: Inter, Arial, Helvetica, sans-serif;
    text-align: center;
    font-size: 2.5em;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    color: hsl(0, 0%, 70%);
}

h3 {
    color: hsl(0, 0%, 80%);
    font-family: Inter, Arial, Impact ;
}

/*NAV*/
.logo {
    margin-left: 30px;
    margin-top: 10px;
}

nav {
    top: 0;
    transition: all 600ms ease-in-out;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    transition: all 600ms ease-in-out;
    background-color: hsl(0, 0%, 0%);
}


ul {
    margin: 0;
    padding: 40px;
    display: flex;
    justify-content: flex-end;
    list-style-type: none;
}

li {
    margin-right: 30px;
    font-family: Sora, Inter;
    font-weight: 500;
    font-size: 25px;
    text-decoration: none; 
} 
    
li a, .logo a { 
    text-decoration: none; 
    color: hsl(0, 0%, 70%); 
    transition: font-size 0.2s ease, color 0.2s ease;
} 

li a:hover, .logo a:hover { 
    text-decoration: none; 
    color: hsl(0, 0%, 95%); 
    font-size: 115%;
}

.active {
    color: hsl(0, 0%, 95%)
}

/* --- Burger button (hidden on desktop) --- */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin-right: 20px;
    z-index: 100;
}

.burger span {
    display: block;
    width: 26px;
    height: 2px;
    background-color: hsl(0, 0%, 70%);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animated X when open */
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/*ABOUT ME - INDEX.HTML*/
.am-work h2, .am-education h2 {
    margin-bottom: 0;
}

.about-me {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    background-color: hsl(0, 0%, 5%);
    padding: 0px;
    border: 1px solid hsl(0, 0%, 30%);
    background: linear-gradient(0deg, hsl(0, 0%, 5%), hsl(0, 0%, 20%));  
    border-radius: 20px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.photo {
    margin-top: 20px;
}

.p-about-me {
    color: hsl(0, 0%, 70%);
    width: 564px;
    height: 272;
    font-family: Inter, Arial, Helvetica, sans-serif;
    font-size: 25px;
    font-weight: 500;
    margin-left: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.about-me a {
    flex-basis: 100%;
    display: flex;
    justify-content: center;
    text-decoration: none;
    color: inherit;
}

.about-me a:visited {
    text-decoration: none;
    color: inherit;
}

.see-more-button {
    text-decoration: none;
}

.see-more-button a {
    text-decoration: none;
}

.work a {
    text-decoration: none;
    color: inherit;
}

.work-container a {
    text-decoration: none;
    color: inherit;
}

.work button {
    text-decoration: none;
}

button {
    color: hsl(0, 0%, 70%);
    border: 1px solid hsl(0, 0%, 30%);
    background-image: linear-gradient(180deg, hsl(0, 0%, 5%), hsl(0, 0%, 20%));
    background-size: 100% 200%;
    background-position: 0% 0%;
    border-radius: 20px;
    padding: 10px 20px;
    font-size: 20px;
    cursor: pointer;
    transition: background-position 1s ease, color 1s ease, border-color 1s ease;
    text-decoration: none;
    text-align: center;
    display: block;
    margin: 0 auto;
    margin-top: 20px;
    margin-bottom: 20px;
}

button a {
    text-decoration: none;
    color: black;
}

button a:visited {
    color: black;
    text-decoration: none;
}

button:hover {
    border-color: hsl(0, 0%, 60%);
    color: hsl(0, 0%, 90%);
    text-decoration: none;
}

button:hover a { 
    text-decoration: none;
}

/*WORK - INDEX.HTML*/
.work {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    max-width: 1800px;
    margin-left: auto;
    margin-right: auto;
}

.h1-work {
    flex-basis: 100%;
    width: 100%;
    text-align: center;
    margin-top: 0.8em;
    margin-bottom: 0em;
    color: hsl(0, 0%, 95%);
}

.work img {
    width: 315px;
    height: 315px;
    margin: 20px;
    flex-shrink: 0;
    border: 2px solid hsl(0, 0%, 30%);
    border-radius: 20px;
}

.work-container {
    position: relative;
}

.work-image {
    opacity: 1;
    display: block;
    transition: 0.5s ease;
    backface-visibility: hidden;
}

.middle {
    transition: 0.5s ease;
    opacity: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    text-align: center;
    font-family: Inter, Arial, Helvetica, sans-serif;
    text-decoration: none;
}

.work-container:hover .work-image {
    opacity: 0.3;
}

.work-container:hover .middle {
    opacity: 1;
}

.work-text {
    color: white;
    font-size: 23px;
    padding: 16px 32px;
    text-decoration: none;
}

.see-more-button button {
    text-decoration: none;
}

.see-more-button button a {
    text-decoration: none;
}

.sm-button button {
    text-decoration: none;
}

.sm-button button a {
    text-decoration: none;
}

/*SKILLS - INDEX.HTML*/
.skills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    background-color: hsl(0, 0%, 5%);
    padding: 0px;
    border: 1px solid hsl(0, 0%, 30%);
    background: linear-gradient(0deg, hsl(0, 0%, 5%), hsl(0, 0%, 20%));  
    border-radius: 20px;
}

.skills h2 {
    flex-basis: 100%;
    width: 100%;
    text-align: center;
    margin-top: 0.8em;
    margin-bottom: 0em;
}

.skills img {
    margin: 10px;
}

/*CONTACT - INDEX.HTML*/
.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    background-color: hsl(0, 0%, 5%);
    padding: 0px;
    border: 1px solid hsl(0, 0%, 30%);
    background: linear-gradient(0deg, hsl(0, 0%, 5%), hsl(0, 0%, 20%));  
    border-radius: 20px;
}

.contact-info h2 {
    flex-basis: 100%;
    width: 100%;
    text-align: center;
    margin-top: 0.8em;
    margin-bottom: 0em;
}

.contact-info p {
    color: hsl(0, 0%, 70%);
    width: 564px;
    height: 272;
    font-family: Inter, Arial, Helvetica, sans-serif;
    font-size: 25px;
    font-weight: 500;
    margin-left: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    text-decoration: underline;
}

/* ABOUT ME.HTML */
.am-photo {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    margin-top: 20px;
    margin-bottom: 6em;
    margin-left: auto;
    margin-right: auto;
}

.am-education h1, .am-work h1 {
    flex-basis: 100%;
    width: 100%;
    text-align: center;
    margin-top: 0.2em;
    margin-bottom: 0em;
}

.am-work h2 {
    flex-basis: 100%;
    width: 100%;
    text-align: center;
}

.am-work h3 {
    color: hsl(0, 0%, 70%);
}

.am-education, .am-work {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    background-color: hsl(0, 0%, 5%);
    padding: 0px;
    border: 1px solid hsl(0, 0%, 30%);
    background: linear-gradient(0deg, hsl(0, 0%, 5%), hsl(0, 0%, 20%));  
    border-radius: 20px;
    width: 1148px;
    margin-left: auto;
    margin-right: auto;
}

.am-p {
    color: hsl(0, 0%, 70%);
    width: 1148px;
    height: 272;
    font-family: Inter, Arial, Helvetica, sans-serif;
    font-size: 25px;
    font-weight: 500;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* BLOG.HTML */
.blog-controls {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 2em;
    margin-left:78vw;;
    margin-top: 10px;
}

.sort-btn {
    background: linear-gradient(0deg, hsl(0, 0%, 5%), hsl(0, 0%, 20%));
    color: hsl(0, 0%, 70%);
    border: 1px solid hsl(0, 0%, 30%);
    border-radius: 20px;
    padding: 10px 24px;
    font-family: Inter, Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.sort-btn:hover {
    border-color: hsl(0, 0%, 60%);
    color: hsl(0, 0%, 90%);
}

.scroll {
    color: hsl(0, 0%, 70%);
    font-family: Inter, Arial, Helvetica, sans-serif;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    margin-top: 20px;
}

.blog-container {
    display: flex;
    gap: 2em;
    justify-content: center;
}

.blog-container img {
    height: auto;
    width: 30em;
    border-radius: 20px;
    border: 1px solid hsl(0, 0%, 30%);
    margin-top: 50px;

}

.blog-post-left, .blog-post-right {
    margin-top: 50px;
    background-color: hsl(0, 0%, 5%);
    padding: 0px 32px 32px 32px;
    border: 1px solid hsl(0, 0%, 30%);
    background: linear-gradient(0deg, hsl(0, 0%, 5%), hsl(0, 0%, 20%));
    border-radius: 20px;
    width: 1148px;
    box-sizing: border-box;
}

.blog-post-left h2, .blog-post-right h2, .blog-post-left h4, .blog-post-right h4 {
    display: inline-block;
    vertical-align: sub;
}

.blog-post-left h2, .blog-post-right h2 {
    margin: 0 12px 0 0;
    margin-top: 0.5em;
    margin-bottom: 0em;
    font-size: 2em;
    color: hsl(0, 0%, 70%);
    font-family: Inter, Arial, Helvetica, sans-serif;
    font-weight: 700;
    text-align: left;
}

.blog-post-left h4, .blog-post-right h4 {
    margin: 0;
    font-size: 1.1em;
    color: #aaa;
    font-family: Inter, Arial, Helvetica, sans-serif;
    font-weight: 400;
    vertical-align: middle;
}

.blog-post-left p, .blog-post-right p {
    color: hsl(0, 0%, 70%);
    width: 100%;
    font-family: Inter, Arial, Helvetica, sans-serif;
    font-size: 1.2em;
    font-weight: 500;
    text-align: left;
    display: block;
}

.blog-post-left ul, .blog-post-right ul {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 0;
    margin: 16px 0;
    list-style-type: disc;
    justify-content: flex-start;
    align-items: flex-start;
}
.blog-post-left ul li, .blog-post-right ul li {
    margin: 0;
    font-size: 18px;
    color: hsl(0, 0%, 70%);
}

.external-space {
    height: 200px;
}

/*ECO-EXPLORER.HTML*/

.e-e {
    margin-bottom: 0.5em;
    margin-top: 0.5em;
}

.info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    background-color: hsl(0, 0%, 5%);
    padding: 0px;
    border: 1px solid hsl(0, 0%, 30%);
    background: linear-gradient(0deg, hsl(0, 0%, 5%), hsl(0, 0%, 20%));  
    border-radius: 20px;
    width: 1148px;
    margin-left: auto;
    margin-right: auto;
}

.info p {
    color: hsl(0, 0%, 70%);
    width: 1148px;
    height: 272;
    font-family: Inter, Arial, Helvetica, sans-serif;
    font-size: 25px;
    font-weight: 500;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;

}

/*SAINSBURYS AD*/

.video {
    margin-top: 3em;
    width: 60%;
    height: 60%;
    justify-self: center;
}

/*GD-ANIMALS.HTML*/
.animals {
    display: flex;
    flex: wrap;
    gap: 2em;
    justify-content: center;
    margin-top: 3em;
}

.animals img {
    height: auto;
    width: 200px;
}

/*KLECKS*/

.klecks-container {
    display: flex;
    flex: wrap;
    flex-wrap: wrap;
    gap: 2em;
    width: 82em;
    justify-self: center;
    margin-top: 3em;
}

.klecks-container img {
    height: auto;
    width: 40em;
    justify-content: center;
}

/*Burger Vid*/

.burger-vid {
    margin-top: 3em;
    margin-left: 50%;
    transform: translateX(-50%);
}

/*SAIL*/

.sail {
    margin-top: 1.5em;
    display: flex;
    justify-self: center;
    border-radius: 10px;
}

/*ASW Poster*/

.asw-poster {
    margin-top: 1.5em;
    display: flex;
    justify-self: center;
    border-radius: 10px;
}

/*ASW Videos*/
.videos {
    display: flex;
    flex-wrap: wrap;
    gap: 3em;
    justify-content: center;
    margin-top: 3em;
}

/*Media Queries*/

@media (max-width: 768px) {
        nav {
        flex-wrap: wrap;
        position: relative;
    }

    .burger {
        display: flex;
    }

    ul {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 10px 0 20px;
        margin: 0;
    }

    ul.open {
        display: flex;
    }

    li {
        margin: 0;
        padding: 12px 30px;
        font-size: 20px;
    }

    .logo {
        font-size: 2em;
    }

    h1 {
        font-size: 3em;
    }

    .about-me, .skills, .contact-info, .am-education, .am-work {
        width: 90%;
    }

    .p-about-me, .am-p {
        width: 100%;
        font-size: 18px;
        padding: 20px;
        text-align: centre;
        margin-left: auto;
        margin-right: auto;
    }
    
    .am-photo, .photo {
        justify-content: centre;
        margin-left: auto;
        margin-right: auto;
    }

    .work-container img {
        width: 100%;
        height: auto;
    }
    
    .work img {
    width: 250px;
    height: 250px;
    }

    .blog-container {
        flex-direction: column;
        align-items: center;
    }

    .blog-container img {
        width: 100%;
        height: auto;
    }

    .blog-post-left, .blog-post-right {
        width: 90%;
    }

    /* Ensure the See More button sits below the Klecks art */
    .work {
        flex-direction: column;
        align-items: center;
    }

    .work > a > button,
    .work > a {
        display: block;
        margin-top: 20px;
        margin-bottom: 0;
        text-align: center;
    }
    
    .contact-info p {
        font-size:20px;
        text-align: centre;
        margin-left: auto;
        margin-right: auto;
    }

    /*BLOG*/

    .blog-img-right, .blog-img-left {
        display: none;
    }

    .blog-controls {
        justify-content: center;
        margin-left: 0;
    }

    /*KLECKS*/

    .klecks-container {
        width: 100%;
    }

    .klecks-container img {
        width: 80%;
        height: auto;
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }

    .info {
        width: 90%;
    }

    /*Animal LOGOS*/

    .animals {
        flex-direction: column;
        align-items: center;
    }

    .animals img {
        width: 60%;
        height: auto;
    }

    /*ASW*/

    .asw-poster {
        width: 80%;
        height: auto;
    }
}

@media (max-width: 1024px) {

    h1 {
        font-size: 3.5em;
    }

    .about-me, .skills, .contact-info, .am-education, .am-work {
        width: 90%;
    }
}

@media (max-width: 1200px) {
        .blog-img-right, .blog-img-left {
        display: none;
    }
}