body {
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "DM Sans", sans-serif;
}

a {
  text-decoration: none;
}

/* Navbar */
nav {
  background-color: #fff;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 100px;
  position: relative;
  z-index: 100;
}

.logo {
  font-weight: 700;
  font-size: 22px;
  color: #1a1f71;
  letter-spacing: 1px;
}

.menu-icon {
  font-size: 28px;
  cursor: pointer;
  display: none;
  color: #001542;
}

ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  list-style: none;
  transition: all 0.3s ease;
}

li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.CTA-btn {
  background-color: #001542;
  color: #fff;
  padding: 8px 15px;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

/* Extra Small Devices (≤576px) */
@media (max-width: 576px) {
  nav {
    padding: 10px 20px;
  }
  .menu-icon {
    display: block;
  }

  ul {
    position: absolute;
    top: 38px;
    left: 0;
    width: 60%;
    height: 100vh;
    flex-direction: column;
    align-items: start;
    justify-content: flex-start;
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    display: none;
  }

  ul.active {
    display: flex;
    padding: 30px;
  }

  li {
    margin-bottom: 10px;
  }

  .CTA-btn {
    width: 90%;
    text-align: center;
  }
}

/* Small Devices (≤768px) */
@media (max-width: 768px) {
  nav {
    padding: 10px 20px;
  }
  .logo {
    font-size: 20px;
  }

  .menu-icon {
    font-size: 24px;
  }
}

/* Medium Devices (≤992px) */
@media (max-width: 992px) {
  nav {
    padding: 10px 20px;
  }
  .logo {
    font-size: 21px;
  }

  .menu-icon {
    font-size: 26px;
  }
}

/* Large Devices (≤1200px) */
@media (max-width: 1200px) {
  .logo {
    font-size: 22px;
  }

  .menu-icon {
    font-size: 28px;
  }
}

/* Extra Large Devices (≤1400px) */
@media (max-width: 1400px) {
  .logo {
    font-size: 22px;
  }
}
/* Category Section */

.category-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 30px;
  background-color: #fff;
  border: 1px solid #ccc;
  margin: 50px 100px;
  border-radius: 8px;
  gap: 20px;
  flex-wrap: wrap; /* allow wrap on smaller screens */
}

.category-btn {
  color: #000;
  background-color: #fff;
  padding: 12px 20px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap; /* prevent buttons breaking */
}

.category-btn:hover,
.category-btn.active {
  background-color: #0f136e;
  color: #fff;
  border-color: #0f136e;
  box-shadow: 0 0px 3px rgba(15, 19, 110, 0.7);
}

/* Responsive Breakpoints */

/* Extra small devices (phones, less than 576px) */
@media (max-width: 575px) {
  .category-container {
    margin: 30px 15px;
    padding: 30px 15px;
    gap: 10px;
  }

  .category-btn {
    font-size: 12px;
    padding: 10px 15px;
    flex: 1 1 100%; /* full width buttons stacked */
    text-align: center;
  }
}

/* Small devices (sm, 576px and up) */
@media (min-width: 576px) and (max-width: 767px) {
  .category-container {
    margin: 40px 20px;
    padding: 40px 20px;
    gap: 15px;
  }

  .category-btn {
    font-size: 13px;
    padding: 11px 18px;
    flex: 1 1 45%; /* two buttons per row */
    text-align: center;
  }
}

/* Medium devices (md, 768px and up) */
@media (min-width: 768px) and (max-width: 991px) {
  .category-container {
    margin: 45px 40px;
    padding: 50px 30px;
    gap: 18px;
  }

  .category-btn {
    flex: 1 1 30%; /* three buttons per row */
    font-size: 14px;
    padding: 12px 20px;
  }
}

/* Large devices (lg, 992px and up) */
@media (min-width: 992px) {
  .category-container {
    margin: 50px 100px;
    padding: 60px 30px;
    gap: 20px;
  }

  .category-btn {
    flex: initial;
    font-size: 14px;
    padding: 12px 20px;
  }
}
/* Portfolio */
.portfolio-section {
  padding: 0 100px;
  margin-bottom: 80px;
}

.images {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.images img {
  width: 300px;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.portfolio-item {
  position: relative;
  display: inline-block;
  margin: 8px;
  cursor: pointer;
}

.portfolio-item img {
  display: block;
  width: 350px;
  height: 225px;
  object-fit: cover;
  border-radius: 5px;
  transition: transform 0.3s ease;
}

.overlay-icons {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .overlay-icons {
  opacity: 1;
}

.overlay-icons i {
  color: white;
  font-size: 20px;
  background: rgba(0, 0, 0, 0.6);
  padding: 5px;
  border-radius: 4px;
  cursor: pointer;
}

/* Modal for full image */
.modal {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  max-width: 800px;
  max-height: 600px;
  width: 90vw;
  height: auto;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

/* Close button for modals */
.close,
.info-close {
  position: absolute;
  top: 15px;
  right: 25px;
  color: white;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
}

/* Info modal */
.info-content {
  background: white;
  padding: 20px 30px;
  border-radius: 10px;
  width: 90vw;
  max-width: 500px;
  max-height: 70vh;
  overflow-y: auto;
  position: relative;
  color: #333;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .portfolio-section {
    padding: 0 50px;
  }

  .images img,
  .portfolio-item img {
    width: 250px;
    height: 170px;
  }
}

@media (max-width: 768px) {
  .portfolio-section {
    padding: 0 30px;
  }

  .images img,
  .portfolio-item img {
    width: 45vw; /* roughly half screen width */
    height: auto;
  }
}

@media (max-width: 480px) {
  .portfolio-section {
    padding: 0 15px;
    margin-bottom: 40px;
  }

  .images {
    gap: 10px;
  }

  .images img,
  .portfolio-item img {
    width: 90vw; /* almost full screen width */
    height: auto;
  }

  .overlay-icons i {
    font-size: 18px;
    padding: 4px;
  }

  .close,
  .info-close {
    font-size: 24px;
    top: 10px;
    right: 15px;
  }
}

/* footer section */
.footer-section {
  background-color: #001542;
  color: #eee;
  padding: 20px 15px;
  font-family: "inter", sans-serif;
  font-size: 14px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo h2 {
  margin: 0 0 5px;
  font-size: 1.6rem;
  color: #ffb30d;
}

.footer-logo p {
  margin: 0;
  font-size: 0.9rem;
  color: #ccc;
}

.footer-links h3,
.footer-social h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
  color: #ffb30d;
}

.footer-links .ul {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links .ul li {
  margin-bottom: 8px;
}

.footer-links .ul li a {
  color: #eee;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links .ul li a:hover {
  color: #ffb30d;
}

.footer-social .social-icons {
  display: flex;
  justify-content: flex-start;
  gap: 15px;
}

.footer-social .social-icons a {
  color: #eee;
  font-size: 1.4rem;
  transition: color 0.3s ease;
}

.footer-social .social-icons a:hover {
  color: #ffb30d;
}

.footer-bottom {
  text-align: center;
  padding-top: 15px;
  border-top: 1px solid #333;
  font-size: 0.85rem;
  color: #fff;
}

/* Small devices (SM) 576px and up */
@media (min-width: 576px) {
  .footer-section {
    padding: 30px 20px;
    font-size: 15px;
  }

  .footer-logo h2 {
    font-size: 24px;
  }

  .footer-links h3,
  .footer-social h3 {
    font-size: 24px;
  }

  .footer-social .social-icons {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
  }
}

/* Medium devices (MD) 768px and up */
@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;

    justify-content: space-between;
    gap: 40px;
  }

  .footer-logo,
  .footer-links,
  .footer-social {
    flex: 1;
  }

  .footer-social .social-icons {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .footer-logo h2 {
    font-size: 24px;
  }

  .footer-links h3,
  .footer-social h3 {
    font-size: 20px;
  }

  .footer-bottom {
    font-size: 0.9rem;
  }
}

/* Large devices (LG) 992px and up */
@media (min-width: 992px) {
  .footer-section {
    padding: 40px 50px;
    font-size: 16px;
  }

  .footer-logo h2 {
    font-size: 20px;
  }

  .footer-links h3,
  .footer-social h3 {
    font-size: 24px;
  }

  .footer-social .social-icons a {
    font-size: 1.6rem;
  }
}

/* Extra Large devices (XL) 1200px and up */
@media (min-width: 1200px) {
  .footer-section {
    padding: 50px 80px;
  }

  .footer-logo h2 {
    font-size: 24px;
  }

  .footer-links h3,
  .footer-social h3 {
    font-size: 22px;
  }
}

/* XXL devices 1400px and up */
@media (min-width: 1400px) {
  .footer-section {
    padding: 60px 120px;
  }

  .footer-logo h2 {
    font-size: 2.6rem;
  }

  .footer-links h3,
  .footer-social h3 {
    font-size: 1.8rem;
  }
}
