/*===== GOOGLE FONTS =====*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

/*===== VARIABLES CSS =====*/
:root {
  --header-height: 3rem;
  --font-semi: 600;

  /*===== Colors =====*/
  --hue-color: 224;
  --first-color: hsl(var(--hue-color), 89%, 60%);
  --first-color-alt: hsl(var(--hue-color), 89%, 52%);
  --second-color: hsl(var(--hue-color), 56%, 12%);
  --text-color: #4a5568;
  --text-light: #718096;
  --body-bg: #f9fafb;
  --card-bg: #ffffff;

  /*===== Typography =====*/
  --body-font: "Poppins", sans-serif;
  --big-font-size: 2rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1.1rem;
  --normal-font-size: 0.938rem;
  --smaller-font-size: 0.75rem;

  /*===== Margins =====*/
  --mb-1: 0.5rem;
  --mb-2: 1rem;
  --mb-3: 1.5rem;
  --mb-4: 2rem;
  --mb-5: 2.5rem;
  --mb-6: 3rem;

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

@media screen and (min-width: 968px) {
  :root {
    --big-font-size: 3.5rem;
    --h2-font-size: 2rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --smaller-font-size: 0.875rem;
  }
}

/*===== BASE =====*/
*, ::before, ::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: var(--header-height) 0 0 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  color: var(--second-color);
  background-color: var(--body-bg);
  line-height: 1.6;
}

h1, h2, h3, p {
  margin: 0;
}

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

a {
  text-decoration: none;
}

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

/*===== CLASS CSS ===== */
.section-title {
  position: relative;
  font-size: var(--h2-font-size);
  color: var(--first-color);
  margin-top: var(--mb-2);
  margin-bottom: var(--mb-4);
  text-align: center;
}

.section-title::after {
  position: absolute;
  content: "";
  width: 64px;
  height: 0.2rem;
  left: 0;
  right: 0;
  margin: auto;
  top: 2.2rem;
  background-color: var(--first-color);
  border-radius: 2px;
}

.section {
  padding-top: 3.5rem;
  padding-bottom: 2.5rem;
}

/*===== LAYOUT =====*/
.bd-grid {
  max-width: 1024px;
  display: grid;
  margin-left: var(--mb-2);
  margin-right: var(--mb-2);
}

.l-header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: #fff;
  box-shadow: 0 1px 4px rgba(146, 161, 176, 0.15);
}

/*===== NAV =====*/
.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: var(--font-semi);
}

@media screen and (max-width: 767px) {
  .nav__menu {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 80%;
    height: 100%;
    padding: 2rem;
    background-color: var(--second-color);
    transition: 0.5s;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
  }
}

.nav__item {
  margin-bottom: var(--mb-4);
}

.nav__link {
  position: relative;
  color: #fff;
  transition: color 0.3s;
}

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

.nav__link:hover::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 0.18rem;
  left: 0;
  top: 2rem;
  background-color: var(--first-color);
}

.nav__logo {
  color: var(--second-color);
  font-weight: 700;
  font-size: 1.15rem;
}

.nav__toggle {
  color: var(--second-color);
  font-size: 1.5rem;
  cursor: pointer;
}

/*Active menu*/
.active-link::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 0.18rem;
  left: 0;
  top: 2rem;
  background-color: var(--first-color);
}

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

/*===== HOME =====*/
.home {
  position: relative;
  row-gap: 3rem;
  padding: 4rem 0 3rem;
}

.home__data {
  align-self: center;
}

.home__greeting {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--first-color);
  margin-bottom: 0.25rem;
}

.home__title {
  font-size: var(--big-font-size);
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

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

.home__profession {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  max-width: 480px;
}

.home__buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: var(--mb-4);
}

.home__social {
  display: flex;
  flex-direction: column;
}

.home__social-icon {
  width: max-content;
  margin-bottom: var(--mb-2);
  font-size: 1.5rem;
  color: var(--second-color);
  transition: color 0.3s, transform 0.3s;
}

.home__social-icon:hover {
  color: var(--first-color);
  transform: translateY(-2px);
}

.home__img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 260px;
}

.home__blob {
  fill: var(--first-color);
}

.home__blob-img {
  width: 360px;
}

/*BUTTONS*/
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--first-color);
  color: #fff;
  padding: 0.75rem 1.75rem;
  font-weight: var(--font-semi);
  font-size: 0.95rem;
  border-radius: 0.5rem;
  transition: 0.3s;
  border: 2px solid var(--first-color);
  cursor: pointer;
}

.button:hover {
  background-color: var(--first-color-alt);
  border-color: var(--first-color-alt);
  box-shadow: 0px 8px 24px rgba(59, 123, 246, 0.35);
  color: #fff;
}

.button--secondary {
  background-color: transparent;
  color: var(--first-color);
  border: 2px solid var(--first-color);
}

.button--secondary:hover {
  background-color: var(--first-color);
  color: #fff;
  box-shadow: 0px 8px 24px rgba(59, 123, 246, 0.25);
}

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

.about__subtitle {
  font-size: 1.35rem;
  margin-bottom: var(--mb-2);
  color: var(--second-color);
}

.about__text {
  color: var(--text-color);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.about__button-wrapper {
  margin-top: 1.5rem;
}

.about__card-highlight {
  background-color: var(--card-bg);
  padding: 1.75rem;
  border-radius: 0.75rem;
  box-shadow: 0px 4px 25px rgba(14, 36, 49, 0.08);
  border-top: 4px solid var(--first-color);
  display: flex;
  flex-direction: column;
}

.about__highlight-header {
  margin-bottom: 1.25rem;
}

.about__highlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--first-color);
  background-color: hsl(var(--hue-color), 89%, 95%);
  padding: 0.25rem 0.65rem;
  border-radius: 1rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.about__highlight-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--second-color);
  margin-bottom: 0.2rem;
}

.about__highlight-subtitle {
  font-size: 0.85rem;
  color: var(--text-light);
}

.about__info-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1rem 0 1.25rem;
}

.about__info-item {
  background-color: #f8fafc;
  padding: 0.75rem 0.35rem;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
  text-align: center;
}

.about__info-number {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--first-color);
}

.about__info-label {
  font-size: 0.675rem;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.2;
}

.about__badges {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.about__badge-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.825rem;
  color: var(--second-color);
  background-color: #f8fafc;
  padding: 0.6rem 0.75rem;
  border-radius: 0.45rem;
  border: 1px solid #edf2f7;
}

.about__badge-item i {
  color: var(--first-color);
  font-size: 1.15rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

/* ===== SKILLS =====*/
.skills__container {
  row-gap: 2rem;
}

.skills__subtitle {
  margin-bottom: var(--mb-2);
  font-size: 1.25rem;
}

.skills__text {
  margin-bottom: var(--mb-4);
  color: var(--text-color);
}

.skills__category-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--second-color);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skills__category-title i {
  color: var(--first-color);
}

/* Professional Skills - Without Percentages */
.skills__data {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--card-bg);
  padding: 0.85rem 1.15rem;
  margin-bottom: 0.85rem;
  border-radius: 0.5rem;
  box-shadow: 0px 4px 20px rgba(14, 36, 49, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 3.5px solid var(--first-color);
}

.skills__data:hover {
  transform: translateY(-2px);
  box-shadow: 0px 6px 24px rgba(14, 36, 49, 0.12);
}

.skills__names {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.skills__icon {
  font-size: 1.5rem;
  color: var(--first-color);
  width: 1.75rem;
  text-align: center;
}

.skills__name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--second-color);
}

.skills__badge {
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  background-color: hsl(var(--hue-color), 89%, 95%);
  color: var(--first-color);
  border-radius: 0.35rem;
  font-weight: 600;
  white-space: nowrap;
}

.skills__soft-wrapper {
  margin-top: 2rem;
  background-color: var(--card-bg);
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0px 4px 20px rgba(14, 36, 49, 0.07);
}

.skills__soft-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.skills__soft-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: hsl(var(--hue-color), 89%, 96%);
  color: var(--second-color);
  padding: 0.4rem 0.85rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid hsl(var(--hue-color), 89%, 88%);
}

.skills__soft-item i {
  color: var(--first-color);
}

/* ===== EXPERIENCE & EDUCATION ===== */
.experience__container {
  row-gap: 2.5rem;
}

.experience__section-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--second-color);
  margin-bottom: 1.5rem;
}

.experience__section-header i {
  color: var(--first-color);
}

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

.experience__card {
  background-color: var(--card-bg);
  padding: 1.75rem;
  border-radius: 0.75rem;
  box-shadow: 0px 4px 25px rgba(14, 36, 49, 0.08);
  border-left: 4px solid var(--first-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience__card--edu {
  border-left-color: #10b981;
}

.experience__card:hover {
  transform: translateY(-3px);
  box-shadow: 0px 8px 30px rgba(14, 36, 49, 0.13);
}

.experience__card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.experience__role {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--second-color);
}

.experience__company {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--first-color);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.experience__company--edu {
  color: #10b981;
}

.experience__period {
  font-size: 0.8rem;
  color: var(--text-light);
  background-color: #edf2f7;
  padding: 0.25rem 0.65rem;
  border-radius: 1rem;
  font-weight: 600;
}

.experience__location {
  font-size: 0.825rem;
  color: #a0aec0;
  margin-bottom: 0.75rem;
}

.experience__list {
  padding-left: 1.25rem;
  list-style: disc;
  color: var(--text-color);
  font-size: 0.9rem;
  line-height: 1.6;
}

.experience__list li {
  margin-bottom: 0.4rem;
}

.experience__badge-gpa {
  display: inline-block;
  background-color: #d1fae5;
  color: #065f46;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 0.35rem;
  margin-bottom: 0.6rem;
}

/* ===== WORK / PROJECTS ===== */
.work__container {
  row-gap: 2rem;
}

.work__card {
  background-color: var(--card-bg);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0px 4px 25px rgba(14, 36, 49, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work__card:hover {
  transform: translateY(-5px);
  box-shadow: 0px 10px 30px rgba(14, 36, 49, 0.15);
}

.work__img-box {
  position: relative;
  overflow: hidden;
  height: 220px;
  background-color: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.work__img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  position: relative;
  z-index: 1;
}

.work__card:hover .work__img-box img:not(.work__img--contain) {
  transform: scale(1.06);
}

.work__card:hover .work__img-box img.work__img--contain {
  transform: scale(1.04);
}

/* Specific styling for portrait / mobile screenshots to prevent cropping */
.work__img-box--contain {
  background: radial-gradient(circle at center, #1e293b 0%, #0b1120 100%);
}

.work__img-blur {
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  background-size: cover;
  background-position: center;
  filter: blur(14px) brightness(0.45);
  opacity: 0.85;
  transform: scale(1.15);
  z-index: 0;
  pointer-events: none;
}

.work__img-box img.work__img--contain,
.work__img--contain {
  object-fit: contain !important;
  max-height: 94%;
  width: auto !important;
  max-width: 90%;
  border-radius: 8px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  position: relative;
  z-index: 1;
}

.work__content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.work__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.work__year {
  font-size: 0.75rem;
  color: var(--first-color);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.work__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--second-color);
  margin-bottom: 0.65rem;
}

.work__description {
  font-size: 0.875rem;
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.work__tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.work__tech-tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  background-color: hsl(var(--hue-color), 89%, 95%);
  color: var(--first-color);
  border-radius: 0.35rem;
  font-weight: 600;
}

/* ===== CONTACT ===== */
.contact__subtitle {
  text-align: center;
  max-width: 600px;
  margin: -1rem auto 2.5rem;
  color: var(--text-light);
  font-size: var(--normal-font-size);
}

.contact__container {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 1.5rem;
  justify-content: center;
}

.contact__card {
  background-color: var(--card-bg);
  padding: 2rem 1.5rem;
  border-radius: 0.75rem;
  text-align: center;
  box-shadow: 0px 4px 25px rgba(14, 36, 49, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(14, 36, 49, 0.04);
}

.contact__card:hover {
  transform: translateY(-5px);
  box-shadow: 0px 10px 30px rgba(14, 36, 49, 0.15);
}

.contact__icon-box {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: hsl(var(--hue-color), 89%, 95%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--first-color);
  font-size: 1.8rem;
  transition: background-color 0.3s, color 0.3s;
}

.contact__card:hover .contact__icon-box {
  background-color: var(--first-color);
  color: #fff;
}

.contact__card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--second-color);
}

.contact__card-data {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1.25rem;
  word-break: break-all;
}

.contact__button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--first-color);
  font-size: 0.9rem;
  font-weight: 600;
  transition: gap 0.3s ease;
}

.contact__button:hover {
  gap: 0.75rem;
}

.contact__button-icon {
  font-size: 1.2rem;
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--second-color);
  color: #fff;
  text-align: center;
  font-weight: var(--font-semi);
  padding: 3rem 0 2rem;
}

.footer__title {
  font-size: 1.75rem;
  margin-bottom: 0.35rem;
}

.footer__role {
  font-size: 0.95rem;
  color: #a0aec0;
  margin-bottom: var(--mb-4);
  font-weight: 400;
}

.footer__social {
  margin-bottom: var(--mb-4);
  display: flex;
  justify-content: center;
  gap: 1.25rem;
}

.footer__icon {
  font-size: 1.4rem;
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s, transform 0.3s;
}

.footer__icon:hover {
  background-color: var(--first-color);
  transform: translateY(-3px);
}

.footer__copy {
  font-size: var(--smaller-font-size);
  color: #a0aec0;
}

/* ===== MEDIA QUERIES =====*/
@media screen and (max-width: 320px) {
  .home {
    row-gap: 2rem;
  }
  .home__img {
    width: 200px;
  }
}

@media screen and (min-width: 576px) {
  .home {
    padding: 4rem 0 2rem;
  }
  .home__social {
    padding-top: 0;
    padding-bottom: 2.5rem;
    flex-direction: row;
    align-self: flex-end;
  }
  .home__social-icon {
    margin-bottom: 0;
    margin-right: var(--mb-4);
  }
  .home__img {
    width: 300px;
    bottom: 25%;
  }
  .about__container {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    column-gap: 2rem;
    text-align: initial;
  }
  .skills__container {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
  }
  .work__container {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
    padding-top: 1rem;
  }
  .contact__container {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1.5rem;
  }
}

@media screen and (min-width: 768px) {
  body {
    margin: 0;
  }
  .section {
    padding-top: 4.5rem;
    padding-bottom: 3.5rem;
  }
  .section-title {
    margin-bottom: var(--mb-6);
  }
  .section-title::after {
    width: 80px;
    top: 3rem;
  }
  .nav {
    height: calc(var(--header-height) + 1.5rem);
  }
  .nav__list {
    display: flex;
    padding-top: 0;
  }
  .nav__item {
    margin-left: var(--mb-5);
    margin-bottom: 0;
  }
  .nav__toggle {
    display: none;
  }
  .nav__link {
    color: var(--second-color);
  }
  .home {
    padding: 8rem 0 2rem;
  }
  .home__img {
    width: 400px;
    bottom: 10%;
  }
  .about__container {
    grid-template-columns: 1.2fr 0.8fr;
    column-gap: 2.5rem;
    align-items: center;
    text-align: initial;
    padding-top: 1.5rem;
  }
  .skills__container {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2.5rem;
    align-items: flex-start;
    text-align: initial;
  }
  .work__container {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 2rem;
  }
  .contact__container {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 2rem;
  }
}

@media screen and (min-width: 992px) {
  .bd-grid {
    margin-left: auto;
    margin-right: auto;
  }
  .home {
    padding: 10rem 0 2rem;
  }
  .home__img {
    width: 450px;
  }
}
