* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial Black', sans-serif;
    font-weight: bold;
    color: black;
    background-color: white;
	cursor: url("/mouse3.png") 16 16, crosshair; /* Correct path and hotspot */

}

/* Apply a custom cursor to all clickable links */
a {
    cursor: url("/mouse2.png") 16 16, auto; /* Custom cursor */
}

/* Change cursor when hovering over links */
a:hover {
    cursor: url("/mouse2.png") 16 16, auto; /* Custom hover cursor */
}

a:hover {
	color: limegreen !important;
}


header {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    align-items: flex-start;
}

header .left p {
    font-size: 16px;
    line-height: 1.0;
}

header .center {
    text-align: center;
}

header .center p {
    font-size: 16px;
    line-height: 1.0;
}

header .center p:hover {
   color: limegreen;
}

header .right nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0px;
    text-align: right;
	line-height: 1.0;
}

header .right nav ul li a {
    color: black;
    text-decoration: none;
    font-size: 16px;
	line-height: 1.0;
}

header .right nav ul li a:hover {
    color: limegreen;
}

.projects {
    padding: 20px;
}

.project-row {
    font-size: 40px;
    line-height: 1.2;
    letter-spacing: -1px;
    white-space: nowrap;
    overflow: hidden;
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
    cursor: pointer; /* Indicate clickable items */
    transition: background-color 0.3s ease;
	}

.project-row:hover {
    background-color: white; /* Optional: background color on hover */
}

.project-row span {
    display: inline-block;
    padding-right: 50px; /* Space between repeated text */
}

.project-row .scroll-text {
    display: flex;
    animation: scroll-left 70s linear infinite;
}

.project-row:hover .scroll-text {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* WebKit prefix for Safari */
@-webkit-keyframes scroll-left {
    0% {
        -webkit-transform: translateX(0);
    }
    100% {
        -webkit-transform: translateX(-50%);
    }
}

/* Project link styling */
.project-link {
    display: block;
    text-decoration: none; /* Remove underline from links */
    color: black; /* Ensure the link text is black */
}

.project-link:hover .scroll-text {
    color: limegreen; /* Optional: Change text color on hover */
}

/* Mobile Layout for the header and projects */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        
		
    }

    .center {
        order: 1;
        margin-bottom: 20px;
		text-align: left !important;
	}

    .left {
        order: 2;
        margin-bottom: 20px;
    }

    .right {
        order: 3;
        width: 100%;
        text-align: center;
    }

    .right nav ul {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 0;
        margin: 0;
    }

    .right nav ul li {
        list-style: none;
    }

    .right nav ul li a {
        font-size: 14px;
        text-align: center;
        display: block;
        color: black;
        text-decoration: none;
    }

    .right nav ul li a:hover {
        color: limegreen;
    }

    .project-row {
        font-size: 28px;
    }
}

/* Floating elements styling */
#floating-elements-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Prevent interaction with the floating images */
    z-index: 9999; /* Make sure the floating images are above other content */
}

.floating-element {
    position: absolute;
    width: 100px; /* Adjust size as needed */
    height: 100px;
    opacity: 0.5; /* Default opacity, can be adjusted */
    animation: float 8s linear infinite;
    -webkit-animation: float 8s linear infinite; /* Safari requires -webkit- prefix */
}

/* Define the floating animation with variables for starting point */
@keyframes float {
    0% {
        transform: translate(var(--start-x, 0), var(--start-y, 100vh)) rotate(0deg); /* Random start outside the screen */
    }
    100% {
        transform: translate(var(--end-x, 100vw), var(--end-y, -100vh)) rotate(360deg); /* Move through screen diagonally */
    }
}

/* WebKit-specific animation for Safari */
@-webkit-keyframes float {
    0% {
        -webkit-transform: translate(var(--start-x, 0), var(--start-y, 100vh)) rotate(0deg);
    }
    100% {
        -webkit-transform: translate(var(--end-x, 100vw), var(--end-y, -100vh)) rotate(360deg);
    }
	
html, body {
    overflow-x: hidden;

}
