/* ===============Footer =============== */
@media (max-width: 730px) {
  body,
  html {
    margin: 0; /* Remove default body margin */
    padding: 0; /* Remove default body padding */
    overflow-x: hidden; /* Prevent horizontal overflow */
  }

  footer {
    padding: 2rem 1rem;
    background: var(--second-color); /* Ensure full width background color */
    width: 100%; /* Full width of the viewport */
    box-sizing: border-box; /* Include padding in width calculation */
    margin: 0; /* Ensure no margin around the footer */
  }

  .footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%; /* Full width of the viewport */
    padding: 0;
    margin: 0;
    box-sizing: border-box; /* Include padding in width calculation */
  }

  .footer-container .about,
  .footer-container .info,
  .footer-container .follow {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px; /* Adjusted margin */
    width: 100%; /* Ensure full width */
    text-align: center; /* Center text */
  }

  .footer-container .info ul,
  .footer-container .follow ul {
    padding: 0;
    margin: 0;
    width: 100%; /* Full width for lists */
  }

  .footer-container .info ul li,
  .footer-container .follow ul li {
    margin: 5px 0;
  }

  .footer-container .hr {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin: 10px 0 20px; /* Adjusted margin */
  }

  .footer-container .about h2 {
    font-size: 2em; /* Reduced font size */
  }

  .footer-container .about p {
    font-size: 1em; /* Adjusted font size */
    margin-bottom: 15px; /* Reduced margin */
  }

  .footer-container a {
    font-size: 1.2em; /* Reduced font size for links */
    margin: 10px;
  }

  .footer-copyright p {
    font-size: 0.9em; /* Reduced font size */
    margin-top: 30px; /* Adjusted margin */
  }
}

@media screen and (max-width: 730px) {
  .skills-card {
    width: 150px;
  }
}

@media screen and (max-width: 991px) and (min-width: 768px) {
  /* Styles for tablets */
  .skills-card {
    width: 200px;
  }
}

@media screen and (max-width: 575px) {
  /* Styles for mobile portrait and smaller devices */
  .skills-card {
    width: 160px;
  }
}

@media screen and (max-width: 720px) {
  /* ============== About Section ================ */
  .about-content {
    flex-direction: column; /* Stack image and info vertically */
    align-items: center; /* Center items */
    gap: 20px; /* Space between stacked elements */
  }

  .about-img {
    min-width: 0; /* Remove min-width constraint */
    width: 100%; /* Full width */
  }

  .about-img img {
    height: auto; /* Maintain aspect ratio */
    max-height: 250px; /* Limit the maximum height */
  }

  .about-info {
    width: 100%; /* Full width */
    text-align: center; /* Center text for better readability on small screens */
  }

  .about-info .description h3 {
    font-size: 1.5em; /* Adjust font size */
  }

  .about-info .description h4 {
    font-size: 1.2em; /* Adjust font size */
  }

  .btn {
    display: block; /* Ensure button is centered */
    margin-top: 20px; /* Add space above button */
  }
}

@media screen and (max-width: 390px) {
  /* Styles for iPhone 12 Pro Portrait Mode */
  .skills-card {
    flex: 1 1 calc(50% - 20px); /* Adjusts the card width to fit 2 in a row, minus gap */
    box-sizing: border-box; /* Includes padding and border in the element's total width and height */
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
  }
  .skills-container {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping of items if they don't fit in one row */
    gap: 20px; 
  }
  .skills-card img{
    max-width: 100%;
    height: auto;
    border-radius: 8px;
  }
}


