* {
    box-sizing: border-box;
}


:root {
    --background-color: #f7f5f2;
    --primary-text-color: #333333;
    --secondary-text-color: #555555;
    /* --highlight-color: #ff6600; */
    --highlight-color: rgb(255, 103, 0);
    --accent-color: #4ecdc4;
    --header-color: #fc4a1a;
}

body {
    background-color: var(--background-color);
    color: var(--primary-text-color);
    font-family: 'Open Sans', sans-serif;
    font-size: large;
    height: 100%;
    position: relative;
    margin: 0;
}

/* nav styling */

#desktop-nav {
    height: 50px;
    background-color: var(--background-color);
    border-bottom: 1px solid var(--highlight-color);
}

/* header styling */

header {
    color: var(--header-color);
    font-family: 'Climate Crisis', sans-serif;
    position: relative;
    font-size: clamp(12px, 6vw, 5rem);
    width: 95%;
    margin: 0;
}

.header-wrapper {
    /* overflow: hidden; */
    height: 100%;
    cursor: default;
    z-index: -1;
}

/* Heading Styles */
header h1 {
    padding-left: 10px;
    margin: 0;
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}


.profile-container {
    display: block;
    height: 130%;
    width: 100%;
}

/* Text flicker effect */
header h1::before,
header h2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    opacity: 0;
    pointer-events: none;
    mix-blend-mode: color-dodge;
}


/* Responsive font sizes */
header h1 {
    font-size: clamp(12px, 18vw, 18rem);
    letter-spacing: 4px;
}

#im {
    font-family: 'Climate Crisis', sans-serif;
    color: var(--header-color);
    font-size: clamp(12px, 8vw, 5rem);
    letter-spacing: 4px;
    width: 20%;
    height: 100%;
    margin: 15px 0 0 20px;
    user-select: none;
}

.im-wrapper {
    cursor: pointer;
    pointer-events: all;
    height: 50px;
    width: 30%;
}

/* skills section */

#my-skills {
    margin-top: 15px;
    width: 100%;

    h2 {
        font-size: 2rem;
        margin: 0;
    }

    ul {
        margin: 0;
        padding: 15px;
    }

    li:first-child {
        list-style: none;
        margin-left: -15px;
    }
}

.skill-list-container {
    width: 100%;
    display: flex;
}


/* anvil stuff */

#anvil-hanging {
    display: none;
}

/* animations for font change */

#im.transitioning {
    transition: 0.3s;
    opacity: 0;
}

#im.transitioned-in {
    transition: 0.3s;
    opacity: 1;
}

.desktop-info {
    display: none;
}

/* my name */

#zak {
    display: inline-block;
    position: relative;
    color: var(--header-color);
    border: 2px dotted transparent;
    /* Base border to preserve layout */
    border-radius: 10px;
    /* Rounded corners */
    cursor: default;
    transition: border-color 0.3s ease;
}

/* Hover effect for the moving dotted border */
#zak:hover {
    border-color: transparent;
    /* Hide static dotted border */
    background-image: radial-gradient(currentColor 1px, transparent 1px);
    background-size: 6px 6px;
    /* Size of the dots and spacing */
    background-repeat: repeat;
    background-position: 0 0;
    /* Starting position */
    animation: border-dots 2s linear infinite;
}

/* Keyframe to animate the dots */
@keyframes border-dots {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 6px 6px;
        /* Move the dots along the border */
    }
}

.name {
    font-weight: 100;

    h2 {
        font-size: clamp(12px, 8vw, 50px);
        margin: 0;
    }
}

.personal-info {
    margin: 50px 10px 0 10px;

    span {
        font-weight: 100;
        color: var(--primary-text-color);
    }

    h4 {
        color: var(--highlight-color);
        margin: 10px 0 0 0;
    }
}

/* 
profile images */


.profile-photo-container {
    width: 100%;
    position: relative;
    max-width: 430px;
    width: 100%;
    height: 100%;
}

.profile-img-ghost-img {
    width: 100%;
    height: auto;
    visibility: hidden;
}

#profile-photo-top {
    border-radius: 10%;
    width: 100%;
    height: auto;
    position: absolute;
    pointer-events: none;
    mask-image: none;
    -webkit-mask-image: none;
    transition: mask-image 0.3s ease, -webkit-mask-image 0.3s ease;
    top: 0;
    left: 0;
}

#profile-photo-bottom {
    border-radius: 10%;
    width: 100%;
    height: auto;
    position: absolute;
    top: 0;
    left: 0;
}

#bio {
    margin: 10px 0;
}

.personal-info h2 {
    color: var(--highlight-color);
}

.projects {
    margin: 0 15px;
}

.projects h1 {
    color: var(--header-color);
    font-family: 'Climate Crisis', sans-serif;
}

.projects p {
    margin-bottom: 50px;
}

#featured {
    color: var(--highlight-color);
    font-weight: 100;
    font-size: 1.5rem;
}

.personal-info h3 {
    color: var(--highlight-color);
    margin: 10px 0;
}

/* button styling */
a {
    color: var(--highlight-color);
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 10px;
    border: 2px solid;
    display: inline-block;
    transition: transform 0.3s ease;
    margin-top: 10px;
}

a:hover {
    color: var(--accent-color);
}

a:active {
    transform: scale(0.9);
    color: red;
}

/* Styling for project sections */
.project-styling {
    background-color: var(--border-color);
    border: 1px solid var(--highlight-color);
    border-radius: 25px;
    padding: 20px;
    margin: 20px 0;

    h2 {
        color: var(--highlight-color);
    }
}

/* Additional layout adjustments */
.display-flex {
    display: flex;
}

.showcase-img {
    width: 100%;
}


footer {
    background-color: var(--border-color);
    color: var(--secondary-text-color);
    padding: 10px;
    margin: 20px;
    display: flex;
    justify-content: center;
}

#mouse-animation {
    width: 20%;
    max-width: 250px;
    min-width: 80px;
    position: absolute;
    left: 2%;
    bottom: 0%;
}

#other-links-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    margin-bottom: 20px;

    a {
        height: 50%;
    }
}

/* colour sliders */

#sliders {
    height: 20px;
    padding: 0 50px;
    margin-left: 50px;
}

.slider-container {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--header-color);
    border-radius: 15px;
    padding: 15px 15px 10px 15px;
    background-color: var(--background-color);
    width: 250px;
    position: absolute;
    right: 0;
    margin-top: 35px;
    z-index: 999;
}

.slider-container p {
    margin: 0;
    width: 60px;
}

.slider-btn {
    font-family: 'Open Sans', sans-serif;
    background-color: transparent;
    border-color: var(--header-color);
    border-radius: 5px;
    color: var(--header-color);
    margin: 5px;
    z-index: 9999;
}

#reset-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

#slider-btn {
    width: 80px;
    position: absolute;
    right: 0;
}

#background-red {
    background-color: rgb(255, 0, 0);
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 0%;
}

#background-green {
    background-color: rgb(0, 255, 0);
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -2;
    opacity: 0;
}

#background-blue {
    background-color: rgb(0, 0, 255);
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -3;
    opacity: 0;
}

#anvil-fallen {
    display: none;
}

#explosion {
    display: none;
}

@media only screen and (min-width: 1024px) {

    .im-wrapper {
        height: 120px;
    }

    header h1 {
        padding-left: 0px;
    }

    .profile-container {
        display: flex;
    }

    .bio-container {
        margin-left: 50px;
    }

    #bio {
        width: 50%;
    }

    .skill-list-container {
        width: 50%;
        justify-content: space-between;
        max-width: 450px;
    }

    .personal-info h2,
    p {
        margin: 0 0 25px 50px;
    }

    .personal-info {
        margin: 50px 0 10px 50px;
    }

    .projects {
        width: 1024px;
    }

    .centering {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #im {
        margin: 10px 0 0 50px;
    }

    #im:hover {
        text-decoration: underline;
    }

    header {
        margin-left: 50px;
    }

    /* anvil stuff */

    #anvil-hanging {
        display: block;
        width: 13vw;
        max-width: 150px;
        position: absolute;
        right: 13%;
        top: 76%;
        z-index: -1;
        pointer-events: none;

        transform-origin: top center;
        animation: sway 3s ease-in-out infinite;
    }

    #anvil-ghost {
        position: absolute;
        width: 13vw;
        max-width: 150px;
        height: 100px;
        right: 13%;
        margin-top: 50px;
        z-index: 999;
        pointer-events: all;
        cursor: pointer;
    }

    #anvil-falling {
        display: block;
        width: 12vw;
        max-width: 150px;
        position: absolute;
        right: 15%;
        top: 76%;
        z-index: -1;
        pointer-events: none;
        transition: transform 1s ease-in;
        transform: translateY(0);
        opacity: 0;
    }

    #anvil-fallen {
        display: block;
        position: absolute;
        width: 150px;
        right: 10%;
        top: -60px;
        opacity: 0;
        z-index: 3;
    }

    #explosion {
        display: block;
        position: absolute;
        width: 500px;
        right: 0;
        top: -250px;
        opacity: 0;
        z-index: 4;
    }

    .anvil-container {
        position: relative;
        display: inline-block;
    }

    /* border stuff */

    #project-1 {
        position: relative;
    }

    #border-left {
        position: relative;
        height: 20px;
        width: 70%;
        margin-top: -21px;
        border-top: 1px solid var(--highlight-color);
    }

    .shrapnel {
        position: absolute;
        height: 1px;
        background-color: var(--highlight-color);
        opacity: 0;
    }

    .piece1 {
        width: 25px;
        top: 15px;
        right: -80px;
        transform: rotate(20deg);
    }

    .piece2 {
        width: 12px;
        top: 15px;
        right: -200px;
        transform: rotate(-30deg);
    }

    .piece3 {
        width: 30px;
        top: 11px;
        right: -100px;
        transform: rotate(45deg);
    }

    .piece4 {
        width: 26px;
        top: 11px;
        right: -250px;
        transform: rotate(-40deg);
    }

    @keyframes sway {
        0% {
            transform: rotate(2deg);
        }

        50% {
            transform: rotate(-2deg);
        }

        100% {
            transform: rotate(2deg);
        }
    }
}