body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  align-items: center;
  justify-content: center;
  width: 100vw;
}

/* Background shape layer */
.top-section {
  background-color: #000;
  background-image: url('assets/stacked-peaks.svg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: bottom;
  color: white;
  padding: 4rem 2rem;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  display: block; /* Ensure it does not interfere with grid layout */
}

.top-grid {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  flex-wrap: wrap;
}

/* Left - Profile */
.profile-section {
  flex: 1 1 300px;
  text-align: center;
}
.profile-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
  margin-bottom: 1rem;
}
.profile-section h2 {
  font-size: 1.5rem;
  margin: 0.5rem 0;
}
.profile-section .role {
  font-size: 1rem;
  color: #d4d4d4;
}
.socials a {
  color: white;
  font-size: 1.3rem;
  margin: 0 0.4rem;
  transition: color 0.3s;
}
.socials a:hover {
  color: #9ee6b6;
}

.socials i {
  font-size: 1.5rem; /* Adjust size as needed */
  margin: 0 5px; /* Add spacing between icons */
}

/* Right - About */
.about-section {
  flex: 2 1 500px;
}
.about-section h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.about-section p {
  margin-bottom: 1rem;
  line-height: 1.6;
}
.about-section a {
  color: inherit; /* Inherit the color from the parent element */
  text-decoration: underline; /* Remove underline */
}
.about-section a:hover {
  text-decoration: underline; /* Optional: Add underline on hover for better UX */
}
.btn {
  display: inline-block;
  background: #1f4030;
  color: white;
  padding: 0.6rem 1rem;
  text-decoration: none;
  border-radius: 6px;
  margin-bottom: 2rem;
  transition: background 0.3s;
}
.btn:hover {
  background: #2c6c4a;
}

/* Info Lists */
.info-lists {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.info-column {
  flex: 1;
}
.info-column h4 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}
.info-column ul {
  list-style: none;
  padding-left: 0;
}
.info-column li {
  display: flex;
  align-items: flex-start; /* Align icon and text */
  gap: 0.6rem; /* Space between icon and text */
  margin-bottom: 1rem;
}
.info-column i {
  flex-shrink: 0; /* Prevent icon from shrinking */
  color: white;
}
.white-icon {
  color: white;
}

.sub {
  font-size: 0.9rem;
  color: #d0f0dd;
  display: block;
  margin-top: 0.2rem;
}

.info-block {
  display: inline-block;
  white-space: nowrap; /* Prevent line breaks by default */
  overflow: visible; /* Prevent text cutoff */
  text-overflow: unset; /* Remove ellipsis */
}

.info-block a {
  color: inherit; /* Inherit the color from the parent element */
  text-decoration: none; /* Remove underline */
}

.info-block a:hover {
  text-decoration: underline; /* Optional: Add underline on hover for better UX */
}

@media (max-width: 480px) {
  .info-block {
    white-space: normal; /* Allow wrapping on small screens */
  }
}

/* Tech Stack Section */
.grid-container {
  margin: 0 auto;
  width: fit-content;
  place-items: center;
  display: grid;
  grid-template-columns: repeat(4, 100px);
  gap: 35px;
  background: #f9f9f9;
  padding: 45px;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.icon-box {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  cursor: pointer;
  width: 100px;
  height: 100px;
}
.icon-box i,
.icon-box img {
  font-size:60px;
  max-width:60px;
  max-height:60px;
  transition: transform 0.2s;
}
.icon-box:hover i,
.icon-box:hover img {
  transform: scale(1.2);
}
.icon-box::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 4px 10px;
  font-size: 12px;
  white-space: nowrap;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.icon-box:hover::after {
  opacity: 1;
}

/* Mobile: make it flexible with fewer columns */
@media (max-width: 768px) {
  .grid-container {
    width: 90%;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    padding: 15px 0;
    border-radius: 16px; /* Adjust border radius for mobile */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* Adjust shadow for mobile */
  }
  .icon-box {
    width: 70px; /* Adjust icon box size for mobile */
    height: 70px;
  }
  .icon-box i,
  .icon-box img {
    font-size: 40px; /* Adjust icon size for mobile */
    max-width: 40px;
    max-height: 40px;
  }
  .icon-box::after {
    font-size: 10px; /* Adjust tooltip font size for mobile */
    padding: 2px 5px;
  }
}

.tech-stack {
  padding: 2rem 0;
  text-align: center;
  background-color: #f9f9f9;
  border-top: 2px solid #ddd;
  border-bottom: 2px solid #ddd;
}

.tech-stack h3, .projects h3 {
  font-size: 1.4rem; /* Match "About Me" header size */
  margin-bottom: 1rem;
  color: #333; /* Dark color for white background */
  text-align: center;
  display: block; /* Ensure it takes up the full width */
}

/* Projects Section */
.projects {
    padding: 2rem;
    text-align: center;
    background-color: #f9f9f9;
}

.projects-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.project-card {
    width: 300px;  /* Smaller fixed width */
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f9f9f9;
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.project-card img {
  width: 100%;
  height: auto;
}

.project-card h4 {
  padding: 0.5rem;
  margin: 0;
}

@media (max-width: 768px) {
  .projects-grid {
    flex-direction: column;
    align-items: center;
  }
}

/* Modal Styles */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8); /* Black background with opacity */
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 8px;
  width: 80%;
  max-width: 600px;
  text-align: left;
}

.modal-content h4 {
  margin-bottom: 1rem;
}

.modal-content p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.modal-img {
  max-width: 100%;
  height: auto;
  margin-bottom: 1rem;
  border-radius: 8px;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
}

/* Footer */
.footer-div {
  text-align: center;
  margin-top: 2rem;
  font-size: 1rem;
  color: #999;
}

.footer-div a:hover {
text-decoration: underline; /* Optional: Add underline on hover for better UX */
}