/* Global Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    color: white;
    background: black;
    position: relative;
    min-height: 100vh;
}

/* Full Page Sections */
.full-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 85vh;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
    padding: 40px 0;
}

/* Tech Box */
.tech-box {
    background: rgba(61, 95, 135, 1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    text-align: center;
}

/* Contact Box */
.contact-box {
    background: rgba(61, 95, 135, 1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    text-align: center;
}

/* Contact Icons */
.contact-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.contact-icons img {
    width: 40px;
    height: auto;
}

/* Hyperlinks */
a {
    color: #00bfff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Menu Box */
.menu-box {
    background: rgba(61, 95, 135, 1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 60%;
    max-width: 400px;
}

/* Projects Box */
.projects-box {
    background: rgba(61, 95, 135, 1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80%;
    max-width: 900px;
}

/* Menu Section Styling */
#menu .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

#menu .left, #menu .right {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#menu .logo {
    text-align: center;
}

#menu .profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid #333;
    box-shadow: 2px 2px 10px #ccc;
    margin-top: 10px;
}

.menu-box .button-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.menu-box .button-container button {
    background: #020519;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.menu-box .button-container button:hover {
    background: #008fcc;
}

/* Navigation Styling */
#menu nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

#menu nav ul li {
    margin: 5px 0;
}

#menu nav ul li a, #menu nav ul li button {
    color: white;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 5px 10px;
}

#menu nav ul li button:hover, #menu nav ul li a:hover {
    text-decoration: underline;
}

/* Projects Section Styling */
.project-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 20px;
}

.project {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px;
    width: 100%;
    max-width: 800px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 1);
}

.project-img {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    margin-right: 20px;
    object-fit: fill;
}

.project-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.project-info h3 {
    margin: 0 0 10px 0;
}

.project-info p {
    margin: 0 0 10px 0;
}

.project-info a {
    color: #00bfff;
    text-decoration: none;
}

.project-info a:hover {
    text-decoration: underline;
}

#tech-stack {
    text-align: center;
    color: #fff;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 1);
}

.tech-icons {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    justify-items: center;
    align-items: center;
    margin-top: 20px;
}

.tech-icons img {
    width: 100px;
    height: auto;
}

/* Footer Styling */
footer {
    background: #000000;
    color: white;
    text-align: center;
    padding: 20px;
    position: relative;
    width: 100%;
    z-index: 2;
}

/* Matrix Code Rain Background */
#matrix {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.starfield {
    position: absolute;
    width: 100%;
    height: 100%;
    background: black;
    overflow: hidden;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

canvas#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Ensure the canvas is behind all other content */
    background-size: cover;
}

#moon {
    position: fixed;
    bottom: 20%;
    right: 10%;
    width: 100px;
    height: 100px;
    background: url('Assets/moon.png') no-repeat center center;
    background-size: contain;
    z-index: -1;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes moveMoon {
    0% { transform: translate(0, 0); }
    50% { transform: translate(100vw, 100vh); }
    100% { transform: translate(0, 0); }
}

@keyframes moveGalaxy {
    0% { transform: translate(0, 0); }
    50% { transform: translate(-100vw, -100vh); }
    100% { transform: translate(0, 0); }
}

/* Mobile particularly, should be fine? */
@media (max-width: 600px) {
    .menu-box {
        width: 90%;
        max-width: none;
    }

    #menu .container {
        flex-direction: column;
        gap: 20px;
    }

    #menu .profile-pic {
        width: 100px;
        height: 100px;
    }

    .menu-box .button-container button {
        font-size: 14px;
        padding: 8px 14px;
    }

    .projects-box {
        width: 90%;
    }

    .project {
        flex-direction: column;
        align-items: flex-start;
    }

    .project-img {
        width: 100%;
        height: auto;
        margin-right: 0;
        margin-bottom: 10px;
    }

    /* icons on mobile are visible 3 apart */
    .tech-icons {
        grid-template-columns: repeat(3, 1fr);
    }

    .tech-icons img {
        width: 60px;
    }

    .content-box {
        width: 85%;
    }
}