html, body {
  height: 100%;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main,
.project-section {
  flex-grow: 1;
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    color: #ffffff;
    line-height: 1.6;
    background-image: url(assets/bg.png); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(49, 49, 49, 0.8); 
    z-index: -1; 
}

.navbar {
    background-color: #484949;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.container1 {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}

.logo {
    height: 40px;
}

.menu {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.menu li {
    display: flex;
    align-items: center;
}

.nav-link, .dropdown-button {
    color: white;
    text-decoration: none;
    font-size: 16px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s, background 0.3s;
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
}

.nav-link:hover, .dropdown-button:hover {
    color: #000000;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    display: none;
    width: 150px;
    z-index: 1000;
}

.dropdown-menu .dropdown-item {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: rgb(0, 0, 0);
    transition: background 0.3s;
    text-align: left;
}

.dropdown-menu .dropdown-item:hover {
    background-color: #ffffff;
    color: rgb(107, 107, 107);
}

.dropdown:hover .dropdown-menu,
.dropdown-menu.active {
    display: block;
}

.menu-button {
    display: none;
    background: none;
    border: none;
    color: rgb(253, 253, 253);
    font-size: 24px;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background-color: #1f1f1f;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 15px;
}

.mobile-menu.active {
    display: flex;
}

@media (max-width: 768px) {
    .menu {
        display: none;
    }
    .menu-button {
        display: block;
    }

}

.project-section {
  min-height: 50vh; /* Adjust to taste */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-container {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.project-title {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.project-description {
  font-size: 1.1rem;
  margin-bottom: 40px;
  color: #cccccc;
}

.project-images {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.project-images img {
  width: 100%;
  max-width: 600px;
  border-radius: 6px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}

.project-images img:hover {
  transform: scale(1.03);
}

a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #cccccc;
}

@media (max-width: 600px) {
  .project-title {
    font-size: 1.8rem;
  }

  .project-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .project-images {
    gap: 15px;
  }

  dialog#img-dialog {
    max-width: 95vw;
    max-height: 80vh;
  }

  dialog#img-dialog img {
    width: 100%;
    height: auto;
  }
}

.project-details-card {
  background-color: rgba(82, 82, 82, 0.6); /* soft black */
  color: #eee;
  max-width: 1000px;
  margin: 30px auto 0;
  padding: 20px 25px;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
  font-size: 16px;
  line-height: 1.6;
  text-align: left;
}

@media (max-width: 768px) {
  .project-images img {
    max-width: 100%;
    width: 100%;
    padding: 0 15px; /* adds spacing on the sides */
    box-sizing: border-box;
  }

  .project-details-card {
    margin: 15px auto 0;
    padding: 15px 18px;
    font-size: 14.5px;
    border-radius: 8px;
    width: calc(100% - 30px); /* same 15px padding on each side */
    box-sizing: border-box;
  }
}



        footer {
            background-color: #222;
            color: white;
            padding: 20px 0;
            text-align: center;
            margin-top: 40px;
        }

        .footer-content {
            max-width: 1200px;
            margin: auto;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .footer-content p {
            margin: 5px 0;
            font-size: 18px;
            color: white;
        }

        .footer-content .social-links {
            display: flex;
            gap: 15px;
            margin-top: 10px;
        }

        .footer-content .social-links a {
            color: white;
            font-size: 24px;
            text-decoration: none;
        }

        .footer-content .social-links a:hover {
            opacity: 0.8; 
        }

        .footer-content .contact-info {
            margin-top: 15px;
            font-size: 14px;
            color: #ccc; 
        }

        @media (max-width: 768px) {
  .footer-content .social-links {
    flex-direction: row; /* keep them side by side */
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap; /* allows wrapping if needed */
  }
}

