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

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  /* overflow-x: hidden;  */
}

img {
  max-width: 124%;
  height: auto;
  display: block;
}

/*================================================
header - section
=================================================*/

/* Responsive */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .btn-header {
    display: none;
  }
}

/*================================================
hero - section
=================================================*/

/* Tablets: max-width 768px */
@media screen and (max-width: 768px) {
  .about-banner {
    height: 280px;
    background-position: center center;
  }

  .banner-content h1 {
    font-size: 34px;
    text-align: center;
  }

  .banner-content p {
    font-size: 16px;
    text-align: center;
  }
}

/* Mobile: max-width 425px */
@media screen and (max-width: 425px) {
  .about-banner {
    height: 240px;
  }

  .banner-content h1 {
    font-size: 28px;
  }

  .banner-content p {
    font-size: 15px;
  }
}

/* Extra small devices: max-width 375px */
@media screen and (max-width: 375px) {
  .about-banner {
    height: 220px;
  }

  .banner-content h1 {
    font-size: 26px;
  }

  .banner-content p {
    font-size: 14px;
  }
}

/* Smallest devices: max-width 320px */
@media screen and (max-width: 320px) {
  .about-banner {
    height: 200px;
  }

  .banner-content h1 {
    font-size: 24px;
  }

  .banner-content p {
    font-size: 13px;
  }
}

/* ================================
   Responsive – Portfolio Section
=================================*/

/* ========== 1024px and below ========== */
@media (max-width: 1024px) {
  .portfolio-grid {
    padding: 0 30px;
    gap: 24px;
    justify-content: center;
  }
  .portfolio-card {
    flex: 0 0 calc(50% - 12px); /* 2 cards per row */
  }
  .App-Column {
    display: contents; /* treat inner cards as normal children */
  }
  .App-Column::before {
    display: none;
  }
}

/* ========== 768px and below ========== */
@media (max-width: 768px) {
  .portfolio-section {
    padding: 40px 15px;
  }
  .portfolio-card {
    flex: 0 0 100%; /* 1 card per row */
    max-width: 100%;
  }
  .portfolio-grid {
    padding: 27px;
    gap: 47px;
    justify-content: center;
    margin-top: -38px;
  }
  .App-Column {
    display: contents;
  }
}

/* ========== 600px and below ========== */
@media (max-width: 600px) {
  .portfolio-header h2 {
    font-size: 29px;
  }
  .portfolio-card h3 {
    font-size: 20px;
  }
  .portfolio-card .tag {
    font-size: 15px;
  }
  .portfolio-card .desc {
    font-size: 14px;
    margin: 0 12px 16px;
  }
  .portfolio-icon {
    width: 70px;
    height: 70px;
    margin: -60px auto 10px;
  }
}

/* ========== 425px and below ========== */
@media (max-width: 425px) {
  .portfolio-card img.project-img {
    height: 180px;
  }
}

/* ========== 375px and below ========== */
@media (max-width: 375px) {
  .portfolio-card h3 {
    font-size: 18px;
  }
  .portfolio-card .desc {
    font-size: 13.5px;
  }
}

/* ========== 320px and below ========== */
@media (max-width: 320px) {
  .portfolio-section {
    padding: 30px 10px;
  }
  .portfolio-card img.project-img {
    height: 160px;
  }
}

/* --- footer Responsive Adjustments
 --- */
@media (max-width: 1200px) {
  .footer-map {
    right: 10%;
    width: 500px;
  }
}

@media (max-width: 992px) {
  .footer-container {
    flex-direction: column;
    align-items: flex-start; /* Align items to the start (left) */
    text-align: left; /* Align text to the left */
    gap: 33px;
  }

  .footer-column {
    flex: 1 1 auto;
    min-width: unset;
    width: 100%;
    max-width: 400px; /* Still keep a max-width for readability */
  }

  .footer-about {
    max-width: 400px;
  }

  .footer-logo {
    margin-bottom: 20px;
    margin-top: 0;
  }

  .footer-column h3 {
    margin-bottom: 20px;
  }

  .footer-column .info-line {
    justify-content: flex-start; /* Align info lines to the left */
  }

  .social-icons {
    margin-top: 25px;
  }

  .social-icons a {
    margin-right: 10px; /* Maintain right margin for spacing */
    margin-left: 0; /* Ensure no left margin from previous centering */
  }

  .footer-map {
    right: 0;
    top: 60%;
    transform: translateY(-50%) translateX(20%);
    opacity: 0.05;
    width: 400px;
  }

  hr {
    margin: 60px 20px 20px;
  }

  .footer-bottom {
    padding: 0 20px;
    text-align: left; /* Align bottom text to the left */
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 60px 20px 20px;
  }

  .footer-logo {
    margin-top: -121px;
    margin-left: -4px;
  }
  .footer-about p {
    margin-top: -118px;
  }
  .footer-map {
    display: none;
  }

  .footer-column {
    padding: 0 10px;
  }

  .footer-column h3 {
    font-size: 18px;
  }

  .footer-column a,
  .footer-column .info-line,
  .footer-bottom {
    font-size: 14px;
  }

  .footer-bottom p {
    line-height: 1.5;
  }

  .footer-bottom a br {
    display: none;
  }

  .footer-bottom a span {
    display: inline;
    margin-top: 0;
  }

  hr {
    margin: 40px 10px 20px;
  }
}

@media (max-width: 480px) {
  .footer-about p {
    font-size: 14px;
  }

  .social-icons {
    margin-top: 20px;
  }

  .social-icons a {
    font-size: 14px;
    padding: 6px;
  }

  .footer-column h3 {
    font-size: 17px;
  }
}
