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

body
{
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: #313131;
  color: #f5f5f5;
}

header
{
  background-color: #1f1f1f;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 310px;
}

header .logo
{
  height: 45px;
  transition: 0.3s ease;
}

header .logo:hover
{
  filter: drop-shadow(0 0 3px #ffffff);
}

header nav ul
{
  list-style: none;
  display: flex;
  gap: 17px;
}

header nav a
{
  text-decoration: none;
  color: #ffd857;
  padding: 10px 15px;
  border-radius: 7px;
  transition: 0.3s ease;
}

header nav a:hover,
header nav a.active-link
{
  color: #555555;
}

footer
{
  background-color: #1f1f1f;
  color: #aaaaaa;
}

.footer-content
{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 30px 310px;
}

.footer-section .about-us
{
  font-size: 14px;
  line-height: 1.6;
  margin-top: 10px;
  max-width: 470px;
}

.footer-bottom
{
  text-align: center;
  padding: 20px;
  border-top: 1px solid #555;
  margin: 0 310px;
}

.footer-bottom p
{
  font-size: 14px;
  color: #aaaaaa;
}

.footer-section .logo
{
  height: 45px;
  margin-bottom: 10px;
  transition: 0.3s ease;
}

.footer-section .logo:hover
{
  filter: drop-shadow(0 0 3px #ffffff);
}

.footer-section h4
{
  color: #ffffff;
  margin-bottom: 15px;
}

.footer-section ul
{
  list-style: none;
}

.footer-section a
{
  text-decoration: none;
  color: #aaaaaa;
  display: inline-block;
  margin-bottom: 5px;
  transition: 0.3s;
}

.footer-section a:hover
{
  color: #ffffff;
}

.footer-section.social a img
{
  height: 30px;
  margin-right: 10px;
  transition: 0.3s;
}

.footer-section.social a img:hover
{
  filter: drop-shadow(0 0 2px #ffffff);
}

.filter-buttons
{
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 40px 310px;
  flex-wrap: wrap;
}

.filter-btn
{
  background-color: transparent;
  border: 2px solid #ffd857;
  color: #ffd857;
  padding: 13px 35px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.3s ease;
  text-transform: none;
}

.filter-btn:hover
{
  background-color: #ffd857;
  color: #1f1f1f;
}

.filter-btn.active
{
  background-color: #ffd857;
  color: #1f1f1f;
  border-color: #ffd857;
}

.projects-container
{
  padding: 20px 310px 50px;
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 20px;
}

.project-card
{
  background-color: #1f1f1f;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.project-card img
{
  width: 100%;
  height: 540px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.project-card:hover img
{
  transform: scale(1.03);
}

.modal
{
  display: none;
  position: fixed;
  z-index: 200;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.modal-content
{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  max-width: 90%;
  max-height: 90%;
  animation: zoomIn 0.3s;
}

@keyframes zoomIn
{
  from { transform: scale(0); }
  to { transform: scale(1); }
}

.modal-img
{
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  transition: all 0.5s ease-in-out;
}

.close-btn
{
  position: absolute;
  top: 0px;
  right: 17px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.close-btn:hover,
.close-btn:focus
{
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

.prev-btn, .next-btn
{
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background-color: rgba(49, 49, 49, 0.7);
  transform: translateY(-50%);
  top: 50%;
  padding: 20px;
}

.prev-btn
{
  left: 0;
  border-radius: 0 10px 10px 0;
}

.next-btn
{
  right: 0;
  border-radius: 10px 0 0 10px;
}

.prev-btn:hover, .next-btn:hover
{
  background-color: rgba(112, 112, 112, 0.8);
}

.dots-container
{
  text-align: center;
  padding: 10px;
}

.dot
{
  cursor: pointer;
  height: 12px;
  width: 12px;
  margin: 0 5px;
  background-color: #313131;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.dot.active-dot, .dot:hover
{
  background-color: #ffd857;
}

.hamburger-menu
{
  display: none;
  margin-right: 20px;
  font-size: 55px;
  color: #ffd857;
  cursor: pointer;
  transition: 0.3s;
}

.hamburger-menu:hover
{
  color: #ffffff;
}

.side-menu
{
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100%;
  background-color: #1f1f1f;
  padding-top: 60px;
  z-index: 200;
  transition: right 0.4s ease;
  box-shadow: -2px 0 5px rgba(0,0,0,0.5);
}

.side-menu.active
{
  right: 0;
}

.side-menu ul
{
  list-style: none;
  padding: 0;
  margin: 0;
}

.side-menu li {
  margin-top: 130px;
  margin-bottom: 80px;
  text-align: center;
}

.side-menu a
{
  padding: 15px 25px;
  text-decoration: none;
  color: #ffd857 !important;
  font-size: 2.7rem;
  display: block;
  transition: 0.3s;
}

.side-menu a:hover
{
  background-color: #333;
}

.close-side-menu-btn
{
  position: absolute;
  top: 15px;
  right: 25px !important;
  font-size: 100px !important;
  color: #ffffff !important;
  cursor: pointer;
}

.hide-on-mobile {
    display: block;
}

.hide-on-desktop {
    display: none;
}

@media (max-width: 1024px) {
    header {
        height: 150px;
        padding: 0 20px !important;
    }

    header .logo {
        height: 90px !important;
    }

    header nav {
        display: none;
    }

    header .desktop-nav {
        display: none;
    }

    .hamburger-menu {
        display: block;
    }

    .filter-buttons {
        padding: 40px 20px !important;
        flex-wrap: wrap; 
        gap: 20px; 
        justify-content: center;
    }

    .filter-buttons button {
        padding: 25px 40px;
        font-size: 35px;
        border-radius: 20px;
    }

    .projects-container {
        padding: 20px !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .project-card img {
        height: auto !important;
    }

    .modal-content {
        width: 100% !important;
        max-width: 100% !important; 
        height: 100% !important;
    }

    .modal-img {
        max-height: 95vh !important;
    }

    .modal .dot {
      height: 23px;
      width: 23px;
      margin: 0 10px;
  }

  .dots-container {
        padding-top: 30px !important;
    }

  .modal .prev-btn, .modal .next-btn {
      display: none !important;
  }

  .modal .close-btn {
      top: 25px;
      right: 45px;
      font-size: 100px !important;
  }

  .hide-on-mobile {
        display: none !important;
    }

    .hide-on-desktop {
        display: flex !important;
    }
    
    .footer-content {
        flex-direction: column;
        padding: 30px 20px !important;
        margin-top: 60px;
    }

    .footer-mobile-header {
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-bottom: 30px;
    }

    .footer-mobile-header .logo {
        height: 110px !important;
        margin-left: 20px;
    }

    .social-mobile img {
        height: 80px;
        margin-left: 15px;
        margin-right: 60px;
    }

    .footer-mobile-contact {
        justify-content: flex-start;
        width: 100%;
        gap: 0px;
        margin-bottom: 20px;
    }

    .footer-mobile-contact .footer-section {
        width: 50%;
    }

    .footer-mobile-contact .footer-section:first-child {
        margin-right: -40px;
    }

    .footer-mobile-contact .footer-section h4 {
        margin-top: 30px;
        font-size: 45px;
        margin-left: 20px;
    }

    .footer-mobile-contact .footer-section ul,
    .footer-mobile-contact .footer-section p {
        font-size: 40px;
        line-height: 1.5;
        padding: 20px 0;
    }

    .footer-section a {
        margin-left: 20px;
        padding: 20px 0;
        font-size: 44px;
    }
    
    .footer-bottom p {
      font-size: 30px !important;
      margin-top: 10px;
      margin-bottom: 25px;
    }
}