* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  color: #333;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: #2c5777;
}

/* Header Styles */
header {
  margin: 0 auto;
  max-width: 1500px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 10%;
  position: relative;
}
.project-overview a {
    text-decoration: none;
    color: #ffffff;
    border-bottom: 2px solid transparent;
    border-bottom-color: #f2c795;
    outline: none;
}

.project-overview a:hover {
    color:#f2c795; /* Your highlight color */
    outline: none;
}
.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 80px;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  color: #2c5777;
  font-weight: 500;
  transition: color 0.3s ease;
}
ul li a:hover {
  color: #f2c795; /* example hover color */
  text-decoration: underline;
}
nav ul li a.active {
    color: #f2c795;
    text-decoration: underline;
    font-weight: bold;
}
.hamburger-menu {
  display: none;
  cursor: pointer;
  z-index: 1000;
}

.bar1,
.bar2,
.bar3 {
  width: 35px;
  height: 5px;
  background-color: #2c5777;
  margin: 6px 0;
  transition: 0.4s;
}

/* Hamburger Menu Animation */
.change .bar1 {
  transform: translate(0, 11px) rotate(-45deg);
}

.change .bar2 {
  opacity: 0;
}

.change .bar3 {
  transform: translate(0, -11px) rotate(45deg);
}

/* Project Detail Section */
.project-header {
  background-color: #2c5777;
  color: white;
  padding: 30px 0; /* Changed from padding: 30px 10% to allow proper centering */
  display: flex;
  justify-content: center; /* Centers the child content horizontally */
  width: 100%;
}

.project-information {
  max-width: 1500px;
  width: 100%; /* Ensures it takes the full available width up to max-width */
  padding: 0 10%; /* Consistent padding with other sections */
}

.back-button {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  color: white;
}

.back-button:hover svg {
  transform: translateX(-5px) scale(1.2);
}
strong {
  font-weight: 700; /* or 900 for maximum bold */
}

.project-title {
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.project-meta {
  margin-bottom: 15px;
}

.project-meta p {
  margin-bottom: 5px;
}

.project-overview {
  max-width: 900px;
  margin-bottom: 15px;
}

.project-applications {
  margin-bottom: 15px;
}
.project-applications a {
  color: white;  /* Make the link text white */
  text-decoration: none;  /* Remove underline by default */
}

.project-applications a:hover {
  color: #f2c795;  /* Optional: change color on hover */
  text-decoration: underline;  /* Optional: underline on hover */
}
/* Project Images - Improved Responsiveness */
.project-content {
  margin: 0 auto;
  max-width: 1500px;
  padding: 30px 10%;
}

.project-image {
  margin-bottom: 30px;
  width: 100%;
  max-width: 100%; /* Ensures images don't exceed container width */
}

.project-image img {
  width: 100%;
  height: auto;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  object-fit: contain; /* Maintains aspect ratio without distortion */
  max-height: 800px; /* Prevents extremely tall images */
}

.project-image video {
  width: 100%;
  height: auto;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  display: block;
  max-height: 800px; /* Consistency with images */
}

.image-row {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
  flex-wrap: wrap; /* Allows items to wrap when needed */
}

.image-row .project-image {
  flex: 1 1 300px; /* Base size with ability to grow/shrink */
  margin-bottom: 0;
  min-width: 0; /* Allows flex items to shrink below content size if needed */
}

.social-posts {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.social-post {
  flex: 1 1 200px; /* Base size with ability to grow/shrink */
  min-width: 0; /* Allows shrinking */
  max-width: 100%; /* Prevents overflow */
}

.social-post img {
  width: 100%;
  height: auto;
  object-fit: contain; /* Maintains aspect ratio */
  max-height: 500px; /* Prevents excessively tall images */
}

/* Footer */
footer {
  background-color: #f2c795;
  padding: 40px 10%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact h3 {
  margin-bottom: 10px;
  color: #2c5777;
}

.social-icons a {
  margin-right: 15px;
  color: #2c5777;
  font-size: 1.5rem;
}

.resume-link a {
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid #2c5777;
    color: #2c5777;
    font-weight: 600;
}

.resume-link a:hover {
    background-color: #2c5777;
    color: white;
    transition: 0.3s ease;
}

.copyright {
  font-size: 0.9rem;
  color: #555;
  text-align: center;
  padding: 20px 0;
  background-color: #f2c795;
}

/* Responsive Styles - Improved */
@media (max-width: 1200px) {
  .image-row {
    gap: 20px; /* Smaller gap on medium screens */
  }
  
  .image-row .project-image {
    flex: 1 1 250px; /* Slightly smaller base size */
  }
}

@media (max-width: 992px) {
  .project-content {
    padding: 20px 7%; /* Slightly smaller padding */
  }
  
  .image-row {
    gap: 15px;
  }
  
  .image-row .project-image {
    flex: 1 1 100%; /* Full width to stack properly */
    margin-bottom: 15px; /* Add margin between stacked items */
  }
  
  .social-posts {
    gap: 15px;
  }
  
  .social-post {
    flex-basis: calc(50% - 10px); /* Two columns on medium screens */
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: row;
    justify-content: space-between;
    padding: 20px 5%;
  }

  .hamburger-menu {
    display: block;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 999;
    padding-top: 80px;
  }

  nav.active {
    right: 0;
  }

  nav ul {
    flex-direction: column;
    margin-top: 20px;
  }

  nav ul li {
    margin: 20px 0;
    text-align: center;
  }
  
  .project-content {
    padding: 15px 5%; /* Even smaller padding for mobile */
  }
  
  .social-post {
    flex-basis: 100%; /* Stack social posts on mobile */
  }
  
  .project-image img,
  .project-image video {
    max-height: 600px; /* Reduced max height for smaller screens */
  }

  footer {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  
  .project-information {
    padding: 0 5%; /* Smaller padding on mobile */
  }
}

@media (max-width: 480px) {
  .project-content {
    padding: 10px 4%;
  }
  
  .project-image {
    margin-bottom: 20px;
  }
  
  .project-image img,
  .project-image video {
    max-height: 400px; /* Further reduced for very small screens */
  }
}