
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #0d1117;
    color: #c9d1d9;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: #58a6ff;
}

a:hover {
    color: #1f6feb;
}

header {
    position: fixed;
    width: 100%;
    background: #161b22;
    padding: 1rem 2rem;
    display: flex;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

nav ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

nav ul li a {
    color: #c9d1d9;
    padding: 0.5rem 1rem;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: #21262d;
    border-radius: 4px;
}

section {
    padding: 5rem 2rem;
    min-height: 100vh;
    text-align: center;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease-in-out;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

#projects {
    padding: 2rem;
    text-align: center;
    background-color: #0d1117;
}

#projects h2 {
    font-size: 2rem;
    color: #58a6ff;
    margin-bottom: 2rem;
}

.projects-container {
    max-width: 1200px;
    margin: 0 auto;
}

.projects {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    max-height: calc(3 * (400px + 1.5rem) + 200px); /* Height for 6 projects (3 rows x 2 columns) */
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.5rem;
}

@media (max-width: 768px) {
    .projects {
        max-height: calc(6 * (400px + 1.5rem) + 100px); /* Allow more height on mobile for vertical stacking */
        grid-template-columns: 1fr;
    }
}

/* Custom scrollbar for projects container */
.projects::-webkit-scrollbar {
    width: 8px;
}

.projects::-webkit-scrollbar-track {
    background: #161b22;
    border-radius: 4px;
}

.projects::-webkit-scrollbar-thumb {
    background: #58a6ff;
    border-radius: 4px;
}

.projects::-webkit-scrollbar-thumb:hover {
    background: #1f6feb;
}


.project-card {
    background: #21262d;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
}

.project-image {
    position: relative;
}

.project-image img {
    width: 100%;
    height: auto;
    border-bottom: 2px solid rgba(0, 128, 255, 0.2);
    height: 400px; /* Set a fixed height for consistency */
    object-fit: cover; /* Ensures the image covers the defined area without distortion */
    margin: auto; /* Center the image if inside a container */

}


.project-content {
    padding: 1rem;
    text-align: left;
}

.project-content h3 {
    font-size: 1.25rem;
    color: #c9d1d9;
    margin-bottom: 0.5rem;
}

.project-content p {
    font-size: 0.9rem;
    color: #8b949e;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.project-github-link {
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.project-github-icon {
    width: 24px;
    height: 24px;
    filter: invert(60%) sepia(63%) saturate(1897%) hue-rotate(187deg) brightness(99%) contrast(104%);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.project-github-link a:hover .project-github-icon {
    transform: scale(1.1);
    opacity: 0.8;
}

.project-github-link a[style*="pointer-events: none"] .project-github-icon {
    opacity: 0.3;
    cursor: not-allowed;
}


#timeline {
    text-align: center;
    color: #c9d1d9;
    padding: 5rem 2rem;
    background-color: #0d1117;
    min-height: 100vh;
}

#timeline h2 {
    font-size: 2rem;
    color: #58a6ff;
    margin-bottom: 3rem;
}

.timeline-section {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding: 2rem 0;
}

.timeline-section::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #58a6ff, rgba(88, 166, 255, 0.3));
    z-index: 0;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: flex-start;
    z-index: 1;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-marker {
    width: 20px;
    height: 20px;
    background-color: #58a6ff;
    border: 4px solid #0d1117;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(88, 166, 255, 0.2);
}

.timeline-content {
    background-color: #21262d;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    width: calc(50% - 40px);
    min-width: 400px;
    max-width: 500px;
    margin: 0 20px;
    text-align: left;
}

.timeline-content h3 {
    color: #58a6ff;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    color: #c9d1d9;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: normal;
}

.timeline-date {
    color: #8b949e;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.timeline-description {
    color: #c9d1d9;
    line-height: 1.6;
    margin-top: 0.5rem;
}

.timeline-bullets {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.timeline-bullets li {
    color: #c9d1d9;
    line-height: 1.6;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.timeline-bullets li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #58a6ff;
    font-weight: bold;
}

@media (max-width: 768px) {
    .timeline-section::before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: row !important;
    }
    
    .timeline-marker {
        left: 20px;
        transform: translateX(-50%);
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        min-width: auto;
        max-width: none;
        margin-left: 50px;
        margin-right: 0;
    }
}

#skills {
    text-align: center;
    color: #c9d1d9;
    padding: 2rem;
    background-color: #0d1117;
}

#skills h2 {
    font-size: 2rem;
    color: #58a6ff;
    margin-bottom: 2rem;
}

.skills-section h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: #58a6ff;
}

.skills {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.skill {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #21262d;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    width: 120px;
    height: 120px;
}

.skill-logo {
    max-width: 50px;
    max-height: 50px;
    margin-bottom: 0.5rem;
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.skill svg.skill-logo {
    width: 50px;
    height: 50px;
}

.skill span {
    color: #c9d1d9;
    font-size: 0.9rem;
    font-weight: bold;
}

.skill-placeholder {
    width: 50px;
    height: 50px;
    background-color: #58a6ff;
    color: #0d1117;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 5px rgba(88, 166, 255, 0.3);
}
.skill:hover {
    background-color: #58a6ff;
    color: #0d1117;
    transform: translateY(-2px); /* Slight hover effect */
    transition: all 0.3s ease;
}

#contact {
    text-align: center;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #21262d;
    color: #c9d1d9;
    border-radius: 8px;
    max-width: 800px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

#contact h2 {
    font-size: 2rem;
    color: #58a6ff;
    margin-bottom: 1rem;
}

#contact p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #c9d1d9;
}

.contact-container {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact-info {
    background-color: #1e1e1e;
    padding: 1rem;
    border-radius: 8px;
    text-align: left;
    flex: 1;
    color: #c9d1d9;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.contact-info h3 {
    color: #58a6ff;
    margin-bottom: 0.5rem;
}

.contact-info p a {
    color: #58a6ff;
    text-decoration: none;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.social-links img {
    width: 32px;
    height: 32px;
}

.contact-form {
    background-color: #1e1e1e;
    padding: 1rem;
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.contact-form .form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid #c9d1d9;
    background-color: #161b22;
    color: #c9d1d9;
    font-size: 1rem;
}

.contact-form textarea {
    resize: none;
}

.contact-form button {
    display: block;
    width: 100%;
    padding: 0.8rem;
    background-color: #58a6ff;
    color: #fff;
    font-size: 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #1f6feb;
}

.download-resume{
    padding-top: 20rem;
}

footer {
    text-align: center;
    padding: 2rem;
    background: #161b22;
}


.modal {
  display: none;
  position: fixed; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
  background-color: rgba(0, 0, 0, 0.8); 
  z-index: 1000; 
  justify-content: center; 
  align-items: flex-start; 
  overflow-y: auto;
  padding: 2rem;
}



.modal-content {
background-color: #222;
color: #fff;
border-radius: 8px;
max-width: 100%;
width: 100%;
padding: 2rem;
box-shadow: 0 4px 9px rgba(0, 0, 0, 0.5);
position: relative;
}


.modal-content h3 {
    margin-bottom: 1rem;
}

.modal-content p {
    margin-bottom: 1.5rem;
}

.modal-content button {
    background: #238636;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
}

.modal-content button:hover {
    background: #2ea043;
}
.about-me {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: #c9d1d9;
}

.about-highlights {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.about-highlights li {
    margin-bottom: 0.5rem;
}
.about-me-section {
  max-width: 1400px;
  min-height: auto;
  margin: 2rem auto;
  margin-bottom: 0px;
  padding: 2rem 2rem;
  padding-bottom: 2rem;
  background-color: #161b22;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  color: #c9d1d9;
  text-align: left;
  overflow: hidden;
}

.about-me-section h2 {
text-align: center;
font-size: 2rem;
margin-bottom: 1rem;
color: #58a6ff;
}

.about-me-section p {
font-size: 1.2rem;
margin-bottom: 1rem;
line-height: 1.8;
text-align: left;
}

.about-highlights {
margin: 1rem 0 1.5rem 1.5rem;
list-style: disc;
}

.about-highlights li {
margin-bottom: 0.5rem;
font-size: 1.2rem;
line-height: 1.6;
}

strong {
color: #58a6ff;
}

.about-me-section p:last-of-type {
text-align: left;
margin-top: 1.5rem;
}
.intro-text {
font-size: 1rem;
line-height: 1.6;
color: #c9d1d9;
margin: 1rem 0;
padding-right: 5rem;

}

.intro-text h3, intro {
font-size: 1.25rem;
margin-top: 1.5rem;
color: #58a6ff;
margin: 0px;
}

.intro-text p {
margin: 0.75rem 0;
}

.intro-text strong {
color: #ffae42;
font-weight: bold;

}

.intro-container {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 2rem;
margin-bottom: 2rem;
padding: 0;
}


.responsibility-t {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 1rem;
margin-bottom: 1rem;
padding: 0rem;
}


.intro-text {
flex: 1;
font-size: 1rem;
line-height: 1.6;
color: #c9d1d9;
margin: 0;
padding-right: 2rem;
}


.project-objectives-title {
flex: 1;
font-size: 1rem;
line-height: 1.6;
color: #c9d1d9;
margin: 0;
padding-right: 2rem;
}


.responsibility-t p {
flex: 1;
font-size: 1rem;
line-height: 1.6;
color: #c9d1d9;
margin: 0;
padding-right: 2rem;
}



.intro-text h3,
.project-objectives-title,
.subheading {
font-size: 1.25rem;
margin-top: 1.5rem;
margin-bottom: 0.75rem;
color: #58a6ff;
}


.intro-text p {
margin: 0.75rem 0;
}


.intro-text strong {
color: #ffae42;
font-weight: bold;
}


.intro-image {
display: flex;
align-items: center;
width: 20rem;
height: auto;
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
border: 4px solid rgba(0, 128, 255, 0.2);
flex-shrink: 0;
margin: 0;
}


.software-image {
display: block;
object-fit: cover;
width: 100%;
max-width: 80rem;
height: auto;
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
border: 4px solid rgba(0, 128, 255, 0.2);
margin: 2rem auto 0;
margin: 0;
}
.image-caption9{
text-align: center;
width: 20rem;
color: #c9d1d9;
font-size: 0.9rem;
}

.software-image + p {
text-align: center;
color: #c9d1d9;
font-size: 0.9rem;
margin-top: 0.5rem;
}

.timeline-container {
text-align: left;
padding: 0;
background-color: #1e1e1e;
color: #c9d1d9;
border-radius: 8px;
margin: 0;
width: 40rem;
}


.timeline-container h3 {
font-size: 1.5rem;
margin-bottom: 0rem;
color: #58a6ff;
text-align: center;
}


.timeline {
display: flex;
flex-direction: column;
align-items: center;
position: relative;
gap: 0rem;
padding: 0rem 0;
margin: 0;
}


.timeline-step {
text-align: center;
position: relative;
width: 100%;
max-width: none;
padding: 0rem 0;
}


.step-number {
width: 50px;
height: 50px;
background-color: #58a6ff;
color: #fff;
font-size: 1.2rem;
font-weight: bold;
line-height: 50px;
border-radius: 50%;
margin-left: 50%;
margin-bottom: 0rem;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}


.timeline-step::before {
content: "";
position: absolute;
left: 25px;
top: 0;
width: 4px;
height: 100%;
background-color: #58a6ff;
z-index: -1;
}

.timeline-step:first-child::before {
content: none;
}

.timeline-step:last-child::before {
height: 50%;
}


.timeline-step p {
margin-top: 0.5rem;
font-size: 0.9rem;
color: #c9d1d9;
text-align: center;
padding: 0.75rem;
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;                    
    align-items: start;           
    max-width: 1500px;           
    margin: 0 auto;              
    padding: 1rem;               
  }
  
 
  @media (max-width: 1000px) {
    .grid-container {
      grid-template-columns: 1fr;
    }
  }
  
 
  .project-obj {
    background-color: #1e1e1e; 
    color: #c9d1d9;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
   
   
    max-width: 100%;
  }
  
 
  .responsibility-t {
    display: flex;
    flex-direction: column; 
    align-items: center;    
    text-align: left;
    padding: 1rem;
    background-color: #1e1e1e;
    color: #c9d1d9;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
  
   
    width: 100%;
    max-width: 700px;       
    margin: 0 auto;         
  }
  
 
  .image-caption1 {
    margin-top: 1rem; 
    text-align: center;
    width: 100%;
  }
  
 
  .meeting-log {
    width: 100%; 
    height: auto; 
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    border: 4px solid rgba(0, 128, 255, 0.2);
    margin-top: 1rem;
   
    max-width: 100%;
  }  

.design-process-box, .skills-box{
margin-top: 1rem;
background-color: #1e1e1e;
color: #c9d1d9;
border-radius: 8px;
padding: 1rem;
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
flex-wrap: wrap;
max-width: 100%;
}

.grid-container2 {
width: 100%;
max-width: 1200px;
margin: 2rem auto;
display: grid;



grid-template-columns: 1fr auto 1fr;
grid-template-rows: 1fr auto 1fr;


gap: 1rem;
}


.grid-item, .grid-item1
.arrow {
display: flex;
flex-direction: column;
align-items: top;
justify-content: top;
}
.grid-item1{
width: 38rem;
}





#img1 {
grid-column: 1;
grid-row: 1;

}


.arrow-right {
grid-column: 2;
grid-row: 1;
}


#img2 {
grid-column: 3;
grid-row: 1;
}


.arrow-down {
grid-column: 3;
grid-row: 2;
}


#img3 {
grid-column: 3;
grid-row: 3;
}


.arrow-left {
grid-column: 2;
grid-row: 3;
}


#img4 {
grid-column: 1;
grid-row: 3;
}


.design-process {

width: 100%;
height: auto;


box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
border: 5px solid rgba(0, 128, 255, 0.2);
margin-bottom: 0.5rem;
}




.arrow {
width: 0;
height: 0;
}


.arrow-right {
border-top: 20px solid transparent;
border-bottom: 20px solid transparent;
border-left: 20px solid #c9d1d9;
margin-top: 10rem;
}


.arrow-down {
border-left: 20px solid transparent;
border-right: 20px solid transparent;
border-top: 20px solid #c9d1d9;
margin-left: 17rem;
}


.arrow-left {
border-top: 20px solid transparent;
border-bottom: 20px solid transparent;
border-right: 20px solid #c9d1d9;
margin-top: 10rem;
}


.grid-item p, .grid-item1 p {
color: #c9d1d9;
text-align: center;
margin: 0;
}
.flowchart-info{
margin-top: 1rem;
background-color: #1e1e1e;
color: #c9d1d9;
border-radius: 8px;
padding: 1rem;
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}
.scrollable-container {
display: flex;
flex-direction: row;
align-items: flex-start;
max-height: 400px;
overflow-x: hidden;
overflow-y: auto;
border: 1px solid #c9d1d9;
padding: 1rem;
margin: 1rem 0;
background-color: #1e1e1e;
gap: 1rem;
}

.scrollable-container img {
width: auto;
max-width: 60%;
height: auto;
margin: 0;
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
border: 4px solid rgba(0, 128, 255, 0.2);
}

.image-row {
display: flex;
flex-direction: row;
align-items: flex-start;
gap: 1.5rem;
margin-top: 2rem;
}


.process-step2 {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
max-width: 550px;
}


.design-process3 {
width: 100%;
height: auto;
border: 4px solid rgba(0, 128, 255, 0.2);
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
margin-bottom: 0.5rem;
}



.arrow-right {
border-top: 15px solid transparent;
border-bottom: 15px solid transparent;
border-left: 15px solid #c9d1d9;
margin: auto 0;
}
.final-program, .reflection{
margin-top: 1rem;
background-color: #1e1e1e;
color: #c9d1d9;
border-radius: 8px;
padding: 1rem;
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
max-width: 100%;
}
.text-image-container4 {
display: flex;             
align-items: flex-start;   
justify-content: space-between; 
gap: 1rem;                 
margin: 2rem 0;           
}

.text-content2 {
flex: 2;                   
font-size: 1rem;
line-height: 1.6;
color: #c9d1d9;
}

.image-content2 {
flex: 1;                   
display: flex;
flex-direction: column;
align-items: center;       
}


.image-content2 img {
max-width: 1200px;          
height: auto;              
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
border: 4px solid rgba(0, 128, 255, 0.2);
margin: 0;   
width: 100%;              
}


.image-caption5 {
text-align: center;        
color: #c9d1d9;
font-size: 0.9rem;
margin-top: 0.5rem;        
}

.text-image-container5 {
display: flex;           
gap: 2rem;               
margin: 2rem 0;          
}


.text-content3 {
flex: 1;                 
font-size: 1rem;
line-height: 1.6;
color: #c9d1d9;
}



.container-example {
display: flex;
flex-direction: column; 
gap: 2rem;
margin: 2rem 0; 
}


.text-content3 {
font-size: 1rem;
line-height: 1.6;
color: #c9d1d9;
}


.images-and-caption {
display: flex;
flex-direction: column;
align-items: center;
}


.imagesrow {
display: flex;
flex-direction: row;
gap: 1rem;      
max-width: 1500px; 
margin: 0 auto;
flex-wrap: wrap;
}


.imagesrow img {
max-width: 430px;
height: auto;    
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
border: 4px solid rgba(0, 128, 255, 0.2);
margin: 0;   
width: 100%;
}



.image-caption5 {
text-align: center;
color: #c9d1d9;
font-size: 0.9rem;
margin-top: 0.5rem;
}
.download-items {
display: flex;             
align-items: flex-start;   
justify-content: space-between;
gap: 1.5rem;               
margin: 1rem 0;            
}

.download-section {
flex: 1;                   
max-width: 45%;            
color: #c9d1d9;            
}

.download-section p {
margin-bottom: 0.5rem;     
font-size: 1.2rem;           
line-height: 1.5;          
}

.download-section a {
text-decoration: none;     
color: #58a6ff;            
font-size: 0.9rem;         
display: flex;             
align-items: center;       
gap: 0.5rem;               
}

.download-icon {
width: 20px;               
height: 20px;              
}

.close-button {
position: absolute;
top: 0.5rem;
left: 0.5rem;
background-color: #ff5555;
color: #fff;
border: none;
border-radius: 50%;
width: 30px;
height: 30px;
font-size: 1.2rem;
font-weight: bold;
text-align: center;
cursor: pointer;
box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3);
transition: background-color 0.2s ease;
}

.close-button:hover {
background-color: #ff7777;
}

.close-button:active {
background-color: #ff3333;
}


.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem; /* Space between skill items */
}

.skill-item {
    display: flex;
    align-items: center;
    background-color: #21262d; /* Slightly lighter dark background for skill items */
    color: #c9d1d9;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    gap: 0.5rem; /* Space between logo and text */
    flex: 0 1 calc(33.33% - 1rem); /* Three items per row, adjust as needed */
    max-width: calc(33.33% - 1rem); /* Match the flex property */
}

.skill-item:hover {
    background-color: #58a6ff;
    color: #0d1117;
    transform: translateY(-2px); /* Slight hover effect */
    transition: all 0.3s ease;
}

.skill-item .skill-logo {
    width: 30px;
    height: 30px;
    object-fit: contain; /* Ensure logo fits nicely */
}

.skill-item span {
    font-size: 1rem;
    font-weight: bold;
}

.carousel-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.carousel {
    position: relative;
    width: 100%;
    max-width: 600px;
    overflow: hidden;
    border-radius: 8px;
    height: 800px;
}

.carousel-images {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-images img,
.carousel-images video {
    width: 100%;
    flex-shrink: 0;
    border-radius: 8px;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 2;
}

.carousel-button.prev {
    left: 10px;
}

.carousel-button.next {
    right: 10px;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.skill-tag {
    background-color: #1e1e1e;
    color: #c9d1d9;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}
.skill-tag:hover{
    background-color: #58a6ff;
    color: #0d1117;
    transform: translateY(-2px); /* Slight hover effect */
    transition: all 0.3s ease;
}
.modal2 {
    display: none;
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(0, 0, 0, 0.8); 
    z-index: 1000; 
    justify-content: center; 
    align-items: flex-start; 
    overflow-y: auto;
    padding: 2rem;
  }
  
  
  
  .modal2-content {
  background-color: #222;
  color: #fff;
  border-radius: 8px;
  max-width: 100%;
  width: 50rem;
  padding: 2rem;
  box-shadow: 0 4px 9px rgba(0, 0, 0, 0.5);
  position: relative;
  }

  .rover-description{
        margin-top: 1rem;
        background-color: #1e1e1e;
        color: #c9d1d9;
        border-radius: 8px;
        padding: 1rem;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
        }
  
.github-icon, .github2-icon{ 
        width: 40px;               
        height: 40px;
        filter: invert(60%) sepia(63%) saturate(1897%) hue-rotate(187deg) brightness(99%) contrast(104%);  
        margin-top: 1rem;            
}

.carousel-bogochib {
    position: relative;
    width: 100%;
    max-width: 600px;
    overflow: hidden;
    border-radius: 8px;
    height: 400px;
}
.carousel-images-bogochib {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-images-bogochib video{
    width: 100%;    
    flex-shrink: 0;
    border-radius: 8px;
}
.download-bogochib {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1.5rem; /* Add spacing between items */
}

.download-item a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #58a6ff; /* Light blue text for links */
    font-size: 1rem;
}

.download-item a:hover {
    color: #1f6feb; /* Darker blue on hover */
}

.github-icon {
    margin-top: -1rem; /* Add spacing between the icon and text */
}
.github2-icon{
    margin-top: 0rem;
}

.download-item img {
    margin-right: 0.5rem; /* Add spacing between icons and text */
}

.intro-image2 {
    display: flex;
    align-items: center;
    width: 20rem;
    height: auto;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    border: 4px solid rgba(0, 128, 255, 0.2);
    flex-shrink: 0;
    margin-top: 4rem;
    }

.design-process-box1{
    margin-top: 1rem;
    background-color: #1e1e1e;
    color: #c9d1d9;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    max-width: 100%;
    flex-wrap: wrap;
}
.objective-tree-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
  }
  .chosen-objectives{
    font-size: 1rem;
  }
  .objective-tree,
  .chosen-objectives {
    flex: 1;
    min-width: 300px;
  }
  
  .objective-tree-pic {
    width: 100%;
    height: auto;
    max-width: 600px;
    margin-top: 0.5rem;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    border: 4px solid rgba(0, 128, 255, 0.2);
  }
  
  .morph-chart-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    width: 100%;
    padding: 2rem;
  }
  
  .morph-chart-container .table,
  .morph-chart-container .mini-reflection {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
  }
  
  .table table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
  }
  
  .table th,
  .table td {
    padding: 0.5rem;
    border: 1px solid #ccc;
  }
  
  .table th {
    background-color: #1e1e1e;
    color: #fff;
  }
  .formula {
    display: flex;
    flex-wrap: wrap;
    gap: 0rem;
    align-items: flex-start;  /* Aligns items to the top */
    justify-content: flex-start; /* Aligns content to the left */
    margin-top: 1rem;
    text-align: left; /* Ensure text aligns left */
  }
  
  .MPI-equation {
    flex: 1;
    min-width: 400px;
    text-align: left; /* Ensure math aligns left */
  }
  
  .intro-image4 {
    display: flex;
    align-items: center;
    width: 16rem;
    height: auto;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    border: 4px solid rgba(0, 128, 255, 0.2);
    flex-shrink: 0;
    margin: 0;
    }

.intro-image-container{
    margin-top: 0;
    
}
/* Design Process Section for Project 3 - EchoWeigh */
#dp-section {
    padding: 2rem;
    color: #c9d1d9;
  }
  
  .dp-heading {
    text-align: center;
    font-size: 2rem;
    color: #58a6ff;
    margin-bottom: 2rem;
  }
  
  .dp-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
  
  /* Design Process Card Styles */
  .dp-item {
    background-color: #1e1e1e;
    border-radius: 8px;
    padding: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  
  .dp-item.dp-visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  .dp-item-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #58a6ff;
  }
  
  .dp-item-text {
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
  }
  
  .dp-item-img {
    width: 100%;
    border-radius: 4px;
    object-fit: cover;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    border: 4px solid rgba(0, 128, 255, 0.2);
    margin-bottom: 0.5rem;
  }
  
  .dp-caption {
    font-size: 0.9rem;
    text-align: center;
    color: #8b949e;
  }
  
  /* Responsive grid: two columns on larger screens */
  @media (min-width: 768px) {
    .dp-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 2rem;
    }
  }
  
  /* Prototype Grid Container */
/* Evolution Container Styles */
.evolution-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 1.5rem;
  }
  
  .evolution-row {
    display: flex;
    flex-direction: column;
    text-align: center;
  }
  
  .evo-title {
    font-size: 1.25rem;
    color: #58a6ff;
    margin-bottom: 0.5rem;
  }
  
  .evo-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0;
    margin: 0;

  }
  
  .evo-item {
    flex: 1;
    text-align: center;
  }
  
  .evo-img {
    width: 100%;
    max-width: 900px; /* Adjust this size as needed */
    border-radius: 4px;
    object-fit: cover;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    border: 4px solid rgba(0, 128, 255, 0.2);
  }
  
  .evo-caption {
    font-size: 0.9rem;
    color: #8b949e;
    margin: 0;
  }
  
  .arrow-icon {
    margin: 0;
    padding: 0;
    font-size: 2rem;
    color: #58a6ff;
    flex-shrink: 0;
    align-self: center;
  }
  
  .dp-item {
    background-color: #1e1e1e;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
  }
  
  .dp-item-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #58a6ff;
  }
  
  .dp-item-text {
    color: #c9d1d9;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
  }
  
  .dp-item-list {
    color: #c9d1d9;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    list-style: disc;
  }
  
  .dp-item-list li {
    margin: 0.5rem 0;
  }
  
