:root {
  --bg-color: #1e1e2f;
  --accent-color: #79b8ff;
  --text-color: #f0f0f0;
  --card-color: #2c2c3c;
  --icon-hover: #ffffff;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
}




.section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: auto;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.project-card {
  background-color: var(--card-color);
  border-radius: 8px;
  padding: 1.5rem;
  transition: transform 0.2s ease;
}

.project-card img {
  max-width: 100%;
  border-radius: 4px;
}

.project-card:hover {
  transform: scale(1.02);
}

.project-card h3 {
  margin-top: 0;
  color: var(--accent-color);
}

.about-section {
  padding: 6rem 2rem; /* Increased vertical padding */
  background-color: var(--card-color);
  border-radius: 10px;
  max-width: 1200px;
  margin: 4rem auto; /* Adds vertical space above and below the section */
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.about-image {
  max-width: 300px;
  border-radius: 12px;
  flex-shrink: 0;
}

.about-text {
  flex: 1;
  min-width: 280px;
}

.about-text h2 {
  margin-top: 0;
  color: var(--text-color);
}

.about-text p {
  margin-bottom: 1rem;
  color: #ccc;
  line-height: 1.6;
}

.about-text h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--accent-color);
}


.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill {
  background-color: #202236;
  color: var(--accent-color);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  white-space: nowrap;
  position: relative; /* Required for positioning the pseudo-element */
  overflow: hidden;  /* Prevents the line from going outside the pill */
}

/* Skewed vertical line shine effect */
.skill::before {
  content: ''; /* Empty content for the pseudo-element */
  position: absolute;
  top: 0;
  left: 110%; /* Initially position the line off the right side */
  width: 4px; /* Thin line for the shine effect */
  height: 100%; /* Full height of the pill */
  background-color: #fff; /* White color for the shine */
  transform: skewX(-20deg); /* Skew the line slightly */
  transition: left 0.5s ease-in-out, transform 0.5s ease-in-out; /* Smooth transition */
}

/* Hover effect */
.skill:hover::before {
  left: 0; /* Move the line to the left side of the pill */
  transform: skewX(-20deg); /* Keep the skew while moving */
}





.project-details {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #ccc;
}

.project-details ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.project-details li {
  margin-bottom: 0.25rem;
}

.project-details strong {
  color: #fff;
}
.project-card .icon-list {
  display: flex;
  gap: 0.5rem;
  padding: 0;
  margin-top: 1rem;
  list-style: none;
  align-items: center;
  justify-content: center;
}

.project-card .icon-content {
  margin: 0;
  position: relative;
}

.project-card .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: 12px;
  white-space: nowrap;
  background-color: #24262a;
  transition: all 0.3s ease;
}

.project-card .icon-content:hover .tooltip {
  opacity: 1;
  visibility: visible;
  top: -35px;
}

.project-card .icon-content a {
  width: 40px;
  height: 40px;
  background-color: #fff;
  border-radius: 50%;
  color: #4d4d4d;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease-in-out;
  text-decoration: none;
}

.project-card .icon-content a:hover {
  box-shadow: 3px 2px 45px 0px rgb(0 0 0 / 12%);
  color: white;
}

.project-card .icon-content a svg {
  position: relative;
  z-index: 1;
  width: 20px;
  height: 20px;
}

.project-card .icon-content a .filled {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: #000;
  z-index: 0;
  transition: all 0.3s ease-in-out;
}

.project-card .icon-content a:hover .filled {
  height: 100%;
}

.project-card .icon-content a[data-social="github"] .filled {
  background-color: #24262a;
}

/* From Uiverse.io by JaydipPrajapati1910 */ 
button {
  font-size: 18px;
  color: #222;
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
  position: relative;
  border: none;
  background: none;
  text-transform: uppercase;
  transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
  transition-duration: 400ms;
  transition-property: color;
  justify-content: center;
}

button:focus,
button:hover {
  color: #222;
}

button:focus:after,
button:hover:after {
  width: 100%;
  left: 0%;
}

button:after {
  content: "";
  pointer-events: none;
  bottom: -2px;
  left: 50%;
  position: absolute;
  width: 0%;
  height: 5px;
  background-color: #1e1e2f;
  transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
  transition-duration: 400ms;
  transition-property: width, left;
}