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

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: hsl(207, 65%, 65%);
  --title-color: hsl(207, 4%, 16%);
  --text-color: hsl(207, 4%, 28%);
  --text-color-light: hsl(207, 4%, 56%);
  --body-color: hsl(207, 4%, 99%);
  --container-color: hsl(207, 4%, 95%);

  /* Change the first number */
  /* Blue: 207 - Purple: 250 - Pink: 356 - Teal: 174 */
  --gradient-color: linear-gradient(180deg,
                      hsla(207, 48%, 72%, 0),
                      hsla(207, 65%, 65%, 1));

  /*========== Font and typography ==========*/
  --body-font: "Poppins", sans-serif;
  --biggest-font-size: 1.75rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.813rem;
  --smaller-font-size: 0.75rem;
  --tiny-font-size: 0.625rem;

  /*========== Font weight ==========*/
  --font-medium: 500;
  --font-semibold: 600;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;
}

/* Responsive typography */
@media screen and (min-width: 968px) {
  :root {
    --biggest-font-size: 2.5rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.813rem;
  }
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  background-color: var(--body-color);
  color: var(--text-color);
  transition: background-color 0.4s, color 0.4s;
}

h1, h2, h3 {
  color: var(--title-color);
  font-weight: var(--font-semibold);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

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

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

/*=============== THEME ===============*/
.change-theme {
  font-size: 1.25rem;
  cursor: pointer;
  transition: 0.3s;
  color: var(--title-color);
}

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

/*========== Variables light theme ==========*/
body.light-theme {
  --title-color: hsl(var(--second-hue), 15%, 15%);
  --text-color: hsl(var(--second-hue), 8%, 35%);
  --body-color: hsl(var(--second-hue), 100%, 99%);
  --container-color: #f3f5f8;
}

/* Theme overrides */
.light-theme .scroll-header {
  box-shadow: 0 2px 4px hsla(0, 0%, 1%, 0.1);
}

.light-theme .nav__menu {
  background-color: hsla(var(--second-hue), 32%, 95%, 0.9);
  box-shadow: 0 4px 12px hsla(0, 0%, 0%, 0.1);
}

.light-theme .section__subtitle {
  color: var(--text-color);
}

.light-theme .home__social-link {
  box-shadow: 0 2px 8px hsla(var(--second-hue), 48%, 8%, 0.1);
}

.light-theme .home__social-link::after,
.light-theme .footer__social-link {
  background-color: var(--title-color);
}

.light-theme .home__social-link,
.light-theme .home__scroll,
.light-theme .button,
.light-theme .button:hover,
.light-theme .active-work,
.light-theme .footer__title,
.light-theme .footer__link,
.light-theme .footer__copy {
  color: var(--title-color);
}

.light-theme .button {
    color: #fff; /* Ensure button text stays white in light mode */
}
.light-theme .button--ghost {
    color: var(--first-color);
}
.light-theme .active-work {
    color: #fff;
}

.light-theme .about__box,
.light-theme .skills__content,
.light-theme .qualification__content,
.light-theme .services__card,
.light-theme .work__card,
.light-theme .updates__card,
.light-theme .contact__card,
.light-theme .contact__form-div {
  box-shadow: 0 4px 16px hsla(var(--second-hue), 48%, 8%, 0.08);
}

.light-theme::-webkit-scrollbar {
  background-color: hsl(var(--second-hue), 8%, 80%);
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 968px;
  margin-left: 1rem;
  margin-right: 1rem;
}

.grid {
  display: grid;
  gap: 1.25rem;
}

.main {
  overflow: hidden;
}

.section {
  padding: 4.5rem 0 1rem;
}

.section__title,
.section__subtitle {
  text-align: center;
}

.section__title {
  font-size: var(--h2-font-size);
  color: var(--first-color);
  margin-bottom: 2rem;
}

.section__subtitle {
  display: block;
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
}

/*=============== HEADER & NAV===============*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: transparent;
  z-index: var(--z-fixed);
  transition: 0.4s;
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  color: var(--first-color);
  font-weight: var(--font-medium);
  transition: 0.4s;
}

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

.nav__menu {
  position: fixed;
  bottom: 1rem;
  background-color: hsla(var(--second-hue), 32%, 16%, 0.9);
  width: 90%;
  border-radius: 4rem;
  padding: 1rem 2.25rem;
  backdrop-filter: blur(10px);
  transition: 0.4s;
  box-shadow: 0 4px 12px hsla(0, 0%, 0%, 0.3);
}

.nav__list {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__link {
  color: var(--text-color);
  font-size: 1.25rem;
  padding: 0.4rem;
  font-weight: var(--font-medium);
  text-decoration: none;
  transition: 0.4s;
  display: flex;
  border-radius: 5rem;
}

/* Active link */
.active-link {
  background: linear-gradient(
    180deg,
    hsla(var(--first-hue), var(--sat), var(--lig), 0.8),
    hsla(var(--first-hue), var(--sat), var(--lig), 0.2)
  );
  box-shadow: 0 0 16px hsla(var(--first-hue), var(--sat), var(--lig), 0.5);
  color: #fff;
}

/* Change background header */
.scroll-header {
  background-color: var(--body-color);
  box-shadow: 0 2px 10px hsla(0, 0%, 0%, 0.3);
}

/*=============== DESKTOP NAV RESPONSIVENESS ===============*/

@media screen and (min-width: 1024px) {
  /* 1. Header adjustment for desktop */
  .header {
    top: 0;
    bottom: initial;
    background-color: var(--body-color);
    transition: 0.4s;
  }

  /* 2. Positioning the nav menu as a centered 'dock' */
  .nav__menu {
    width: 328px;
    left: 0;
    right: 0;
    margin: 0 auto;
    bottom: 2rem;
    padding: 1rem 2.25rem;
    /* Ensuring it stays above other elements */
    z-index: var(--z-fixed); 
  }

  /* 3. Logo alignment */
  .nav__logo {
    padding-left: 1rem;
    font-size: 1.5rem; /* Slightly larger on desktop */
  }

  /* 4. Increase link spacing slightly for better clicking on desktop */
  .nav__link {
    padding: 0.5rem 0.8rem;
  }
}

/*=============== HOME ===============*/
.home__container {
  position: relative;
  row-gap: 4.5rem;
  padding-top: 2rem;
}

.home__data {
  text-align: center;
}

.home__greeting,
.home__education {
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
}

.home__greeting {
  display: block;
  color: var(--title-color);
  margin-bottom: 0.25rem;
}

.home__education {
  color: var(--text-color);
  margin-bottom: 2.5rem;
}

.home__name {
  font-size: var(--biggest-font-size);
  color: var(--first-color);
}

/* --- THE IMAGE CONTAINER (Mobile First Default) --- */
.home__handle {
  justify-self: center;
  /* Dynamic mobile sizes */
  width: 240px;        
  height: 320px;       
  background: linear-gradient(
    180deg,
    hsla(var(--first-hue), var(--sat), var(--lig), 0.5),
    hsla(var(--first-hue), var(--sat), var(--lig), 0.1)
  );
  border-radius: 12rem 12rem 1rem 1rem; /* Slightly reduced arch for mobile */
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin: 0 auto;
  
  /* CRITICAL CORNER BOUNDARY FIXES */
  overflow: hidden;    
  isolation: isolate;  
  position: relative;
}

/* --- THE FIXED IMAGE (Mobile First Default) --- */
.home__img {
  width: 100%;
  height: 370px; /* Scales down beautifully with the container */
  object-fit: cover;           
  object-position: top center; 
  display: block;              
}

/* --- RESPONSIVE MEDIA QUERIES --- */

/* 1. Tablet View (Typically screens wider than 576px or 768px) */
@media screen and (min-width: 768px) {
  .home__handle {
    width: 280px;
    height: 380px;
    border-radius: 14rem 14rem 1rem 1rem;
  }
  .home__img {
    height: 420px;
  }
}

/* 2. Desktop View (Typically screens wider than 1024px) */
@media screen and (min-width: 1024px) {
  .home__handle {
    width: 320px; /* Slightly larger to fit high-res desktop mockups */
    height: 440px;
    border-radius: 16rem 16rem 1rem 1rem;
  }
  .home__img {
    height: 480px;
  }
}

/*=============== REST OF YOUR CODE (UNTOUCHED) ===============*/
.home__button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.home__social,
.home__scroll {
  position: absolute;
}

.home__social {
  bottom: 4rem;
  left: 0;
  display: grid;
  row-gap: 0.5rem;
}

.home__social-link {
  width: max-content;
  background-color: var(--container-color);
  color: var(--first-color);
  padding: 0.25rem;
  border-radius: 0.5rem;
  display: flex;
  font-size: 1rem;
  transition: 0.4s;
  box-shadow: 0 4px 8px hsla(0, 0%, 0%, 0.2);
}

.home__social-link:hover {
  background-color: var(--first-color);
  color: #ffffff;
  transform: translateX(4px);
}

.home__social::after {
  content: "";
  width: 32px;
  height: 1px;
  background-color: var(--first-color);
  transform: rotate(90deg) translate(16px, 4px);
}

.home__scroll {
  color: var(--first-color);
  right: -1.5rem;
  bottom: 4rem;
  display: grid;
  row-gap: 2.25rem;
  justify-items: center;
}

.home__scroll-icon {
  font-size: 1.25rem;
  animation: scroll-bounce 2s infinite;
}

@keyframes scroll-bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

.home__scroll-name {
  font-size: var(--smaller-font-size);
  transform: rotate(-90deg);
}

/*=============== BUTTONS ===============*/
.button {
  display: inline-block;
  background-color: var(--first-color);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0.8rem;
  font-weight: var(--font-medium);
  transition: 0.4s;
  box-shadow: 0 4px 12px hsla(var(--first-hue), var(--sat), var(--lig), 0.4);
}

.button:hover {
  background-color: var(--first-color-alt);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px hsla(var(--first-hue), var(--sat), var(--lig), 0.5);
}

.button--ghost {
  background-color: transparent;
  color: var(--first-color);
  border: 2px solid var(--first-color);
  box-shadow: none;
}

.button--ghost:hover {
  background-color: var(--first-color);
  color: #fff;
}

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

.about__img {
  width: 220px;
  border-radius: 1.5rem;
  justify-self: center;
  box-shadow: 0 8px 24px hsla(0, 0%, 0%, 0.3);
}

.about__data {
  text-align: center;
}

.about__info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.about__box {
  background-color: var(--container-color);
  border-radius: 0.75rem;
  padding: 1rem 0.5rem;
  box-shadow: 0 4px 12px hsla(0, 0%, 0%, 0.2);
  transition: transform 0.3s ease;
}

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

.about__icon {
  font-size: 1.5rem;
  color: var(--first-color);
  margin-bottom: 0.5rem;
}

.about__title {
  font-size: var(--small-font-size);
}

.about__subtitle {
  font-size: var(--tiny-font-size);
}

.about__description {
  margin-bottom: 2rem;
}

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

.skills__content {
  background-color: var(--container-color);
  padding: 1.5rem;
  border-radius: 1.25rem;
  box-shadow: 0 4px 16px hsla(0, 0%, 0%, 0.2);
  transition: 0.3s;
}

.skills__content:hover {
    box-shadow: 0 6px 20px hsla(0, 0%, 0%, 0.3);
}

.skills__title {
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  color: var(--first-color);
  text-align: center;
  margin-bottom: 1.5rem;
}

.skills__box {
  display: flex;
  justify-content: center;
  column-gap: 2.5rem;
}

.skills__group {
  display: grid;
  align-content: flex-start;
  row-gap: 1rem;
}

.skills__data {
  display: flex;
  column-gap: 0.5rem;
}

.skills .bxs-badge-check {
  font-size: 1rem;
  color: var(--first-color);
}

.skills__name {
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  line-height: 18px;
}

.skills__level {
  font-size: var(--small-font-size);
}

/*=============== QUALIFICATIONS ===============*/
.qualification__container {
  row-gap: 2rem;
  padding-top: 1rem;
}

.qualification__content {
  background-color: var(--container-color);
  padding: 1.5rem;
  border-radius: 1.25rem;
  box-shadow: 0 4px 16px hsla(0, 0%, 0%, 0.2);
}

.qualification__title {
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 0.5rem;
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  color: var(--first-color);
  margin-bottom: 1.5rem;
}

.qualification__title-icon {
  font-size: 1.25rem;
}

.qualification__timeline {
  position: relative;
  display: grid;
  row-gap: 1.5rem;
  padding-left: 1.25rem;
}

.qualification__timeline::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0.25rem;
  width: 2px;
  height: calc(100% - 0.5rem);
  background-color: var(--first-color);
  opacity: 0.35;
}

.qualification__item {
  position: relative;
  display: grid;
  row-gap: 0.35rem;
}

.qualification__item::before {
  content: "";
  position: absolute;
  left: -1.38rem;
  top: 0.35rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background-color: var(--first-color);
  box-shadow: 0 0 0 0.35rem hsla(var(--first-hue), var(--sat), var(--lig), 0.2);
}

.qualification__year {
  width: max-content;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background-color: var(--first-color);
  color: #fff;
  font-size: var(--smaller-font-size);
  font-weight: var(--font-semibold);
}

.qualification__subtitle {
  font-size: var(--small-font-size);
  color: var(--title-color);
}

.qualification__description {
  font-size: var(--small-font-size);
  line-height: 1.6;
}

/*=============== TRANSPARENT SHADOW SMALL BUTTON ===============*/
.button--small {
  /* Core layout & Small scaling */
  padding: 0.5rem 1rem !important;
  font-size: var(--small-font-size) !important;
  border-radius: 0.35rem !important;
  width: max-content;
  
  /* Left-aligning the button element & centering internal text */
  display: flex !important;
  justify-content: center !important; /* Centers text inside the button */
  align-items: center !important;     /* Fixes invalid 'left' value for vertical alignment */
  text-align: left;
  margin: 1rem auto 0 0 !important;   /* FIXED: Aligns the button to the far left */

  /* Transparent + Shadow Aesthetics */
  background-color: transparent !important;
  color: var(--first-color) !important;
  border: 1.5px solid var(--first-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), 
              0 0 10px rgba(var(--first-hue), var(--sat), var(--lig), 0.15);
  transition: 0.3s ease;
}

/* Smooth Interactive Hover Effect */
.button--small:hover {
  background-color: var(--first-color) !important;
  color: var(--title-color) !important;
  box-shadow: 0 6px 20px rgba(var(--first-hue), var(--sat), var(--lig), 0.4);
  transform: translateY(-2px);
}

/*=============== SERVICES ===============*/
.services__container {
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding-top: 1rem;
}

.services__card {
  background-color: var(--container-color);
  padding: 3rem 1.5rem 1.5rem;
  border-radius: 1.25rem;
  box-shadow: 0 4px 16px hsla(0, 0%, 0%, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}

.services__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px hsla(0, 0%, 0%, 0.3);
}

.services__title {
  font-size: var(--h3-font-size);
  margin-bottom: 2.5rem;
}

.services__button {
  color: var(--first-color);
  font-size: var(--small-font-size);
  display: flex;
  align-items: center;
  column-gap: 0.25rem;
  cursor: pointer;
  font-weight: var(--font-medium);
}

.services__button:hover .services__icon {
  transform: translateX(0.25rem);
}

.services__icon {
  font-size: 1rem;
  transition: 0.4s;
}

/* Services modal */
.services__modal {
  position: fixed;
  inset: 0;
  background-color: hsla(var(--second-hue), 28%, 8%, 0.8);
  padding: 2rem 1rem;
  display: grid;
  place-items: center;
  transition: 0.4s;
  z-index: var(--z-modal);
  visibility: hidden;
  opacity: 0;
  backdrop-filter: blur(5px);
}

.services__modal-content {
  background-color: var(--body-color);
  padding: 4.5rem 1.5rem 2.5rem;
  border-radius: 1.5rem;
  position: relative;
  box-shadow: 0 8px 32px hsla(0, 0%, 0%, 0.4);
}

.services__modal-title,
.services__modal-description {
  text-align: center;
}

.services__modal-title {
  font-size: var(--h3-font-size);
  color: var(--first-color);
  margin-bottom: 1rem;
}

.services__modal-description {
  font-size: var(--small-font-size);
  margin-bottom: 2rem;
}

.services__modal-list {
  display: grid;
  row-gap: 0.75rem;
}

.services__modal-item {
  display: flex;
  align-items: flex-start;
  column-gap: 0.5rem;
}

.services__modal-icon {
  font-size: 1.5rem;
  color: var(--first-color);
}

.services__modal-info {
  font-size: var(--small-font-size);
}

.services__modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.5rem;
  color: var(--first-color);
  cursor: pointer;
  transition: transform 0.3s;
}

.services__modal-close:hover {
    transform: rotate(90deg);
}

/* Active modal */
.active-modal {
  visibility: visible;
  opacity: 1;
}

/*=============== WORK ===============*/
.work__container {
  padding-top: 1rem;
}

.work__filters {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 0.75rem;
  margin-bottom: 2rem;
}

.work__item {
  cursor: pointer;
  color: var(--title-color);
  padding: 0.35rem 0.85rem;
  font-weight: var(--font-medium);
  border-radius: 0.5rem;
  transition: 0.3s;
}

.work__item:hover {
    background-color: hsla(var(--first-hue), var(--sat), var(--lig), 0.2);
}

/* Active item work */
.active-work {
  background-color: var(--first-color);
  color: #fff !important;
  box-shadow: 0 4px 8px hsla(var(--first-hue), var(--sat), var(--lig), 0.4);
}

.work__card {
  background-color: var(--container-color);
  padding: 1rem;
  border-radius: 1rem;
  box-shadow: 0 4px 16px hsla(0, 0%, 0%, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}

.work__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px hsla(0, 0%, 0%, 0.3);
}

/* Work hidden class for load more functionality */
.work__card--hidden {
  display: none !important;
}

.work__img {
  border-radius: 1rem;
  margin-bottom: 0.75rem;
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.work__title {
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  margin-bottom: 0.25rem;
}

.work__button {
  width: max-content;
  color: var(--first-color);
  font-size: var(--small-font-size);
  display: flex;
  align-items: center;
  column-gap: 0.25rem;
  cursor: pointer;
  transition: 0.3s;
  font-weight: var(--font-medium);
}

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

.work__button:hover .work__icon {
  transform: translateX(0.25rem);
}

.work__icon {
  font-size: 1rem;
  transition: 0.4s;
}

.work__load-more {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.work__load-more-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 10rem;
  text-align: center;
}

/*=============== UPDATES ===============*/
.updates__container {
  padding-top: 1rem;
  padding-bottom: 3rem; /* Allow space for swiper dots */
}

.updates__card {
  background-color: var(--container-color);
  padding: 1.25rem;
  border-radius: 1.5rem;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  min-height: 100%;
  box-shadow: 0 4px 16px hsla(0, 0%, 0%, 0.2);
}

.updates__media {
  width: 200px;
  height: 200px;
  overflow: hidden;
  border-radius: 1rem;
  background-color: var(--body-color);
}

.updates__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.updates__card:hover .updates__img {
    transform: scale(1.05);
}

.updates__content {
  display: grid;
  row-gap: 0.85rem;
  min-width: 0;
}

.updates__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.updates__tag {
  width: max-content;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: var(--smaller-font-size);
  font-weight: var(--font-semibold);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.updates__tag--release {
  background-color: hsla(212, 80%, 55%, 0.18);
  color: var(--first-color);
}

.updates__tag--event {
  background-color: hsla(40, 90%, 60%, 0.18);
  color: hsl(40, 90%, 60%);
}

.updates__tag--news {
  background-color: hsla(174, 63%, 62%, 0.18);
  color: hsl(174, 63%, 62%);
}

.updates__date {
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}

.updates__title {
  font-size: var(--h3-font-size);
  color: var(--title-color);
  line-height: 1.35;
}

.updates__description {
  font-size: var(--smaller-font-size);
  line-height: 1.5;
}

.updates__link {
  width: max-content;
  color: var(--first-color);
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  display: inline-flex;
  align-items: center;
  column-gap: 0.35rem;
  transition: 0.4s;
}

.updates__link:hover {
  transform: translateX(0.25rem);
}

/* Swiper class */
.swiper-pagination-bullet {
  background-color: var(--text-color-light);
}

.swiper-pagination-bullet-active {
  background-color: var(--first-color);
}

/*=============== CONTACT ===============*/
.contact__container {
  row-gap: 3rem;
  padding-bottom: 3rem;
}

.contact__title {
  text-align: center;
  font-size: var(--h3-font-size);
  margin-bottom: 1.5rem;
}

.contact__info {
  display: grid;
  gap: 1rem;
}

.contact__card {
  background-color: var(--container-color);
  padding: 2rem 1rem;
  border-radius: 0.75rem;
  text-align: center;
  box-shadow: 0 4px 16px hsla(0, 0%, 0%, 0.2);
  transition: transform 0.3s ease;
}

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

.contact__card-icon {
  font-size: 2rem;
  color: var(--title-color);
  margin-bottom: 0.25rem;
}

.contact__card-title,
.contact__card-data {
  font-size: var(--small-font-size);
}

.contact__card-title {
  font-weight: var(--font-medium);
}

.contact__card-data {
  display: block;
  margin-bottom: 0.75rem;
}

.contact__button {
  color: var(--first-color);
  font-size: var(--small-font-size);
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 0.25rem;
  cursor: pointer;
  font-weight: var(--font-medium);
}

.contact__button:hover .contact__button-icon {
  transform: translateX(0.25rem);
}

.contact__button-icon {
  font-size: 1rem;
  transition: 0.4s;
}

.contact__form-div {
  position: relative;
  margin-bottom: 2rem;
  height: 4rem;
}

.contact__form-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid var(--text-color-light);
  background: none;
  border-radius: 0.75rem;
  padding: 1.5rem;
  font-size: var(--normal-font-size);
  color: var(--text-color);
  outline: none;
  z-index: 1;
  transition: border 0.3s;
}

.contact__form-input:focus {
    border-color: var(--first-color);
}

.contact__form-tag {
  position: absolute;
  top: -0.75rem;
  left: 1.25rem;
  font-size: var(--smaller-font-size);
  padding: 0.25rem;
  background-color: var(--body-color);
  z-index: 10;
  font-weight: var(--font-medium);
}

.contact__form-area {
  height: 17rem;
}

.contact__form-area textarea {
  resize: none;
}

/*=============== FOOTER ===============*/
.footer {
  background-color: var(--first-color);
}

.footer__container {
  padding: 2rem 0 6rem;
}

.footer__title,
.footer__link {
  color: #fff;
}

.footer__title {
  text-align: center;
  margin-bottom: 2rem;
}

.footer__list {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer__social {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 1.25rem;
}

.footer__social-link {
  background-color: var(--body-color);
  color: var(--first-color);
  padding: 0.35rem;
  border-radius: 0.25rem;
  font-size: 1rem;
  display: inline-flex;
  transition: 0.3s;
}

.footer__social-link:hover {
    transform: translateY(-3px);
    background-color: #fff;
}

.footer__copy {
  display: block;
  margin-top: 4.5rem;
  color: hsla(0, 0%, 100%, 0.8);
  text-align: center;
  font-size: var(--smaller-font-size);
  margin-bottom: 2rem;
}


/* Change the footer title link color to blue */
.footer__title a {
    color:  #9c00f7; /* A bright, readable light blue */
}

/* Optional: Add a hover effect to make it interactive */
.footer__title a:hover {
    color: #16011b;
}

.footer__copy {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .5rem;
    flex-wrap: nowrap;
    white-space: nowrap;
    margin-top: 4.5rem;
    margin-bottom: 2rem;
    color: hsla(0, 0%, 100%, 0.8);
    font-size: var(--smaller-font-size);
}

.footer__tech {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-size: 1rem;
}

/* Individual icon colors */
.footer__tech .bxl-html5 {
    color: #e34c26;
}

.footer__tech .bxl-css3 {
    color: #264de4;
}

.footer__tech .bxl-javascript {
    color: #f7df1e;
}

.footer__copy-link {
    color: #000;
    font-weight: 600;
    text-decoration: none;
}

.footer__copy-link:hover {
    color: #fff;
}

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
  width: 0.6rem;
  background-color: var(--container-color);
}

::-webkit-scrollbar-thumb {
  background-color: hsl(var(--second-hue), 8%, 26%);
  border-radius: 0.5rem;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--first-color);
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 320px) {
  .nav__menu {
    padding: 1rem 1.5rem;
  }
  .home__button {
    flex-direction: column;
  }
  .home__handle {
    width: 150px;
    height: 253px;
  }
  .home__img {
    width: 130px;
  }
  .about__info {
    grid-template-columns: repeat(2, 1fr);
  }
  .skills__box {
    column-gap: 1rem;
  }
  .skills__name {
    font-size: var(--small-font-size);
  }
  .skills__level {
    font-size: var(--smaller-font-size);
  }
  .services__container {
    grid-template-columns: 145px;
    justify-content: center;
  }
  .work__item {
    font-size: var(--small-font-size);
  }
  .work__filters {
    column-gap: 0.25rem;
  }
  .updates__card {
    grid-template-columns: 1fr;
  }
  .updates__media {
    width: 100%;
    height: 200px;
    justify-self: center;
  }
}

@media screen and (min-width: 435px) {
  .work__container {
    justify-content: center;
    grid-template-columns: repeat(2, max-content);
  }
  .work__img {
    width: 250px;
  }
  .updates__card {
    grid-template-columns: 1fr;
  }
  .updates__media {
    width: 100%;
    height: 200px;
    justify-self: center;
  }
}

/* Ensure stacked layout on small phones for updates */
@media screen and (max-width: 575px) {
  .updates__card {
    grid-template-columns: 1fr;
  }
  .updates__media {
    width: 100%;
    height: 200px;
    justify-self: center;
  }
  .updates__description {
    font-size: var(--tiny-font-size);
  }
}

/* For medium devices */
@media screen and (min-width: 630px) {
  .nav__menu {
    width: 328px;
    left: 0;
    right: 0;
    margin: 0 auto;
  }
  .about__info {
    grid-template-columns: repeat(3, 180px);
    justify-content: center;
  }
  .about__description {
    padding: 1rem 5rem;
    width: 600px;
    margin: 0 auto 2rem auto;
  }
  .about__box {
    padding: 1.75rem 0.95rem;
  }
  .skills__container {
    justify-content: center;
  }
  .skills__content {
    padding: 3rem 6rem;
  }
  .skills__title {
    font-size: var(--h3-font-size);
    margin-bottom: 1.5rem;
  }
  .skills__box {
    column-gap: 5.5rem;
  }
  .services__container {
    grid-template-columns: repeat(3, 177px);
    justify-content: center;
  }
  .services__modal-content {
    width: 500px;
    padding: 4.5rem 2.5rem 2.5rem;
  }
  .services__modal-description {
    padding: 0 3.5rem;
  }
  .work__container {
    justify-content: center;
    grid-template-columns: repeat(2, max-content);
  }
  .work__img {
    width: 250px;
  }
  .contact__container {
    display: grid;
    grid-template-columns: 220px 340px;
    column-gap: 2rem;
    justify-content: center;
  }
  .contact__info {
    grid-template-columns: 200px;
    gap: 1rem;
  }
  .contact__form {
    width: 340px;
  }
}

/* For large devices */
@media screen and (min-width: 992px) {
  .container {
    margin-left: auto;
    margin-right: auto;
  }
  .section {
    padding: 6.5rem 0 1rem;
  }
  .section__title {
    margin-bottom: 3.5rem;
  }
  .nav {
    height: calc(var(--header-height) + 1rem);
  }
  .home__handle {
    width: 290px;
    height: 400px;
  }
  .home__img {
    width: 220px;
  }
  .home__social-link {
    padding: 0.4rem;
    font-size: 1.25rem;
  }
  .home__social::after {
    transform: rotate(90deg) translate(16px, -1px);
  }
  .home__scroll-icon {
    font-size: 2rem;
  }
  .about__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    column-gap: 4rem;
  }
  .about__img {
    width: 350px;
  }
  .about__data {
    text-align: initial;
  }
  .about__info {
    justify-content: initial;
    gap: 2rem;
  }
  .about__box {
    text-align: center;
    padding: 1.25rem;
  }
  .about__description {
    padding: 0 4rem 0 0;
    margin-bottom: 2.5rem;
  }
  .skills__container {
    grid-template-columns: repeat(2, 460px);
    column-gap: 3rem;
  }
  .skills__title {
    margin-bottom: 3.5rem;
  }
  .qualification__container {
      grid-template-columns: repeat(2, 460px);
      column-gap: 3rem;
      justify-content: center;
  }
  .services__container {
    grid-template-columns: repeat(3, 300px);
    column-gap: 2rem;
  }
  .services__card {
    padding: 4rem 2rem 1.5rem;
  }
  .work__container {
    grid-template-columns: repeat(3, max-content);
    gap: 3rem;
  }
  .work__card {
    padding: 1.25rem;
  }
  .work__img {
    margin-bottom: 1.5rem;
  }
  .work__title {
    margin-bottom: 0.5rem;
  }
  .updates__card {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  .updates__media {
    width: 200px;
    height: 200px;
    justify-self: start;
  }
  .contact__info {
    grid-template-columns: 300px;
    gap: 1.5rem;
  }
  .contact__form {
    width: 500px;
  }
  .contact__form-area {
    height: 18rem;
  }
  .contact__container {
    grid-template-columns: repeat(2, auto);
    column-gap: 6rem;
  }
  .footer__social-link {
    font-size: 1.25rem;
    padding: 0.4rem;
    border-radius: 0.5rem;
  }
}
