@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Major+Mono+Display&display=swap');

html {
  scroll-behavior: smooth;
}

* {
    font-family: 'Montserrat';
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    --MarginGap: 0.5rem;
    --MarginGapMed: 1.5rem;
    --MarginGapBig: 3rem;
    --BorderRadius: 1rem;
    --CitrineWhite: #FCFBE6;
    --Bandicoot: #7C7C6C;
    --CodGray: #111210;
    --FriarGray: #84847C;
}

/* ================== Heading and Fonts ================== */

h1 {
    color: var(--CodGray);
    font-family: "Major Mono Display";
    font-size: 4.488rem;
    font-style: normal;
    line-height: 4rem;
    font-weight: 400;
    margin-top: 3rem;
    margin-bottom: 3rem;
    text-shadow: 2px 2px 8px #42402185;
}

h6 {
    color: var(--CodGray);
    font-size: 1.066rem;
    font-style: normal;
    line-height: 39.2px;
    margin-top: var(--MarginGapMed);
    margin-bottom: var(--MarginGapMed);
}

p {
    color: var(--CodGray);
    font-size: 1rem;
    font-style: normal;
    line-height: 36px;
    margin-top: var(--MarginGap);
    margin-bottom: var(--MarginGap);
    font-weight: 500;
    text-shadow: 2px 2px 8px #42402185;
}

p svg {
    vertical-align: middle;
    margin-right: 3rem;
}

.gray-color {
    color: var(--Bandicoot);
}

.orange-red {
    color: orangered;
}

[data-animate] {
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease;
}

[data-animate].show {
  opacity: 1;
  transform: translateY(0);
}

/* ================== Main Body ================== */

body {
    background-color: var(--CitrineWhite);
    position: relative;
    min-height: 100vh;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: scale(2);
    }
}

.noise::before {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    content: "";
    opacity: 0.03;
    pointer-events: none;
    z-index: 100;
    background: url(Images/Effects/noise.gif);
}

/* Preloader container */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--CitrineWhite);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9;
    /* Make sure it covers everything else */
    opacity: 1;
    /* Initial opacity */
    transition: opacity 0.5s ease;
}

/* Spinner */
.spinner {
    border: 5px solid var(--Bandicoot);
    border-top: 5px solid var(--CodGray);
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 1.5s ease-in-out infinite;
    transition: opacity 0.3s ease;
}

/* Spinner turns orange-red after loading */
.spinner-orange-red {
    border: 5px solid orangered;
    border-top: 5px solid orangered;
}

.logo-loading {
    position: absolute;
    /* Keep it absolutely positioned */
    width: 50px;
    /* Adjust size as needed */
    height: auto;
    /* Maintain aspect ratio */
    color: var(--Bandicoot);
    /* Set initial color to match the spinner */
    z-index: 10;
    /* Make sure it's above the spinner */
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Hide the main content while preloader is active */
#main-content {
    display: none;
}


@keyframes fade-down {
    0% {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translateY(0px) scale(1);
    }
}

@keyframes fade-up {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translateY(0px) scale(1);
    }
}

@keyframes fade-up-noscale {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0px);
    }
}

/* Flash effect */
@keyframes flashElements {
    0% {
        fill: orangered;
        color: orangered;
    }

    100% {
        fill: black;
        color: black;
    }
}

.flash {
    animation: flashElements 3s ease-out 0.5s;
    /* 3s animation with a 1s delay */
}

.contactsvg-icons svg {
    fill: black;
    transition: fill 3s ease;
    /* Smooth transition for SVG fill */
}

#contactsvg,
#contactsvg p {
    color: black;
    transition: color 3s ease;
    /* Smooth transition for text color */
}

#contactsvg p svg {
    fill: black;
    transition: fill 3s ease;
    /* Smooth transition for the SVG next to the email */
}



/* ================== Navbar ================== */
.header {
    top: 0;
    left: 0;
    width: 100%;
    padding: 50px 10%;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-bar {
    display: flex;
    justify-content: flex-start;
    /* Align links to the left */
    align-items: center;
    list-style: none;
}

.logo {
    margin-left: auto;
    height: 40px;
}

.logo svg {
    height: 100%;
}

.menu {
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu a:nth-child(2),
.menu a:nth-child(3) {
    padding-left: 30px;
}

.menu a li {
    display: inline-block;
    text-decoration: none;
    color: var(--CodGray);
    text-align: center;
    position: relative;
    padding: 10px 0;
    /* Adjust padding */
    min-height: 40px;
    /* Lock minimum height */
    transition: 0.2s;
}

.home-page .menu a:nth-child(1) li {
    font-weight: 700;
    pointer-events: none;
    letter-spacing: 0.1rem;
}

.work-page .menu a:nth-child(2) li {
    font-weight: 700;
    pointer-events: none;
    letter-spacing: 0.1rem;
}

.about-page .menu a:nth-child(3) li {
    font-weight: 700;
    pointer-events: none;
    letter-spacing: 0.1rem;
}

.menu a li:hover {
    filter: hue-rotate(360deg);
    color: orangered;
    letter-spacing: 0.1rem;
    font-weight: 700;
}

.hamburger {
    display: none;
    justify-content: flex-end;
    flex-basis: 100%;
    z-index: 3;
}

.open-menu,
.close-menu {
    cursor: pointer;
    font-size: 2rem;
    display: none;
}

.close-menu {
    position: absolute;
    color: var(--CitrineWhite);
    top: 5vh;
    right: 20%;
}

#check {
    display: none;
}

@media(max-width: 1100px) {
    .menu {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding-left: 0;
        width: 50%;
        height: 100vh;
        position: fixed;
        top: 0;
        right: -100%;
        z-index: 11;
        background: rgba(44, 44, 44, 0.219);
        /* Semi-transparent white */
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.418);
        /* Subtle shadow */
        backdrop-filter: blur(15px);
        /* The blur effect */
        -webkit-backdrop-filter: blur(15px);
        /* Safari support */
        border: 1px solid rgba(255, 255, 255, 0.3);
        transition: all 0.2s ease-in-out;

    }

    .menu a {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 20%;
        transition: all 0.2s ease-in-out;
        text-decoration: none;
        border: 1px solid rgba(255, 255, 255, 0.3);
        backdrop-filter: blur(15px);
        /* The blur effect */
        -webkit-backdrop-filter: blur(10px);
        /* Safari support */
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.418);
        /* Subtle shadow */
    }

    .menu a:nth-child(2),
    .menu a:nth-child(3) {
        padding-left: 0;
    }


    .menu a li {
        text-shadow: 2px 2px 8px #42402185;
        font-size: 1.1rem;
        color: var(--CitrineWhite);
        font-weight: 700;
        text-shadow: 2px 2px 8px #42402185;
        width: 100%;
        height: auto;
    }

    .open-menu,
    .close-menu {
        display: block;
    }

    #check:checked~.menu {
        right: 0;
    }
}

/* ================== Home Content ================== */

.home {
    display: flex;
}

.home-content-full {
    display: flex;
    flex-direction: column;
    padding: 0 10%;
    animation: fade-up 1s;
}

.home-content-left {
    display: flex;
    flex-direction: column;
    padding: 0 10%;
    max-width: 50%;
    margin-top: var(--MarginGapBig);
    animation: fade-up 1s;
}

.home-content-right {
    display: flex;
    width: 50%;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    margin-top: var(--MarginGapBig);
    animation: fade-up-noscale 2s;
}

.llama {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.llama img {
    width: 1400px;
    height: auto;
    max-width: none;
    object-fit: contain;
}

.about-page .home-content-right {
    justify-content: center;
    align-items: center;
}

.home-content-right .about-me-img {
    max-width: 80%;
    border-radius: var(--BorderRadius);
    outline: 1px solid var(--Bandicoot);
}

.home-content-full img {
    border-radius: var(--BorderRadius);
    outline: 1px solid var(--Bandicoot);
    width: 100%;
}

.desc {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.desc * {
    box-sizing: border-box;
}

.desc .desc-left {
    width: 40%;
    overflow-wrap: break-word;
    margin: var(--MarginGapMed);
}

.desc .desc-right {
    width: 60%;
    overflow-wrap: break-word;
    margin: var(--MarginGapMed);
}

.desc .desc-content {
    width: 50%;
    overflow-wrap: break-word;
    margin: var(--MarginGapMed);
}

.contactsvg {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    align-items: center;
    gap: 5rem;
    margin-top: var(--MarginGap);
    margin-bottom: var(--MarginGap);
}

.home-page .contactsvg {
    margin-top: var(--MarginGapBig);
    margin-bottom: var(--MarginGapBig);
}

.contactsvg .contactsvg-icons svg {
    height: 2.5rem;
    transition: 0.2s;
    color: var(--CodGray);
}

.contactsvg .contactsvg-icons svg:hover {
    transform: scale(1.2);
    filter: hue-rotate(360deg);
    color: orangered;

}

.contactsvg .contactsvg-icons svg:active,
.contactsvg .contactsvg-icons svg:focus {
    transform: scale(1);
    color: var(--CodGray);
}

.bottom {
    display: flex;
    margin-top: var(--MarginGapBig);
    margin-bottom: var(--MarginGapBig);
    align-content: center;
    justify-content: center;
}

.logobottom {
    padding: 0 10%;
    letter-spacing: 4.6px;
}

/* ================== Work Pages Content ================== */

.desc-1-img-main {
    max-height: 20rem;
    overflow: hidden;
    width: 100%;
    position: relative;
    margin-top: var(--MarginGapBig);
    margin-bottom: var(--MarginGap);

}

.desc-1-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.desc-1-img-wide {
    width: 100%;
    margin-top: var(--MarginGapMed);
    margin-bottom: var(--MarginGapMed);
}

.desc-1-img-wide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.desc-1-img-wide iframe {
    border-radius: var(--BorderRadius);
    height: 1024px;
}

.desc-2-img-tile {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(1, 1fr);
    gap: 5px;
    width: 100%;
    margin-top: var(--MarginGapMed);
    margin-bottom: var(--MarginGapMed);
}

.desc-2-img-tile img {
    justify-self: center;
    width: 90%;
}

.desc-2-img-tile-var2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(1, 1fr);
    gap: 5px;
    width: 100%;
    margin-top: var(--MarginGapMed);
    margin-bottom: var(--MarginGapMed);
}

.desc-2-img-tile-var2 img {
    align-self: center;
    justify-self: center;
    object-fit: cover;
}

/* First image spans two columns and two rows */
.desc-2-img-tile-var2 img:nth-child(1) {
    grid-column: span 3;
    width: 90%;
    height: 90%;
}

/* Other images take one grid cell each */
.desc-2-img-tile-var2 img:nth-child(2) {
    width: 90%;
    height: 90%;
}

.desc-3-img-tile {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 5px;
    width: 100%;
    margin-top: var(--MarginGapMed);
    margin-bottom: var(--MarginGapMed);
}

.desc-3-img-tile img {
    align-self: center;
    justify-self: center;
    object-fit: cover;
}

/* First image spans two columns and two rows */
.desc-3-img-tile img:nth-child(1) {
    grid-column: span 1;
    grid-row: span 2;
}

/* Other images take one grid cell each */
.desc-3-img-tile img:nth-child(2),
.desc-3-img-tile img:nth-child(3) {
    width: 90%;
    height: 90%;
}

.desc-3-img-tile-var2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 5px;
    width: 100%;
    margin-top: var(--MarginGapMed);
    margin-bottom: var(--MarginGapMed);
}

.desc-3-img-tile-var2 img {
    align-self: center;
    justify-self: center;
    object-fit: cover;
}

/* First image spans two columns and two rows */
.desc-3-img-tile-var2 img:nth-child(2),
.desc-3-img-tile-var2 img:nth-child(3) {
    grid-column: span 1;
    grid-row: span 2;
    width: 90%;
    height: 90%;
}

/* Other images take one grid cell each */
.desc-3-img-tile-var2 img:nth-child(1) {
    width: 90%;
    height: 90%;
}

.desc-3-img-tile-var3 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 5px;
    width: 100%;
    margin-top: var(--MarginGapMed);
    margin-bottom: var(--MarginGapMed);
}

.desc-3-img-tile-var3 img {
    align-self: center;
    justify-self: center;
    object-fit: cover;
}

/* First image spans two columns and two rows */
.desc-3-img-tile-var3 img:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
    width: 100%;
    height: 90%;
}

/* Other images take one grid cell each */
.desc-3-img-tile-var3 img:nth-child(2),
.desc-3-img-tile-var3 img:nth-child(3) {
    width: 90%;
    height: 90%;
}

.desc-3-img-tile-var4 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(1, 1fr);
    gap: 5px;
    width: 100%;
    margin-top: var(--MarginGapMed);
    margin-bottom: var(--MarginGapMed);
}

.desc-4-img-tile {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 5px;
    width: 100%;
    margin-top: var(--MarginGapMed);
    margin-bottom: var(--MarginGapMed);
}

.desc-4-img-tile img {
    align-self: center;
    justify-self: center;
    width: 90%;
    height: 90%;
}

.desc-4-img-tile-var2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Two columns */
    grid-template-rows: repeat(4, 1fr);
    /* Adjust number of rows based on your content */
    width: calc(100% - 250px);
    margin-top: var(--MarginGapMed);
    margin-bottom: var(--MarginGapMed);
    row-gap: 3rem;
}

.desc-4-img-tile-var2 img {
    width: calc(100% + 250px);
    height: 100%;
    object-fit: cover;
}

/* Position images in a zigzag pattern */
.desc-4-img-tile-var2 img:nth-child(1) {
    grid-column: 1;
    /* First column */
    grid-row: 1;
}

.desc-4-img-tile-var2 img:nth-child(2) {
    grid-column: 2;
    /* Second column */
    grid-row: 2;
}

.desc-4-img-tile-var2 img:nth-child(3) {
    grid-column: 1;
    /* Back to first column */
    grid-row: 3;
}

.desc-4-img-tile-var2 img:nth-child(4) {
    grid-column: 2;
    /* Second column */
    grid-row: 4;
}



.desc-5-img-tile {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 5px;
    width: 100%;
    margin-top: var(--MarginGapMed);
    margin-bottom: var(--MarginGapMed);
}

.desc-5-img-tile img {
    align-self: center;
    justify-self: center;
    width: 90%;
    height: 90%;
    object-fit: cover;
}

/* First image spans two columns and two rows */
.desc-5-img-tile img:nth-child(1) {
    grid-column: span 1;
    grid-row: span 2;
    width: 90%;
    height: 100%;
}


.desc-5-img-tile-var2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 5px;
    width: 100%;
    margin-top: var(--MarginGapMed);
    margin-bottom: var(--MarginGapMed);
}

.desc-5-img-tile-var2 img {
    align-self: center;
    justify-self: center;
    object-fit: cover;
}

/* First image spans two columns and two rows */
.desc-5-img-tile-var2 img:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
    width: 90%;
    height: 100%;
    object-fit: cover;
}

/* Other images take one grid cell each */
.desc-5-img-tile-var2 img:nth-child(2),
.desc-5-img-tile-var2 img:nth-child(3),
.desc-5-img-tile-var2 img:nth-child(4),
.desc-5-img-tile-var2 img:nth-child(5) {
    width: 90%;
    height: 90%;
    object-fit: cover;
}

.desc-5-img-tile-var3 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 5px;
    width: 100%;
    margin-top: var(--MarginGapMed);
    margin-bottom: var(--MarginGapMed);
}

.desc-5-img-tile-var3 img {
    align-self: center;
    justify-self: center;
    object-fit: cover;
}

/* First image spans two columns and two rows */
.desc-5-img-tile-var3 img:nth-child(1),
.desc-5-img-tile-var3 img:nth-child(2) {
    grid-column: span 3;
    grid-row: span 1;
    width: 90%;
    height: 90%;
}

/* Other images take one grid cell each */
.desc-5-img-tile-var3 img:nth-child(3),
.desc-5-img-tile-var3 img:nth-child(4),
.desc-5-img-tile-var3 img:nth-child(5) {
    grid-column: span 2;
    width: 90%;
    height: 90%;
}

.desc-5-img-tile-var4 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 5px;
    width: 100%;
    margin-top: var(--MarginGapMed);
    margin-bottom: var(--MarginGapMed);
}

.desc-5-img-tile-var4 img {
    align-self: center;
    justify-self: center;
    object-fit: cover;
}

/* First image spans two columns and two rows */
.desc-5-img-tile-var4 img:nth-child(1),
.desc-5-img-tile-var4 img:nth-child(2),
.desc-5-img-tile-var4 img:nth-child(3) {
    grid-column: span 2;
    grid-row: span 1;
    width: 90%;
    height: 90%;
}

/* Other images take one grid cell each */
.desc-5-img-tile-var4 img:nth-child(4),
.desc-5-img-tile-var4 img:nth-child(5) {
    grid-column: span 3;
    width: 90%;
    height: 90%;
}

.desc-6-img-tile {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 5px;
    width: 100%;
    margin-top: var(--MarginGapMed);
    margin-bottom: var(--MarginGapMed);
}

.desc-6-img-tile img {
    justify-self: center;
    width: 90%;
    height: 90%;
    object-fit: cover;
}

/* ================== Home Work Showcase ================== */

.home-workshowcase {
    display: flex;
    flex-wrap: wrap;
    padding: 5% 1%;
    justify-content: center;
    gap: 27px;
}

.home-workshowcase .images {
    display: flex;
    justify-content: center;
    width: 45%;
    position: relative;
    overflow: hidden;
    border-radius: var(--BorderRadius);
    outline: 1px solid var(--Bandicoot);
    animation: fade-up 2s;
    z-index: 0;
}

body.work-page .home-workshowcase .images {
    width: 30%;
}

.home-workshowcase .images img {
    /* Style */
    width: 100%;
    display: block;
    transition: transform 0.3s ease-in-out;
}

.workdivider {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 5%;
    padding-bottom: 0;
    animation: fade-up 1s;
}

.tab {
    position: absolute;
    bottom: -90px;
    /* Initially hide it outside the view */
    left: 0;
    width: 100%;
    background: rgba(44, 44, 44, 0.219);
    /* Semi-transparent white */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.418);
    /* Subtle shadow */
    backdrop-filter: blur(20px);
    /* The blur effect */
    -webkit-backdrop-filter: blur(10px);
    /* Safari support */
    border: 1px solid rgba(255, 255, 255, 0.3);
    /* Optional: border to enhance the glass effect */
    pointer-events: none;
    display: flex;
    justify-content: space-between;
    padding: 20px 30px;
    box-sizing: border-box;
    transition: bottom 0.3s ease-in-out;

    text-shadow: 2px 2px 8px #42402185;
    text-decoration: none;
    font-weight: 500;
    color: var(--CitrineWhite);
}

.images img:hover {
    transform: scale(1.1);
}

.images:hover .tab {
    bottom: 0;
    /* Slide it up into view when hovered */
}

.images:active .tab {
    background: var(--Clicked-Gradient, linear-gradient(109deg, #111210 46.26%, #333333 206.6%));
    color: var(--Citrine-White, rgba(252, 251, 230, 1));
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    mix-blend-mode: color;
    transition: background-color 0.1s ease-in-out;
    pointer-events: none;
    border-radius: var(--BorderRadius);
}

/* Change the background color of the overlay on click */
.images:active .overlay {
    background-color: var(--Citrine-White, rgba(252, 251, 230, 1));
}

.images img:active {
    transform: scale(1.0);
}

/* ================== Carousel ================== */
.carousel {
    text-align: center;
    padding: 8rem 2rem;
    font-family: "Major Mono Display";
    color: var(--CodGray);
}

#carousel-header {
    font-size: clamp(2rem, 6vw, 4.488rem);
    margin-top: 3rem;
    margin-bottom: 3rem;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.carousel-image-container {
    position: relative;
    width: 80%;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 1rem;
    outline: 1px solid var(--Bandicoot);
}

.carousel-image {
    opacity: 0;
    transition: opacity 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    border-radius: 1rem;
}

.carousel-image.active {
    opacity: 1;
    z-index: 1;
    position: relative;
}

.carousel-image.active {
    display: block;
}

.carousel-icons {
    margin-top: 2rem;
}

.carousel-icon {
    background: var(--CitrineWhite);
    border: none;
    width: 3rem;
    height: 3rem;
    margin: 0 0.50rem;
    padding: 0.5rem;
    font-size: 1.25rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition:
        transform 0.5s ease,
        filter 0.5s ease,
        background-color 0.5s ease,
        color 0.5s ease;
}

.carousel-icon:hover {
    background: var(--CodGray);
    color: var(--CitrineWhite);
    transform: scale(1.1);
}

.carousel-icon.active {
    background: orangered;
    color: var(--CitrineWhite);
    transform: scale(1.1);
    filter: hue-rotate(360deg);
}

/* ================== Home CTA ================== */

.home-calltoaction {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 80vh;
}

.home-calltoaction .ctatext {
    max-width: 55rem;
    padding: 0 10%;
}

.home-calltoaction h1 {
    text-align: center;
}

.home-calltoaction p {
    text-align: center;
}

/* ================== Interactables ================== */

.btn-box {
    /* Layout */
    display: inline-flex;
    padding: 1rem 4rem;
    justify-content: center;
    align-items: center;
    margin-bottom: var(--MarginGap);

    /* Style */
    border-radius: var(--BorderRadius);
    outline: 1px solid var(--Bandicoot);
    background: var(--Gradient-1, linear-gradient(109deg, #FCFBE6 46.26%, #7C7C6C 206.6%));

    /* Typography */
    color: var(--CodGray);
    text-decoration: none;
    transition: .3s;

    /* Automatically adjust the width based on content */
    width: auto;
    /* Makes the button adjust to the content's width */
    white-space: nowrap;
    /* Prevents wrapping if the text is long */
}

.btn-box span ion-icon {
    display: flex;
    align-items: center;
    padding: 0 1rem;
}

.btn-box:hover {
    /* Style */
    border-radius: var(--BorderRadius);
    border: 1px solid orangered;

    filter: hue-rotate(360deg);
    /* Typography */
    color: orangered;
    font-family: Montserrat;
    font-weight: 600;
}

.btn-box:active,
.btn-box:focus {
    /* Style */
    border-radius: var(--BorderRadius);
    outline: 1px solid var(--Bandicoot);
    background: var(--CodGray);
}

.btn-round {
    width: 4rem;
    margin: 1% 0;
}

.btn-round-circle {
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    border-radius: var(--BorderRadius);
    border: 1px solid var(--CodGray);
    overflow: hidden;
    transition: 0.3s ease-out;
}

.btn-round-circle:hover {
    transform: scale(1.2);
    border: 1px solid orangered;
    filter: hue-rotate(360deg);
    color: orangered;
}

.btn-round-circle:active,
.btn-round-circle:focus {
    transform: scale(1.0);
    background: var(--CodGray);
}

.btn-round-circle a {
    display: block;
    float: left;
    width: 100%;
    padding-top: 50%;
    padding-bottom: 50%;
    line-height: 1em;
    margin-top: -0.5em;
    text-align: center;
    color: var(--CodGray);
    text-decoration: none;
    transition: 0.3s ease-out;
}

.btn-round-circle a:hover {
    filter: hue-rotate(360deg);
    color: orangered;
}


.btn-round-backup {
    position: fixed;
    bottom: var(--MarginGapMed);
    right: var(--MarginGapMed);
    width: 4rem;
    z-index: 8;
}

.btn-round-backup .btn-round-circle {
    background: rgba(44, 44, 44, 0.219);
    /* Semi-transparent white */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.418);
    /* Subtle shadow */
    backdrop-filter: blur(10px);
    /* The blur effect */
    -webkit-backdrop-filter: blur(5px);
    /* Safari support */
}

@media only screen and (max-width: 1100px) {
    h1 {
        font-size: 3.14rem;
        /* 70% of 4.488rem */
        line-height: 2.8rem;
        /* 70% of 4rem */
        margin-top: var(--MarginGapMed);
        margin-bottom: var(--MarginGapMed);
    }

    .header {
        padding: 50px 10%;
    }

    .nav-container {
        justify-content: flex-start;
    }

    .logo {
        margin-left: 0;
        height: 40px;
    }

    .hamburger {
        display: flex;
        position: absolute;
        right: 10%;
        /* Ensure the hamburger stays on the right */
    }

    .home {
        display: flex;
        flex-wrap: wrap;
    }

    .home-page .home {
        flex-direction: column-reverse;
    }

    .home-content-left {
        display: flex;
        flex-basis: 100%;
        padding: 0 10%;
        max-width: 100%;
        margin-top: var(--MarginGap);
        animation: fade-up 1s;
    }

    .home-content-right {
        width: 100%;
        padding: 0;
        margin-top: var(--MarginGap);
        margin-bottom: var(--MarginGap);
    }

    .about-page .home-content-right {
        justify-content: center;
        align-items: center;
    }

    .home-content-right .about-me-img {
        max-width: 60%;
    }

    .llama img {
        max-height: 90vw;
        /* Limit the height to 50% of the viewport height */
        object-fit: contain;
        /* Keep aspect ratio */
        right: 0;
    }

    .tab {
        font-size: 0.8rem;
        bottom: 0;
    }

    body.work-page .home-workshowcase .images {
        width: 45%;
    }
}

@media(max-width: 800px) {
    .desc {
        flex-direction: column;
    }

    .desc .desc-left {
        width: 90%;
    }

    .desc .desc-right {
        width: 90%;
    }

    .desc .desc-content {
        width: 90%;
    }

    .home-content-full img {
        border-radius: 2rem;
    }

    .desc-1-img-wide iframe {
        border-radius: 2rem;
        height: 512px;
    }

    .bottom .logo p {
        font-size: 0.6rem;
    }

    .desc-1-img-wide {
        height: 512px;
    }

    .desc-2-img-tile {
        grid-template-columns: repeat(1, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }

    .desc-3-img-tile {
        grid-template-columns: repeat(1, 1fr);
        grid-template-rows: max-content;
    }

    .desc-3-img-tile-var3 {
        grid-template-rows: 512px;
    }

    .desc-4-img-tile {
        grid-template-columns: repeat(1, 1fr);
        grid-template-rows: max-content;
    }

    .desc-4-img-tile-var2 {
        grid-template-columns: repeat(1, 1fr);
        grid-template-rows: max-content;
    }

    .desc-4-img-tile-var2 img:nth-child(1),
    .desc-4-img-tile-var2 img:nth-child(2),
    .desc-4-img-tile-var2 img:nth-child(3),
    .desc-4-img-tile-var2 img:nth-child(4) {
        grid-column: auto;
        grid-row: auto;
    }

    .desc-5-img-tile {
        grid-template-columns: repeat(1, 1fr);
        grid-template-rows: max-content;
    }

    .desc-5-img-tile-var2 {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: max-content;
    }

    .desc-5-img-tile-var3 {
        grid-template-rows: 256px;
    }

    .desc-5-img-tile-var4 {
        grid-template-rows: 256px;
    }

    .desc-6-img-tile {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media only screen and (max-width: 600px) {
    .home-workshowcase {
        flex-direction: column;
        /* Stack items vertically */
        gap: 15px;
        /* Adjust gap for mobile */
    }

    .home-workshowcase .images {
        width: 100%;
        /* Make each image take up full width on mobile */
    }

    body.work-page .home-workshowcase .images {
        width: 100%;
    }

    .carousel-image-container {
        width: 100%;
        height: 50vh;
    }

    .carousel-image {
        height: auto;
        object-fit: contain;
    }

    .tab {
        padding: 15px 20px;
        /* Adjust padding for the tab */
    }
}

@media (hover: none) {
    .btn-round-circle:active {
        transform: none;
    }
}