/* Base styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
  }
  h1, h2, h3, h4 {
    margin-top: 1em;
  }
  h1 {
    font-size: 2em;
  }
  .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
  }
  header {
    background: #f8f8f8;
    padding: 0.5rem 0;
  }
  header .container {
    display: flex;
    align-items: center;
  }
  header h1 {
    margin: 0;
    font-size: 1.5em;
  }
  #main-nav {
    margin-left: auto;
  }
  #main-nav a {
    text-decoration: none;
    color: #333;
    margin-left: 1rem;
    font-weight: 500;
  }
  #main-nav a:hover {
    text-decoration: underline;
  }
  #main-nav a.active {
    font-weight: 700;
  }
  #nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
  }
  .profile-pic {
    max-width: 300px;
    border-radius: 0%;
    display: block;
    margin: 1rem auto;
  }
  /* Footer styles */
  footer {
    background: #f0f0f0;
    padding: 1rem 0;
    margin-top: 2rem;
  }
  footer h2 {
    margin-top: 0;
  }
  footer p {
    margin: 0.2rem 0;
  }
  /* Responsive layout */
  @media (max-width: 600px) {
    header .container {
      flex-wrap: wrap;
    }
    #nav-toggle {
      display: block;
      margin-left: auto;
    }
    #main-nav {
      display: none;
      flex-direction: column;
      width: 100%;
      margin-top: 0.5rem;
    }
    #main-nav a {
      margin: 0.5rem 0;
    }
    #main-nav.open {
      display: flex;
    }
  }
  
  footer {
    background: #f0f0f0;
    padding: 20px 0;
    text-align: center;
  }
  footer .container {
    max-width: 900px;
    margin: auto;
    padding: 0 15px;
  }
  footer h2 {
    margin-bottom: 15px;
  }
  footer ul {
    list-style: none;
    padding: 0;
    margin-top: 5px;
    text-align: center;
  }
  footer p {
    margin: 5px 0;
  }
  footer ul li {
    margin: 5px 0;
  }
  footer a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
  }
  footer a:hover {
    text-decoration: underline;
  }
  .social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
  }
  .social-links a {
    display: inline-block;
  }
  .social-links img {
    width: 32px;
    height: 32px;
    transition: transform 0.2s ease-in-out;
  }
  .social-links img:hover {
    transform: scale(1.1);
  }
  
/* Small links for CV page */
.small-link {
  display: inline-block;
  font-size: 0.7em;
  margin-left: 0.5em;
  padding: 0.1em 0.4em;
  background-color: #f0f3f7;
  border-radius: 3px;
  text-decoration: none;
  color: #3a7bd5;
  font-weight: normal;
  transition: all 0.2s ease;
  border: 1px solid #dde4ee;
  vertical-align: middle;
}

.small-link:hover {
  background-color: #e1e8f2;
  transform: translateY(-1px);
}

/* Skill item styles */
.skill-item {
  transition: color 0.2s ease;
  text-decoration: none;
}

.linked-skill {
  cursor: pointer;
  text-decoration: underline;
}

.linked-skill:hover {
  color: #3a7bd5;
}

/* Skill tooltip styles */
.skill-tooltip {
  position: absolute;
  background: #333;
  color: #fff;
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 0.9em;
  z-index: 1000;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.skill-tooltip::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 10px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 5px solid #333;
}

/* Modal styles */
.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 5px;
  max-width: 400px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.modal-content h3 {
  margin-top: 0;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.modal-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.modal-content ul li {
  margin: 10px 0;
}

.modal-content ul li a {
  color: #3a7bd5;
  text-decoration: none;
  display: inline-block;
  padding: 5px 10px;
  background: #f0f3f7;
  border-radius: 3px;
  transition: all 0.2s ease;
}

.modal-content ul li a:hover {
  background: #e1e8f2;
  transform: translateX(5px);
}

.close {
  position: absolute;
  right: 15px;
  top: 15px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #aaa;
  transition: color 0.2s ease;
}

.close:hover,
.close:focus {
  color: #000;
}

/* Contact Banner Styles */
.contact-banner {
  text-align: center;
  padding: 20px;
  background-color: #333; /* A consistent, modern dark grey */
  border: none;
}

/* Force all children to inherit the background color to fix the "stripes" bug */
.contact-banner,
.contact-banner *,
.contact-banner > div,
.contact-banner ul,
.contact-banner ol,
.contact-banner li,
.contact-banner a {
  background: inherit !important;
  border: none !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.banner-header {
  font-size: 14px;
  color: #000;
  margin-bottom: 23px !important; /* Increased spacing by ~50% */
  font-weight: 500;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.social-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-icons a {
  display: inline-block !important; /* Restore display property */
  padding: 4px !important; /* Restore padding */
  border-radius: 4px;
  transition: transform 0.2s ease;
}

.social-icons a:hover {
  transform: scale(1.1);
}

.social-icons a:hover .social-icon {
  transform: scale(1.1);
}

/* Responsive design for contact banner */
@media (max-width: 768px) {
  .banner-header {
    font-size: 12px;
    margin-bottom: 15px !important; /* Increased spacing by ~50% */
  }
  
  .social-icons {
    gap: 10px;
  }
  
  .social-icon {
    width: 20px;
    height: 20px;
  }
  
  .social-icons a {
    padding: 6px !important; /* Restore padding */
  }
}
  