/*=============== Google Fonts ===============*/
@import url("https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;500;600;700&family=Roboto:wght@400;500;700&display=swap");

/*=============== Css Variables ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /* --primary-color: #4a4a4a; */
  --primary-color: #272605;
  --primary-color-alt: #575757;
  --linear-gradient: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.95) 34%,
    rgba(255, 255, 255, 0.95)
  );
  --title-color: #4a4a4a;
  --text-color: #272605;
  --text-color-alt: #999;
  /* --bg-color: #fff; */
  --bg-color: #f8f5e6;
  --bg-color-alt: #e9ecef;
  --border-color: #f1f1f1;

  /*========== Font and typography ==========*/
  --roboto-font: "Roboto", sans-serif;
  --mono-font: "Roboto Mono", monospace;

  --fs-h1: 2.75rem;
  --fs-h2: 2.25rem;
  --fs-lg: 1.125rem;
  --fs-base: 1.2rem;
  --fs-sm: 0.875rem;
  --fs-xs: 0.75rem;

  /*========== Font Weight ==========*/
  --medium: 500;
  --semibold: 600;
  --bold: 700;
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.5em;
}

h1,
h2,
h3,
h4 {
  font-family: var(--mono-font);
  font-weight: var(--bold);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
}

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

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

.section__title,
.year-section > h3 {
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  color: #222;
}

.section__title::after,
.year-section > h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #ff6f00, #ffa726);
  border-radius: 2px;
}
/*=============== loader ===============*/
/* ========== Loader Wrapper (Full Screen Overlay) ========== */
.loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(14, 14, 14, 0.4); /* transparent dark overlay */
  backdrop-filter: blur(5px); /* adds soft blur */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

/* ========== Loader Spinner ========== */
.loader {
  transform: rotateZ(45deg);
  perspective: 1000px;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  color: #fff;
  position: relative;
}

.loader:before,
.loader:after {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: inherit;
  height: inherit;
  border-radius: 50%;
  transform: rotateX(70deg);
  animation: spin 1s linear infinite;
}

.loader:after {
  color: #FF3D00;
  transform: rotateY(70deg);
  animation-delay: 0.4s;
}

/* ========== Spin Keyframes ========== */
@keyframes spin {
  0%, 100% {
    box-shadow: 0.2em 0px 0 0 currentcolor;
  }
  12% {
    box-shadow: 0.2em 0.2em 0 0 currentcolor;
  }
  25% {
    box-shadow: 0 0.2em 0 0 currentcolor;
  }
  37% {
    box-shadow: -0.2em 0.2em 0 0 currentcolor;
  }
  50% {
    box-shadow: -0.2em 0 0 0 currentcolor;
  }
  62% {
    box-shadow: -0.2em -0.2em 0 0 currentcolor;
  }
  75% {
    box-shadow: 0 -0.2em 0 0 currentcolor;
  }
  87% {
    box-shadow: 0.2em -0.2em 0 0 currentcolor;
  }
}



/*=============== Reusable Css ===============*/
.container {
  /* background-color: red; */
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 0.9rem;
  padding-right: 0.9rem;
}

.grid {
  display: grid;
}

.section {
  padding-top: 4rem;
  padding-bottom: 4rem;
  /* background-color: red; */
}

.section__title {
  font-size: var(--fs-h2);
  line-height: 1.17em;
  font-weight: var(--medium);
  margin-bottom: 1.12em;
}

.text-lg {
  font-size: var(--fs-lg);
  line-height: 1.67em;
}

.text-sm {
  font-size: var(--fs-sm);
  line-height: 1.43em;
}

/*=============== Header ===============*/
.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: 0.3s;
}

.nav {
  /* background-color: red; */
  height: calc(var(--header-height) + 0.875rem);
  display: flex;
  align-items: flex-end;
}

.nav__list {
  display: flex;
  column-gap: 3.25rem;
}

.nav__link {
  color: #fff;
  font-size: 0.9rem;
  font-weight: var(--bold);
  font-family: var(--mono-font);
  text-transform: uppercase;
  position: relative;
  transition: 0.3s;
}

.nav__link:hover {
  opacity: 0.5;
}

.nav__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: -0.5rem;
  width: 7px;
  height: 2px;
  background-color: #fff;
  opacity: 0;
  transition: 0.3s;
}

.nav__link:hover::after {
  opacity: 1;
}

.nav__close,
.nav__toggle {
  display: none;
}

/* Active Link */

.active-link {
  opacity: 0.5;
}

.active-link::after {
  opacity: 1;
}

/* Scroll Header */
.scroll-header {
  position: fixed;
  background-color: var(--bg-color);
  box-shadow: 0 5px 8px 0 rgba(0 0 0 / 14%);
}

.scroll-header .nav__link {
  color: var(--text-color);
}

.scroll-header .nav {
  align-items: center;
}

.scroll-header .nav__link::after {
  background-color: var(--text-color);
}

.scroll-header .nav__link:hover,
.scroll-header .active-link {
  color: var(--primary-color);
}

/*=============== Home ===============*/
.home {
  background: url("../img/home-bg.jpeg");
  background-size: cover;
  background-position: 50%;
  padding-top: 5.5rem;
  margin-bottom: 2.5rem;
  position: relative;
  /* z-index: 100; */
}

.home::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #2a2a2a;
  opacity: 80%;
}

.home__container {
  grid-template-columns: 4fr 8fr;
  column-gap: 1.875rem;
}

.home__img,
.home__data {
  z-index: 10;
}

.home__img {
  width: 90%;
  height: 380px;
  object-fit: cover;
  border-radius: 0.3rem;
  transform: translateY(3.125rem);
  box-sizing: 0 0 27px rgb(96 96 96 / 35%);
}

.home__name,
.home__work,
.home__list,
.home__social-link {
  color: #f8f5e6;
  font-family: var(--mono-font);
}

.home__name {
  font-size: var(--fs-h1);
  line-height: 1.14em;
  margin: 0.9em 0 0.23em;
}

.home__work {
  margin-bottom: 2.5em;
}

.home__list dt {
  float: left;
  font-weight: var(--bold);
  opacity: 0.4;
}

.home__list dd {
  padding-left: 6.25em;
}

.home__list dd:not(:last-child) {
  margin-bottom: 0.94em;
}

.home__social-link {
  margin: 1.25rem 0 2.2rem;
}

.home__social-link {
  font-size: 1.7rem;
  line-height: 1.36em;
  margin-right: 0.25rem;
  opacity: 0.4;
  transition: 0.3s;
}

.home__social-link:hover {
  opacity: 1;
}

.home__details {
  margin-bottom: 1.67em;
  text-align: justify;
  color: #f8f5e6;
}
/* -------------------------------
   Responsive Design for Mobile
---------------------------------- */
@media (max-width: 768px) {
  .home__container {
    display: flex;
    flex-direction: column;
    text-align: center;
  }

  .home__img {
    width: 70%;
    height: auto;
    margin-bottom: 1.5rem;
    transform: none;
  }

  .home__socials {
    flex-direction: column;
    align-items: center;
  }

  .home__name {
    font-size: 1.8rem;
  }

  .download-btn {
    margin-top: 1rem;
    justify-content: center;
  }
}

/*=============== About ===============*/

.about__details {
  margin-bottom: 1.67em;
  text-align: justify;
}

/*=============== Buttons ===============*/

.button {
  position: relative;
  display: inline-block;
  background-color: var(--primary-color);
  color: #fff;
  padding: 1.1em 3.3em;
  border-radius: 1.56rem;
  font-weight: var(--semibold);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  cursor: pointer;
  user-select: none;
  border: none;
  overflow: hidden;
  transition: color 0.4s ease, transform 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  z-index: 0;
}

.button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #ff6f00;
  transition: left 0.4s ease;
  border-radius: 1.56rem;
  box-shadow: 0 10px 25px rgba(255, 111, 0, 0.5);
  z-index: -1;
}

.button:hover::before {
  left: 0;
}

.button:hover {
  color: #fff;
  box-shadow: 0 10px 25px rgba(255, 111, 0, 0.7);
  transform: translateY(-3px);
  z-index: 1;
}

.button--flex {
  display: inline-flex;
  align-items: center;
  column-gap: 0.5rem;
  position: relative;
  z-index: 1;
}

.button i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.button:hover i {
  transform: translateX(5px) rotate(15deg) scale(1.2);
}

/* Responsive Styles for Mobile */
@media (max-width: 480px) {
  .button {
    padding: 0.9em 2em;
    font-size: 0.85rem;
    width: 100%;
    text-align: center;
  }

  .button--flex {
    justify-content: center;
  }

  .button i {
    font-size: 1rem;
  }
}


/*=============== Publications ===============*/

.publications__container {
  grid-template-columns: repeat(3, 1fr);
  gap: 1.875rem;
}

.publications__items {
  border: 1px solid var(--border-color);
  padding: 2.5rem 1.25rem 1.875rem;
  text-align: center;
}

.icon__box {
  border: 1px solid var(--border-color);
  width: 82px;
  height: 82px;
  border-radius: 50%;
  margin: 0 auto;
  margin-bottom: 1.25rem;
  position: relative;
  display: flex;
}
.publications__icon {
  width: 32px;
  margin: auto;
}

.publications__dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  /* background-color: var(--text-color); */
  animation: publication-dot 2s linear infinite;
  animation-play-state: paused;
}

.publications__items:hover .publications__dot {
  animation-play-state: running;
}

@keyframes publication-dot {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(1turn);
  }
}

.dot {
  width: 13px;
  height: 13px;
  background-color: var(--title-color);
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0.9rem;
}

.publications__title {
  margin-bottom: 0.8rem;
}

/*=============== Projects ===============*/

.project-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  flex-wrap: wrap;
  z-index: 1;
  place-content: space-evenly;
  margin-top: 50px;
}

.project-container .Caard {
  position: relative;
  width: 220px;
  height: 280px;
  margin: 18px;
  box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.5);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  border-left: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(5px);
}

.project-container .Caard .content {
  padding: 6px;
  text-align: center;
  transition: 0.5s;
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  color: #111 !important;
}

.project-container .Caard .content h2 {
  position: absolute;
  top: -40px;
  right: 30px;
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.project-container .Caard .content h3 {
  font-size: 1.8em;
  color: #111 !important;
  z-index: 1;
}

.project-container .Caard .content p {
  margin-top: 85px;
  margin-bottom: 24px; /* space below text */
  font-size: 0.95em;
  color: #111 !important;
  font-weight: 400;
  width: 100%;
  text-align: center;
  display: block;
}

.project-container .Caard .content a,
.project-container .Caard .content a.button,
.project-container .Caard .content a.button--flex {
  background: var(--primary-color, #272605);
  color: #fff !important;
  margin: 0 auto;
  display: block;
  min-width: 100px;
  text-align: center;
  padding: 8px 20px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 500;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  transition: background 0.3s, color 0.3s;
}

.project-container .Caard .content img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  position: absolute;
  top: 0;
  left: 0;
}

/* Responsive behavior for mobile screens */
@media (max-width: 600px) {
  .project-container .Caard {
    flex: 1 1 calc(50% - 20px);
    height: 260px;
  }

  .project-container .Caard .content p {
    margin-top: 60px;
    font-size: 0.85em;
    margin-bottom: 18px;
  }

  .project-container .Caard .content h3 {
    font-size: 1.5em;
  }
}
/*=============== emoji Animations ===============*/

.emoji {
  display: inline-block;
  margin-right: 8px;
  font-size: 1.8rem; /* Increased size for better visibility */
}

/* 🤖 Bounce Animation */
.bounce {
  animation: bounce 1.5s infinite;
}
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* 🌐 Pulse Animation */
.pulse {
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

/* 🖥️ Heartbeat Animation (Backend Engineer) */
.heartbeat {
  animation: heartbeat 1.5s infinite;
}
@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  14% {
    transform: scale(1.3);
  }
  28% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.3);
  }
  70% {
    transform: scale(1);
  }
}

/* ⚙️ Swing Animation */
.swing {
  animation: swing 1.5s infinite ease-in-out;
}
@keyframes swing {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(15deg);
  }
  50% {
    transform: rotate(-10deg);
  }
  75% {
    transform: rotate(5deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

/* 💻 Wiggle Animation */
.wiggle {
  animation: wiggle 1s ease-in-out infinite;
}
@keyframes wiggle {
  0%,
  100% {
    transform: rotate(0deg);
  }
  20% {
    transform: rotate(-5deg);
  }
  40% {
    transform: rotate(5deg);
  }
  60% {
    transform: rotate(-5deg);
  }
  80% {
    transform: rotate(5deg);
  }
}

/*=============== Tech stack ===============*/

.tech-stack-container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 30px 20px;
  text-align: center;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9f9f9;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.tech-stack-container h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: #222;
}

.tech-stack-container .card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
}

.tech-stack-container .card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  padding: 20px;
  cursor: default;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tech-stack-container .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.tech-stack-container .card img {
  width: 50px;
  height: 50px;
  margin-bottom: 12px;
}

.tech-stack-container .card span {
  font-size: 1rem;
  color: #444;
  font-weight: 500;
}

/* Responsive font size on smaller screens */
@media (max-width: 480px) {
  .tech-stack-container h2 {
    font-size: 1.8rem;
  }

  .tech-stack-container .card {
    padding: 15px;
  }

  .tech-stack-container .card img {
    width: 40px;
    height: 40px;
  }

  .tech-stack-container .card span {
    font-size: 0.9rem;
  }
}

/*=============== Talks ===============*/

/* Layout */
.talk-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* Left: Text section */
.talk-text {
  flex: 1;
  min-width: 280px;
  max-width: 600px;
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
}

/* Right: Carousel */
.carousel-wrapper {
  flex: 1;
  min-width: 280px;
  max-width: 600px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.carousel-track {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  scroll-behavior: smooth;
  overflow-x: auto;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-card {
  flex: 0 0 auto;
  width: 280px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.carousel-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.carousel-card:hover {
  transform: translateY(-5px);
}

/* Responsive layout */
@media (max-width: 768px) {
  .talk-row {
    flex-direction: column;
    align-items: center;
  }

  .talk-text,
  .carousel-wrapper {
    max-width: 100%;
  }

  .carousel-card {
    width: 220px;
  }

  .carousel-card img {
    height: 140px;
  }
}

/*==========Hyperref===================*/
.hyperref {
  color: #e8e6ae;
}
/*==========Hyperref2===================*/
.hyperref2 {
  color: #4c4c36;
}
/*=============== Testimonials ===============*/

.testimonials__bg {
  background: url(../img/bg.jpg);
  background-size: cover;
  background-position: 50%;
  position: relative;
}

.testimonials__bg::before {
  content: "";
  background: var(--linear-gradient);
  height: 100%;
  position: absolute;
  left: 0;
  right: 0;
}

.testimonial__icon {
  height: 88px;
  width: 88px;
  border-radius: 50%;
  position: absolute;
  top: -2.75rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--bg-color);
  font-size: 1.75rem;
  color: var(--primary-color);
  padding-top: 2.75rem;
  text-align: center;
}

.testimonial__container {
  padding-top: 5rem;
  padding-bottom: 7.8rem;
}

.testimonial__item {
  padding: 0 5.75rem;
}

.testimonial__description,
.author__project,
.author__name {
  color: #fff;
}

.author__name {
  text-transform: uppercase;
  margin-bottom: 0.56em;
  font-weight: 400;
}

.author__project {
  font-style: italic;
  opacity: 0.7;
  margin-bottom: 1.25em;
}

.testimonial__description {
  text-align: justify;
}

.ruler {
  width: 100%;
  height: 1px;
  background-color: #a98a79;
  margin-bottom: 1.25rem;
}

.swiper-button-next:after,
.swiper-button-prev::after {
  content: "";
}
.swiper-button-next img,
.swiper-button-prev img {
  width: 20px;
  height: 20px;
}

.swiper-pagination-bullets.swwiper-pagination-horizontal {
  bottom: 3.25rem;
}

.swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: transparent;
  border: 1px solid #fff;
  opacity: 1;
  margin: 0 3px !important;
}

.swiper-pagination-bullet-active {
  background-color: #fff;
}

/*=============== News ===============*/
.news__container {
  grid-template-columns: repeat(3, 1fr);
  column-gap: 1.875rem;
  margin-bottom: 2.5rem;
}

.news__img {
  vertical-align: middle;
}

.news__content {
  border: 1px solid var(--border-color);
  padding: 1.25rem 1.875rem 2.5rem 1.25rem;
}

.news__date {
  text-transform: uppercase;
  color: var(--text-color-alt);
  margin-bottom: 0.8em;
}

.news__title {
  margin-bottom: 1.1em;
}

.news__description {
  color: var(--text-color-alt);
  text-align: justify;
}
/*=============== Contact ===============*/
.contact {
  background: url(../img/bg4.jpg);
  background-size: cover;
  background-position: 50%;
  position: relative;
  padding: 2rem 0;
}

.contact::before {
  content: "";
  background: var(--linear-gradient);
  height: 100%;
  width: 100%;
  position: absolute;
  left: 0;
  top: 0;
}

.contact__content {
  z-index: 10;
  position: relative;
}

.contact__container {
  display: flex;
  flex-direction: column; /* Stack vertically */
  justify-content: center;
  align-items: center;
  gap: 2rem;
  width: 100%;
  padding: 2rem 1rem;
  height: auto;
}

.contact .section__title,
.contact__list,
.contact__social-link,
::placeholder,
.contact__input,
.contact__form-title,
.footer__copy {
  color: #f8f5e6;
  font-family: var(--mono-font);
}

.contact__info,
.contact__form,
.contact__socials {
  width: 100%;
  max-width: 500px;
}

.contact__list {
  margin-bottom: 3.25rem;
}

.contact__list dt {
  float: left;
  font-weight: var(--bold);
  text-transform: uppercase;
}

.contact__list dd {
  margin-bottom: 0.94em;
}

.contact__form {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.contact__form-title {
  margin-bottom: 1.25em;
}

.contact__input-div {
  margin-bottom: 0.94em;
}

.contact__input {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: 3px;
  padding: 0.625rem;
  box-sizing: border-box;
}

.textarea {
  height: 7.2rem;
  resize: none;
}

.contact__input:focus {
  box-shadow: inset 0 0 5px 0 #fff;
}

.contact__message {
  position: absolute;
  bottom: 34%;
  margin-top: 1.25rem;
  left: 135px;
  font-family: var(--mono-font);
  color: #fff;
}

.color-light {
  opacity: 1;
}

.color-dark {
  opacity: 0.4;
}

.contact__button {
  margin-top: 1.875rem;
  width: 100%;
  box-shadow: 0 1px 29px rgb(0 0 0 / 40%);
}



/* Footer Copy */
.footer__copy {
  opacity: 0.4;
  margin-top: 2rem;
  text-align: center;
  color: #f96d00;
  width: 100%;
  padding: 1rem;
  box-sizing: border-box;
  font-size: 16px;
}

/* Socials Container */
.contact__socials {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 0;
  margin-top: 3rem;
  flex-wrap: wrap;
}

/* Social link item */
.contact__socials li {
  margin: 0;
  padding: 0;
}

/* Social Links */
.contact__social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: #3d3d3d;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 8px;
  transition: all 0.3s ease-in-out;
  background: transparent;
  border: 1px solid transparent;
  white-space: nowrap;
}

/* Icon Style */
.social-icon {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  padding: 6px;
  background: rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease-in-out, background 0.3s ease-in-out;
}

/* Hover Effects */
.contact__social-link:hover {
  border: 1px solid rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.contact__social-link:hover .social-icon {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.4);
}
.contact__info, .contact__form, .contact__socials {
    width: 100%;
    max-width: 1000px;
}

/* Mobile: Hide text, keep all icons visible */
@media (max-width: 480px) {
  .contact__social-link {
    padding: 4px;
    gap: 0;
    font-size: 0;
    border-radius: 50%;
  }

  .contact__social-link .social-icon {
    margin: 0;
    padding: 6px;
    width: 40px;
    height: 40px;
  }
}

/*=============== Responsive Breakpoints ===============*/

@media screen and (max-width: 1200px) {
  :root {
    --fs-h1: 2.25rem;
    --fs-h2: 1.75rem;
    --fs-lg: 1rem;
    --fs-base: 0.938rem;
    --fs-sm: 0.813rem;
    --fs-xs: 0.687rem;
  }
  .container {
    max-width: 960px;
  }
}

@media screen and (max-width: 992px) {
  .container {
    max-width: 720px;
  }
  .nav__menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(157, 166, 140, 0.97);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateX(-100%);
    transition: 0.3s;
  }

  .show-menu {
    transform: translateX(0);
  }
  .nav__list {
    flex-direction: column;
    row-gap: 2.125rem;
    text-align: center;
  }
  .nav__toggle,
  .nav__close {
    display: block;
  }
  .nav__close {
    font-size: 1.5rem;
    position: absolute;
    top: 2.7rem;
    left: 8%;
    cursor: pointer;
    color: #fff;
  }

  .nav__toggle {
    color: #fff;
    font-size: 1.25rem;
    opacity: 0.5;
  }

  .scroll-header .nav__toggle {
    color: var(--text-color);
    opacity: 1;
  }
}

@media screen and (max-width: 768px) {
  .container {
    max-width: 540px;
  }
}

@media screen and (max-width: 576px) {
  .home {
    padding-top: 4.4rem;
  }
  .home__img {
    width: 180px;
    margin-left: 30%;
  }
  .home__socials {
    margin-left: 40%;
  }
  .publications ol {
    padding-left: 1.25rem;
  }
}

@media screen and (max-width: 350px) {
  :root {
    --fs-h1: 2rem;
  }
  .home__details {
    font-size: 0.875rem;
  }
  .home__name {
    font-size: 1.75rem;
  }
  .home__img {
    width: 120px;
    margin-left: 30%;
  }
  .home__socials {
    margin-left: 30%;
  }
  .home__social-link {
    font-size: 1.3rem;
  }
  .section__title {
    font-size: 1.25rem;
  }
  .curriculumvitae a {
    margin-top: 1.25rem;
  }
}


#popup-message {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: rgba(40, 167, 69, 0.95); /* Success green with transparency */
  color: #fff;
  padding: 18px 24px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  display: none;
  z-index: 10000;
  font-size: 16px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  backdrop-filter: blur(6px);
  animation: fadeIn 0.6s ease-out;
  position: fixed;
  max-width: 300px;
  line-height: 1.4;
  transition: opacity 0.5s ease;
}

/* Close button inside popup */
#popup-message .close-btn {
  position: absolute;
  top: 6px;
  right: 10px;
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  padding: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

