/*=============== GOOGLE FONTS ===============*/

@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  /* 
      Change favorite color
      Default: hsl(162, 100%, 40%)
      Orange: hsl(14, 100%, 65%) - Blue: hsl(210, 100%, 70%)
      Pink: hsl(356, 100%, 75%) - Purple: hsl(250, 100%, 75%)

      For more colors visit: https://colors.dopely.top/color-pedia
      -> Choose any color 
      -> click on tab (Color Conversion)
      -> Copy the color mode (HSL)
  */

  --hue: 210;
  --first-color: hsl(var(--hue), 25%, 50%);
  --first-color-alt: hsl(var(--hue), 50%, 45%);
  --title-color: hsl(228, 8%, 95%);
  --text-color: hsl(228, 5%, 62%);
  --body-color: hsl(228, 15%, 20%);
  --container-color: hsla(222, 42%, 6%, 0.669);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Poppins", sans-serif;
  --biggest-font-size: 2rem;
  --bigger-font-size: 1.25rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.813rem;
  --smaller-font-size: 0.75rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1152px) {
  :root {
    --biggest-font-size: 4rem;
    --bigger-font-size: 2rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.813rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

input,
textarea,
button,
body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

body {
  background-color: var(--body-color);
  color: var(--text-color);
}

input,
textarea,
button {
  outline: none;
  border: none;
}

h1,
h2,
h3,
h4 {
  color: var(--title-color);
  font-weight: var(--font-medium);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.section {
  padding-block: 5rem 2rem;
}

.section__title,
.section__subtitle {
  text-align: center;
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
}

.section__title {
  font-size: var(--h1-font-size);
  margin-bottom: 1.5rem;
}

.section__subtitle {
  font-size: var(--small-font-size);
  margin-bottom: 0.25rem;
}

.section__subtitle span {
  color: var(--first-color);
}

.main {
  overflow: hidden; /* For animation ScrollReveal */
}

/*=============== HEADER & NAV ===============*/
.header {
  position: fixed;
  width: 100%;
  background-color: var(--container-color);
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  color: var(--title-color);
  font-weight: var(--font-medium);
}

.nav__logo span {
  color: var(--first-color);
}

.nav__toggle,
.nav__close {
  display: flex;
  font-size: 1.25rem;
  color: var(--title-color);
  cursor: pointer;
}

/* Navigation for mobile devices */
@media screen and (max-width: 1023px) {
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%; /* Initially hidden off-screen */
    background-color: hsla(0, 0%, 10%, 0.3);
    width: 75%;
    height: 100%;
    padding: 4.5rem 0 0 3rem;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transition: right 0.4s ease-in-out; /* Smooth transition */
    z-index: 1000; /* Ensure it's on top of other elements */
  }
  .nav__menu.show-menu {
    /* Example class to show the menu */
    right: 0; /* Move into view */
  }
}

.nav__list {
  display: flex;
  flex-direction: column;
  row-gap: 3rem;
}

.nav__link {
  color: var(--title-color);
  font-weight: var(--font-medium);
  transition: color 0.4s;
}

.nav__link:hover {
  color: var(--first-color);
}

.nav__close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}

/* Show menu */
.show-menu {
  right: 0;
}

/* Add blur to header */
.blur-header {
  background-color: transparent;
}

.blur-header::after {
  content: "";
  position: absolute;
  width: 1000%;
  height: 100%;
  background-color: hsla(0, 0%, 10%, 0.3);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  top: 0;
  left: 0;
  z-index: -1;
}

/* Active link */
.active-link {
  color: var(--first-color);
}

/*=============== HOME ===============*/
.home {
  background-color: var(--container-color);
}

.home__container {
  padding-top: 2rem;
  row-gap: 2.5rem;
}

.home__content {
  display: grid;
  row-gap: 2rem;
}

.home__data {
  text-align: center;
}

/*.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1rem;
}

/* Home Section */
/*.home__container {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr;
  column-gap: 2rem;
  padding-block: 2rem;
} */

.home__subtitle,
.home__education {
  font-size: var(--bigger-font-size);
}

.home__subtitle span,
.home__title {
  color: var(--first-color);
}

.home__title {
  font-size: var(--biggest-font-size);
  font-weight: var(--font-semi-bold);
}

.home_description {
  margin-block: 1rem 1.5rem;
}

/* .home__social {
  display: flex;
  justify-content: center;
  column-gap: 1.25rem;
}

.home__social-link {
  display: flex;
  background-color: var(--first-color-alt);
  padding: 0.5rem;
  color: var(--title-color);
  font-size: 1.5rem;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  transition: transform 0.4s;
}

.home__social-link:hover {
  transform: translateY(-0.25rem);
} */
.home__social {
  display: flex;
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically if necessary */
  column-gap: 1.5rem; /* Space between icons */
  margin-top: 1.5rem; /* Add spacing from the "View Resume" button */
  margin-block: 1rem 1.5rem;
}

.home__social-link {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--first-color-alt); /* Hexagonal background */
  padding: 0.75rem;
  color: var(--title-color);
  font-size: 1.75rem;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); /* Hexagonal shape */
  transition: transform 0.3s ease-in-out;
  cursor: pointer;
  
}

.home__social-link:hover {
  transform: translateY(-0.3rem); /* Add lift effect on hover */
  background-color: var(--first-color); /* Change background on hover */
}


.home__image {
  justify-self: center;
}

.home__blob {
  width: 320px;
  fill: var(--first-color);
  filter: drop-shadow(0 12px 12px hsla(var(--hue), 100%, 40%, 0.2));
}

.home__img {
  width: 900px;
  transform: translateX(-140px);
}

/*=============== BUTTON ===============*/
.button {
  /*display: inline-block;*/
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--first-color);
  padding: 0.5rem 0.5rem;
  border-radius: 0.7rem;
  color: var(--title-color);
  font-weight: var(--font-medium);
  transition: box-shadow 0.7s;
  transform: translateY(0.7rem);
}

.button:hover {
  box-shadow: 0 8px 24px hsla(var(--hue), 100%, 40%, 0.25);
}

/*=============== ABOUT ===============*/
.about__container {
  row-gap: 2.5rem;
}

.about__data {
  text-align: center;
}

.about__description {
  margin-bottom: 2rem;
}

.about__image {
  justify-self: center;
}

.about__blob {
  width: 320px;
}

.about__blob path {
  stroke: var(--first-color);
}

/*=============== SKILLS ===============*/
.skills__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.skills__header {
  text-align: center;
  margin-bottom: 4rem;
}

.skills__description {
  color: var(--text-color);
  max-width: 42rem;
  margin: 0 auto;
  font-size: var(--normal-font-size);
  line-height: 1.6;
}

.gradient-text {
  background: linear-gradient(135deg, var(--first-color), var(--first-color-alt));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.skills__categories {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Glass Card Effect */
.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  transition: all 0.3s ease;
}

.glass-card:hover {
  border-color: var(--first-color);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Skill Category */
.skill-category {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.skill-category.animate {
  opacity: 1;
  transform: translateY(0);
}

.skill-category__header {
  margin-bottom: 1.5rem;
}

.skill-category__title {
  font-size: var(--h2-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--first-color);
  margin: 0;
}

.skill-category__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Skill Item */
.skill-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.skill-icon {
  width: 4rem;
  height: 4rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  transition: all 0.3s ease;
}

.skill-item:hover .skill-icon {
  transform: scale(1.1) translateY(-5px);
  background: hsla(var(--hue), 25%, 20%, 0.3);
  border-color: var(--first-color);
}

.skill-icon img {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
}

.skill-tooltip {
  position: absolute;
  bottom: -2rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.5rem 0.75rem;
  background: var(--container-color);
  color: var(--title-color);
  font-size: var(--small-font-size);
  border-radius: 0.5rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 10;
  pointer-events: none;
}

.skill-item:hover .skill-tooltip {
  opacity: 1;
  visibility: visible;
}

/* Responsive Design */
@media screen and (min-width: 768px) {
  .skill-category {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
  }

  .skill-category__header {
    flex: 0 0 25%;
    margin-bottom: 0;
  }

  .skill-category__skills {
    flex: 1;
  }
}

@media screen and (min-width: 1152px) {
  .skills__container {
    padding: 3rem 2rem;
  }

  .glass-card {
    padding: 2rem;
  }

  .skill-category__title {
    font-size: var(--h2-font-size);
  }
}

/*================EDUCATION=========================*/

.cornell-logo {
  width: auto; /* Adjust the size as needed */
  height: auto; /* Maintains aspect ratio */
  display: block; /* Ensures the image is a block element */
  margin-bottom: 10px; /* Space between the image and the title */
  margin: 0 auto 10px auto;
}

.djsce-logo {
  width: 400px; /* Adjust the size as needed */
  height: auto; /* Maintains aspect ratio */
  display: block; /* Ensures the image is a block element */
  margin-bottom: 10px; /* Space between the image and the title */
  margin: 0 auto 10px auto;
}

.education__details {
  font-size: 14px; /* Adjust font size as needed */
  color: var(--first-color); /* Adjust color as needed */
  margin-bottom: 10px; /* Space between the details and the description */
}

.education__duration,
.education__location {
  display: inline-block;
  margin-right: 5px;
}

.education__container {
  row-gap: 2rem;
  padding-block: 1rem;
}

.education__card {
  text-align: center;
  background-color: var(--container-color);
  padding: 3rem 1.25rem;
  border-radius: 1rem;
  border: 2px solid var(--container-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.education__default {
  transition: opacity 0.3s ease;
}

.education__hover-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
  margin-top: 0;
}

.education__card:hover .education__hover-content {
  max-height: 2000px;
  opacity: 1;
  margin-top: 1.5rem;
}

.education__description {
  text-align: left; /* Left-aligns the text within this element */
  margin: 0 auto; /* Centers the description block */
  max-width: 500px; /* Optional: limits the width for better readability */
}

.education__title {
  font-size: var(--h2-font-size);
  margin-bottom: 1.5rem;
}

.education__card:hover {
  border: 2px solid var(--first-color);
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/*=============== WORK EXPERIENCE ===============*/

.workexperience__company-logo {
  width: 250px; /* Adjust size as needed */
  height: auto; /* Maintain aspect ratio */
  display: block; /* Ensures the image is a block element */
  margin-bottom: 10px; /* Space between the image and the title */
  margin: 0 auto 10px auto; /* Centers the image horizontally and adds space below */
}

.mesh-logo {
  width: 350px !important; /* Larger size for Mesh logo */
  max-width: 100%;
  object-fit: contain;
}

.workexperience__details {
  font-size: var(--normal-font-size);
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.75rem;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.workexperience__duration {
  color: var(--first-color);
  font-size: var(--small-font-size);
}

.workexperience__duration,
.workexperience__location {
  display: inline-block;
  margin-right: 5px;
}

.workexperience__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.workexperience__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media screen and (min-width: 768px) {
  .workexperience__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (min-width: 1152px) {
  .workexperience__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.workexperience__card {
  text-align: center;
  width: 100%;
  background-color: var(--container-color);
  padding: 2rem 1.5rem;
  border-radius: 1rem;
  border: 2px solid var(--container-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.workexperience__card:hover {
  border-color: var(--first-color);
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.workexperience__default {
  transition: opacity 0.3s ease;
}

.workexperience__hover-content {
  max-height: none;
  opacity: 1;
  overflow: visible;
  margin-top: 1.5rem;
  display: block;
}

.workexperience__description {
  text-align: left; /* Left-aligns the text within this element */
  margin: 0 auto; /* Centers the description block */
  max-width: 500px; /* Optional: limits the width for better readability */
}

.workexperience__title {
  font-size: var(--h2-font-size);
  margin-bottom: 1.5rem;
}

/*=============== PROJECTS ===============*/

/*=============== PROJECTS ===============*/
.projects {
  background-color: var(--container-color);
}

.projects__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.projects__header {
  text-align: center;
  margin-bottom: 4rem;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.projects__header.animate {
  opacity: 1;
  transform: translateY(0);
}

.projects__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* Project Card */
.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  transition: all 0.5s ease;
  opacity: 0;
  transform: translateY(40px);
}

.project-card.animate {
  opacity: 1;
  transform: translateY(0);
}

.project-card:hover {
  border-color: var(--first-color);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transform: translateY(-5px);
}

/* Project Image */
.project-card__image {
  position: relative;
  height: 14rem;
  overflow: hidden;
}

.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-card__image img {
  transform: scale(1.1);
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--container-color) 0%, transparent 50%);
  pointer-events: none;
}

/* Category Badge */
.project-card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.5rem 0.75rem;
  background: hsla(var(--hue), 50%, 45%, 0.9);
  color: var(--title-color);
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  z-index: 2;
}

.project-card__badge i {
  font-size: 0.75rem;
}

/* Project Links */
.project-card__links {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 20;
  pointer-events: auto;
}

/* Prevent card hover when hovering over links */
.project-card.links-hovered .project-card__hover-content {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.project-card.links-hovered .project-card__content {
  opacity: 1 !important;
}

.project-link {
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--title-color);
  text-decoration: none;
  transition: all 0.3s ease;
  pointer-events: auto;
  position: relative;
  z-index: 21;
}

.project-link:hover {
  background: var(--container-color);
  color: var(--first-color);
  transform: scale(1.1);
}

.project-link i {
  font-size: 1.125rem;
}

/* Project Content */
.project-card__content {
  padding: 1.5rem;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-card__content {
  opacity: 0;
}

.project-card__title {
  font-size: var(--h2-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.project-card:hover .project-card__title {
  color: var(--first-color);
}

.project-card__description {
  color: var(--text-color);
  font-size: var(--small-font-size);
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Technologies */
.project-card__tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-card__tech span {
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-color);
  font-size: var(--smaller-font-size);
  border-radius: 9999px;
}

/* Hover Content Overlay */
.project-card__hover-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-height: 100%;
  background: var(--container-color);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow-y: auto;
  z-index: 10;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  pointer-events: none;
}

.project-card:hover .project-card__hover-content {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}


.project-card__hover-description {
  color: var(--text-color);
  font-size: var(--small-font-size);
  line-height: 1.8;
  flex: 1;
}

.project-card__hover-description h3 {
  color: var(--title-color);
  font-size: var(--h2-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: 1rem;
}

.project-card__hover-description ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.project-card__hover-description li {
  margin-bottom: 0.75rem;
  padding-left: 1.25rem;
  position: relative;
}

.project-card__hover-description li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--first-color);
  font-weight: bold;
  font-size: 1.2rem;
}

.project-card__hover-description p {
  margin-bottom: 0.75rem;
}

.project-card__hover-description i {
  font-style: italic;
  color: var(--text-color);
  opacity: 0.8;
  display: block;
  margin-bottom: 0.5rem;
  font-size: var(--smaller-font-size);
}

.project-card__hover-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.project-hover-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--first-color);
  color: var(--title-color);
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: var(--font-medium);
  font-size: var(--small-font-size);
  transition: all 0.3s ease;
}

.project-hover-link:hover {
  background: var(--first-color-alt);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.project-hover-link i {
  font-size: 1rem;
}

/* Responsive Design */
@media screen and (min-width: 768px) {
  .projects__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-card__image {
    height: 16rem;
  }
}

@media screen and (min-width: 1152px) {
  .projects__container {
    padding: 3rem 2rem;
  }

  .project-card__image {
    height: 18rem;
  }
}

/*=============== PROJECT MODAL ===============*/
.project-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.project-modal.active {
  opacity: 1;
  visibility: visible;
}

.project-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.project-modal__content {
  position: relative;
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  margin: 2rem;
  z-index: 1001;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.project-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: var(--title-color);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1002;
}

.project-modal__close:hover {
  background: var(--first-color);
  color: var(--title-color);
  transform: rotate(90deg);
}

.project-modal__header {
  margin-bottom: 1.5rem;
  padding-right: 3rem;
}

.project-modal__title {
  font-size: var(--h1-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
  margin-bottom: 0.75rem;
}

.project-modal__badge {
  display: inline-flex;
  padding: 0.5rem 0.75rem;
  background: hsla(var(--hue), 50%, 45%, 0.9);
  color: var(--title-color);
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  border-radius: 9999px;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

.project-modal__badge i {
  font-size: 0.75rem;
}

.project-modal__body {
  color: var(--text-color);
}

.project-modal__description {
  font-size: var(--normal-font-size);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.project-modal__description ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.project-modal__description li {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
}

.project-modal__description li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--first-color);
  font-weight: bold;
  font-size: 1.2rem;
}

.project-modal__description p {
  margin-bottom: 1rem;
}

.project-modal__description i {
  font-style: italic;
  color: var(--text-color);
  opacity: 0.8;
  display: block;
  margin-bottom: 0.5rem;
}

.project-modal__links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.project-modal__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--first-color);
  color: var(--title-color);
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: var(--font-medium);
  transition: all 0.3s ease;
}

.project-modal__link:hover {
  background: var(--first-color-alt);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.project-modal__link i {
  font-size: 1.125rem;
}

/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden;
}

/* Responsive Modal */
@media screen and (max-width: 768px) {
  .project-modal__content {
    width: 95%;
    padding: 1.5rem;
    max-height: 85vh;
  }

  .project-modal__title {
    font-size: var(--h2-font-size);
  }

  .project-modal__description {
    font-size: var(--small-font-size);
  }
}

/*=============== Volunteer Experience ===============*/
.carousel {
  position: relative;
  height: auto;
  width: 100;
  max-width: 350px; /* Adjust the max width as needed */
  margin: 0 auto 1rem;
  overflow: hidden;
  border-radius: 10px; /* Optional: adds rounded corners */
}

.carousel-inner {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-item {
  flex: 0 0 100%;
  max-width: 100%;
}

.carousel-item img {
  width: 70%;
  height: 200px; /* Maintains aspect ratio */
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 1;
}

.carousel-control.left {
  left: 0;
}

.carousel-control.right {
  right: 0;
}

/* Existing styles */
.djrobocon-logo,
.djlit-logo,
.Igniting-logo {
  display: block;
  margin: 0 auto;
}

.volunteer__details {
  font-size: 14px; /* Adjust font size as needed */
  color: var(--first-color); /* Adjust color as needed */
  margin-bottom: 10px; /* Space between the details and the description */
}

.volunteer__duration,
.volunteer__location {
  display: inline-block;
  margin-right: 5px;
}

.volunteer__container {
  row-gap: 2rem;
  padding-block: 1rem;
}

.volunteer__card {
  text-align: center;
  background-color: var(--container-color);
  padding: 3rem 1.25rem;
  border-radius: 1rem;
  border: 2px solid var(--container-color);
  transition: border 0.4s;
}

.volunteer__description {
  text-align: left; /* Left-aligns the text within this element */
  margin: 0 auto; /* Centers the description block */
  max-width: 500px; /* Optional: limits the width for better readability */
}

.volunteer__title {
  font-size: var(--h2-font-size);
  margin-bottom: 1.5rem;
}

.volunteer__card:hover {
  border: 2px solid var(--first-color);
}

/*=============== CONTACT ===============*/
/*=============== CONTACT ===============*/
.contact__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.contact__header {
  text-align: center;
  margin-bottom: 4rem;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.contact__header.animate {
  opacity: 1;
  transform: translateY(0);
}

.contact__subtitle {
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  color: var(--first-color);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact__wrapper {
  max-width: 64rem;
  margin: 0 auto;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* Contact Info */
.contact__info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.contact__info.animate {
  opacity: 1;
  transform: translateX(0);
}

.contact__info-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
}

.contact__info-icon {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--first-color), var(--first-color-alt));
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--title-color);
  font-size: 1.25rem;
}

.contact__info-content {
  flex: 1;
}

.contact__info-title {
  font-size: var(--h3-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
  margin-bottom: 0.25rem;
}

.contact__info-text {
  font-size: var(--small-font-size);
  color: var(--text-color);
}

/* Contact Form */
.contact__form {
  position: relative;
  padding: 2rem;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.contact__form.animate {
  opacity: 1;
  transform: translateX(0);
}

.contact__form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.contact__form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact__label {
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  color: var(--title-color);
}

.contact__input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  color: var(--title-color);
  font-size: var(--normal-font-size);
  font-family: var(--body-font);
  transition: all 0.3s ease;
}

.contact__input::placeholder {
  color: var(--text-color);
  opacity: 0.7;
}

.contact__input:focus {
  outline: none;
  border-color: var(--first-color);
  background: rgba(255, 255, 255, 0.08);
}

.contact__textarea {
  resize: none;
  min-height: 8rem;
  font-family: var(--body-font);
}

.contact__message {
  font-size: var(--small-font-size);
  color: var(--title-color);
  margin-bottom: 1rem;
  min-height: 1.5rem;
  text-align: center;
}

.contact__button {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--first-color), var(--first-color-alt));
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: var(--normal-font-size);
}

.contact__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.contact__button:active {
  transform: translateY(0);
}

.contact__button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.contact__button i {
  font-size: 1.125rem;
}

/* Responsive Design */
@media screen and (min-width: 768px) {
  .contact__grid {
    grid-template-columns: 2fr 3fr;
    gap: 2rem;
  }

  .contact__form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


@media screen and (min-width: 1152px) {
  .contact__container {
    padding: 3rem 2rem;
  }

  .contact__form {
    padding: 2rem;
  }
}

/*=============== FOOTER ===============*/
.footer {
  background-color: var(--container-color);
  padding-block: 3.5rem 2rem;
}

.footer__container {
  row-gap: 0.5rem;
  text-align: center;
}

.footer__title {
  font-size: var(--h1-font-size);
  font-weight: var(--font-semi-bold);
}

.footer__title span {
  color: var(--first-color);
}

.footer__education {
  font-size: var(--normal-font-size);
}

.footer__social {
  display: flex;
  justify-content: center;
  column-gap: 1.25rem;
}

.footer__social-link {
  display: flex;
  background-color: var(--first-color-alt);
  padding: 0.5rem;
  color: var(--title-color);
  font-size: 1.5rem;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  transition: transform 0.4s;
}

.footer__social-link:hover {
  transform: translateY(-0.25rem);
}

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
  width: 0.6rem;
  border-radius: 0.5rem;
  background-color: hsl(228, 12%, 25%);
}

::-webkit-scrollbar-thumb {
  background-color: hsl(228, 8%, 35%);
  border-radius: 0.5rem;
}

::-webkit-scrollbar-thumb:hover {
  background-color: hsl(228, 8%, 45%);
}

/*=============== SCROLL UP ===============*/
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -50%;
  background-color: var(--body-color);
  padding: 6px;
  display: inline-flex;
  border-radius: 0.25rem;
  color: var(--first-color);
  font-size: 1.25rem;
  box-shadow: 0 4px 12px hsla(228, 15%, 8%, 0.4);
  z-index: var(--z-tooltip);
  transition: bottom 0.4s, transform 0.4s;
}

.scrollup:hover {
  transform: translate(-0.25rem);
}

/* Show Scroll Up */
.show-scroll {
  bottom: 3rem;
}

/*=============== BREAKPOINTS ===============*/

/* For small devices */
@media screen and (max-width: 320px) {
  .container {
    margin-inline: 1rem;
  }

  .skills__content {
    grid-template-columns: max-content;
    row-gap: 1rem;
  }

  .skills__categories {
    gap: 1.5rem;
  }

  .glass-card {
    padding: 1.25rem 1.5rem;
  }

  .education__card {
    padding-block: 1.5rem;
  }
}

/* For medium devices */
@media screen and (min-width: 576px) {
  .home__container,
  .about__container,
  .volunteer__container {
    grid-template-columns: 360px;
    justify-content: center;
    align-items: center;
  }

  @media screen and (min-width: 768px) {
    .nav__menu {
      width: 55%;
    }

    .home__container {
      grid-template-columns: repeat(2, 1fr);
      align-items: center;
    }

    .home__data,
    .home__social,
    .home__social-link {
      align-items: center;
    }

    .home__social {
      display: flex;
      justify-content: center;
      gap: 1rem;
    }

    .about__data,
    :is(.about__data) :is(.section__subtitle, .section__title) {
      text-align: initial;
    }

    .home__social {
      justify-content: center;
    }

    .home__blob,
    .about__blob {
      width: 300px;
    }

    .about__data {
      order: 1;
    }


    .volunteer__container {
      grid-template-columns: repeat(3, 200px);
    }

    .education__container {
      grid-template-columns: repeat(2, 550px);
    }
  }
}

@media screen and (min-width: 950px) {
  .container {
    margin-inline: auto;
    padding-inline: 1rem; /*--- inline----*/
  }

  .home__container {
    /* grid-template-columns: 350px 350px;
    column-gap: 3rem;
    padding-block: 2rem 3rem; */
    display: grid;
    align-items: center;
    grid-template-columns: 1fr;
    column-gap: 2rem;
    padding-block: 2rem;
    /*display: flex;*/
  }

  .home__data,
  .home__social,
  .home__social-link {
    align-items: center;
  }

  .home__blob {
    /*width: 550px; */
    width: 100%;
    max-width: 300px;
  }

  .home__content {
    row-gap: 2.5rem;
    text-align: left; /* align */
  }

  .home__description {
    margin-block: 0.5rem 1.5rem;
  }

  .home__social {
    column-gap: 1.5rem;
  }

  /*img*/
  .home__img {
    display: flex;
    justify-content: center;
  }

  .about__container {
    grid-template-columns: 500px 400px;
    column-gap: 4.5rem;
    padding-bottom: 1rem;
  }

  .about__blob,
  .home__blob {
    width: 450px;
  }

  .about__description {
    margin-bottom: 1.5rem;
  }

  .workexperience__card {
    padding: 2rem 1.5rem;
  }

  .volunteer__container {
    grid-template-columns: repeat(3, 300px);
  }


  .footer {
    padding-block: 2.5rem 2rem;
  }

  .footer__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }
}

/* For large devices */
@media screen and (min-width: 900px) {
  .section {
    padding-block: 6rem 2rem;
  }

  .section__subtitle {
    font-size: var(--small-font-size);
  }

  .nav {
    height: calc(var(--header-height) + 1.5rem);
  }
  .nav__close,
  .nav__toggle {
    display: none;
  }

  .nav__list {
    flex-direction: row;
    column-gap: 1rem;
  }

  .nav__menu {
    width: initial;
  }

  .blur-header::after {
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
  }

  .home__data,
  .home__social,
  .home__social-link {
    align-items: center;
  }
}