.navbar {
  width: 100%;
  padding: 1rem 2rem; 
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #121212;
  border-bottom: 1px solid #333;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-sizing: border-box; /* Add this to ensure padding doesn't increase width */
}

.navbar-left {
  flex-shrink: 1; /* Allow this to shrink if needed */
  min-width: 0; /* Allow content to shrink below its natural width */
  overflow: hidden; /* Prevent content from spilling out */
}

.navbar h1 {
  font-size: 1.25rem;
  font-weight: 700;
  white-space: nowrap; /* Keep title on one line */
  overflow: hidden;
  text-overflow: ellipsis; /* Add ellipsis if title gets cut off */
}

.navbar h1 a {
  text-decoration: none;
  color: white;
}

.navbar-right {
  display: flex;
  gap: 1rem; /* Reduced from 2rem to prevent overflow */
  align-items: center;
  flex-shrink: 0; /* Prevent this area from shrinking */
}

.navbar-links {
  display: flex;
  gap: 1rem; /* Reduced from 2rem */
}

.navbar-links button {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

.navbar-links a {
  color: #60a5fa;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  white-space: nowrap; /* Keep text on one line */
}

.navbar-links a:hover {
  color: #93c5fd;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.example-2 {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0;
}

.example-2 .icon-content {
  margin: 0 5px; /* Reduced from 10px to save space */
  position: relative;
}

.example-2 .icon-content .tooltip {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  padding: 6px 10px;
  border-radius: 5px;
  opacity: 0;
  visibility: hidden;
  font-size: 14px;
  transition: all 0.3s ease;
}

.example-2 .icon-content:hover .tooltip {
  opacity: 1;
  visibility: visible;
  top: -30px;
}

.example-2 .icon-content a {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px; /* Reduced from 50px */
  height: 40px; /* Reduced from 50px */
  border-radius: 50%;
  color: #4d4d4d;
  background-color: #fff;
  transition: all 0.3s ease-in-out;
}

.example-2 .icon-content a:hover {
  box-shadow: 3px 2px 45px 0px rgb(0 0 0 / 12%);
}

.example-2 .icon-content a svg {
  position: relative;
  z-index: 1;
  width: 24px; /* Reduced from 30px */
  height: 24px; /* Reduced from 30px */
}

.example-2 .icon-content a:hover {
  color: white;
}

.example-2 .icon-content a .filled {
  position: absolute;
  top: auto;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: #000;
  transition: all 0.3s ease-in-out;
}

.example-2 .icon-content a:hover .filled {
  height: 100%;
}

.example-2 .icon-content a[data-social="linkedin"] .filled,
.example-2 .icon-content a[data-social="linkedin"] ~ .tooltip {
  background-color: #0274b3;
}

.example-2 .icon-content a[data-social="github"] .filled,
.example-2 .icon-content a[data-social="github"] ~ .tooltip {
  background-color: #24262a;
}

.example-2 .icon-content a[data-social="cv"] .filled,
.example-2 .icon-content a[data-social="cv"] ~ .tooltip {
  background-color: black;
}

/* Media query for smaller screens */
@media screen and (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
  }
  
  .navbar-right {
    margin-top: 0.5rem;
    width: 100%;
    justify-content: space-between;
  }
  
  .navbar-links {
    gap: 0.5rem;
  }
  
  .example-2 .icon-content a {
    width: 36px;
    height: 36px;
  }
  
  .example-2 .icon-content a svg {
    width: 20px;
    height: 20px;
  }
}

footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid #333;
  background-color: #121212;
  color: #888;
}