body {
    margin: 0;
    font-family: 'Mozilla Text', Arial, sans-serif; /* Use Mozilla Text for all content */
    background: #000000; /* Solid black background */
    color: #FFFFFF; /* Solid white text */
    overflow-x: hidden; /* Prevent horizontal scrolling */
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="%23FFF" stroke="%23000" stroke-width="1.25" d="M5.5 3.21V20.8c0 .45.54.67.85.35l4.86-4.86a.5.5 0 0 1 .35-.15h6.87a.5.5 0 0 0 .35-.85L6.35 2.85a.5.5 0 0 0-.85.35Z"></path></svg>') 0 0, auto; /* Custom cursor */
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

a {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="%23FFF" stroke="%23000" stroke-width="1.25" stroke-linejoin="round" d="M10 11V8.99c0-.88.59-1.64 1.44-1.86h.05A1.99 1.99 0 0 1 14 9.05V12v-2c0-.88.6-1.65 1.46-1.87h.05A1.98 1.98 0 0 1 18 10.06V13v-1.94a2 2 0 0 1 1.51-1.94h0A2 2 0 0 1 22 11.06V14c0 .6-.08 1.27-.21 1.97a7.96 7.96 0 0 1-7.55 6.48 54.98 54.98 0 0 1-4.48 0 7.96 7.96 0 0 1-7.55-6.48C2.08 15.27 2 14.59 2 14v-1.49c0-1.11.9-2.01 2.01-2.01h0a2 2 0 0 1 2.01 2.03l-.01.97v-10c0-1.1.9-2 2-2h0a2 2 0 0 1 2 2V11Z"></path></svg>') 0 0, auto; /* Custom cursor for links */
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent; /* Transparent background initially */
    z-index: 1000; /* Ensure it stays above other elements */
    padding: 0; /* Remove padding */
    transition: background 0.3s ease; /* Smooth transition for background change */
}

header.scrolled {
    background: #000000; /* Solid black background when scrolled */
}

nav ul {
    display: flex;
    justify-content: space-evenly;
    list-style: none;
    margin: 0;
    padding: 1.5rem;
    gap: 1rem;
}

nav a {
    text-decoration: none;
    color: #888888; /* Grey text for inactive links */
    font-size: 1rem;
    transition: color 0.3s ease;
    white-space: nowrap; /* Prevent text wrapping */
    position: relative; /* Enable positioning for the underline */
}

nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px; /* Position the underline just below the text */
    width: 0;
    height: 2px; /* Thickness of the underline */
    background: #FFFFFF; /* White underline */
    transition: width 0.3s ease; /* Smooth animation for the underline */
}

nav a.active {
    color: #FFFFFF; /* White text for active link */
}

nav a.active::after {
    width: 100%; /* Expand the underline for the active link */
}

nav a:hover {
    color: #FFFFFF; /* Change text color on hover */
}

@media (max-width: 768px) { /* Non-desktop styles */
    nav a {
        font-size: 0.9rem; /* Scale down font size for smaller screens */
    }

    #about p {
        font-size: 1.5rem;
        text-align: justify; /* Justify text for paragraphs in the about section */
    }
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 4rem; /* Offset for fixed header */
}

section {
    min-height: 100vh; /* Each section takes up full viewport height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20vh; /* Add 20vh margin between sections */
}

#about {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Distribute the paragraphs vertically */
    align-items: flex-start; /* Default alignment for mobile */
    height: 100%; /* Ensure the section takes up the full height */
    width: 85vw; /* Default width for smaller devices */
    max-width: 1200px; /* Optional: Limit the maximum width */
}

#about p:nth-of-type(1) {
    align-self: flex-start; /* Place the first paragraph at the top-left */
    text-align: left;
}

#about p:nth-of-type(2) {
    align-self: center; /* Center the second paragraph horizontally */
    text-align: center;
}

#about p:nth-of-type(3) {
    align-self: flex-end; /* Place the third paragraph at the bottom-right */
    text-align: right;
}

@media (max-width: 768px) { /* Mobile styles */
    #about p{
        align-items: flex-start; /* Align all paragraphs to the left */
        text-align: left; /* Left align text */
    }
}

@media (min-width: 769px) { /* Desktop styles */
    #about p {
        width: 33vw; /* Set width to 33% of the viewport width */
        min-width: 480px; /* Ensure a minimum width of 480px */
    }

    #about {
        width: 75vw; /* Limit width to 80% of the viewport on desktop */
    }
}

h1, h2, h3 {
    font-weight: normal; /* Remove bold styling from headings */
}

#projects {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100vw;
}

#projects a {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><g fill="none" stroke="%23000" stroke-width="1.25" stroke-linejoin="round"><path fill="%23FFDE00" d="M17.5 21h-11A1.5 1.5 0 0 1 5 19.5v-7c0-.83.67-1.5 1.5-1.5h11c.83 0 1.5.67 1.5 1.5v7c0 .83-.67 1.5-1.5 1.5Z"></path><path d="M8 11V7a4 4 0 1 1 8 0v4"></path><circle cx="12" cy="16" r=".25"></circle></g></svg>') 0 0, auto; /* Custom cursor for project links */
}

.project-card {
    width: 80%;
    height: 50vh;
    opacity: 0.8;
    background-size: cover;
    background-position: center;
    transition: 0.5s ease;
    filter: saturate(50%);
}

.project-card:hover, .project-card:active{
    width: 100vw; /* Stretch the card to the full width of the viewport */
    opacity: 1;
    filter: saturate(100%);
}

html {
    scroll-behavior: smooth; /* Enable smooth scrolling */
}

.work-history-card {
    box-shadow: 0 0 40rem 0 #0C0C0C; /* Dark grey shadow */
    text-align: left; /* Align text to the left */
    max-width: 800px; /* Limit the card width */
    width: 90%; /* Responsive width */
}

.work-history-card h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    margin-top: 1rem;
    color: #FFFFFF; /* White text for the title */
}

.work-history-card ul {
    list-style: disc;
    padding-left: 1.5rem; /* Add padding for the list */
    color: #CCCCCC; /* Light grey text for the list items */
}

.work-history-card ul li {
    margin-bottom: 0.5rem; /* Add spacing between list items */
}

.strapline {
    font-size: 1.2rem;
    font-weight: bold;
    color: #CCCCCC; /* Light grey text for the strapline */
    margin-bottom: 0.5rem; /* Add spacing below the strapline */
    text-transform: uppercase; /* Make the text uppercase */
}

.work-history-card p {
    font-size: 1rem; /* Set font size to 1rem for paragraphs inside cards */
    color: #CCCCCC; /* Light grey text for paragraphs */
}

.work-details {
    display: flex;
    flex-direction: row;
    font-size: 0.9rem; /* Slightly smaller font size */
    color: #ffffff; /* Light grey text */
    gap: 1rem;
}

.work-details p{
    margin: 0;
}



.vl {
    border-left: 2px solid #888888; /* Light grey line */
    height: 2rem;
    opacity: 0.25; /* Slightly transparent */
    border-radius: 2px;
}

#work-history {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

[data-lazy] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.5s ease-out, transform 2s ease-out;
}

[data-lazy].visible {
    opacity: 1;
    transform: translateY(0);
}

#vanta-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; /* Place behind other content */
}