body, html {
margin: 0;
padding: 0;
height: 100%;
font-family: 'VT323', monospace;
color: #33ff33;
background-color: #000;
overflow-y: auto;
text-shadow: 0 0 5px rgba(51, 255, 51, 0.5);
font-size: 20px; /* Increased from the default 16px */
}

.container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 60px 20px 20px; /* Increased top padding */
    box-sizing: border-box;
  }

.terminal-window {
width: 90%;
max-width: 600px; /* Reduce max-width */
max-height: 80vh; /* Limit height on smaller screens */
overflow-y: auto; /* Allow scrolling within the terminal */
margin: 0 auto; /* Center the window */

background-color: rgba(0, 20, 0, 0.8);
border: 2px solid #33ff33;
box-shadow: 0 0 20px rgba(51, 255, 51, 0.5);
padding: 20px;
}

.website-window {
    width: 90%;
    max-width: 800px; /* Reduce max-width */
    max-height: 80vh; /* Limit height on smaller screens */
    overflow-y: auto; /* Allow scrolling within the terminal */
    margin: 0 auto; /* Center the window */
    
    background-color: rgba(0, 20, 0, 0.8);
    border: 2px solid #33ff33;
    box-shadow: 0 0 20px rgba(51, 255, 51, 0.5);
    padding: 20px;
}

.about-window {
    width: 90%;
    max-width: 1000px; /* Reduce max-width */
    max-height: 80vh; /* Limit height on smaller screens */
    overflow-y: auto; /* Allow scrolling within the terminal */
    margin: 0 auto; /* Center the window */
    
    background-color: rgba(0, 20, 0, 0.8);
    border: 2px solid #33ff33;
    box-shadow: 0 0 20px rgba(51, 255, 51, 0.5);
    padding: 20px;
    }

.terminal-header {
font-size: 1.2em;
border-bottom: 1px solid #33ff33;
padding-bottom: 10px;
margin-bottom: 20px;
}

h1 {
font-size: 2.5em;
margin-bottom: 30px;
text-shadow: 0 0 10px #33ff33;
}

nav ul {
list-style-type: none;
padding: 0;
}

nav ul li {
margin: 15px 0;
}

nav ul li a {
color: #33ff33;
text-decoration: none;
font-size: 1.2em;
transition: all 0.3s ease;
}

nav ul li a:hover {
color: #fff;
text-shadow: 0 0 10px #33ff33;
}

.screen-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: radial-gradient(ellipse at center, rgba(0,60,0,0.1) 0%, rgba(0,20,0,0.3) 100%);
pointer-events: none;
z-index: 2;
}

.screen-overlay::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(
90deg,
rgba(255, 0, 0, 0.06),
rgba(0, 255, 0, 0.02),
rgba(0, 0, 255, 0.06)
);
background-size: 3px 100%;
z-index: 2;
pointer-events: none;
}

.scanlines {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(
to bottom,
rgba(18, 16, 16, 0) 50%,
rgba(0, 0, 0, 0.25) 50%
);
background-size: 100% 4px;
pointer-events: none;
z-index: 3;
}

.back-button {
position: absolute;
top: 20px;
left: 20px;
z-index: 10;
background-color: rgba(51, 255, 51, 0.2);
border: 1px solid #33ff33;
color: #33ff33;
padding: 10px 20px;
text-decoration: none;
font-size: 1em;
transition: all 0.3s ease;
}

.back-button:hover {
background-color: rgba(51, 255, 51, 0.4);
box-shadow: 0 0 10px rgba(51, 255, 51, 0.5);
cursor: pointer;
}

@font-face {
font-family: 'FontAwesome';
src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/fonts/fontawesome-webfont.woff2') format('woff2');
font-weight: normal;
font-style: normal;
}

.terminal-header {
display: flex;
justify-content: space-between;
align-items: center;
}

.social-icons {
display: flex;
gap: 10px;
}

.icon {
font-family: 'FontAwesome';
text-decoration: none;
color: #33ff33;
font-size: 1.2em;
transition: color 0.3s ease;
}

.icon:hover {
color: #ffffff;
}

.website-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    justify-content: center;
    width: 100%;
}
.website-box {
    background-color: rgba(0, 40, 0, 0.6);
    border: 1px solid #33ff33;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}
.website-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(51, 255, 51, 0.3);
}
.website-box h2 {
    margin-top: 0;
    font-size: 1.5em;
    border-bottom: 1px solid #33ff33;
    padding-bottom: 10px;
}
.website-box p {
    margin-bottom: 15px;
}
.website-box a {
    display: block;
    color: #33ff33;
    text-decoration: none;
}
.website-box a:hover {
    color: #33ff33;
}
.visit-site {
    font-weight: bold;
    transition: all 0.3s ease;
}
.website-box:hover .visit-site {
    color: #fff;
    text-shadow: 0 0 10px #33ff33;
}

.project-terminal {
    width: 90%;
    height: 80vh;
    max-width: 1100px;
    background-color: rgba(0, 20, 0, 0.8);
    border: 2px solid #33ff33;
    box-shadow: 0 0 20px rgba(51, 255, 51, 0.5);
    padding: 20px;
    margin: 20px 0;
    overflow-y: auto;
}
.project-header {
    font-size: 2em;
    border-bottom: 1px solid #33ff33;
    padding-bottom: 10px;
    margin-bottom: 20px;
    text-align: center;
}
.project-list {
    list-style-type: none;
    padding: 0;
}
.project-item {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #33ff33;
    border-radius: 5px;
}
.project-name {
    font-size: 1em;
    margin-bottom: 10px;
}
.project-description {
    margin-bottom: 15px;
}
.github-button {
    display: inline-block;
    background-color: #33ff33;
    color: #000;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.3s ease;
}
.github-button:hover {
    background-color: #00cc00;
    box-shadow: 0 0 10px rgba(51, 255, 51, 0.5);
}

.project-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10px;
display: flex;
align-items: center;
}

.expand-button {
background-color: #33ff33;
color: #000;
border: none;
/* border-radius: 50%; */
width: 30px;
height: 30px;
font-size: 20px;
cursor: pointer;
transition: all 0.3s ease;
}

.expand-button:hover {
background-color: #00cc00;
box-shadow: 0 0 10px rgba(51, 255, 51, 0.5);
}

.project-details {
margin-top: 15px;
padding: 15px;
border: 1px solid #33ff33;
border-radius: 5px;
max-height: 400px;
overflow-y: auto;
overflow-x: hidden;
word-wrap: break-word;
}

.project-images {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-top: 15px;
}

.project-images img {
max-width: 100%;
height: auto;
border: 1px solid #33ff33;
border-radius: 3px;
}

.markdown-content h1 {
font-size: 1.8em;
margin-bottom: 15px;
}

.markdown-content {
width: 100%;
overflow-wrap: break-word;
word-wrap: break-word;
hyphens: auto;
}

.markdown-content pre {
white-space: pre-wrap;
word-wrap: break-word;
}


.markdown-content h2 {
font-size: 1.5em;
margin-top: 20px;
margin-bottom: 10px;
}

.markdown-content p {
margin-bottom: 10px;
}

.markdown-content ul, .markdown-content ol {
margin-left: 20px;
margin-bottom: 10px;
}

.markdown-content blockquote {
border-left: 3px solid #33ff33;
padding-left: 10px;
margin-left: 0;
color: #00cc00;
}

.project-thumbnail {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 10px;
}

.project-thumbnail:hover {
    box-shadow: 0 0 2px 1px rgba(0, 140, 186, 0.5);
}

.research-window {
    width: 90%;
    max-width: 1000px;
    max-height: 80vh; /* Limit height on smaller screens */
    background-color: rgba(0, 20, 0, 0.8);
    border: 2px solid #33ff33;
    box-shadow: 0 0 20px rgba(51, 255, 51, 0.5);
    padding: 20px;
    margin: 20px 0;
    overflow-y: auto;
}
.research-header {
    font-size: 2em;
    border-bottom: 1px solid #33ff33;
    padding-bottom: 10px;
    margin-bottom: 20px;
    text-align: center;
}
.research-list {
    list-style-type: none;
    padding: 0;
}
.research-item {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #33ff33;
    border-radius: 5px;
}
.research-title {
    font-size: 1.5em;
    margin-bottom: 10px;
}
.research-authors {
    font-style: italic;
    margin-bottom: 10px;
}
.research-description {
    margin-bottom: 15px;
}
.research-link {
    display: inline-block;
    background-color: #33ff33;
    color: #000;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.3s ease;
}
.research-link:hover {
    background-color: #00cc00;
    box-shadow: 0 0 10px rgba(51, 255, 51, 0.5);
}

.video-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
}

iframe {
    border-radius: 10px;
    max-width: 100%;
}

.music-list {
    list-style-type: none;
    padding: 0;
}

.music-list li {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #33ff33;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.music-list li:hover {
    background-color: rgba(51, 255, 51, 0.2);
}

.resume-window {
    width: 80%;
    max-width: 800px;
    overflow-y: auto;
    max-height: 80vh;
    background-color: rgba(0, 20, 0, 0.8);
    border: 2px solid #33ff33;
    box-shadow: 0 0 20px rgba(51, 255, 51, 0.5);
    padding: 20px;
    margin: 20px 0;
    position: relative;
    z-index: 4;
}

.image-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(51, 255, 51, 0.2) 25%, transparent 25%, transparent 75%, rgba(51, 255, 51, 0.2) 75%, rgba(51, 255, 51, 0.2)),
                linear-gradient(45deg, rgba(51, 255, 51, 0.2) 25%, transparent 25%, transparent 75%, rgba(51, 255, 51, 0.2) 75%, rgba(51, 255, 51, 0.2));
    background-size: 4px 4px;
    background-position: 0 0, 2px 2px;
    opacity: 0.3;
    z-index: 1;
    pointer-events: none;
}

.profile-image {
    width: 300px;
    height: 3%;
    border-radius: 8px;
    border: 2px solid #33ff33;
    margin: 0 auto 20px;
    display: block;
    object-fit: contain;
    background-color: rgba(0, 20, 0, 0.8);
    filter: grayscale(50%) sepia(20%) brightness(110%) contrast(120%);
    box-shadow: 0 0 15px rgba(51, 255, 51, 0.7);
    }

    .social-links {
        display: flex;
        justify-content: center;
        margin-top: 20px;
    }
    .social-links a {
        color: #33ff33;
        text-decoration: none;
        margin: 0 10px;
        font-size: 1.2em;
        transition: all 0.3s ease;
    }
    .social-links a:hover {
        color: #fff;
        text-shadow: 0 0 10px #33ff33;
    }

#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none; /* Prevent interference with scrolling */
    }

#lightning-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
    }

@media only screen and (max-width: 768px) {
    body, html {
      font-size: 16px;
    }
  
    .container {
      padding-top: 50px; /* Adjust this value as needed */
    }
  
    .terminal-window, .website-window, .about-window, .research-window, .resume-window {
      width: 95%;
      padding: 15px;
    }

    terminal-window, .website-window, .about-window, .research-window, .resume-window {
        margin-top: 40px; /* Add space above the terminal window */
      }
  
    h1 {
      font-size: 1.8em;
      margin-bottom: 20px;
    }
  
    nav ul li {
      margin: 10px 0;
    }
  
    nav ul li a {
      font-size: 1em;
    }
  
    .back-button {
        position: fixed; /* Changed from absolute to fixed */
        top: 10px;
        left: 10px;
        z-index: 10;
        background-color: rgba(51, 255, 51, 0.2);
        border: 1px solid #33ff33;
        color: #33ff33;
        padding: 8px 15px;
        text-decoration: none;
        font-size: 0.9em;
        transition: all 0.3s ease;
      }
  
    .website-grid {
      grid-template-columns: 1fr;
    }
  
    .project-header {
      font-size: 1.5em;
    }
  
    .profile-image {
      width: 100%;
      height: auto;
      max-width: 300px;
    }
}