/* =========================================================
   GLOBAL VARIABLES
   ========================================================= */

:root {
  --orange: #ff7a00;
  --orange-dark: #e56700;

  --dark: #111827;
  --dark-soft: #1f2937;

  --gray: #4b5563;
  --gray-light: #6b7280;

  --light-bg: #f7f8fa;
  --white: #ffffff;

  --border: #e5e7eb;
  --border-dark: #374151;

  --card-dark: #1f1f1f;

  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);

  --transition: all 0.25s ease;
}


/* =========================================================
   RESET
   ========================================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", Arial, sans-serif;
  background: var(--light-bg);
  color: var(--dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

button,
input,
textarea {
  font-family: inherit;
}

a {
  color: inherit;
}

section {
  padding: 85px 40px;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.row {
  width: 100%;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

nav {
  width: 100%;
  min-height: 78px;
  padding: 15px 50px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);

  position: sticky;
  top: 0;
  z-index: 1000;

  backdrop-filter: blur(12px);
}

nav figure {
  display: flex;
  align-items: center;
}

#perosoal-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 10px;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav__link--list {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__link--anchor {
  position: relative;

  color: var(--dark-soft);
  text-decoration: none;

  font-size: 0.92rem;
  font-weight: 500;

  transition: var(--transition);
}

.nav__link--anchor::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: -7px;

  width: 0;
  height: 2px;

  background: var(--orange);

  transition: width 0.25s ease;
}

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

.nav__link--anchor:hover::after {
  width: 100%;
}

.theme-toggle {
  width: 40px;
  height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;

  color: var(--dark);
  font-size: 17px;

  cursor: pointer;

  transition: var(--transition);
}

.theme-toggle:hover {
  color: var(--orange);
  border-color: var(--orange);
}


/* =========================================================
   ABOUT / HERO
   ========================================================= */

#about-me {
  min-height: 650px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 100px 40px 90px;

  background:
    radial-gradient(
      circle at 50% 20%,
      rgba(255, 122, 0, 0.05),
      transparent 35%
    ),
    var(--light-bg);
}

.about-me__info--container {
  width: 100%;
  max-width: 850px;

  display: flex;
  flex-direction: column;
  align-items: center;

  text-align: center;
}

.about-me__picture--mask {
  width: 170px;
  height: 170px;

  margin-bottom: 28px;

  border-radius: 50%;
  overflow: hidden;

  border: 5px solid var(--orange);

  background: var(--white);

  box-shadow:
    0 10px 30px rgba(255, 122, 0, 0.15);
}

.about-me__picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-me__info--title {
  max-width: 900px;

  margin-bottom: 22px;

  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.15;

  letter-spacing: -1.5px;
  font-weight: 700;

  color: var(--dark);
}

.name-highlight {
  color: var(--orange);
  font-weight: 700;
}

.name-highlight::before {
  display: none;
}

.text--purple {
  color: var(--orange);
}

.about-me__info--para {
  max-width: 760px;

  margin-bottom: 30px;

  color: var(--gray);
  font-size: 1rem;
  line-height: 1.85;
}

.about-me__links {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 15px;
}

.about-me__link {
  width: 46px;
  height: 46px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--white);

  border: 1px solid var(--border);
  border-radius: 10px;

  box-shadow: var(--shadow-sm);

  text-decoration: none;

  transition: var(--transition);
}

.about-me__link img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.about-me__link i {
  color: var(--orange);
  font-size: 23px;
}

.about-me__link:hover {
  transform: translateY(-4px);

  border-color: var(--orange);

  box-shadow:
    0 8px 20px rgba(255, 122, 0, 0.15);
}


/* =========================================================
   SECTION HEADINGS
   ========================================================= */

.section__title {
  margin-bottom: 50px;

  text-align: center;

  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1.2;

  letter-spacing: -0.8px;

  color: var(--dark);
}

.section__title .text--purple {
  color: var(--orange);
}


/* =========================================================
   SKILLS
   ========================================================= */

#languages {
  background: var(--white);
}

.language__list {
  width: 100%;

  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));

  gap: 20px;
}

.language {
  min-height: 190px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding: 28px 20px;

  background: var(--white);

  border: 1px solid var(--border);
  border-radius: 14px;

  text-align: center;

  box-shadow: var(--shadow-sm);

  transition: var(--transition);
}

.language:hover {
  transform: translateY(-5px);

  border-color: rgba(255, 122, 0, 0.35);

  box-shadow: var(--shadow-md);
}

.language i {
  margin-bottom: 18px;

  color: var(--orange);

  font-size: 3.3rem;
}

.language p {
  color: var(--dark);

  font-size: 1rem;
  font-weight: 600;
}

/* Remove old "View Project" links from the professional Skills section */
.language a {
  display: none;
}

/* ===========================
   PROFESSIONAL PROFILE
   =========================== */

#frontend-role {
  padding: 80px 40px;
  background: var(--light-bg);
}

#frontend-role .container {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
}

#frontend-role .section__title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 28px;
  text-align: center;
  color: #111827;
  letter-spacing: -0.8px;
}

.frontend__description {
  max-width: 900px;
  margin: 0 auto 55px;
  text-align: center;
  color: #40506a;
  font-size: 1.08rem;
  line-height: 1.8;
}

/* Profile Cards */

.frontend__highlights {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

.highlight {
  width: 100%;
  min-height: 275px;
  background: var(--white);
  padding: 38px 28px;
  border-radius: 16px;
  text-align: center;
  border: 1px solid #e3e7ed;
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.06);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.highlight:hover {
  transform: translateY(-7px);
  border-color: rgba(255, 122, 0, 0.45);
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.10);
}

.highlight i {
  color: var(--orange);
  font-size: 42px;
  margin-bottom: 25px;
}

.highlight h3 {
  color: #111827;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.4;
}

.highlight p {
  color: #536176;
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 250px;
}

/* ===========================
   TABLET
   =========================== */

@media (max-width: 1100px) {

  #frontend-role {
    padding: 70px 30px;
  }

  #frontend-role .section__title {
    font-size: 36px;
  }

  .frontend__highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .highlight {
    min-height: 250px;
  }
}


/* ===========================
   MOBILE
   =========================== */

@media (max-width: 650px) {

  #frontend-role {
    padding: 55px 20px;
  }

  #frontend-role .section__title {
    font-size: 30px;
    line-height: 1.25;
  }

  .frontend__description {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 35px;
  }

  .frontend__highlights {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .highlight {
    min-height: auto;
    padding: 30px 22px;
  }

  .highlight i {
    font-size: 38px;
    margin-bottom: 20px;
  }

  .highlight h3 {
    font-size: 1.05rem;
  }

  .highlight p {
    font-size: 0.9rem;
  }
}

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

#projects {
  background: var(--white);
}

.project__list {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 24px;
}

.project {
  min-height: 390px;

  padding: 32px;

  display: flex;
  flex-direction: column;

  background: var(--white);

  border: 1px solid var(--border);
  border-radius: 16px;

  box-shadow: var(--shadow-sm);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.project:hover {
  transform: translateY(-6px);

  border-color: rgba(255, 122, 0, 0.3);

  box-shadow: var(--shadow-lg);
}

.project__info {
  height: 100%;

  display: flex;
  flex-direction: column;
}

.project__type {
  width: fit-content;

  display: inline-flex;
  align-items: center;

  margin-bottom: 16px;
  padding: 6px 10px;

  border-radius: 5px;

  background: rgba(255, 122, 0, 0.09);

  color: var(--orange);

  font-size: 0.7rem;
  font-weight: 700;

  letter-spacing: 0.8px;
}

.project__title {
  margin-bottom: 15px;

  color: var(--dark);

  font-size: 1.45rem;
  line-height: 1.35;

  letter-spacing: -0.3px;
}

.project__description {
  margin-bottom: 25px;

  color: var(--gray);

  font-size: 0.93rem;
  line-height: 1.75;
}

.project__technologies {
  display: flex;
  flex-wrap: wrap;

  gap: 8px;

  margin-top: auto;
  margin-bottom: 25px;
}

.project__technologies span {
  padding: 6px 10px;

  background: #f8fafc;

  border: 1px solid var(--border);
  border-radius: 5px;

  color: var(--dark-soft);

  font-size: 0.74rem;
  font-weight: 600;
}

.project__links {
  display: flex;
  flex-wrap: wrap;

  gap: 10px;
}

.project__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 42px;

  padding: 10px 17px;

  background: var(--orange);

  border: 1px solid var(--orange);
  border-radius: 7px;

  color: var(--white);

  font-size: 0.85rem;
  font-weight: 600;

  text-decoration: none;

  transition: var(--transition);
}

.project__btn:hover {
  background: var(--orange-dark);

  border-color: var(--orange-dark);

  transform: translateY(-2px);
}

.project__btn--secondary {
  background: transparent;

  color: var(--dark);

  border-color: var(--border);
}

.project__btn--secondary:hover {
  background: var(--dark);

  border-color: var(--dark);

  color: var(--white);
}


/* =========================================================
   CERTIFICATES
   ========================================================= */

#certificates {
  background: var(--light-bg);

  padding: 85px 40px;
}

.certificate__list {
  max-width: 1250px;

  margin: 0 auto;

  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 22px;
}

.certificate {
  min-height: 225px;

  padding: 26px;

  display: flex;
  flex-direction: column;

  background: var(--white);

  border: 1px solid var(--border);

  border-radius: 14px;

  box-shadow: var(--shadow-sm);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.certificate:hover {
  transform: translateY(-5px);

  border-color: rgba(255, 122, 0, 0.35);

  box-shadow: var(--shadow-md);
}

.certificate h3 {
  margin-bottom: 12px;

  color: var(--dark);

  font-size: 1rem;
  line-height: 1.55;
}

.certificate p {
  margin-bottom: 20px;

  color: var(--gray-light);

  font-size: 0.88rem;
}

.certificate__btn {
  width: fit-content;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-top: auto;

  padding: 10px 16px;

  background: var(--orange);

  border: 1px solid var(--orange);
  border-radius: 7px;

  color: var(--white);

  font-size: 0.82rem;
  font-weight: 600;

  text-decoration: none;

  transition:
    background 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.certificate__btn:hover {
  background: var(--orange-dark);

  border-color: var(--orange-dark);

  transform: translateY(-2px);

  box-shadow:
    0 6px 14px rgba(255, 122, 0, 0.18);
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
  padding: 60px 40px;

  background: #111827;

  color: var(--white);

  text-align: center;
}

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

footer img {
  width: 85px;

  margin-bottom: 20px;

  border-radius: 10px;
}

footer h2 {
  margin-bottom: 5px;

  font-size: 1.25rem;
  font-weight: 600;
}

.footer__social--list {
  display: flex;
  align-items: center;
  justify-content: center;

  flex-wrap: wrap;

  gap: 25px;

  margin: 25px 0;
}

.footer__social--link {
  color: #d1d5db;

  text-decoration: none;

  font-size: 0.9rem;
  font-weight: 500;

  transition: var(--transition);
}

.footer__social--link:hover {
  color: var(--orange);
}

.footer__copyright {
  color: #9ca3af;

  font-size: 0.8rem;
}


/* =========================================================
   FLOATING CHAT BUTTON
   ========================================================= */

.chat-btn {
  position: fixed;

  right: 25px;
  bottom: 25px;

  width: 58px;
  height: 58px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--white);

  border: 1px solid var(--border);

  border-radius: 50%;

  box-shadow: var(--shadow-md);

  cursor: pointer;

  transition: var(--transition);

  z-index: 999;
}

.chat-btn img {
  width: 100%;
  height: 100%;

  border-radius: 50%;
}

.chat-btn:hover {
  transform: translateY(-4px) scale(1.04);

  box-shadow: var(--shadow-lg);
}


/* =========================================================
   CHAT MODAL
   ========================================================= */

.chat-modal {
  position: fixed;

  left: 50%;
  top: 50%;

  transform: translate(-50%, -50%);

  width: min(900px, calc(100vw - 40px));
  height: 560px;

  display: none;

  overflow: hidden;

  background: var(--white);

  border: 1px solid var(--border);

  border-radius: 18px;

  box-shadow: var(--shadow-lg);

  z-index: 9999;
}

.chat-modal.show-chat {
  display: flex;
}

.chat-half {
  width: 50%;

  padding: 32px;

  display: flex;
  flex-direction: column;

  gap: 18px;

  overflow-y: auto;
}

.chat-half::-webkit-scrollbar {
  width: 5px;
}

.chat-half::-webkit-scrollbar-thumb {
  background: #d1d5db;

  border-radius: 10px;
}

.chat-about {
  background: #f8fafc;

  border-right: 1px solid var(--border);
}

.chat-profile {
  display: flex;
  align-items: center;

  gap: 12px;
}

.chat-profile-img {
  width: 58px;
  height: 58px;

  object-fit: cover;

  border: 3px solid var(--orange);

  border-radius: 50%;
}

.chat-profile p {
  color: var(--dark);

  font-size: 0.85rem;
}

.chat-about-text {
  color: var(--gray);

  font-size: 0.86rem;

  line-height: 1.65;
}

.chat-subtitle {
  color: var(--orange);

  font-size: 0.9rem;
}

.chat-icons {
  display: flex;
  flex-wrap: wrap;

  gap: 10px;
}

.chat-icons img {
  width: 42px;
  height: 42px;

  object-fit: contain;

  padding: 5px;

  background: var(--white);

  border: 1px solid var(--border);

  border-radius: 7px;

  box-shadow: var(--shadow-sm);

  transition: var(--transition);
}

.chat-icons img:hover {
  transform: translateY(-3px);

  border-color: var(--orange);
}

.chat-contact h3,
.chat-about h3 {
  color: var(--dark);

  font-size: 1.2rem;
}

.chat-contact input,
.chat-contact textarea {
  width: 100%;

  padding: 13px 14px;

  margin-bottom: 12px;

  background: var(--white);

  border: 1px solid var(--border);

  border-radius: 7px;

  color: var(--dark);

  font-size: 0.9rem;

  outline: none;

  transition: var(--transition);
}

.chat-contact input:focus,
.chat-contact textarea:focus {
  border-color: var(--orange);

  box-shadow:
    0 0 0 3px rgba(255, 122, 0, 0.08);
}

.chat-contact textarea {
  height: 140px;

  resize: none;
}

.chat-send-btn {
  width: 100%;

  padding: 13px;

  background: var(--orange);

  color: var(--white);

  border: 1px solid var(--orange);

  border-radius: 7px;

  font-size: 0.9rem;
  font-weight: 600;

  cursor: pointer;

  transition: var(--transition);
}

.chat-send-btn:hover {
  background: var(--orange-dark);

  border-color: var(--orange-dark);
}


/* =========================================================
   POPUP
   ========================================================= */

.popup {
  position: fixed;

  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(15, 23, 42, 0.6);

  visibility: hidden;

  opacity: 0;

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;

  z-index: 10000;
}

.popup-show {
  visibility: visible;

  opacity: 1;
}

.popup-content {
  width: min(400px, calc(100vw - 40px));

  padding: 30px;

  background: var(--white);

  border-radius: 14px;

  text-align: center;

  box-shadow: var(--shadow-lg);
}

.popup-content p {
  margin-bottom: 20px;

  color: var(--gray);

  font-size: 0.9rem;
}

.popup-btn {
  padding: 10px 20px;

  background: var(--orange);

  color: var(--white);

  border: none;

  border-radius: 7px;

  cursor: pointer;

  font-size: 0.9rem;
  font-weight: 600;

  transition: var(--transition);
}

.popup-btn:hover {
  background: var(--orange-dark);
}


/* =========================================================
   SUCCESS CHECKMARK
   ========================================================= */

.success-check {
  display: flex;
  justify-content: center;

  margin-bottom: 18px;
}

.checkmark {
  width: 55px;
  height: 55px;

  position: relative;

  background: #4caf50;

  border-radius: 50%;

  animation: popIn 0.4s ease forwards;
}

.checkmark::after {
  content: "";

  position: absolute;

  left: 17px;
  top: 11px;

  width: 18px;
  height: 32px;

  border-right: 4px solid white;
  border-bottom: 4px solid white;

  transform: rotate(45deg) scale(0);

  transform-origin: center;

  animation: drawCheck 0.4s ease 0.3s forwards;
}

@keyframes popIn {
  0% {
    transform: scale(0);
  }

  80% {
    transform: scale(1.15);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes drawCheck {
  0% {
    transform: rotate(45deg) scale(0);
  }

  100% {
    transform: rotate(45deg) scale(1);
  }
}


/* =========================================================
   GENERAL ANIMATIONS
   ========================================================= */

.fade-in {
  opacity: 0;

  animation: fadeIn 1.2s ease forwards;
}

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

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

.slide-up {
  opacity: 0;

  animation: slideUp 1s ease forwards;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

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

.hover-pop {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.hover-pop:hover {
  transform: translateY(-5px);

  box-shadow: var(--shadow-lg);
}


/* =========================================================
   DARK MODE
   ========================================================= */

body.dark-mode {
  background: #111111;

  color: #f3f4f6;
}

body.dark-mode nav {
  background: rgba(20, 20, 20, 0.96);

  border-color: #333;
}

body.dark-mode .nav__link--anchor {
  color: #e5e7eb;
}

body.dark-mode .theme-toggle {
  color: #f3f4f6;

  border-color: #444;
}

body.dark-mode #about-me,
body.dark-mode #frontend-role,
body.dark-mode #certificates {
  background: #151515;
}

body.dark-mode #languages,
body.dark-mode #projects {
  background: #111111;
}

body.dark-mode .section__title,
body.dark-mode .about-me__info--title,
body.dark-mode .project__title,
body.dark-mode .certificate h3,
body.dark-mode .highlight h3,
body.dark-mode .language p {
  color: #ffffff;
}

body.dark-mode .about-me__info--para,
body.dark-mode .frontend__description,
body.dark-mode .project__description,
body.dark-mode .certificate p,
body.dark-mode .highlight p {
  color: #c7c7c7;
}

body.dark-mode .about-me__link,
body.dark-mode .language,
body.dark-mode .highlight,
body.dark-mode .project,
body.dark-mode .certificate {
  background: #1c1c1c;

  border-color: #333;
}

body.dark-mode .project__technologies span {
  background: #272727;

  border-color: #3a3a3a;

  color: #e5e7eb;
}

body.dark-mode .project__btn--secondary {
  color: #ffffff;

  border-color: #444;
}

body.dark-mode .chat-modal {
  background: #1c1c1c;

  border-color: #333;
}

body.dark-mode .chat-about {
  background: #171717;

  border-color: #333;
}

body.dark-mode .chat-contact h3,
body.dark-mode .chat-about h3,
body.dark-mode .chat-profile p {
  color: #ffffff;
}

body.dark-mode .chat-about-text {
  color: #c7c7c7;
}

body.dark-mode .chat-contact input,
body.dark-mode .chat-contact textarea {
  background: #222;

  color: #ffffff;

  border-color: #444;
}

body.dark-mode .chat-icons img {
  background: #222;

  border-color: #444;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

  section {
    padding: 70px 30px;
  }

  nav {
    padding: 15px 30px;
  }

  .language__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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


/* =========================================================
   SMALL TABLET
   ========================================================= */

@media (max-width: 800px) {

  nav {
    padding: 14px 20px;
  }

  .nav__right {
    gap: 15px;
  }

  .nav__link--list {
    gap: 17px;
  }

  .nav__link--anchor {
    font-size: 0.82rem;
  }

  #about-me {
    padding: 80px 25px;
  }

  .about-me__info--title {
    font-size: 2.3rem;
  }

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

  .frontend__highlights {
    grid-template-columns: 1fr;
    max-width: 550px;
  }

  .project__list {
    grid-template-columns: 1fr;
  }

  .chat-modal {
    height: 600px;
  }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

  section {
    padding: 60px 20px;
  }

  nav {
    min-height: 68px;

    padding: 10px 15px;
  }

  #perosoal-logo {
    width: 48px;
    height: 48px;
  }

  .nav__link--list {
    gap: 12px;
  }

  .nav__link--anchor {
    font-size: 0.72rem;
  }

  .theme-toggle {
    width: 34px;
    height: 34px;

    font-size: 14px;
  }

  #about-me {
    min-height: auto;

    padding: 70px 20px;
  }

  .about-me__picture--mask {
    width: 140px;
    height: 140px;
  }

  .about-me__info--title {
    font-size: 2rem;

    letter-spacing: -0.8px;
  }

  .about-me__info--para {
    font-size: 0.9rem;
  }

  .section__title {
    margin-bottom: 35px;

    font-size: 1.9rem;
  }

  .language__list {
    grid-template-columns: 1fr 1fr;

    gap: 14px;
  }

  .language {
    min-height: 160px;

    padding: 22px 12px;
  }

  .language i {
    font-size: 2.7rem;
  }

  .project {
    min-height: auto;

    padding: 24px;
  }

  .project__title {
    font-size: 1.25rem;
  }

  .project__description {
    font-size: 0.88rem;
  }

  .project__links {
    flex-direction: column;
  }

  .project__btn {
    width: 100%;
  }

  .certificate__list {
    grid-template-columns: 1fr;

    gap: 16px;
  }

  .certificate {
    min-height: 205px;

    padding: 22px;
  }

  .certificate__btn {
    width: 100%;
  }

  footer {
    padding: 50px 20px;
  }

  .footer__social--list {
    gap: 17px;
  }

  .chat-btn {
    width: 54px;
    height: 54px;

    right: 18px;
    bottom: 18px;
  }

  .chat-modal {
    width: calc(100vw - 24px);

    height: calc(100vh - 40px);

    flex-direction: column;
  }

  .chat-half {
    width: 100%;

    padding: 24px;
  }

  .chat-about {
    border-right: none;

    border-bottom: 1px solid var(--border);
  }
}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 400px) {

  .nav__link--list {
    gap: 8px;
  }

  .nav__link--anchor {
    font-size: 0.66rem;
  }

  .about-me__info--title {
    font-size: 1.75rem;
  }

  .language__list {
    grid-template-columns: 1fr;
  }

  .language {
    min-height: 145px;
  }

  .project {
    padding: 20px;
  }
}
/* ===========================
   PROFESSIONAL CERTIFICATIONS
   =========================== */

#certificates {
    padding: 75px 40px;
}

#certificates .section__title {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: #111827;
    letter-spacing: -0.8px;
}

.certificate__list {
    max-width: 1250px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.certificate {
    background: #ffffff;
    border: 1px solid #e2e6eb;
    border-radius: 14px;
    padding: 25px;
    min-height: 225px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    transition: all 0.3s ease;
}

.certificate:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 122, 0, 0.45);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.10);
}

.certificate h3 {
    font-size: 1rem;
    line-height: 1.5;
    color: #111827;
    margin-bottom: 12px;
}

.certificate p {
    font-size: 0.9rem;
    color: #667085;
    line-height: 1.6;
    margin-bottom: 20px;
}

.certificate__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin-top: auto;
    padding: 10px 16px;
    background: var(--orange);
    color: #ffffff;
    border-radius: 7px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.certificate__btn:hover {
    background: #e56d00;
    transform: translateY(-2px);
}

/* TABLET */
@media (max-width: 1000px) {

    #certificates {
        padding: 65px 30px;
    }

    #certificates .section__title {
        font-size: 36px;
    }

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

/* MOBILE */
@media (max-width: 600px) {

    #certificates {
        padding: 55px 20px;
    }

    #certificates .section__title {
        font-size: 30px;
        margin-bottom: 35px;
    }

    .certificate__list {
        grid-template-columns: 1fr;
    }

    .certificate {
        min-height: 210px;
        padding: 22px;
    }

    .certificate__btn {
        width: 100%;
    }
}