/* Collapsible Project Section Buttons */
.projects-toggle-btn {
    background: #000;
    color: #00FF00;
    border: 2px solid #00FF00;
    border-radius: 8px;
    padding: 14px 32px;
    font-size: 20px;
    font-family: 'Courier New', monospace;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
    box-shadow: 0 0 10px rgba(0,255,0,0.2);
    cursor: pointer;
    margin: 20px 0 10px 0;
    display: inline-block;
}
.projects-toggle-btn:hover {
    background: #00FF00;
    color: #000;
    box-shadow: 0 0 20px #00FF00;
}
@media (max-width: 480px) {
    .projects-toggle-btn {
        font-size: 16px;
        padding: 10px 18px;
    }
}
/* Projects Button Styles */
.projects-button-container {
    display: flex;
    justify-content: center;
    margin: 50px 0 0 0; /* Increased top margin for better spacing */
}
.projects-button {
    background: #000;
    color: #00FF00;
    border: 2px solid #00FF00;
    border-radius: 8px;
    padding: 14px 32px;
    font-size: 20px;
    font-family: 'Courier New', monospace;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
    box-shadow: 0 0 10px rgba(0,255,0,0.2);
    cursor: pointer;
}
.projects-button:hover {
    background: #00FF00;
    color: #000;
    box-shadow: 0 0 20px #00FF00;
}
@media (max-width: 480px) {
    .projects-button {
        font-size: 16px;
        padding: 10px 18px;
    }
}
.about-section,
#skills {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    padding: 30px 20px;
    margin: 30px auto 40px auto; /* Add bottom margin for button spacing */
    max-width: 900px;
    box-shadow: 0 0 20px rgba(0,255,0,0.05);
}
/* Scrollbar styles */
html, body {
    scrollbar-width: thin;
    scrollbar-color: #00FF00 #000000;
}

/* Works on Chrome, Edge, and Safari */
html::-webkit-scrollbar, body::-webkit-scrollbar {
    width: 8px;
}

html::-webkit-scrollbar-track, body::-webkit-scrollbar-track {
    background: #000000;
}

html::-webkit-scrollbar-thumb, body::-webkit-scrollbar-thumb {
    background-color: #00FF00;
    border-radius: 4px;
    border: 2px solid #000000;
}

html::-webkit-scrollbar-thumb:hover, body::-webkit-scrollbar-thumb:hover {
    background: #00CC00;
}

/* For Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #00FF00 #000000;
}

body, html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Courier New', monospace;
    height: 100%;
}
body {
    min-height: 100vh;
    overflow-y: auto;
}

/* Apply Courier New to all elements except those with class 'fab', 'fas', or their parent elements */
*:not(.fab):not(.fas):not(.fab *):not(.fas *) {
    font-family: 'Courier New', monospace !important;
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
}

.intro-section {
    position: fixed; /* Change from absolute to fixed */
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    z-index: 10; /* Ensure it's above other content */
    background-color: rgba(0, 0, 0, 0.7); /* Black background with 70% opacity */
}

.intro-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.name-and-description {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.name {
    color: #00FF00;
    font-size: 48px;
    margin: 0;
    line-height: 1;
}

.description {
    color: #00FF00;
    font-size: 24px;
    margin-top: 10px;
    margin-bottom: 0;
    display: block;
}

/* Role chips under the hero title */
.roles {
    display: none; /* Hidden per user request */
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}
.pill {
    color: #00FF00;
    border: 1px solid #00FF00;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 14px;
    background: rgba(0,255,0,0.06);
}

.links {
    display: flex;
    align-items: center;
}

.icon {
    color: #00FF00;
    text-decoration: none;
    font-size: 35px;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.icon i {
    font-family: 'Font Awesome 5 Free', 'Font Awesome 5 Brands' !important;
}

.icon:hover {
    color: #ffffff;
}

.email {
    display: none;
    color: #00FF00;
    font-size: 18px;
    margin-right: 15px;
    position: relative;
    white-space: nowrap;
}

.resume-button {
    color: #00FF00;
    border: 1px solid #00FF00;
    padding: 4px 15px 4px 25px;
    border-radius: 5px;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.resume-button i {
    margin-left: 10px;
}

.resume-button:hover {
    background-color: #00FF00;
    color: #000000;
}

.resume-button:hover i {
    color: #000000;
}

.container {
    width: 100%; /* Adjust to allow more room for larger cards */
    max-width: 1800px; /* Optional: increase the max width */
    position: relative; /* Change from absolute to relative */
    top: auto; /* Remove top positioning */
    left: auto; /* Remove left positioning */
    transform: none; /* Remove transform */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto; /* Center the container */
    padding-top: 60px; /* Add some top padding to account for the intro section */
}

.profile-picture {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 10px;
    border: medium solid #00FF00;
    margin-bottom: 20px; /* Reduced from 40px to bring projects closer */
    margin-top: 200px; /* Keeps some space at the top */
}

.projects h2 {
    color: #00FF00;
    font-size: 36px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .intro-row {
        flex-direction: column;
    }

    .links {
        margin-top: 20px;
    }
}

/* Add these new styles at the end of your existing CSS */

#projects {
    width: 100%;
    padding: 60px 20px 20px 20px; /* Increased top padding to prevent overlap */
    margin-top: 20px;
}

.projects-title {
    color: #00FF00;
    font-size: 36px;
    text-align: center;
    margin-bottom: 20px;
    margin-top: 0; /* Ensures no extra space above the title */
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Ensure two projects per row */
    gap: 20px;
    justify-content: center;
}

.project-card {
    background-color: hsla(0, 0%, 0%, 0.800);
    border: 1px solid #00FF00;
    border-radius: 10px;
    padding: 20px;
    display: grid;
    grid-template-areas:
        "title link"
        "image image"
        "description description";
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto 1fr;
    align-items: start;
    text-align: left;
}

/* Smaller layout for imageless project cards */
.project-card.compact {
    padding: 14px;
    grid-template-areas:
        "title link"
        "description description";
    grid-template-rows: auto 1fr;
}

.project-card h3 {
    color: #00FF00;
    margin: 0;
    grid-area: title;
    align-self: center;
}

.project-link {
    color: #00FF00;
    background-color: #000000;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    grid-area: link;
    justify-self: end;
    align-self: center;
    border: 1px solid #00FF00;
}

.project-link:hover {
    color: #000000;
    background-color: #00FF00;
}

.image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    grid-area: image;
}

.project-card p {
    color: #00FF00;
    margin: 0;
    grid-area: description;
}

.project-card .image-container {
    width: 100%;
    height: 400px; /* Adjust this value as needed */
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-card .image-container img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Fit the whole image inside, no cropping */
    background: #111; /* Optional: subtle background for letterboxing */
}

/* Placeholder for projects awaiting unique screenshots */
.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00FF00;
    background: #0a0a0a;
    border: 1px dashed #00FF00;
    font-size: 16px;
    text-align: center;
    padding: 10px;
}

@media (max-width: 768px) {
    .intro-section {
        padding: 10px 5px;
    }

    .intro-row {
        flex-direction: column;
        align-items: center;
    }

    .name-and-description {
        text-align: center;
        margin-bottom: 15px;
    }

    .name {
        font-size: 36px;
    }

    .description {
        font-size: 18px;
    }
    .pill { font-size: 12px; }

    .links {
        margin-top: 0px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .icon {
        font-size: 28px;
        margin: 5px;
    }

    .resume-button {
        margin-top: 10px;
    }

    .container {
        padding: 10px;
        padding-top: 120px;
    }

    .profile-picture {
        max-width: 200px;
        margin-top: 20px;
    }

    .projects-container {
        grid-template-columns: 1fr;
    }

    .project-card {
        padding: 15px;
    }

    .project-card h3 {
        font-size: 20px;
    }

    .project-link {
        padding: 6px 12px;
        font-size: 14px;
    }

    .project-card p {
        font-size: 14px;
    }

    .project-card .image-container {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 28px;
    }

    .description {
        font-size: 16px;
    }

    .icon {
        font-size: 24px;
    }

    .resume-button {
        font-size: 14px;
    }

    .profile-picture {
        max-width: 150px;
    }

    .projects-title {
        font-size: 28px;
    }
}

/* Remove all existing scrollbar styles */

/* Add these new scrollbar styles */
body {
    scrollbar-width: thin;
    scrollbar-color: #00FF00 #000000;
}

body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track {
    background: #000000;
}

body::-webkit-scrollbar-thumb {
    background: #00FF00;
    border-radius: 4px;
}

body::-webkit-scrollbar-thumb:hover {
    background: #00CC00;
}

/* Chatbot Styles */
#chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-family: 'Courier New', monospace;
  }

/* Neon green theme for About and Skills sections */
.about-section h2,
#skills h2 {
    color: #00FF00;
    font-size: 32px;
    margin-top: 30px;
    margin-bottom: 15px;
    text-align: center;
}
.about-section p,
#skills ul li {
    color: #00FF00;
    font-size: 18px;
    text-align: center;
}
#skills ul {
    list-style-type: disc;
    padding-left: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
#skills ul li {
    margin: 0 10px;
    font-size: 18px;
}
  
  #chat-toggle {
    width: 60px;
    height: 60px;
    background: #000000;
    border: 2px solid #00FF00;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    box-shadow: 0 0 10px #00FF00;
    transition: all 0.3s ease;
  }
  
  /* U-shaped lines animation */
  #chat-toggle::before,
  #chat-toggle::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid #00FF00;
    border-radius: 5px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  
  #chat-toggle::before {
    border-bottom: none;
    border-right: none;
    width: 20px;
    height: 20px;
  }
  
  #chat-toggle::after {
    border-top: none;
    border-left: none;
  }
  
  #chat-interface {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 50vw; /* Changed to 50% of viewport width */
    min-width: 300px; /* Minimum width for usability */
    height: 60vh; /* Changed to 60% of viewport height */
    background: rgba(0, 0, 0, 0.95); /* Darker background */
    border: 2px solid #00FF00;
    border-radius: 0px; /* Removed border radius for command prompt look */
    transform: scale(0);
    transform-origin: bottom right;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
    font-family: 'Courier New', monospace;
  }
  
  #chat-interface.open {
    transform: scale(1);
  }
  
  #chat-header {
    padding: 8px 15px;
    background: #00FF00;
    color: #000000;
    font-weight: bold;
    border-bottom: none;
    font-size: 1em;
  }
  
  #chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #00FF00 #000000;
    background: #000000;
  }
  
  #chat-input-container {
    padding: 10px;
    border-top: 1px solid #00FF00;
    background: #000000;
    width: 100%;
    box-sizing: border-box;
  }
  
  #user-input {
    width: 100%;
    padding: 8px;
    background: #000000;
    border: 1px solid #00FF00;
    color: #00FF00;
    font-family: 'Courier New', monospace;
    border-radius: 0;
    font-size: 14px;
    box-sizing: border-box;
    margin: 0;
    outline: none;
  }
  
  .chat-message {
    margin: 8px 0;
    padding: 4px 8px;
    border-radius: 0;
    background: transparent;
    border: none;
    color: #00FF00;
    font-family: 'Courier New', monospace;
    white-space: pre-wrap;
    word-wrap: break-word;
  }
  
  .chat-message.user::before {
    content: '> ';
    color: #00FF00;
  }
  
  .chat-message.bot::before {
    content: '█ ';
    color: #00FF00;
  }

/* Visually hidden (accessible) content for ATS/SEO */
.visually-hidden {
        position: absolute !important;
        width: 1px; height: 1px;
        padding: 0; margin: -1px;
        overflow: hidden; clip: rect(0, 0, 0, 0);
        white-space: nowrap; border: 0;
}
  
  @media (max-width: 480px) {
    #chat-interface {
        width: 100vw;
        height: 60vh;
        right: 0;
        bottom: 80px;
        min-width: unset;
    }
    
    #chat-toggle {
        width: 50px;
        height: 50px;
        right: 10px;
        bottom: 10px;
    }
  }