:root {
  --font-primary: "Poppins", sans-serif;
  --font-secondary: "Raleway", sans-serif;
  --text-color: #ffffff;
  --text-secondary-color: #c4c4c4;
  --bg-color: #110606;
  --primary-color: #9d4edd;
  --primary-color-darker: #913dcf;
  --secondary-color: #28a745;
  --secondary-color-darker: #218838;
  --primary-color-shadow: #d1a5f585;
  --surface-color: rgba(27, 26, 40, 0.75);
  --surface-border-color: rgba(255, 255, 255, 0.1);

  --mouse-x: -1000px;
  --mouse-y: -1000px;

  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-circle: 50%;

  --transition-fast: 0.2s;
  --transition-medium: 0.4s;
  --timing-function-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {

  background-color: var(--bg-color);
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-color);
  color: var(--text-color);
  background-attachment: fixed;
  overscroll-behavior-y: contain;
  background-image: radial-gradient(
      circle 600px at var(--mouse-x, -1000px) var(--mouse-y, -1000px),
      rgba(209, 165, 245, 0.15),
      transparent 80%
    ),
    linear-gradient(150deg, var(--bg-color), #9e00ff);
}
/* --- Global Title --- */
.title {
  text-align: center;
  font-size: clamp(2rem, 5vw, 2.8125rem);
  font-weight: 500;
  text-transform: uppercase;
  opacity: 0;
  will-change: opacity, transform;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 45px 15px;
}

.header .logo {
  width: 65px;
  height: 65px;
  border-radius: var(--border-radius-circle);
  border: 2.5px solid var(--text-color);
  text-align: center;
  font-size: 28px;
  font-weight: bold;
  line-height: 58px;
  font-family: var(--font-secondary);
  transition: color var(--transition-fast) ease,
    border-color var(--transition-fast) ease;
}

.header a:hover .logo {
  color: var(--primary-color);
  border: 2.5px solid var(--primary-color);
}

.header .menu .menu-list {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header .menu li a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  text-transform: capitalize;
  padding: 10px 15px;
  border-radius: 50px;
  transition: background-color var(--transition-fast) ease;
}

.header .menu .menu-list a i {
  font-size: 16px;
  color: var(--text-secondary-color);
  transition: color var(--transition-fast) ease;
}

.header .menu .menu-list > li > a:hover {
  background-color: var(--primary-color);
}

.header .menu .menu-list > li > a:hover i {
  color: var(--text-color);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  padding: 10px;
  z-index: 1100;
}

.home {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  min-height: calc(100vh - 125px);
  align-items: center;
  gap: 60px;
  justify-content: center;
}

.home .informations {
  display: flex;
  flex-direction: column;
  gap: 10px;
  letter-spacing: 2px;
  padding: 0 15px;
  max-width: 60%;
}

.home .informations h1 {
  font-family: var(--font-secondary);
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 0;
}

.home .informations,
.home .photo-container {
  opacity: 0;
  will-change: opacity, transform;
}

.home .informations p {
  font-family: var(--font-secondary);
  font-size: 22px;
  margin-bottom: 12px;
}

.home .informations .job-title {
  font-size: 28px;
  font-weight: 700;
  margin-right: 8px;
}

.home .informations p {
  font-size: 22px;
  margin-bottom: 12px;
}

.home .informations .highlight {
  background: linear-gradient(to right, #05e595, #2dd4bf, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: gradient-animation 5s ease infinite;
}

.home .social-media {
  display: flex;
  margin-top: 12px;
  gap: 20px;
}

.home .social-media li a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: var(--border-radius-circle);
  border: 2px solid var(--text-color);
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-medium) ease;
  text-align: center;
}

.home .social-media li a i {
  font-size: 26px;
  color: var(--text-color);
  position: relative;
  z-index: 2;
  transition: color var(--transition-medium) ease-in-out;
  text-align: center;
}

.home .social-media li a::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  transition: top var(--transition-medium) ease-in-out;
}

.home .social-media li a:hover {
  border-color: transparent;
}

.home .social-media li a:hover::before {
  top: 0;
}

.home .social-media li:nth-child(1) a::before {
  background: #0077b5;
}

.home .social-media li:nth-child(2) a::before {
  background-color: #dd4b39;
}

.home .social-media li:nth-child(3) a::before {
  background-color: #272626;
}

.home .social-media li:nth-child(4) a::before {
  background: radial-gradient(
    circle at 30% 107%,
    #fdf497 0%,
    #fdf497 5%,
    #fd5949 45%,
    #d6249f 60%,
    #285aeb 90%
  );
}

.home .home-buttons {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.home .photo-container .photo {
  max-width: 400px;
  margin-bottom: 20px;
  border-radius: var(--border-radius-circle);
  box-shadow: rgba(0, 1, 1, 0.19) 0px 2px 4px 0px,
    rgba(6, 12, 15, 0.426) 0px 2px 16px 0px;
}

.home .photo-container img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-circle);
}

.projects {
  padding: 70px 0 70px;
  margin: 0 auto;
  max-width: 1400px;
  cursor: default;
  content-visibility: auto;
  contain-intrinsic-size: 1px 800px; 
}

.projects .title {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  justify-content: center;
  padding: 50px 0;
}

/* --- Projects Grid --- */
.projects .projects-container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  justify-content: center;
  padding: 0 18px;
}

/* --- Project Card --- */
.project-image-wrapper {
  position: relative;
  order: 2;
  line-height: 0;
  overflow: hidden;
}

.projects .project {
  max-width: 420px;
  min-height: 400px;
  background-color: transparent;
  border-radius: 18px;
  overflow: hidden;
  display: none;
  position: relative;
  transition: transform var(--transition-fast) var(--timing-function-smooth),
    box-shadow var(--transition-medium) var(--timing-function-smooth),
    border-color var(--transition-medium) ease;
  box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px,
    rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
  opacity: 0;
}

.projects .project.active {
  display: flex;
}

.projects .project a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
}

.projects .project > div {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.projects .project img {
  height: auto;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background-color: #111;
  transition: transform var(--transition-medium) ease-in-out;
}

.projects .project .project-content {
  background-color: #ffffff;
  color: #111;
  padding: 20px;
  position: relative;
  order: 3;
  transition: all var(--transition-medium) ease-in-out;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.projects .project .project-content h3 {
  background-color: transparent;
  position: static;
  padding: 0;
  font-size: 1.4rem;
  margin-bottom: 18px;
  color: #111;
  text-transform: capitalize;
}

.projects .project .project-content p {
  flex-grow: 1;
}

.projects .project .project-information {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 25px;
  padding: 20px 20px 30px 8px;
  text-align: left;
  font-weight: 600;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.645) 10%,
    rgba(0, 0, 0, 0.207) 90%,
    transparent 100%
  );
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  transform: translateY(15px);
  transition: opacity var(--transition-medium) var(--timing-function-smooth),
    transform var(--transition-medium) var(--timing-function-smooth);
  pointer-events: none;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) transparent;
}

.projects .project .project-information p {
  padding-top: 8px;
  margin-bottom: -10px;
}

.projects .project .technologies {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: left;
  padding-bottom: 5px;
}

.projects .project .project-information::-webkit-scrollbar {
  height: 5px;
}

.projects .project .project-information::-webkit-scrollbar-track {
  background: transparent;
}

.projects .project .project-information::-webkit-scrollbar-thumb {
  background-color: var(--primary-color);
  border-radius: 20px;
}

.projects .project .technologies li span {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all var(--transition-medium) ease;
  white-space: nowrap;
}

.projects .project .technologies li span:hover {
  background-color: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color-darker);
}

.projects .project:hover img {
  transform: scale(1.03);
}

.projects .project:hover .project-information {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.btn {
  padding: 12px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background-color: var(--primary-color);
  border: none;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
  background-color: var(--primary-color-darker);
  transform: scale(1.05);
}

.btn:active {
  transform: scale(0.95);
}

.btn.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  margin-left: 20px;
}

.btn.btn-secondary:hover {
  background-color: #7b2bb4;
}

.btn-demo {
  background-color: var(--secondary-color, #28a745);
}

.btn-repo {
  background-color: var(--tertiary-color, #6c757d);
}

.projects .project-content > div {
  display: flex;
  position: relative;
  gap: 10px;
  justify-content: flex-start;
  background-color: transparent;
  align-items: center;
  margin-top: 15px;
}

.projects .btn-show-projects {
  background: none;
  border: 1px solid var(--text-color);
  border-radius: 15px;
  width: 180px;
  padding: 20px;
  font-size: 18px;
  font-weight: 600;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  will-change: opacity, transform;
}

.btn-show-projects {
  color: white;
}

.projects .btn-show-projects:hover {
  background-color: var(--primary-color);
  transition: background-color var(--transition-medium) ease;
}

.about {
  padding: 18px 15px;
  margin: 0 auto;
  background-image: linear-gradient(
    to bottom,
    var(--bg-color),
    rgba(17, 24, 39, 0.8)
  );
  width: 100%;
  content-visibility: auto;
  contain-intrinsic-size: 1px 600px;
}

.about-grid {
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  grid-template-areas:
    "metrics       journey"
    "academic-info journey"
    "soft-skills   journey";
  grid-column-gap: 20px;
  grid-row-gap: 30px;
}

.about-grid > div {
  background: var(--surface-color);
  border: 1px solid var(--surface-border-color);
  border-radius: var(--border-radius-md);
  padding: 25px;
  box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px,
    rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.about-grid h3 {
  font-size: clamp(1.25rem, 2vw + 1rem, 1.5rem);
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 10px;
  display: inline-block;
}

.about-grid p {
  font-family: var(--font-secondary);
  line-height: 1.7;
  color: var(--text-secondary-color);
  font-size: clamp(0.9rem, 0.5vw + 0.75rem, 1rem);
}

.about-journey p {
  margin-bottom: 30px;
}

.about-journey p a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-fast);
}

.about-journey p a:hover {
  text-decoration: underline;
  opacity: 0.8;
}

.about-soft-skills {
  grid-area: soft-skills;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}
.about-academic-info {
  grid-area: academic-info;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}
.about-journey {
  grid-area: journey;
}

.project.active.in-view {
  animation: fadeInUp 0.8s var(--timing-function-smooth) forwards;
}

.btn-show-projects.in-view {
  animation: fadeInUp 0.8s var(--timing-function-smooth) forwards;
}

.about-metrics {
  grid-area: metrics;
  display: flex;
  gap: 20px;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}

.metric-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--surface-color);
  border: 1px solid var(--surface-border-color);
  border-radius: var(--border-radius-md);
  box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px,
    rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
}

.metric-card i {
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  color: var(--primary-color);
}

.metric-card .metric-content h3 {
  font-size: clamp(1.5rem, 3vw + 1rem, 2rem);
  font-weight: 700;
  color: var(--text-color);
  margin: 0 0 5px 0;
  border: none;
  padding: 0;
  display: block;
}

.metric-card .metric-content p {
  font-size: clamp(0.8rem, 1vw + 0.6rem, 0.9rem);
  color: var(--text-secondary-color);
  margin: 0;
  line-height: 1.4;
}

.about-academic-info h3 i {
  margin-right: 10px;
  font-size: clamp(1.1rem, 1.5vw + 0.8rem, 1.375rem);
  vertical-align: middle;
}

.badges-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badges-container span {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all var(--transition-medium) ease;
  white-space: nowrap;
}

.badges-container span:hover {
  background-color: var(--primary-color);
}

.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 5px;
  bottom: 5px;
  width: 2px;
  background-color: var(--primary-color-shadow);
}

.timeline-item {
  position: relative;
  margin-bottom: 25px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -33px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--primary-color);
  border: 3px solid var(--surface-color);
  z-index: 1;
}

.timeline-content h4 {
  font-size: clamp(1rem, 2vw, 1.1rem);
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-color);
}

.timeline-content .timeline-date,
.timeline-content .timeline-company {
  font-size: clamp(0.85rem, 1.5vw, 0.9rem);
  color: var(--text-secondary-color);
  display: block;
}

.timeline-content .timeline-company {
  font-weight: 500;
  margin-bottom: 4px;
}
.timeline-content .timeline-location {
  font-size: clamp(0.85rem, 1.5vw, 0.9rem);
  color: var(--text-secondary-color);
  display: block;
  margin-bottom: 4px;
  font-style: italic;
}

.timeline-content .timeline-description {
  font-size: clamp(0.85rem, 1.5vw, 0.9rem);
  color: var(--text-secondary-color);
  margin-top: 10px;
  line-height: 1.5;
  font-family: var(--font-secondary);
}

.skills .title {
  margin-bottom: 30px;
  filter: drop-shadow(0 0 8px var(--primary-color-shadow));
}

.skills .container-skills {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 900px;
  border-radius: var(--border-radius-md);
  padding: 20px 24px;
  background: var(--surface-color);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid var(--surface-border-color);
}

.skills .container-skills .skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  width: 150px;
  text-align: center;
  margin: 15px 0px;
  opacity: 0;
  transform: translateY(20px);
  will-change: opacity, transform;
}

.skills .container-skills .skill-item img {
  width: 90px;
  height: 90px;
}

.skills .container-skills .skill-item span {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary-color);
  transition: color 0.3s ease;
}

.skills.in-view .container-skills .skill-item {
  animation: fadeInUp 0.8s var(--timing-function-smooth) forwards;
}

.skills .container-skills .skill-item:hover {
  transform: scale(1.1);
}

.skills .container-skills .skill-item:hover img {
  filter: drop-shadow(0 0 10px var(--primary-color-shadow));
}

.skills .container-skills .skill-item:hover span {
  color: #fff;
}

.skills {
  position: relative;
  padding-top: 3rem;
  padding-bottom: 3rem;
  background-image: linear-gradient(
    to bottom,
    var(--bg-color),
    rgba(17, 24, 39, 0.8)
  );
  content-visibility: auto;
  contain-intrinsic-size: 1px 600px;
}

.skills .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.title-container {
  text-align: center;
  margin-bottom: 1.5rem;
}

.title-container .title {
  margin-bottom: 0.75rem;
}

title-decorator {
  height: 0.25rem;
  width: 6rem;
  background-image: linear-gradient(to right, #3b82f6, #14b8a6);
  margin-left: auto;
  margin-right: auto;
  border-radius: 9999px;
}

.desktop-view container {
  width: 90%;
}

#desktop-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

#desktop-filter-buttons .filter-button {
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 1.125rem;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  cursor: pointer;
}

.glass-card {
  background-color: rgba(31, 41, 55, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(55, 65, 81, 0.5);
  border-radius: 0.75rem;
}

#desktop-filter-buttons .filter-button.inactive {
  background-color: rgba(31, 41, 55, 0.25);
  border: 1px solid rgba(55, 65, 81, 0.5);
}

#desktop-filter-buttons .filter-button.inactive:hover {
  transform: scale(1.05);
  border-color: rgba(59, 130, 246, 0.5);
}

#desktop-filter-buttons .filter-button.active {
  background-color: #3b82f6;
  color: white;
  transform: scale(1.05);
  box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3),
    0 4px 6px -2px rgba(59, 130, 246, 0.15);
}

#desktop-filter-buttons .filter-button .icon-wrapper {
  width: 1.25rem;
  height: 1.25rem;
}

#desktop-skills-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(4, minmax(184px, 1fr));
}

.skill-card {
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(90, 89, 89, 0.1);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  opacity: 0;
}

.skill-card:hover {
  transform: translateY(-5px) scale(1.03);
  border-color: rgba(59, 130, 246, 0.5);
}

.skill-card .icon-container {
  position: relative;
  margin-bottom: 1rem;
}

.skill-card .icon-bg {
  width: 7rem;
  height: 7rem;
  margin-left: auto;
  margin-right: auto;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(0);
  transition: all 0.2s;
  box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px,
    rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
}

.skill-card:hover .icon-bg {
  transform: scale(1.1);
  box-shadow: rgba(0, 0, 0, 0.244) 0px 2px 4px,
    rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
}

.skill-card .icon-bg img {
  width: 4rem;
  height: 4rem;
}

.skill-card .glow-effect {
  position: absolute;
  inset: 0;
  width: 7rem;
  height: 7rem;
  margin-left: auto;
  margin-right: auto;
  border-radius: 1rem;
  opacity: 0;
  filter: blur(1rem);
  transition: opacity 0.3s;
  z-index: -1;
}

.skill-card:hover .glow-effect {
  opacity: 0.3;
}

.skill-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-color);
  transition: color 0.3s;
}

.skill-card:hover h3 {
  color: #3b82f6;
}

.skill-card .category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  justify-content: center;
  margin-top: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s;
  height: 1.5rem;
}

.skill-card:hover .category-tags {
  opacity: 1;
}

.skill-card .category-tags span {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  background-color: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}

#mobile-category-buttons {
  flex-direction: column;
  width: 100%;
  gap: 1rem;
  cursor: pointer;
}

#mobile-category-buttons button {
  width: 100%;
  height: 4rem;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  padding: 1rem 3rem;
  border-radius: 0.5rem;
  transition: all 0.3s;
  font-weight: 500;
  color: var(--text-color);
  cursor: pointer;
}

#mobile-category-buttons button:hover {
  transform: scale(1.05);
}

#mobile-category-buttons button .icon-wrapper {
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 0.75rem;
}

#mobile-category-buttons button .category-count {
  margin-left: auto;
  font-size: 0.875rem;
  color: #9ca3af;
}

/* Drawer (Mobile) */
#drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  z-index: 40;
  pointer-events: none;
}

#drawer-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

#drawer-content {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
  max-height: 80vh;
  border-top: 1px solid rgba(59, 130, 246, 0.2);
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  display: flex;
  flex-direction: column;
  background-color: rgba(17, 24, 39, 0.85);
}

#drawer-content.visible {
  transform: translateY(0);
}

#drawer-header {
  padding: 1.5rem;
  text-align: center;
  border-bottom: 1px solid rgba(55, 65, 81, 0.5);
  flex-shrink: 0;
}

#drawer-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 600;
}

#drawer-title .icon-wrapper {
  width: 1.5rem;
  height: 1.5rem;
}

#drawer-description {
  font-size: 0.875rem;
  color: #9ca3af;
  margin-top: 0.25rem;
}

#drawer-body {
  padding: 1.5rem 0.5rem;
  overflow-y: auto;
}

#drawer-skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.skill-badge {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-badge:hover {
  transform: scale(1.1);
}

.skill-badge img {
  width: 1.5rem;
  height: 1.5rem;
}

#drawer-footer {
  padding: 1rem;
  border-top: 1px solid rgba(55, 65, 81, 0.5);
  margin-top: auto;
  flex-shrink: 0;
}

#drawer-close-button {
  width: 100%;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #374151;
  transition: background-color 0.2s;
  font-weight: 500;
  background: transparent;
  color: var(--text-color);
  cursor: pointer;
}

#drawer-close-button:hover {
  background-color: rgba(55, 65, 81, 0.5);
}

/* Responsive display */
.mobile-view {
  display: none;
}

/* Decorative elements */
.skills .decorative-glow-1 {
  position: absolute;
  top: 25%;
  left: 5%;
  width: 12rem;
  height: 12rem;
  background-color: rgba(59, 130, 246, 0.1);
  border-radius: 9999px;
  filter: blur(5rem);
  z-index: -1;
  animation: glow 4s infinite ease-in-out;
}
.skills .decorative-glow-2 {
  position: absolute;
  bottom: 25%;
  right: 5%;
  width: 16rem;
  height: 16rem;
  background-color: rgba(20, 184, 166, 0.1);
  border-radius: 9999px;
  filter: blur(5rem);
  z-index: -1;
  animation: glow 4s infinite ease-in-out;
  animation-delay: 1s;
}

.certificates {
  background-color: rgba(22, 20, 37, 0.649);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.045);
  padding: 70px 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  content-visibility: auto;
  contain-intrinsic-size: 1px 500px;
}

.certificates .title {
  margin-bottom: 18px;
  filter: drop-shadow(0 0 8px var(--primary-color-shadow));
}

.certificates p {
  text-align: center;
  font-size: 22px;
  margin-bottom: 40px;
  opacity: 0;
  will-change: opacity, transform;
}

.certificates.in-view .title {
  animation: fadeInUp 0.8s var(--timing-function-smooth) forwards;
}

.certificates.in-view p {
  animation: fadeInUp 0.8s var(--timing-function-smooth) 0.2s forwards;
}
.certificates-container {
  display: flex;
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  padding: 10px 0px 40px 0px;
  margin: auto;
  position: relative;
  box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px,
    rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
}

.certificates-slide {
  display: flex;
  animation: slide 78s linear infinite;
}

.certificates-slide a {
  cursor: pointer;
  flex-shrink: 0;
  padding: 25px;
  margin: 0px 15px;
  width: 400px;
  height: 300px;
  background-color: #f3f3f3f4;
  border-radius: var(--border-radius-md);
  box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px,
    rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
}

.certificates-slide a img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.certificates-container:hover .certificates-slide {
  animation-play-state: paused;
}

.form-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: rgb(27, 26, 26);
  padding: 48px 15px 80px;
  content-visibility: auto;
  contain-intrinsic-size: 1px 400px;
}

.form-container .title {
  margin-bottom: 8px;
  filter: drop-shadow(0 0 8px var(--primary-color-shadow));
}

.form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 550px;
  margin: auto;
  width: 100%;
  opacity: 0;
  will-change: opacity, transform;
}

.form label {
  font-size: 18px;
  color: var(--text-secondary-color);
  margin: 4px 2px;
}

.form input,
.form textarea {
  width: 100%;
  padding: 14px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--surface-border-color);
  border-radius: var(--border-radius-sm);
  color: var(--text-color);
  font-family: var(--font-primary);
  font-size: 16px;
  transition: border-color var(--transition-medium) ease,
    box-shadow var(--transition-medium) ease;
}

.form input::placeholder,
.form textarea::placeholder {
  color: #777;
}

.form input:focus,
.form textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 10px var(--primary-color-shadow);
}

.form textarea {
  resize: vertical;
  min-height: 120px;
}

.form .btn-submit {
  background-color: var(--primary-color);
  color: var(--text-color);
  border: none;
  border-radius: 15px;
  padding: 18px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 15px;
  transition: background-color var(--transition-medium) ease,
    transform var(--transition-fast) ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.form .btn-submit::after {
  content: '\f1d8';
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}

.form .btn-submit:hover {
  background-color: var(--primary-color-darker);
  transform: translateY(-2px);
}

.site-footer {
  background-color: #1d1f22;
  color: #ecf0f1;
  padding: 60px 0px 30px;
  display: grid;
  border-radius: 40px 40px 0px 0px;
  grid-template-columns: 1fr 300px 1fr;
  gap: 50px;
  position: relative;
  margin-top: -35px;
  z-index: 10;
}

.footer-column {
  justify-content: center;
  padding: 20px 0px;
  margin: 0px 60px;
}

.footer-column h3 {
  color: #ffffff;
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 22px;
  font-family: var(--font-secondary);
}

.footer-column p {
  margin: 0 0 10px 0;
  color: var(--text-secondary-color);
  max-width: 500px;
  line-height: 1.6;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column ul li a {
  color: var(--text-secondary-color);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-column ul li a:hover {
  color: var(--primary-color);
}

.footer-social-media {
  display: flex;
  margin-top: 20px;
  list-style: none;
}

.footer-social-media li {
  margin-right: 15px;
}

.footer-social-media a {
  display: inline-block;
  transition: transform var(--transition-fast) ease;
}

.footer-social-media a:hover {
  transform: translateY(-3px);
}

.footer-social-media i {
  font-size: 28px;
  padding: 5px 10px;
  transition: color var(--transition-fast) ease;
}

.footer-social-media .fa-linkedin-in {
  color: #0077b5;
}

.footer-social-media .fa-github {
  color: #e1e1e1;
}

.footer-social-media .fa-instagram {
  background: radial-gradient(
    circle at 30% 107%,
    #fdf497 0%,
    #fdf497 5%,
    #fd5949 45%,
    #d6249f 60%,
    #285aeb 90%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.footer-copyright {
  grid-column: 1 / -1;
  text-align: center;
  padding-top: 20px;
  color: var(--text-secondary-color);
  font-size: 14px;
  border-top: 1px solid var(--surface-border-color);
  width: 90%;
  max-width: 1120px;
  margin: 20px auto 0;
}

.footer-controls {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
}

.footer-controls .theme-btn {
  background: var(--surface-color);
  border: 1px solid var(--surface-border-color);
  width: auto;
  height: 45px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--border-radius-sm);
  font-size: 20px;
  color: var(--text-color);
  cursor: pointer;
  transition: all var(--transition-fast) ease;
  width: max-content;
}

.footer-controls .theme-btn:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.lang-dropdown {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-color);
  border: 1px solid var(--surface-border-color);
  color: var(--text-color);
  padding: 10px 15px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  transition: all var(--transition-fast) ease;
}

.lang-btn:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.theme-btn .theme-label-dark {
  display: none;
  font-size: 16px;
  font-weight: 500;
}


.lang-btn i.fa-chevron-down {
  transition: transform var(--transition-medium) ease;
}

.lang-dropdown.open .lang-btn i.fa-chevron-down {
  transform: rotate(180deg);
}

.lang-options {
  position: absolute;
  bottom: 100%;
  left: 0;
  width: 100%;
  background: var(--surface-color);
  border: 1px solid var(--surface-border-color);
  border-radius: var(--border-radius-sm);
  padding: 8px;
  list-style: none;
  margin-bottom: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-medium) ease;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.lang-dropdown.open .lang-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  width: max-content;
}

.lang-options li button {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-color);
  padding: 10px 15px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  border-radius: var(--border-radius-sm);
  transition: background-color var(--transition-fast) ease;
}

#scrollTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: #fff;
  border-radius: var(--border-radius-circle);
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  font-size: 20px;
  transition: opacity var(--transition-medium) var(--timing-function-smooth),
    transform var(--transition-medium) var(--timing-function-smooth),
    background-color var(--transition-medium) ease;
  visibility: hidden;
  align-items: center;
  transform: translateY(15px);
}

#scrollTopBtn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

body.body-no-scroll #scrollTopBtn {
  opacity: 0;
  visibility: hidden;
}

/* --- ANIMATIONS --- */
.animate-gradient {
  background: linear-gradient(to right, #8a35c8, #18c063, #00eea2);
  background-size: 180% 180%;
  animation: gradient-animation 5s ease infinite;
}

.fadeInUp {
  animation: fadeInUp 1s var(--timing-function-smooth) forwards;
}

.fadeInLeft {
  animation: fadeInLeft 1s var(--timing-function-smooth) forwards;
}

.fadeInRight {
  animation: fadeInRight 1s var(--timing-function-smooth) forwards;
}

.form-container.in-view .form {
  animation: fadeInLeft 0.8s var(--timing-function-smooth) forwards;
  animation-delay: 0.2s;
}

/* --- Intersection Observer Triggers --- */
.projects.in-view .title,
.skills.in-view .title,
.certificates.in-view .title,
.form-container.in-view .title {
  animation: fadeInUp 0.8s var(--timing-function-smooth) forwards;
  animation-delay: 0.1s;
}

.about-metrics.in-view,
.about-academic-info.in-view,
.about-soft-skills.in-view,
.timeline-item.in-view {
  opacity: 1;
  transform: translateY(0);
}

@keyframes gradient-animation {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-fade-in {
  animation: fadeIn 0.5s ease-out forwards;
  opacity: 0;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.animate-scale-in {
  animation: scaleIn 0.3s ease-out forwards;
  opacity: 0;
}

@keyframes glow {
  0%,
  100% {
    opacity: 0.1;
  }
  50% {
    opacity: 0.3;
  }
}
.animate-glow {
  animation: glow 4s infinite ease-in-out;
}



@media (max-width: 1200px) {
  body {
    background-image: linear-gradient(150deg,#53037C, var(--bg-color));
    background-attachment: scroll;
  }

  html.light-mode body {
    background-image: linear-gradient(
      150deg,
      var(--bg-color) 65%,
      rgb(205, 204, 205) 100%
    );
  }

  .header {
    padding: 30px;
  }

  .home {
    flex-direction: column;
    align-items: center;
    margin: 50px 0;
    gap: 30px;
  }

  .home .informations {
    max-width: 100%;
    text-align: center;
    align-items: center;
  }

  .home .informations p {
    max-width: 620px;

  }


  .about-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "metrics"
      "academic-info"
      "soft-skills"
      "journey";
    grid-column-gap: 0;
  }

  .home .informations h1 {
    font-size: 30px;
  }

  .home .informations .job-title {
    font-size: 26px;
  }

  .home .informations p {
    font-size: 20px;
  }

  .footer-controls {
    justify-content: center;
  }
}

@media (max-width: 1120px) {
  .site-footer {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
    justify-items: center;
    padding: 60px 20px 30px;
  }

  .footer-social-media {
    justify-content: center;
  }
}

@media (max-width: 800px) {
  .menu-toggle {
    display: block;
  }

  .header .menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 14, 22, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
  }

  .header .menu.menu-open {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .header .menu .menu-list {
    flex-direction: column;
    gap: 12px;
  }

  .header .menu .menu-list a {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 24px;
  }

  .header .menu .menu-list a i {
    display: inline-block;
    width: 20px;
    text-align: center;
    color: var(--primary-color);
  }

  .header .menu li a:hover,
  .header .menu li button:hover {
    background-color: transparent !important;
    color: inherit !important;
  }

  .home {
    flex-direction: column;
    min-height: auto;
    gap: 30px;
    padding: 40px 0;
  }

  .home .informations {
    max-width: 100%;
    text-align: center;
    align-items: center;
  }

 
  .footer-column {
    justify-self: center;
  }

  .home .informations h1 {
    font-family: var(--font-secondary);
    font-size: 28px;
  }

  .home .informations .job-title {
    font-size: 24px;
  }

  .home .informations p {
    font-size: 18px;
  }

  .home .photo-container .photo {
    max-width: 300px;
  }

  .about-metrics {
    flex-direction: column;
  }

  .projects .project {
    max-width: 380px;
  }

  .project.active.in-view:nth-child(odd) {
    animation: fadeInLeft 0.8s var(--timing-function-smooth) 0.2s forwards;
  }

  .project.active.in-view:nth-child(even) {
    animation: fadeInRight 0.8s var(--timing-function-smooth) 0.2s forwards;
  }

  .skills .container-skills {
    padding: 15px;
  }

  .certificates-slide a {
    width: 300px;
    height: 225px;
  }

  .form-container {
    padding: 50px 15px;
  }

  .site-footer {
    padding: 50px 20px 20px;
    margin-top: -28px;
  }
}

@media (min-width: 768px) {
  .skills .decorative-glow-1 {
    width: 18rem;
    height: 18rem;
  }
  .skills .decorative-glow-2 {
    width: 24rem;
    height: 24rem;
  }
}

@media (max-width: 767px) {
  .desktop-view {
    display: none;
  }
  .mobile-view {
    display: flex;
  }
}

@media (max-width: 430px) {
  body {
    background-color: #191818;
    background-image: none;
  }

  .home .informations h1 {
    font-size: 26px;
  }

  .home .informations .job-title {
    font-size: 22px;
  }

  .home .informations p {
    font-size: 16px;
  }

  .home .photo-container img {
    max-width: 320px;
  }

  .projects {
    padding: 10px;
  }

  .btn {
    font-size: 14px;
  }

  .skills {
    margin-top: 25px;
  }

  .skills .container-skills .skill-item {
    padding: 10px;
  }

  .form-container .title {
    font-size: 28px;
  }

  .footer-column {
    padding: 0px;
  }

  .site-footer {
    padding: 50px 20px 20px;
    margin-top: -24px;
  }

  #scrollTopBtn {
    width: 45px;
    height: 45px;
    right: 20px;
    bottom: 20px;
    font-size: 18px;
  }
}
