/* Mobile-friendly styles for My_Website */
/* Icon link styles */
.icon-link {
  display: inline-block;
  text-decoration: none;
  transition: transform 0.3s ease, color 0.3s ease;
  color: inherit;
  font-family: inherit;  /* Prevent font family inheritance issues */
}

.icon-link:hover {
  transform: scale(1.2);
}

.icon-link:hover .icon {
  color: #d35400;
}

.icon-link .icon {
  cursor: pointer;
  transition: color 0.3s ease;
  display: inline-block; /* Ensure proper display */
}

/* Remove the additional icon that appears due to anchor tag */
.icon-link:before {
  content: none !important;
  display: none !important;
}

/* Fix any potential issues with FontAwesome icon display */
.icon:before {
  display: inline-block;
  font-family: FontAwesome !important;
}

/* Contact links styling */
.column3 p a {
  color: #bd9252;
  text-decoration: none;
  transition: color 0.2s ease;
}

.column3 p a:hover {
  color: #d35400;
  text-decoration: underline;
}

@media screen and (max-width: 1200px) {
  .container {
    width: 95% !important;
    max-width: 1200px;
  }

  .column1, .column2, .column3, .column4 {
    width: 48%;
    margin-bottom: 2em;
  }

  .column3, .column4 {
    float: left;
    clear: both;
  }

  #featured {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  
  /* Responsive images */
  img, video {
    max-width: 100%;
    height: auto;
  }
  
  /* Background images */
  #header-featured {
    background-size: cover;
    background-position: center;
  }
}

@media screen and (max-width: 768px) {
  .container {
    width: 90% !important;
  }

  .projects-title {
    font-size: 2.2em;
  }

  .project-section h3 {
    font-size: 1.8em;
  }

  .column1, .column2, .column3, .column4 {
    width: 100%;
    float: none;
    margin-bottom: 2em;
  }

  #menu {
    position: relative;
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 2em;
  }

  #menu ul {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  #menu li {
    margin: 0 0 0.5em 0;
    padding: 0;
    display: block;
  }

  #logo {
    position: relative;
    text-align: center;
    margin: 0 auto;
    top: 0;
  }

  #header {
    height: auto;
  }
  
  /* Make icons more prominent on mobile */
  .icon-link {
    display: block;
    text-align: center;
    margin-bottom: 0.5em;
  }
  
  .icon-link .icon {
    font-size: 1.3em;
  }
}

@media screen and (max-width: 480px) {
  body {
    font-size: 10pt;
  }

  .project-section {
    padding: 1em;
  }

  .project-link {
    font-size: 1.2em;
  }

  .project-note {
    display: block;
    margin-left: 0;
    margin-top: 0.3em;
  }
  
  /* Smaller font sizes on very small screens */
  h1 {
    font-size: 1.8em;
  }
  
  h2 {
    font-size: 1.5em;
  }
  
  h3 {
    font-size: 1.3em;
  }
}
