*,
*::before,
*::after {
    box-sizing: border-box;
}

/* custom properties for colors and other such things */
:root {
    --ff-primary: 'Source code Pro', sans-serif;
    --ff-secondary: 'Source Code Pro', monospace;

    --fw-reg: 300;
    --fw-bold: 900;

    --clr-light: #333;
    /* Header Grey */
    --clr-dark: #fff;
    /* White Background */
    --clr-accent: #e02e16;
    /* Red Text */
    --clr-whitebackground: #594852;
    /* New BG white color but purple */
    --clr-gold: #e5f018;
    /* Gold color weight */
    --clr-grey: #7f8079;
    /*Grey color */
    --fs-h1: 3rem;
    --fs-h2: 2.25rem;
    --fs-h3: 1.25rem;
    --fs-h4: 1.2rem;
    --fs-body: 1rem;

    --boxShadow: 0.25em 0.25em 0.75em rgba(0, 0, 0, .25), 0.125em 0.125em 0.25em rgba(0, 0, 0, .6);


}

@media (min-width: 800px) {
    :root {
        --fs-h1: 4.5rem;
        --fs-h2: 3.75rem;
        --fs-h3: 1.5rem;
        --fs-h4: 1.2rem;
        --fs-body: 1.125rem;
    }
}

/* General */

html {
    scroll-behavior: smooth;
}

body {
    background: var(--clr-light);
    color: var(--clr-dark);
    margin: 0;
    font-family: var(--ff-primary);
    font-size: var(--fs-body);
    line-height: 1.6;
}

section {
    padding: 6em 2em;
}

img {
    display: block;
    max-width: 100%;
}

strong {
    font-weight: var(--fw-bold)
}

:focus {
    outline: 3px solid var(--clr-accent);
    outline-offset: 3px;
}

/* Buttons */

.btn {
    display: inline-block;
    padding: .5em 2.5em;
    background: var(--clr-accent);
    color: var(--clr-dark);
    text-decoration: none;
    cursor: pointer;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: var(--fw-bold);
    transition: transform 200ms ease-in-out;
}

.btn__return {
    display: inline-block;
    padding: 1.2em 2.5em;
    background: var(--clr-accent);
    color: var(--clr-dark);
    text-decoration: none;
    cursor: pointer;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: var(--fw-bold);
    transition: transform 200ms ease-in-out;

}



.btn:hover {
    transform: scale(1.1);
}

/* Typography */

h1,
h2,
h3 {
    line-height: 1.0;
    margin: 0;
}

h1 {
    font-size: var(--fs-h1)
}

h2 {
    font-size: var(--fs-h2)
}

h3 {
    font-size: var(--fs-h3)
}

h4 {
    font-size: var(--fs-h4)
}

/* Titles and Subtitles */

.section__title {
    margin-bottom: .25em
}

.section__title--intro {
    font-weight: var(--fw-reg);
}

.section__title--intro strong {
    display: block;
}

.section__subtitle {

    margin: 0;
    font-size: var(--fs-h3);

}

/* The big red bar */
.section__subtitle--intro,
.section__subtitle--about {
    background: var(--clr-accent);
    padding: .25em 1em;
    font-family: var(--ff-secondary);
    margin-bottom: 1em;
    border-radius: 15px 50px;
}

.section__subtitle--work {
    color: var(--clr-accent);
    font-weight: var(--fw-bold);
    margin-bottom: 2em;

}

/* header */

header {
    display: flex;
    justify-content: space-between;
    padding: 1em;
}

.logo {
    max-width: 150px;

}

.section__title--discography {
    text-decoration: underline;
    /* Adds an underline to the text */
    text-decoration-thickness: 2px;
    /* Optional: Adjust thickness of the underline */
    text-underline-offset: 5px;
    /* Optional: Adds space between the text and the underline */
    margin-bottom: 1.5em;
    /* Adds space between the title and the red bar */
}

/* ========== NAVBAR ========== */
.nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 90vw; /* Still keeps that partial slide effect */
    max-width: 300px;
    background: var(--clr-light);
    color: var(--clr-dark);
    z-index: 200;
    padding-top: 1em;
    background: url('https://i.imgur.com/wCmpFVF.png') no-repeat center center;
  background-size: cover;


    overflow-y: auto; /* <== KEY: Allows scrolling if content overflows */
    transform: translateX(100%);
    transition: transform 250ms cubic-bezier(.5, 0, .5, 1);
}



.nav__list {
    list-style: none;
    display: flex;
    height: 80%;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav__link {
    color: inherit;
    font-weight: var(--fw-bold);
    font-size: var(--fs-h4);
    text-decoration: underline;
}

.nav__link:hover {
    color: var(--clr-accent);
}

/* Toggle Button */
.nav-toggle {
    padding: 0.5em;
    background: transparent;
    border: 0;
    cursor: pointer;
    position: absolute;
    right: 1em;
    top: 1em;
    z-index: 1000;
}

.nav-open .nav {
    transform: translateX(0);
}

.nav-open .nav-toggle {
    position: fixed;
}

/* Sticky Header */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--clr-dark);
    padding: 1.2em 2em;
}

/* ========== SKULLS (TOGGLE ICON) ========== */

/* Base: only two lines (top and bottom) */
.Skulls {
    position: relative;
    width: 2em;
    height: 3px;
    background: transparent; /* no middle line */
    display: block;
}

.Skulls::before,
.Skulls::after {
    content: '';
    position: absolute;
    left: 0;
    width: 2em;
    height: 3px;
    border-radius: 1em;
    background: var(--clr-accent);
    transition: transform 250ms ease-in-out, opacity 250ms ease-in-out;
}

.Skulls::before {
    top: -6px;
}

.Skulls::after {
    top: 6px;
}

/* Transform into an "X" when open */
.nav-open .Skulls::before {
    transform: rotate(45deg) translateY(6px);
}

.nav-open .Skulls::after {
    transform: rotate(-45deg) translateY(-6px);
}


/* Home Section */

.intro {
    position: relative;
    background-color: var(--clr-light);
    /* Fallback background color */
    background-image: radial-gradient(circle, var(--clr-accent) 5%, transparent 5%);
    background-size: 50px 50px;
    /* Circle size and spacing */
    background-position: center center;
    /* Ensure it's centered */
    background-repeat: repeat;
    /* Repeat the pattern across the entire intro section */
}

/*Intro link styling*/
/* Link styling */
.intro-link {
    color: var(--clr-light);
    /* Theme's accent color */
    text-decoration: none;
    /* Remove underline */
    font-weight: var(--fw-bold);
    /* Bold text */
    position: relative;
    /* Needed for pseudo-elements */
    display: inline-block;
    /* Allows animation effects */
    transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* Add a bouncing underline animation */
.intro-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.2em;
    /* Place it just below the text */
    width: 100%;
    height: 2px;
    background-color: var(--clr-gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-in-out;
}

/* Hover effects */
.intro-link:hover {
    color: var(--clr-gold);
    /* Change text color */
    transform: scale(1.1);
    /* Make it slightly larger */
}

.intro-link:hover::after {
    transform: scaleX(1);
    /* Expand underline */
    transform-origin: left;
}

/* Optional: Add continuous animation */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.intro-link {
    animation: pulse 1.5s infinite;
    /* Makes the link gently "pulse" */
}

/* Nav Image Container */


.nav__image-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0em 0;
    margin-bottom: 1em;
}

.nav__image {
    width: 100%;              /* fills the sidebar width */
    height: auto;
    display: block;
    object-fit: cover;        /* crop/fill rather than stretch */
    max-height: 180px;        /* adjust this height if needed */
    border-bottom: 2px solid var(--clr-accent); /* optional visual separation */
}





/* End of Nav Image Container */

/* OverWhelm Link */

/* Link styling */
.over-link {
    animation: pulse 1.5s infinite;
    /* Makes the link gently "pulse" */
    color: var(--clr-accent);
    /* Theme's accent color */
    text-decoration: none;
    /* Remove underline */
    font-weight: var(--fw-bold);
    /* Bold text */
    position: relative;
    /* Needed for pseudo-elements */
    display: inline-block;
    /* Allows animation effects */
    transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
    padding: 10px 20px;
    /* Adjust the size of the button */
    background-color: var(--clr-background);
    /* Add a background color */
    border-radius: 12px;
    /* Rounded corners */
    border: 2px solid var(--clr-accent);
    /* Border matching the accent color */
}

/* Add a bouncing underline animation */
.over-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.2em;
    /* Place it just below the text */
    width: 100%;
    height: 2px;
    background-color: var(--clr-gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-in-out;
}

/* Hover effects */
.over-link:hover {
    color: var(--clr-gold);
    /* Change text color */
    transform: scale(1.1);
    /* Make it slightly larger */
}

.over-link:hover::after {
    transform: scaleX(1);
    /* Expand underline */
    transform-origin: left;
}

/* Optional: Add continuous animation */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}
/* Red Moon Hangs Low Hyperlinks */
.games-link, .music-link {
    text-decoration: none;
    color: #ff0000;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.games-link::after,
.music-link::after {
    content: ' 🔗';
    font-size: 0.8em;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.games-link:hover,
.music-link:hover {
    color: #ffd700; /* golden tint on hover */
    text-decoration: underline;
}

.games-link:hover::after,
.music-link:hover::after {
    opacity: 1;
}

/* End of Red Moon Hangs Low Hyperlinks */

.intro__img {
    box-shadow: var(--boxShadow) max-width: 100%;
    height: auto;
}

@media (min-width: 600px) {
    .intro {
        display: grid;
        width: min-content;
        margin: 0 auto;
        grid-column-gap: 1em;
        grid-template-areas:
            "img title"
            "img subtitle";
        grid-template-columns: min-content max content;

    }

    .intro__img {
        grid-area: img;
        min-width: 250px;
        position: relative;
        z-index: 2;
        max-width: 100%;
        height: auto;
    }

    .intro__img-reverse {
        grid-area: img;
        min-width: 250px;
        position: relative;
        z-index: 2;
    }

    .section__subtitle--intro {
        align-self: start;
        grid-column: -1/1;
        grid-row: 2;
        text-align: right;
        position: relative;
        left: -1.5em;
        width: calc(100% + 1.5em);
    }
}

/* How May I Serve You? */

/* Three boxes, moon hanging low */
.my-services {
    background-color: var(--clr-dark);
    background-image: url(https://i.imgur.com/gILRTF3.png);
    /* Red Moon Image */
    background-size: cover;
    background-blend-mode: multiply;
    color: var(white);
    text-align: center;

}

.my-work {
    position: relative;
    z-index: 1;
    /* Keep the main content above the background */
}

.button-wrapper {
    display: flex;
    justify-content: center;
    /* Ensure horizontal centering */
    align-items: center;
    /* Vertical alignment (if needed) */
    width: 100%;
    /* Full width ensures proper centering */
}

.my-work::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://i.imgur.com/LMvf3Zm.png');
    /* Red moon image */
    background-size: cover;
    /* Ensure the image covers the section */
    background-position: center;
    /* Center the image */
    filter: invert(1) opacity(0.5);
    /* Invert colors and set opacity */
    z-index: -1;
    /* Place behind the content */
    pointer-events: none;
    /* Ensure the background doesn't interfere with interactions */
}

.section__title--discography {
    position: relative;
    display: inline-block;
    /* Ensures the underline aligns with the title */
    margin-bottom: 7em;
    /* Add spacing between the title and the decorative line */
}

.section__title--discography::after {
    content: '';
    position: absolute;
    left: 50%;
    /* Center align */
    transform: translateX(-50%);
    /* Adjust for perfect centering */
    bottom: -5px;
    /* Distance between the title and the box */
    width: 300px;
    /* Adjust the box width as needed */
    height: 4px;
    /* Thickness of the line */
    background: var(--clr-accent);
    /* Use your red color for consistency */
    border-radius: 4px;
    /* Optional: Adds rounded edges */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.75);
    /* Optional: Adds a soft shadow */
}



/* Background image with inverted colors */
.my-work::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url(https://i.imgur.com/LMvf3Zm.png);
    /* Same background as .my-services */
    background-size: cover;
    background-blend-mode: multiply;
    filter: invert(1);
    /* Inverts colors */
    opacity: 0.75;
    /* 75% opacity */
    z-index: -1;
    /* Ensures background stays behind the content */
}


.section__title--services {
    color: var(--clr-accent);
    position: relative
}

.section__title--services::after {
    content: '';
    display: block;
    width: 3em;
    height: 1px;
    margin: 0.5em auto 1em;
    background: currentColor;
    opacity: 0.25
}

.services {
    margin-bottom: 4em;
}

.service {
    max-width: 500px;
    margin: 0 auto;

}

@media (min-width: 800px) {
    .services {
        display: flex;
        max-width: 1000px;
        margin-left: auto;
        margin-right: auto;
    }

    .service+.service {
        margin-left: 2em;
    }
}

/* About me Section */

.about-me {
    max-width: 1000px;
    margin: 0 auto;

}

.about-me__img {
    box-shadow: var(--boxShadow);
    transform: scaleX(-1);
    /* Flips the image horizontally */
}

@media (min-width: 600px) {
    .about-me {
        display: grid;
        grid-template-columns: 1fr 200px;
        grid-template-areas:
            "title img"
            "subtitle img"
            "text img";
        grid-column-gap: 2em;
    }

    .section__title--about {
        grid-area: title;
    }

    .section__subtitle--about {
        grid-column: 1 / -1;
        grid-row: 2;
        position: relative;
        left: -2em;
        width: calc(100% + 4 em);
        padding-left: 1em;
        padding-right: calc(200px + 4em);
    }


    .about-me__img {
        grid-area: img;
        position: relative;
        z-index: 2;
    }
}

/* Discography */
.my-work {
    background-color: var(--clr-whitebackground);
    color: var(--clr-light);
    text-align: center;



}

.globgore {
    background: #111;
    color: var(--clr-gold);
    text-align: center;
    padding: 2.5em 0;
    font-size: var(--fs-h3);
    /* Blergh */
    background-image: url(https://i.imgur.com/Jk3UQYm.jpg);
    background-size: cover;
    background-blend-mode: mulitply;

}

.fluent-gif {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.fluent-gif:hover {
    transform: scale(1.03);
}



/* The space where the images are displayed */
.portfolio {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    max-width: 0 auto;
    grid-gap: 5px 5px;

}

.portfolio__item {
    background: var(--clr-accent);
    overflow: hidden;

}

.portfolio__img {
    transition:
        transform 750ms cubic-bezier(.5, 0, .5, 1),
        opacity 250ms linear;
}

.portfolio__item:focus {
    position: relative;
    z-index: 2;

}

.portfolio__img:hover,
.portfolio__item:focus .portfolio__img {
    transform: scale(1.2);
    opacity: .75;
}

.footer {
    background: #111;
    color: var(--clr-gold);
    text-align: center;
    padding: 2.5em 0;
    font-size: var(--fs-h3);
    /* Blergh */
    background-image: url(https://i.imgur.com/Jk3UQYm.jpg);
    background-size: cover;
    background-blend-mode: mulitply;

}

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

.footer__link {
    font-weight: var(--fw-bold);
}

.footer__link:hover,
.social-list__hover {
    opacity: -7;
}

.footer__link:hover {
    text-decoration: underline;
}

.social-list {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 2em 0 0;
    padding: 0;

}

.social-list__item {
    margin: 0 .5em;
}

.social-list__link {
    padding: .5em;
}

/* Individual portfolio item styling */
.portfolio-item-individual {
    padding: 1.5em;
    /* Add padding inside the box */
    max-width: 800px;
    margin: 0 auto;
    /* Center the content */
    border: 1px solid var(--clr-light);
    /* Add a thin border */
    border-radius: 10px;
    /* Round the corners */
    background-color: var(--clr-grey);
    /* Background for the box */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Add a soft shadow */
    color: var(--clr-light);
    /* Text color for readability */
    overflow: hidden;
    /* Prevent content overflow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Add hover effect for interactivity */
.portfolio-item-individual:hover {
    transform: scale(1.02);
    /* Slightly enlarge on hover */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
    /* Enhance shadow on hover */
}


/* What I do Section */

.middle___icon {
    margin: 0 .5em;
}

.middle__icon-link {
    padding: .5em;
}

/* General button styling (shared styles) */
.btn {
    display: inline-block;
    padding: 0.5em 1.5em;
    background: var(--clr-accent);
    /* Accent color for the button */
    color: var(--clr-dark);
    /* Text color */
    text-decoration: none;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: var(--fw-bold);
    border-radius: 5px;
    /* Optional: Rounded corners */
    transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Specific styling for the Journal button */
.btn-journal {
    margin-top: 2em;
    /* Space above the button */
    text-align: center;
    /* Ensure alignment */
}

/* Journal Section */

/*Journal Card */
.journal-scroll-container {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1.5rem;
  padding: 2rem;
  scroll-padding: 2rem;
  -webkit-overflow-scrolling: touch;
}

.portfolio-item-individual {
  flex: 0 0 30%;
  min-width: 280px; /* Prevents shrinking too small */
  max-width: 400px; /* Optional: caps width on large screens */
  scroll-snap-align: start;
  background-color: #5f6266;
  color: white;
  border-radius: 2rem;
  padding: 1.0rem;
  box-sizing: border-box;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
  word-wrap: break-word;
}

@media (max-width: 768px) {
  .portfolio-item-individual {
    flex: 0 0 90%; /* Full width on small screens */
  }
}

.portfolio-item-individual:hover {
  transform: scale(1.02);
}

.fluent-gif {
  max-width: 100%;
  border-radius: 10px;
  margin-top: 1rem;
}

.fluent-gif-large {
  max-width: 100%;
  border-radius: 10px;
  margin-top: 5rem;
}

/* Journal Cards */

.journal-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.journal-scroll-container::-webkit-scrollbar-thumb {
    background-color: var(--clr-accent);
    border-radius: 4px;
}

.journal-entry {
    min-width: 80%;
    flex: 0 0 auto;
    background-color: var(--clr-background);
    border: 2px solid var(--clr-accent);
    border-radius: 12px;
    padding: 1.5rem;
    scroll-snap-align: start;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.journal-entry img {
    width: 100%;
    border-radius: 8px;
    margin-top: 1rem;
}

/*End Journal *

/* Hover effect */
.btn:hover,
.btn-journal:hover {
    background: #ff4d4d;
    /* Slightly lighter red on hover */
    transform: scale(1.05);
    /* Subtle scaling effect */
}

/* Centering the button */
.my-work .btn-journal {
    display: inline-block;
    /* Makes it an inline-block element */
    margin: 2em auto;
    /* Centers horizontally and adds spacing vertically */
    text-align: center;
    /* Ensures text inside the button is centered */
}

}

/* Individual portfolio item styling */
.Journal {
    padding: 1.5em;
    /* Add padding inside the box */
    max-width: 800px;
    margin: 0 auto;
    /* Center the content */
    border: 1px solid var(--clr-light);
    /* Add a thin border */
    border-radius: 10px;
    /* Round the corners */
    background-color: var(--clr-grey);
    /* Background for the box */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Add a soft shadow */
    color: var(--clr-light);
    /* Text color for readability */
    overflow: hidden;
    /* Prevent content overflow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* blerg */
