/* Overall body and layout styles */
body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #333;
  background-color: #fff;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* Header and Footer */
.header,
.footer {
  text-align: center;
  padding: 2em 5%;
  background-color: #f8f8f7;
  color: #1d1d1f;
  margin-bottom: 20px; /* Adds bottom margin to header */
}

.social-icons a {
  color: inherit; /* Prevents the icons from inheriting the default link color */
  text-decoration: none; /* Removes the underline */
}

.social-icons a:hover {
  opacity: 0.8; /* Adds a hover effect to indicate interactivity */
}

.fab.fa-github {
  color: #333; /* GitHub's icon color, typically black or a shade of dark gray */
}

.fab.fa-linkedin {
  color: #0077b5; /* LinkedIn's brand color, a shade of blue */
}

/* General icon style */
.fa-stack-overflow {
  color: #f48024; /* Stack Overflow's brand orange color */
  transition: color 0.3s ease-in-out; /* Smooth transition for hover effect */
}

/* Hover effect */
.fa-stack-overflow:hover {
  color: #d35e0f; /* Darker shade on hover */
}

/* Main content area */
.main {
  padding: 2em 5%;
}

.profile {
  display: flex;
  justify-content: center; /* Center horizontally in the container */
  align-items: center; /* Center vertically in the container */
  width: 100%; /* Take full width to center content */
  height: auto; /* Height can be auto if not specified */
  margin: 20px 0; /* Add some margin around the profile */
}

.profile img {
  width: 200px; /* Set the width of the image */
  height: 200px; /* Set the height of the image to be the same as the width */
  border-radius: 50%; /* Makes the image circular */
  object-fit: cover; /* Ensures the image covers the area without distorting aspect ratio */
}

.section-title {
  text-align: center;
  margin: 40px 0 20px; /* Adjust top and bottom margins as needed */
  padding: 0 5%; /* Match the horizontal padding of the sections */
  font-size: 2rem; /* Optional: Adjust the font size as desired */
  /* Additional styling as needed */
}

.section {
  padding: 20px 5%;
  background-color: #f7f7f7;
  margin-top: 20px;
}

.section h2 {
  margin-top: 0; /* Removes default top margin */
}

.experience-section {
  display: flex;
  justify-content: center; /* Center the hexagons horizontally */
  align-items: center; /* Center the hexagons vertically */
  gap: 10px; /* Adjust as necessary to give space between hexagons */
}

.hexagon {
  width: 100px;
  height: 115px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background-color: #f0f0f0;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px; /* Provides space around each hexagon */
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: grayscale(100%);
  position: relative; /* Use relative for positioning the date */
}

.hexagon:hover {
  transform: scale(1.1);
  filter: grayscale(0%);
  cursor: pointer;
}

.hex-img {
  max-width: 80%; /* Scale your image to fit within the hexagon */
  max-height: 80%; /* Scale your image to fit within the hexagon */
}

#pts-img {
  max-width: 60%;
  max-height: 60%;
}

/* Projects grid container */
.projects {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(250px, 1fr)
  ); /* Adjust minmax for tile size */
  gap: 20px; /* Adjust the gap as needed */
  padding: 20px; /* Optional: Add padding to the container */
  justify-content: center; /* Center grid items */
  align-items: start; /* Align grid items to the top */
}

/* Individual project tiles */
.project {
  background-color: #fff;
  border: 1px solid #e1e1e1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 8px; /* Rounded corners for tiles */
  overflow: hidden; /* Ensures nothing spills out of the border radius */
  display: flex;
  flex-direction: column; /* Stack content vertically */
  justify-content: space-between; /* Distribute space inside the tile */
  align-items: center; /* Center items horizontally */
  padding: 15px; /* Inner padding for content */
  transition: transform 0.3s ease;
  text-align: center; /* Center text */
}

/* Image inside project tile */
.project img {
  width: 50px; /* Ensure the image fills the tile width */
  height: 50px; /* Maintain aspect ratio */
  margin-bottom: 10px; /* Space below image */
}

.projects a {
  color: inherit; /* This will make the link color inherit from the parent .project class */
  text-decoration: none; /* Removes the underline */
}

.projects a:hover {
  color: inherit; /* Maintains the color on hover */
  text-decoration: none; /* Ensures no underline appears on hover */
}

/* Project title and other text */
.project h3,
.project p {
  margin: 5px 0; /* Vertical margin for text elements */
}

/* Optional: Project hover effect */
.project:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Tech Stack styling */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  align-items: center; /* This aligns items vertically */
  justify-content: center; /* This centers items horizontally */
  margin-top: 20px;
  gap: 10px; /* This adds space between items, adjust as necessary */
}

.tech {
  background-color: #fff;
  border: 1px solid #e1e1e1;
  padding: 10px 20px;
  margin: 5px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.tech:hover {
  background-color: #f0f0f0;
}

.tech img {
  width: 48px; /* Adjust this value as needed */
  height: 48px; /* Ensure the icons are not too large */
  filter: grayscale(100%); /* Makes the icon monochrome */
  transition: filter 0.3s ease, transform 0.3s ease; /* Smooth transition for filter and transform */
}

.tech:hover img {
  filter: none; /* Removes the grayscale filter on hover */
  transform: scale(1.1); /* Optionally scale the icon up slightly on hover */
}

/* Responsive typography */
h1,
h2 {
  font-weight: normal;
  color: #1d1d1f;
}

p {
  color: #6e6e73;
}

#binaryCode {
  color: #dcdcdc; /* Light gray color, almost blending with the background */
}

#dynamic-typing:after {
  content: "|";
  opacity: 1;
  animation: blink 0.7s infinite;
}

.done-typing:after {
  animation: none;
}

.remove-cursor:after {
  content: "";
  display: none;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}
