body {
    width: 88vw;
    height: auto;
    z-index: 1;
    background-color: #4c4c52;
    font-family: Arial, sans-serif;
    margin: auto auto auto 13vw;
    padding: 0;
    color: white;
    transition: background-color 0.3s, color 0.3s;
}

p{
    font-size: 16px;
    line-height: 1.5;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #11b1e2;
    margin: 1em 0;
    padding: 0;
}

a.light-mode {
    color: #333 !important;
}

body.light-mode {
    background-color: #f4f4f4;
    color: #333;
}

#PFP {
    width: 70%;
    border: #11b1e2 1px solid;;
    border-radius: 50%;
    margin: 5% 14%; /* Center the image */
}

#philip {
    font-size: 30px;
    text-align: center;
    margin-bottom: 10px;
}

#role {
    font-size: 16px;
    text-align: center;
    margin-top: 10px;
}

#location {
    font-size: 16px;
    text-align: center;
    margin-top: 20px;
}

#icons8_shoutout {
    font-size: 10px;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 12vw;
    height: 100vh;
    background: #2f3033;
    padding: 20px;
    box-shadow: 10px 10px 7px -6px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s;
}

nav.light-mode {
    background: #e0e0e0;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    text-align: left;
}

nav ul li {
    font-size: 30px;
    margin-bottom: 10px;
}

nav ul li a {
    display: block;
    width: 92%;
    font-family: Arial, Helvetica, sans-serif !important;
    color: white;
    text-decoration: none;;
    font-size: 20px;
    transition: color 0.3s;
    border-radius: 8px;
    padding: 10px;
    transition: background-color 0.12s, color 0.12s;
}

nav ul li a:hover {
    box-shadow: 0px 0px 7px 3px rgba(0, 0, 0, 0.253);
    
}

nav ul li a:active {
    background-color: #444;
    color: white;
}

nav.light-mode ul li a {
    color: #333;
}

#theme-toggle {
    font-size: 1.2rem;
    padding: 10px;
    background: #444;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

#theme-toggle:hover {
    box-shadow: 0px 0px 7px 3px rgba(0, 0, 0, 0.253);
}

#theme-toggle.light-mode {
    background: #f4f4f4;
    color: #333;
}

.social {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin: auto;
}

.social a {
    width: 25px;
    padding: 8px;
    text-align: center;
}

.cursor {
    z-index: 0;
    position: fixed;
    background: #777777;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 0 20px, #777777, 0 0 60px, #777777, 0 0 100px, #777777;
    transform: translate(-50%, -50%);
    animation: colors 5s infinite;
    display: none;
    inset: 0; /* Center the cursor */
    filter: blur(100px);
}
.cursor::before {
    z-index: 0;
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: #777777;
    opacity: 0.2;
    border-radius: 50%;
    transform: translate(-30%, -30%);
    inset: 0;
    filter: blur(100px);
}

.cursor.light-mode {
    background: #c7c4c4;
}

.cursor.light-mode::before {
    background: #c7c4c4;
}

#click-me {
    display: none;
}


/* eyeball animation and nav css for macOS*/

@media (width: 1440px) and (height: 812px) {

    #click-me {
        display: block;
        z-index: 999;
        position: fixed;
        left: 0vw;
        top: 0;
        width: 90px;   
        }
    .eyes-container {
        z-index: 999;
        visibility: hidden;
        position: fixed;
        display: flex;
        gap: 0.5vw;
        top: 8vh;
        left: 5.5vw;
    }
        
    .eyes-container.visible {
        visibility: visible;
        opacity: 1;
    }
   
    .eye {
    width: 25px;
    height: 25px;
    background: radial-gradient(circle at 50% 50%, #ffffff, #f5f5f5);
    border-radius: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    }
    
    .pupil {
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, #000 60%, #222 100%);
    border-radius: 50%;
    position: absolute;
    transition: transform 0.08s ease-out;
    }
    
    .eyelid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f5d1a8;
    border-radius: 20%;
    transform: translateY(-100%);
    transition: transform 0.2s ease-in-out;
    }
    
    .eye.blink .eyelid {
    transform: translateY(0);
    }

    nav ul li {
        font-size: 20px; /* Reduce font size for smaller screens */
        margin-bottom: 15px; /* Reduce spacing between items */
    }

    #role {
        font-size: 16px; /* Reduce font size for smaller screens */
        margin-top: 20px; /* Adjust margin for smaller screens */
    }
}

/* eyeball animation for windows*/

@media (width: 1920px) or (width: 2560px){

    #click-me {
        display: block;
        z-index: 999;
        position: fixed;
        width: 5vw;   
        left: 0;
        top: 0;
        }
    .eyes-container {
        z-index: 999;
        visibility: hidden;
        position: fixed;
        top: 9.5vh;
        left: 5.3vw;
        display: flex;
        gap: 10px;
    }
        
    .eyes-container.visible {
        visibility: visible;
        opacity: 1;
    }
   
    .eye {
    width: 30px;
    height: 30px;
    background: radial-gradient(circle at 50% 50%, #ffffff, #f5f5f5);
    border-radius: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    }
    
    .pupil {
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, #000 60%, #222 100%);
    border-radius: 50%;
    position: absolute;
    transition: transform 0.08s ease-out;
    }
    
    .eyelid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f5d1a8;
    border-radius: 20%;
    transform: translateY(-100%);
    transition: transform 0.2s ease-in-out;
    }
    
    .eye.blink .eyelid {
    transform: translateY(0);
    }
}


.container {
    z-index: 1;
    max-width: 60vw;
    min-height: 100vh;
    margin: auto; /* Center the container */
    padding: 0;
}



.section {
    z-index: 1;
    box-shadow: 0px 10px 6px -6px rgba(0, 0, 0, 0.3);
    margin: 25px;
    min-width: 180px;
    padding: 1px 20px;
    background: #2f3033;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.project-embed {
    z-index: 1;
    flex: 1; /* Take up available space on the right */
    display: flex;
    justify-content: center; /* Center the embed horizontally */
    align-items: center; /* Center the embed vertically */
}

.project-embed img{
    z-index: 1;
    height: auto;
    width: 100%;
    box-shadow: 0px 10px 6px -6px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    transition: transform 0.12s; /* Smooth transition for scaling */
}

.project-embed img:hover {
    transform: scale(1.02); /* Scale up the image on hover */
}

.project-embed video{
    z-index: 1;
    height: auto;
    width: 100%;
    box-shadow: 0px 10px 6px -6px rgba(0, 0, 0, 0.3);
    display: block;
    border-radius: 8px;
    transition: transform 0.12s; /* Smooth transition for scaling */
}

.project-embed video:hover {
    transform: scale(1.02); /* Scale up the image on hover */
}

/* Tool Styles */

.project-tools {
    display: flex;
    flex-direction: row; /* Align items in a row */
    flex-wrap: wrap;
    gap: 10px;
    width: auto;
}

.tools {
    padding: 3px 5px 4px 5px;
    border-radius: 8px;
    font-size: 11px;
    background: #2f3033;
    border: #11b1e2 1px solid;
    transition: background-color 0.3s, color 0.3s;
}

.tools.light-mode {
    background: #e0e0e0;
    border: #11b1e2 1px solid;
}

.projects {
    display: flex; /* Use Flexbox for layout */
    flex-direction: row; /* Align items in a row */
    justify-content: space-between; /* Add space between the two sections */
    align-items: center; /* Align items at the top */
    gap: 20px; /* Add space between the left and right sections */
    margin-bottom: 5%; /* Add spacing between project cards */
    padding: 20px; /* Add padding inside the card */
    background: #3c3d3f; /* Background color for the card */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0px 10px 6px -6px rgba(0, 0, 0, 0.3); /* Add a subtle shadow */
    transition: background-color 0.3s;
}


.projects.light-mode {
    background: #f4f4f4; /* Light mode background color */
}

.project-info {
    flex: 1; /* Take up available space on the left */
    display: flex;
    flex-direction: column; /* Stack title and description vertically */
    justify-content:flex-start;
    margin-bottom: 20px;
}

#project-title {
    font-size: 16px;
    margin-bottom: 0;
}



body.light-mode .section {
    background: #e0e0e0;
}

footer {
    width: 100%;
    text-align: center;
    padding: 10px;
    background: #2f3033;
    color: white;
    transition: background-color 0.3s, color 0.3s;
}

footer.light-mode {
    background: #e0e0e0;
    color: #333;
}

#hamburger-menu {
    display: none; /* Hide by default */
    z-index: 999;
}

#menu-toggle {
    font-size: 24px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}
#menu-toggle.light-mode {
    color: #333;
}

#mobile-nav {
    position: absolute;
    width: 50%;
    border-radius: 8px;
    list-style: none;
    padding: 0;
    margin: 0 1vw;
    background: #191a1b70;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0px 0px 6px 3px rgba(0, 0, 0, 0.274);
}

#mobile-nav.light-mode{
    background: #e0e0e077;
}
#mobile-nav li {
    margin: 10px;
    padding: 5px;
}
#mobile-nav li a {
    text-decoration: none;
    color: white;
    font-size: 16px;
}

#mobile-nav.light-mode li a {
    color: #333; /* Change text color to #333 in light mode */
}
#mobile-nav.hidden {
    display: none; /* Hide menu by default */
}

#divider {
    width: 80%;
    height: 1px;
    background-color: #11b1e2;
    display: block;
}



/* Mobile Styles */

@media (max-width: 900px) {
    html {
        touch-action: pan-y; /* Allow vertical scrolling */
        overflow-x: hidden; /* Prevent horizontal scrolling */
    }

    body {
        width: 100vw;
        height: auto;
        background-color: #4c4c52;
        font-family: Arial, sans-serif;
        margin: auto;
        padding: 0;
        color: white;
        transition: background-color 0.3s, color 0.3s;
    }
    
    nav {
        position: static;
        width: 100%; /* Full width for mobile */
        height: 7vh; /* Adjust height automatically */
        box-shadow: 0 10px 6px -6px rgb(0, 0, 0, 0.3); /* Add shadow for depth */
        padding: 0px;
        margin: 0;
        }

    nav ul {
        display: flex;
        flex-direction: row; /* Change to horizontal layout */
        justify-content: space-around; /* Space out items evenly */
        align-items: center;
    }

    nav ul li {
        font-size: 16px; /* Reduce font size for smaller screens */
        margin-bottom: 0; /* Remove extra spacing */
    }

    nav ul li a {
        width: auto; /* Allow links to adjust width dynamically */
        padding: 5px 10px; /* Adjust padding for smaller screens */
    }

    #mobile-nav {
        width: 40vw;
    }
    
    #theme-toggle {
        width: 95vw;
        height: 5vh;
        padding: 0;
        margin: auto;
        font-size: 15px; /* Smaller font size for the button */
    }

    #theme-toggle:hover {
        box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0.253); /* Remove shadow on hover */
    }

    #role {
        font-size: 14px; /* Reduce font size for smaller screens */
        margin-top: 10px; /* Adjust margin for smaller screens */
    }

    #location {
        font-size: 14px; /* Reduce font size for smaller screens */
        margin-top: 10px; /* Adjust margin for smaller screens */
    }

    .container { /* Center the container */
        max-width: none; /* Remove max-width for mobile */
        width: 100%; /* Allow the container to take full width */
    }

    .section {
        min-width: 200px; /* Set a minimum width for sections */
    }

    h2 {
        font-size: 1.5rem; /* Reduce heading size */
    }

    p {
        font-size: 14px; /* Smaller font size for paragraphs */
        line-height: 1.4; /* Adjust line height for readability */
    }

    footer {
        padding: 10px 0; /* Adjust padding for footer */
    }

    #hamburger-menu {
        display: block; /* Show hamburger menu on small screens */
        position: sticky; /* Make it sticky to the top */
        top: 0;
        padding: 10px; /* Add padding for better touch targets */
    }

    nav ul {
        display: none; /* Hide the default nav bar */
    }

    .projects {
        flex-direction: column; /* Stack sections vertically */
        align-items: center; /* Center align the content */
    }

    #philip {
        font-size: 24px; /* Reduce font size for smaller screens */
    }

    #PFP {
        width: 30%;
        border-radius: 50%;
        margin: 10% 14% 5% 14%; /* Center the image */
    }
}
img {
    max-width: 100%; /* Scale images to fit within their container */
    height: auto; /* Maintain aspect ratio */
}

