body {
    background-image: linear-gradient(rgba(0, 0, 0, 0.842)), url(../assets/bg.jpg);
    background-position: center;
}

body > * {
    font-family: "Comic Sans MS", "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
}

.comic-relief-regular {
    font-family: "Comic Relief", system-ui;
    font-weight: 400;
    font-style: normal;
}

.comic-relief-bold {
    font-family: "Comic Relief", system-ui;
    font-weight: 700;
    font-style: normal;
}

.profile {
    height: 300px;
}

.nav-item :hover {
    color: #ffda6a !important;
    transform: scale(1.1);
    transition: all 0.3s ease;
    position: relative;
}

.web :hover {
    color: #4cfcad !important;
}

.graphic :hover {
    color: rgb(255, 92, 92) !important;
}

.photography :hover {
    color: #6edff6 !important;
}

.home .active {
    color: #ffda6a !important;
    position: relative;
}

.home .active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ffda6a;
}

.web .active {
    color: #4cfcad !important;
    position: relative;
}

.web .active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #4cfcad;
}

.about .active {
    color: #ffda6a !important;
    position: relative;
}

.about .active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ffda6a;
}

.graphic .active {
    color: rgb(255, 92, 92) !important;
    position: relative;
}

.graphic .active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: rgb(255, 92, 92);
}

.photography .active {
    color: #6edff6 !important;
    position: relative;
}

.photography .active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #6edff6;
}

/* Update transition styles */
.transition-fade {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 400ms cubic-bezier(0.4, 0, 0.2, 1), transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 60vh;
    padding: 20px 0;
    will-change: transform, opacity;
    backface-visibility: hidden;
    perspective: 1000;
    transform-style: preserve-3d;
}

/* Slide left animation */
body.is-animating-left .transition-fade {
    opacity: 0;
    transform: translateX(-50px);
}

/* Slide right animation */
body.is-animating-right .transition-fade {
    opacity: 0;
    transform: translateX(50px);
}

/* Ensure header and footer stay stable */
header,
footer {
    transition: none;
    opacity: 1 !important;
    transform: none !important;
}
