@font-face {
    font-family: Space;
    src: url(space.ttf);
}

@font-face {
    font-family: Commit400;
    src: url(commitmono400.otf);
}

@font-face {
    font-family: Commit700;
    src: url(commitmono700.otf);
}

/* General styles */
html,a,body,footer,nav,section {
    cursor: crosshair;
}

body {
    background-color: #000;
    color: #fff;
    margin: 0;
    font-family: Commit400, sans-serif;
}

/* Sticky navbar */
.navbar {
    position: sticky;
    top: 0;
    padding: 2rem 0;
    text-align: center;
    z-index: 50;
}

.navbar a {
    color: #fff;
    text-decoration: none;
}

/* Navbar styles */
.navbar a:not(:last-child)::after {
    content: "•";
    margin: 0 20px; /* Adds equal spacing on both sides of the dot */
    color: #fff;
}

/* Footer styles */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    font-size: 1rem;
    box-sizing: border-box;
    color: #9c9c9c;
}

.footer .time {
    margin-left: 1rem;
    white-space: nowrap; /* Prevents wrapping of the time text */
    flex: 0 0 80px; /* Fixed width for the time section */
    text-align: left; /* Aligns text to the left */
}

.footer .social-links {
    text-align: center;
    flex: 1; /* Takes up remaining space */
    display: flex;
    justify-content: center;
    gap: 1rem; /* Adds spacing between icons */
}

.footer .social-links img {
    width: 24px;
    height: 24px;
    filter: brightness(0.7);
    transition: filter 0.2s;
}

.footer .screen-dimensions {
    margin-right: 1rem;
    white-space: nowrap; /* Prevents wrapping of the dimensions text */
    flex: 0 0 80px; /* Fixed width for the screen dimensions section */
    text-align: right; /* Aligns text to the right */
}

.content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 20rem); /* Full height minus navbar height */
}
.terminal-hero {
    font-family: monospace;
    background: black;
    color: lime;
    padding: 2rem;
    height: 100vh;
    width: 100vw; /* Ensure it spans the full viewport width */
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed; /* Position it over other elements */
    top: 0;
    left: 0;
    transition: opacity 1s ease-in-out; /* Smooth fade-out effect */
    z-index: 100; /* Higher z-index to ensure it appears above other elements */
}

.terminal-hero.fade-out {
    opacity: 0; /* Fade out the terminal */
}

.hero-canvas {
    width: 100%;
    height: 100vh;
    display: block;
    background: black;
}

#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #000;
}

video {
    width: 40vw;
    max-width: 800px;
    height: auto;
    object-fit: cover; /* Ensures the video scales properly */
    position: fixed; /* Fixes the video in place */
    z-index: -1; /* Places the video behind other elements */
}

.projectscontent {
    display: flex;
    justify-content: center;
    padding-top: 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Default: 2 columns */
    gap: 1.5rem; /* Space between grid items */
    margin-top: 0;
}

.project-box {
    /* border: 2px dashed #9c9c9c;  */
    /* outline: 2px dashed #9c9c9c; */
    padding: 1.5rem;
    color: #fff;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 30vw;
}

.project-box .click-for-more {
    color: #aaa; /* Grey text */
    font-size: 0.9rem;
    margin-top: 1rem;
}

.project-image {
    max-height: 20px;
    width: auto;
}

.project-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: #fff;
    line-height: 1.8;
    justify-content: center;
}

.project-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.project-detail-image {
    max-width: 80%;
    height: auto;
    margin: 1.5rem 0;
}

.project-description {
    font-size: 1rem;
    color: #ccc;
    margin: 0 auto 2rem; /* Center horizontally and add bottom margin */
    max-width: 80%; /* Limit the width to 80% of the screen */
    text-align: center; /* Center-align the text inside */
}

.back-button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background-color: #111;
    color: #fff;
    text-decoration: none;
    border: 2px solid #9c9c9c;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.back-button:hover {
    background-color: #9c9c9c;
    color: #111;
}

@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: 1fr; /* Single column on smaller screens */
    }
    .project-box {
        width: 70vw;
    }
    
}
.aboutcontent {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 50; /* Ensure it appears above the starfield */
  }

  .about-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #00ff88;
  }

  .about-description {
    font-size: 1.1rem;
    color: #ccc;
    line-height: 1.6;
    white-space: pre-line;
  }