/*===== GOOGLE FONTS =====*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");
/*===== VARIABLES CSS =====*/
:root {
  --header-height: 3rem;
  --font-semi: 600;
  /*===== Colores =====*/
  /*Purple 260 - Red 355 - Blue 224 - Pink 340*/
  /* HSL color mode */
  --hue-color: 36;
  --first-color: hsl(var(--hue-color), 89%, 60%);
  --second-color: hsl(var(--hue-color), 56%, 12%);
  /*===== Fuente y tipografia =====*/
  --body-font: "Poppins", sans-serif;
  --big-font-size: 2rem;
  --h2-font-size: 1.25rem;
  --normal-font-size: .938rem;
  --smaller-font-size: .75rem;
  /*===== Margenes =====*/
  --mb-2: 1rem;
  --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;
    --normal-font-size: 1rem;
    --smaller-font-size: .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);
  cursor: default;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Allow text selection in input fields and textareas */
input,
textarea,
[contenteditable="true"],
.chatbot-input,
.contact__input,
.contact__textarea {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
  cursor: text;
}

/* Ensure typewriter cursor is visible */
.typewriter,
.typewriter span,
.typewriter span::after {
  cursor: text;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

h1, h2, 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.18rem;
  left: 0;
  right: 0;
  margin: auto;
  top: 2rem;
  background-color: var(--first-color);
}

.section {
  padding-top: 3rem;
  padding-bottom: 2rem;
}

/*===== 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: -100vw;
    width: 80vw;
    height: 90vh;
    background: rgba(30, 32, 40, 0.7); /* semi-transparent for glass effect */
    backdrop-filter: blur(16px); /* glass blur */
    box-shadow: 0 8px 32px rgba(14,36,49,0.18);
    border-radius: 1.2rem 0 0 1.2rem;
    transition: right 0.4s cubic-bezier(.42,0,.58,1);
    z-index: 99;
    display: flex;
    align-items: flex-start;
  }
  .nav__menu.show {
    right: 0;
  }
  .nav__list {
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    margin-top: 2rem;
  }
  .nav__item {
    margin-bottom: 1rem;
  }
  .nav__link {
    font-size: 1.2rem;
    color: #fff;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.7rem;
    transition: background 0.3s, color 0.3s;
    backdrop-filter: blur(2px);
  }
  .nav__link:hover,
  .active-link {
    background: rgba(255,255,255,0.12);
    color: var(--primary);
    text-shadow: 0 0 8px var(--primary);
  }
  .nav__toggle {
    display: block;
    z-index: 101;
  }
}
.nav__item {
  margin-bottom: var(--mb-4);
}
.nav__link {
  position: relative;
  color: #fff;
}
.nav__link:hover {
  position: relative;
}
.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);
}
.nav__toggle {
  color: var(--second-color);
  font-size: 1.5rem;
  cursor: default;
  position: relative;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav__icon-hamburger,
.nav__icon-close {
  position: absolute;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav__icon-close {
  opacity: 0;
  transform: rotate(90deg);
}

.nav__toggle.active .nav__icon-hamburger {
  opacity: 0;
  transform: rotate(90deg);
}

.nav__toggle.active .nav__icon-close {
  opacity: 1;
  transform: rotate(0deg);
}

/*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: 5rem;
  padding: 4rem 0 5rem;
  overflow: visible;
}
.home__data {
  align-self: center;
}
.home__title {
  font-size: 3rem;
  margin-bottom: var(--mb-5);
}
.home__title-color {
  color: var(--first-color);
}
.home__social {
  display: flex;
  gap: 1.5rem;
  flex-direction: column;
  justify-content: flex-start;
}
.home__social-icon {
  width: max-content;
  margin-bottom: var(--mb-2);
  font-size: 1.5rem;
  color: var(--second-color);
}
.home__social-icon:hover {
  color: var(--first-color);
}
.home__img {
  position: absolute;
  right: -20px;
  bottom: 0;
  width: 260px;
  overflow: visible;
}
.home__blob {
  fill: var(--first-color);
  width: 100%;
  height: 100%;
  overflow: visible;
}
.home__blob-img {
  width: 360px;
}

/*BUTTONS*/
.button {
  display: inline-block;
  background-color: var(--first-color);
  color: #fff;
  padding: 0.75rem 2.5rem;
  font-weight: var(--font-semi);
  border-radius: 0.5rem;
  transition: 0.3s;
}
.button:hover {
  box-shadow: 0px 10px 36px rgba(0, 0, 0, 0.15);
}

/* ===== ABOUT =====*/
.about__container {
  row-gap: 2rem;
  text-align: center;
}
.about__subtitle {
  margin-bottom: var(--mb-2);
}
.about__img {
  justify-self: center;
}
.about__img img {
  width: 200px;
  border-radius: 0.5rem;
}

/* ===== SKILLS =====*/
.skills__container {
  row-gap: 2rem;
  text-align: center;
}
.skills__subtitle {
  margin-bottom: var(--mb-2);
}
.skills__text {
  margin-bottom: var(--mb-4);
}
.skills__data {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  font-weight: var(--font-semi);
  padding: 0.5rem 1rem;
  margin-bottom: var(--mb-4);
  border-radius: 0.5rem;
  box-shadow: 0px 4px 25px rgba(14, 36, 49, 0.15);
}
.skills__icon {
  font-size: 2rem;
  margin-right: var(--mb-2);
  color: var(--first-color);
}
.skills__names {
  display: flex;
  align-items: center;
}
.skills__bar {
  position: absolute;
  left: 0;
  bottom: 0;
  background-color: var(--first-color);
  height: 0.25rem;
  border-radius: 0.5rem;
  z-index: var(--z-back);
}
.skills__html {
  width: 95%;
}
.skills__css {
  width: 85%;
}
.skills__js {
  width: 65%;
}
.skills__ux {
  width: 85%;
}
.skills__img {
  border-radius: 0.5rem;
}

/* ===== WORK =====*/
.work__container {
  row-gap: 2rem;
}
.work__img {
  box-shadow: 0px 4px 25px rgba(14, 36, 49, 0.15);
  border-radius: 0.5rem;
  overflow: hidden;
}
.work__img img {
  transition: 1s;
}
.work__img img:hover {
  transform: scale(1.1);
}

/* ===== CONTACT =====*/
.contact__input {
  width: 100%;
  font-size: var(--normal-font-size);
  font-weight: var(--font-semi);
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1.5px solid var(--second-color);
  outline: none;
  margin-bottom: var(--mb-4);
}
.contact__button {
  display: block;
  border: none;
  outline: none;
  font-size: var(--normal-font-size);
  cursor: pointer;
  margin-left: auto;
}

/* ===== FOOTER =====*/
.footer {
  background-color: var(--second-color);
  color: #fff;
  text-align: center;
  font-weight: var(--font-semi);
  padding: 2rem 0;
}
.footer__title {
  font-size: 1rem;
  margin-bottom: var(--mb-4);
}
.footer__social {
  margin-bottom: var(--mb-4);
}
.footer__icon {
  font-size: 1.5rem;
  color: #fff;
  margin: 0 var(--mb-2);
}
.footer__copy {
  font-size: var(--smaller-font-size);
}
.footer__social a{
  color: #fff
}


/* ===== MEDIA QUERIES=====*/
@media screen and (max-width: 320px) {
  .home {
    row-gap: 2rem;
  }
  .home__img {
    width: 200px;
    right: -10px;
  }
}
@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%;
    right: -15px;
  }
  .about__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    text-align: initial;
  }
  .skills__container {
    grid-template-columns: 0.7fr;
    justify-content: center;
    column-gap: 1rem;
  }
  .work__container {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
    padding-top: 2rem;
  }
  .contact__form {
    width: 360px;
    padding-top: 2rem;
  }
  .contact__container {
    justify-items: center;
  }

  /* Status (form alert) */
  #form-status {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-align: center;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
  }

  #form-status.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  #form-status.success {
    background: var(--first-color);
    color: #fff;
  }

  #form-status.error {
    background: #fff3f0;
    color: #8b1e1e;
    border: 1px solid #f5c2c7;
  }

  #form-status.info {
    background: rgba(0,0,0,0.06);
    color: var(--second-color);
  }

  /* Ensure the status is centered on narrow screens */
  @media screen and (max-width: 767px) {
    .contact__container {
      text-align: center;
    }
    #form-status {
      width: 90%;
      max-width: 420px;
    }
  }
}
@media screen and (min-width: 768px) {
  body {
    margin: 0;
  }
  .section {
    padding-top: 4rem;
    padding-bottom: 3rem;
  }
  .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: 1.5rem;
    margin-bottom: 0;
  }
  .nav__item.nav__theme {
    margin-left: 1rem;
  }
  .nav__toggle {
    display: none;
  }
  .nav__link {
    color: var(--second-color);
  }
  .home {
    padding: 8rem 0 2rem;
  }
  .home__img {
    width: 400px;
    bottom: 10%;
    right: -20px;
  }
  .about__container {
    padding-top: 2rem;
  }
  .about__img img {
    width: 300px;
  }
  .skills__container {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
    align-items: center;
    text-align: initial;
  }
  .work__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;
    right: -25px;
  }
}/* ===== GOOGLE FONTS ===== */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Inter:wght@400;600;700&display=swap");

/* ===== VARIABLES ===== */
:root {
  --primary-hue: 36;
  --primary: hsl(var(--primary-hue), 89%, 60%);
  --primary-glow: 0 0 16px hsl(var(--primary-hue), 89%, 60%, 0.7);
  --bg: #181a20;
  --bg-card: #23262f;
  --bg-navbar: #1a1c23;
  --text: #e6e6e6;
  --text-muted: #b0b0b0;
  --shadow: 0 4px 24px rgba(0,0,0,0.18);
  --radius: 1rem;
  --transition: 0.3s cubic-bezier(.42,0,.58,1);
  --font-main: "Poppins", "Inter", sans-serif;
  --header-height: 3.5rem;
}

/* ===== BASE ===== */
*, ::before, ::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
}
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin: 0 0 1rem 0;
  color: var(--text);
  letter-spacing: 0.01em;
}
p { margin: 0 0 1.5rem 0; color: var(--text-muted); }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: #fff; text-shadow: var(--primary-glow); }
img { max-width: 100%; display: block; border-radius: var(--radius); }

/* ===== NAVBAR ===== */
.l-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: var(--bg-navbar);
  box-shadow: var(--shadow);
  z-index: 100;
  transition: background var(--transition);
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.nav__logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-shadow: var(--primary-glow);
  letter-spacing: 0.05em;
}
.nav__list {
  display: flex;
  gap: 2rem;
}
.nav__link {
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  transition: color var(--transition);
}
.nav__link:hover,
.active-link {
  color: var(--primary);
  text-shadow: var(--primary-glow);
}
.nav__link::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
  position: absolute;
  left: 0; bottom: -4px;
}
.nav__link:hover::after,
.active-link::after {
  width: 100%;
}
.nav__toggle {
  display: none;
  font-size: 2rem;
  color: var(--primary);
  cursor: pointer;
}

/* ===== HERO ===== */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  text-align: center;
  padding: 4rem 1rem 2rem 1rem;
  animation: fadeIn 1s;
}
.hero__img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  box-shadow: var(--primary-glow);
  margin-bottom: 2rem;
  object-fit: cover;
}
.hero__title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
  text-shadow: var(--primary-glow);
}
.hero__subtitle {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 2rem;
}
.hero__cta {
  margin-top: 2rem;
}

/* ===== BUTTONS ===== */
.button {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  box-shadow: var(--primary-glow);
  border: none;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}
.button:hover {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 0 32px var(--primary);
  transform: translateY(-2px) scale(1.04);
}

/* ===== SECTIONS ===== */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1rem 2rem 1rem;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 1s forwards;
}
.section-title {
  font-size: 2rem;
  color: var(--primary);
  text-align: center;
  margin-bottom: 2rem;
  text-shadow: var(--primary-glow);
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* ===== ABOUT ===== */
.about__container {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  animation: fadeInUp 1.2s forwards;
}
.about__img {
  width: 120px;
  border-radius: 50%;
  box-shadow: var(--primary-glow);
}
.about__text {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-align: center;
}

/* ===== SKILLS ===== */
.skills__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.skills__card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
  animation: fadeInUp 1.3s forwards;
}
.skills__card:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 0 32px var(--primary);
}
.skills__icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
  text-shadow: var(--primary-glow);
}
.skills__name {
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}
.skills__level {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===== PROJECTS ===== */
.projects__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.project__card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition);
  animation: fadeInUp 1.4s forwards;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.project__card:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 0 32px var(--primary);
}
.project__img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--primary-glow);
}
.project__title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
}
.project__desc {
  color: var(--text-muted);
  font-size: 1rem;
}
.project__link {
  margin-top: auto;
  font-weight: 600;
  color: var(--primary);
  transition: color var(--transition);
}
.project__link:hover {
  color: #fff;
  text-shadow: var(--primary-glow);
}

/* ===== CONTACT ===== */
.contact__form {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  max-width: 400px;
  margin: 2rem auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: fadeInUp 1.5s forwards;
}
.contact__input, .contact__textarea {
  background: #22242c;
  color: #fff;
  border: 1.5px solid var(--primary);
  border-radius: var(--radius);
  padding: 1rem;
  font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.contact__input:focus, .contact__textarea:focus {
  border-color: #fff;
  box-shadow: var(--primary-glow);
}
.contact__button {
  align-self: flex-end;
}

/* ===== FOOTER =====*/
.footer {
  background: var(--bg-navbar);
  color: var(--text-muted);
  padding: 2rem 0;
  font-size: 1rem;
  box-shadow: var(--shadow);
  margin-top: 4rem;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  text-align: left;
}

.footer__title {
  font-size: 1rem;
  font-weight: 500;
  margin: 0;
  display: inline-block;
}

.footer__social {
  margin: 0;
  display: inline-block;
}

.footer__icon {
  font-size: 1.5rem;
  color: var(--primary);
  margin: 0 0.5rem;
  transition: color var(--transition), text-shadow var(--transition);
  vertical-align: middle;
}

.footer__icon:hover {
  color: #fff;
  text-shadow: var(--primary-glow);
}

/* Light mode: make footer social icons visible */
.light-mode .footer__icon {
  color: #ff9800 !important; /* Strong orange for visibility */
  background: transparent;
  text-shadow: 0 0 8px #ffb347, 0 0 2px #fff;
  filter: none;
}
.light-mode .footer__icon:hover {
  color: #222 !important;
  text-shadow: 0 0 12px #ffb347, 0 0 4px #fff;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(40px);}
  100% { opacity: 1; transform: translateY(0);}
}
@keyframes fadeIn {
  0% { opacity: 0;}
  100% { opacity: 1;}
}

/* ===== SCROLL ANIMATION (for JS intersection observer) ===== */
.section.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s, transform 0.8s;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav { padding: 0 1rem; }
  .section { padding: 3rem 1rem 1rem 1rem; }
  .skills__container, .projects__container { gap: 1rem; }
}
@media (max-width: 700px) {
  .nav__menu {
    flex-direction: column;
    gap: 1.5rem;
    background: var(--bg-navbar);
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 70vw;
    height: 100vh;
    padding: 2rem;
    transition: right var(--transition);
    z-index: 99;
  }
  .nav__toggle { display: block; }
  .show { right: 0; }
  .nav__item { margin-bottom: 1rem; }
  .hero__title { font-size: 2rem; }
  .section-title { font-size: 1.5rem; }
  .about__container, .contact__form { padding: 1rem; }
}
@media (max-width: 500px) {
  .hero__img { width: 100px; height: 100px; }
  .section { padding: 2rem 0.5rem 1rem 0.5rem; }
  .skills__container, .projects__container { grid-template-columns: 1fr; }
  .contact__form { padding: 1rem; }
}

/* ===== UTILITIES ===== */
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.text-center { text-align: center; }

.bg-primary {
  background-color: #b2824b !important;
}

a.bg-primary:hover, a.bg-primary:focus,
button.bg-primary:hover,
button.bg-primary:focus {
  background-color: #857248 !important;
}
.section-sm {
  padding: 40px 0 !important;
}
.btn {
  display: inline-block;
  font-weight: 400;
  color: #212529;
  text-align: center;
  vertical-align: middle;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  background-color: transparent;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.1rem;
  -webkit-transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.btn-lg + .dropdown-toggle-split, .btn-group-lg > .btn + .dropdown-toggle-split {
  padding-right: 0.75rem;
  padding-left: 0.75rem;
}
/*.existing code.

/* Hire Me/Submit Button Style */
.button,
.contact__button,
.hireme__button {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  box-shadow: var(--primary-glow);
  border: none;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}

.button:hover,
.contact__button:hover,
.hireme__button:hover {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 0 32px var(--primary);
  transform: translateY(-2px) scale(1.04);
}

/* ...existing code...*/

.hireme__button {
  font-size: 1.1rem;
  padding: 0.85rem 2.2rem;
  background: #fff;
  color: var(--primary);
  border: none;
  border-radius: var(--radius);
  box-shadow: 0 0 16px #fff; /* White glow by default */
  font-weight: 700;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hireme__button:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 32px var(--primary); /* Primary glow on hover */
  transform: translateY(-2px) scale(1.04);
}

/* ...existing code... ...existing code...

/* Hire Me Section Customization */
.hireme-section {
  background: linear-gradient(90deg, var(--primary) 0%, #23262f 100%);
  padding: 3rem 1rem;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(14,36,49,0.18);
  margin-bottom: 2rem;
}

.hireme-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
  text-shadow: var(--primary-glow);
}

.hireme-desc {
  font-size: 1.15rem;
  color: #f5f5f5;
  margin-bottom: 0;
}

.hireme__button {
  font-size: 1.1rem;
  padding: 0.85rem 2.2rem;
  background: #fff;
  color: var(--primary);
  border: none;
  border-radius: var(--radius);
  box-shadow: 0 0 16px var(--primary);
  font-weight: 700;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hireme__button:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 32px var(--primary);
  transform: translateY(-2px) scale(1.04);
}

@media (max-width: 700px) {
  .hireme-section .row {
    flex-direction: column;
    text-align: center;
  }
  .hireme-title {
    font-size: 1.5rem;
  }
  .hireme__button {
    margin-top: 1.5rem;
    width: 100%;
    justify-content: center;
  }
}

/* ...existing code...*/

.hireme-section {
  background: linear-gradient(90deg, var(--primary) 0%, #23262f 100%);
  padding: 3rem 1rem;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(14,36,49,0.18);
  margin-bottom: 2rem;
}

.hireme-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
  text-shadow: 0 0 16px #fff, var(--primary-glow);
  letter-spacing: 0.02em;
}

.hireme-desc {
  font-size: 1.18rem;
  color: #f5f5f5;
  margin-bottom: 0;
  line-height: 1.7;
}

.hireme-highlight {
  color: #fff;
  background: var(--primary);
  padding: 0.15em 0.5em;
  border-radius: 0.5em;
  box-shadow: 0 0 8px #fff;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.hireme__button {
  font-size: 1.1rem;
  padding: 0.85rem 2.2rem;
  background: #fff;
  color: var(--primary);
  border: none;
  border-radius: var(--radius);
  box-shadow: 0 0 16px #fff; /* White glow by default */
  font-weight: 700;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.2rem;
}

.hireme__button:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 32px var(--primary); /* Primary glow on hover */
  transform: translateY(-2px) scale(1.04);
}

@media (max-width: 700px) {
  .hireme-section .row {
    flex-direction: column;
    text-align: center;
  }
  .hireme-title {
    font-size: 1.5rem;
  }
  .hireme__button {
    margin-top: 1.5rem;
    width: 100%;
    justify-content: center;
  }
}

/* ...existing code....existing code..*/
.btn-lg, .btn-group-lg > .btn {
  padding: 0.5rem 1rem;
  font-size: 1.25rem;
  line-height: 1.5;
  border-radius: 0.3rem;
}
.btn-light:hover {
  color: #212529;
  background-color: #e2e6ea;
  border-color: #dae0e5;
}

.btn-light:focus, .btn-light.focus {
  box-shadow: 0 0 0 0.2rem rgba(216, 217, 219, 0.5);
}

.btn-light.disabled, .btn-light:disabled {
  color: #212529;
  background-color: #f8f9fa;
  border-color: #f8f9fa;
}

.btn-light:not(:disabled):not(.disabled):active, .btn-light:not(:disabled):not(.disabled).active,
.show > .btn-light.dropdown-toggle {
  color: #212529;
  background-color: #dae0e5;
  border-color: #d3d9df;
}

.btn-light:not(:disabled):not(.disabled):active:focus, .btn-light:not(:disabled):not(.disabled).active:focus,
.show > .btn-light.dropdown-toggle:focus {
  box-shadow: 0 0 0 0.2rem rgba(216, 217, 219, 0.5);
}
.text-light {
  color: #f8f9fa !important;
}
.m-0 {
  margin: 0 !important;
}
.title {
  font-size: calc(15px + (20 - 15) * ((100vw - 300px) / (1300 - 300)));
}

.title.big {
  font-size: calc(17px + (25 - 17) * ((100vw - 300px) / (1300 - 300)));
}
.home__data .typewriter{
  font-weight: 700;
  font-size: clamp(1rem, 2rem + 5vw, 3rem);
}
.home__data .typewriter span{
  
  font-weight: 700;
  position: relative;
  transition: 0.3s linear;
}
.typewriter span::before{
  content: "Developer";
  animation: words 15s infinite;
}
.typewriter span::after{
  content: "";
  position: absolute;
  width: calc(100% + 8px);
  height: 100%;
  border-left: 3px solid white;
  animation: cursor 0.6s linear infinite;

}
@keyframes cursor{
  to{
    border-left: 3px solid transparent;
  }
}
@keyframes words{
  0%, 33%{
    content: "Developer";
  }
  40%, 66%{
    content: "Designer";  
  }
  67%, 100%{
    content: "Freelancer";  
  }
}

.footer {
  background: var(--bg-navbar);
  color: var(--text-muted);
  padding: 2rem 0;
  font-size: 1rem;
  box-shadow: var(--shadow);
  margin-top: 4rem;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  text-align: left;
}

.footer__title {
  font-size: 1rem;
  font-weight: 500;
  margin: 0;
  display: inline-block;
}

.footer__social {
  margin: 0;
  display: inline-block;
}

.footer__icon {
  font-size: 1.5rem;
  color: var(--primary);
  margin: 0 0.5rem;
  transition: color var(--transition), text-shadow var(--transition);
  vertical-align: middle;
}

.footer__icon:hover {
  color: #fff;
  text-shadow: var(--primary-glow);
}

/* Light mode: make footer social icons visible */
.light-mode .footer__icon {
  color: #ff9800 !important; /* Strong orange for visibility */
  background: transparent;
  text-shadow: 0 0 8px #ffb347, 0 0 2px #fff;
  filter: none;
}
.light-mode .footer__icon:hover {
  color: #222 !important;
  text-shadow: 0 0 12px #ffb347, 0 0 4px #fff;
}

/* Toggle button for light/dark mode */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--primary);
  margin-left: 1rem;
  padding: 0.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s;
  width: 2rem;
  height: 2rem;
}
.theme-toggle:focus {
  outline: 2px solid var(--primary);
}

/* Light mode variables */
:root.light-mode {
  --bg: #f8f9fa;
  --bg-navbar: #fff;
  --bg-card: #f1f3f6;
  --text: #222;
  --text-muted: #555;
  --primary: #ffb347;
  --primary-glow: 0 0 16px #ffb34799;
}

/* Light mode overrides */
.light-mode body {
  background: var(--bg);
  color: var(--text);
}
.light-mode .section,
.light-mode .about__container,
.light-mode .skills__container,
.light-mode .work__container,
.light-mode .contact__form {
  background: var(--bg-card);
  box-shadow: 0 8px 32px rgba(200,200,200,0.12);
}
.light-mode .nav,
.light-mode .footer {
  background: var(--bg-navbar);
  color: var(--text-muted);
}
.light-mode .nav__logo,
.light-mode .section-title,
.light-mode .footer__title {
  color: var(--primary);
  text-shadow: var(--primary-glow);
}
.light-mode .nav__link {
  color: var(--text-muted);
}
.light-mode .nav__link:hover,
.light-mode .active-link {
  color: var(--primary);
}
.light-mode .button,
.light-mode .hireme__button {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 16px #ffb34799;
}
.light-mode .button:hover,
.light-mode .hireme__button:hover {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 0 32px #ffb347;
}

/* Fix for skills section text in light mode */
.light-mode .skills__subtitle,
.light-mode .skills__text,
.light-mode .skills__name,
.light-mode .skills__percentage {
  color: var(--text);
}

/* Fix for contact section text and input in light mode */
.light-mode .contact__form,
.light-mode .contact__input,
.light-mode .contact__textarea {
  background: #fff;
  color: var(--text);
  border-color: var(--primary);
}
.light-mode .contact__input::placeholder,
.light-mode .contact__textarea::placeholder {
  color: var(--text-muted);
}

.work__slider-section {
  background: var(--bg-card);
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px rgba(14,36,49,0.12);
  padding: 2rem 1rem;
  margin: 2rem auto;
  max-width: 600px;
}

.work__slider {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
}

.work__slides {
  width: 100%;
  overflow: hidden;
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.work__slide {
  display: none;
  flex-direction: column;
  align-items: center;
  transition: opacity 0.5s;
  text-align: center;
  width: 100%;
}

.work__slide.active {
  display: flex;
  opacity: 1;
}

.work__img {
  width: 100%;
  max-width: 320px;
  border-radius: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 0 16px var(--primary);
}

.work__arrow {
  background: #fff;
  color: var(--primary);
  border: none;
  border-radius: 50%;
  width: 2.7rem;
  height: 2.7rem;
  font-size: 1.7rem;
  cursor: pointer;
  margin: 0 1rem;
  box-shadow: 0 0 12px var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
.work__arrow:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 24px var(--primary);
}

@media (max-width: 700px) {
  .work__slider-section {
    padding: 1rem 0.5rem;
    max-width: 98vw;
  }
  .work__img {
    max-width: 90vw;
  }
  .work__arrow {
    width: 2.2rem;
    height: 2.2rem;
    font-size: 1.3rem;
    margin: 0 0.5rem;
  }
}
.work__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.2rem;
}
.work__dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px var(--primary);
  opacity: 0.5;
  cursor: pointer;
  transition: background 0.3s, opacity 0.3s, box-shadow 0.3s;
}
.work__dot.active {
  background: var(--primary);
  opacity: 1;
  box-shadow: 0 0 12px var(--primary), 0 0 4px #fff;
}
.work__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 4px var(--primary);
  opacity: 0.5;
  cursor: pointer;
  transition: background 0.3s, opacity 0.3s, box-shadow 0.3s;
}
.work__dot.active {
  background: var(--primary);
  opacity: 1;
  box-shadow: 0 0 8px var(--primary), 0 0 2px #fff;
}
.work__arrow {
  background: none !important;
  color: var(--primary);
  border: none !important;
  border-radius: 0 !important;
  width: auto;
  height: auto;
  font-size: 1.2rem;
  cursor: pointer;
  margin: 0 0.5rem;
  box-shadow: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: color 0.2s;
  outline: none !important;
}

.work__arrow:focus,
.work__arrow:active {
  outline: none !important;
  box-shadow: none !important;
  background: none !important;
  border: none !important;
}

.work__arrow:hover,
.work__arrow:focus,
.work__arrow:active {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

.work__arrow svg {
  width: 1em;
  height: 1em;
  stroke: var(--primary);
  fill: none;
  display: block;
  transition: stroke 0.2s;
}

.work__arrow:hover svg,
.work__arrow:focus svg,
.work__arrow:active svg {
  stroke: #fff;
}

#work .section-title::after {
  display: none;
  content: none;
  box-shadow: none;
}
#skills .section-title::after {
  display: none;
  content: none;
}
#about .section-title::after {
  display: none;
  content: none;
}
#contact .section-title::after {
  display: none;
  content: none;
}
#work .work__img {
  box-shadow: none;
}

/*===== CERTIFICATES SECTION =====*/
.certificates__container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 2rem 0;
}

.certificates__slides {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: scroll-certificates 30s linear infinite;
  will-change: transform;
}

.certificates__slides:hover {
  animation-play-state: paused;
}

@keyframes scroll-certificates {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.certificate__item {
  flex: 0 0 auto;
  width: 300px;
  min-width: 280px;
  background: var(--bg-card);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 16px rgba(14,36,49,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.certificate__item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(14,36,49,0.15);
}

.certificate__img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(14,36,49,0.1);
}

.certificate__title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.certificate__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

#certificates .section-title::after {
  display: none;
  content: none;
  box-shadow: none;
}

/* Responsive styles for certificates */
@media (max-width: 968px) {
  .certificate__item {
    width: 250px;
    min-width: 220px;
  }
  
  .certificates__slides {
    animation-duration: 25s;
  }
}

@media (max-width: 700px) {
  .certificate__item {
    width: 280px;
    min-width: 260px;
    padding: 1rem;
  }
  
  .certificates__slides {
    animation-duration: 20s;
  }
}

/*===== CHATBOT =====*/
.chatbot-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.chatbot-container.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chatbot-window {
  width: 380px;
  max-width: 90vw;
  height: 600px;
  max-height: 80vh;
  background: var(--bg-card);
  border-radius: 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.chatbot-header {
  background: var(--primary);
  color: #fff;
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chatbot-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
}

.chatbot-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.chatbot-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chatbot-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  scroll-behavior: smooth;
}

.chatbot-messages::-webkit-scrollbar {
  width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chatbot-messages::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.chatbot-message {
  display: flex;
  animation: messageSlideIn 0.3s ease;
}

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

.bot-message {
  justify-content: flex-start;
}

.user-message {
  justify-content: flex-end;
}

.message-content {
  max-width: 75%;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  word-wrap: break-word;
}

.bot-message .message-content {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-primary);
  border-bottom-left-radius: 0.25rem;
}

.user-message .message-content {
  background: var(--primary);
  color: #fff !important;
  border-bottom-right-radius: 0.25rem;
}

.user-message .message-content p,
.user-message .message-content li,
.user-message .message-content ul,
.user-message .message-content * {
  color: #fff !important;
}

.message-content p {
  margin: 0;
  line-height: 1.5;
}

.message-content ul {
  margin: 0.5rem 0 0 0;
  padding-left: 1.25rem;
}

.message-content li {
  margin: 0.25rem 0;
  line-height: 1.4;
}

.chatbot-input-container {
  padding: 1rem;
  background: var(--bg-card);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.quick-btn {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--text-primary);
  padding: 0.4rem 0.75rem;
  border-radius: 1.5rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.quick-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.chatbot-input-wrapper {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.chatbot-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 1.5rem;
  background: var(--bg);
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s;
}

.chatbot-input:focus {
  border-color: var(--primary);
}

.chatbot-send {
  background: var(--primary);
  color: #fff;
  border: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.chatbot-send:hover {
  background: var(--first-color);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.chatbot-send:active {
  transform: scale(0.95);
}

/* Mobile responsive */
@media (max-width: 700px) {
  .chatbot-container {
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
  }

  .chatbot-window {
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }
}

/* Light mode adjustments */
.light-mode .bot-message .message-content {
  background: rgba(0, 0, 0, 0.05);
}

.light-mode .chatbot-input {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.1);
}

.light-mode .quick-btn {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
}