/*-----------------------------------*\
  #CUSTOM PROPERTY
\*-----------------------------------*/

:root {
  --eerie-black: #121212;
  --smoky-black: #1e1e1e;
  --smoky-black-2: #2a2a2a;
  --light-gray: #c3c3c3;
  --white: #ffffff;
  --neon-cyan: #00f0ff;
  --neon-cyan-glow: 0 0 5px hsla(185, 100%, 50%, 0.5), 0 0 10px hsla(185, 100%, 50%, 0.5);
  --border-color: #333;

  --ff-poppins: "Poppins", sans-serif;
  --fs-1: 24px;
  --fs-2: 18px;
  --fs-3: 17px;
  --fs-4: 16px;
  --fs-5: 15px;
  --fs-6: 14px;
  --fs-7: 13px;
  --fs-8: 11px;
  --fw-300: 300;
  --fw-400: 400;
  --fw-500: 500;
  --fw-600: 600;

  --shadow-1: -4px 8px 24px hsla(0, 0%, 0%, 0.25);
  --shadow-2: 0 16px 30px hsla(0, 0%, 0%, 0.25);
  --shadow-3: 0 16px 40px hsla(0, 0%, 0%, 0.25);
  --shadow-4: 0 25px 50px hsla(0, 0%, 0%, 0.15);
  --shadow-5: 0 24px 80px hsla(0, 0%, 0%, 0.25);

  --transition-1: 0.25s ease;
  --transition-2: 0.5s ease-in-out;
}

/*-----------------------------------*\
  #RESET
\*-----------------------------------*/

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
a {
  text-decoration: none;
}
li {
  list-style: none;
}
img,
ion-icon,
a,
button,
time,
span {
  display: block;
}
button {
  font: inherit;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
}
input,
textarea {
  display: block;
  width: 100%;
  background: none;
  font: inherit;
}
::selection {
  background: var(--neon-cyan);
  color: var(--eerie-black);
}
:focus {
  outline-color: var(--neon-cyan);
}
html {
  font-family: var(--ff-poppins);
}
body {
  background: var(--eerie-black);
}

/*-----------------------------------*\
  #REUSED STYLE
\*-----------------------------------*/

.sidebar,
article {
  background: var(--smoky-black);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 15px;
  box-shadow: var(--shadow-1);
  z-index: 1;
}
.separator {
  width: 100%;
  height: 1px;
  background: var(--border-color);
  margin: 16px 0;
}
.icon-box {
  position: relative;
  background: var(--border-color);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  color: var(--neon-cyan);
  box-shadow: var(--shadow-1);
  z-index: 1;
}
.icon-box::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--smoky-black-2);
  border-radius: inherit;
  z-index: -1;
}
.icon-box ion-icon {
  --ionicon-stroke-width: 35px;
}
article {
  display: none;
}
article.active {
  display: block;
  animation: fade 0.5s ease backwards;
}
@keyframes fade {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
.h2,
.h3,
.h4,
.h5 {
  color: var(--white);
}
.h2 {
  font-size: var(--fs-1);
}
.h3 {
  font-size: var(--fs-2);
}
.h4 {
  font-size: var(--fs-4);
}
.h5 {
  font-size: var(--fs-7);
  font-weight: var(--fw-500);
}
.article-title {
  position: relative;
  padding-bottom: 7px;
  color: var(--neon-cyan);
  text-shadow: var(--neon-cyan-glow);
}
.article-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background: var(--neon-cyan);
  border-radius: 3px;
}
.has-scrollbar::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
.has-scrollbar::-webkit-scrollbar-track {
  background: var(--smoky-black-2);
  border-radius: 5px;
}
.has-scrollbar::-webkit-scrollbar-thumb {
  background: var(--neon-cyan);
  border-radius: 5px;
}
.has-scrollbar::-webkit-scrollbar-button {
  width: 20px;
}
.content-card,
.service-item,
.testimonials-modal {
  background: var(--smoky-black-2);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-2);
  border-radius: 14px;
  padding: 15px;
  z-index: 1;
  transition: var(--transition-1);
}
.service-item,
.project-item,
.blog-post-item {
  transition: var(--transition-1);
}
.service-item:hover,
.project-item:hover,
.blog-post-item:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan);
}

/*-----------------------------------*\
  #MAIN
\*-----------------------------------*/

main {
  margin: 15px 12px;
  margin-bottom: 75px;
  min-width: 259px;
}

/*-----------------------------------*\
  #SIDEBAR
\*-----------------------------------*/

.sidebar {
  margin-bottom: 15px;
  max-height: 112px;
  overflow: hidden;
  transition: var(--transition-2);
}
.sidebar.active {
  max-height: 405px;
}
.sidebar-info {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 15px;
}
.info-content .name {
  color: var(--neon-cyan);
  font-size: var(--fs-3);
  font-weight: var(--fw-500);
  letter-spacing: -0.25px;
  margin-bottom: 10px;
}
.info-content .title {
  color: var(--white);
  background: var(--smoky-black-2);
  font-size: var(--fs-12);
  font-weight: var(--fw-300);
  width: max-content;
  padding: 3px 12px;
  border-radius: 8px;
}
.info_more-btn {
  position: absolute;
  top: -15px;
  right: -15px;
  border-radius: 0 15px;
  font-size: 13px;
  color: var(--neon-cyan);
  background: var(--border-color);
  padding: 10px;
  box-shadow: var(--shadow-2);
  transition: var(--transition-1);
  z-index: 1;
}
.info_more-btn::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: var(--smoky-black);
  transition: var(--transition-1);
  z-index: -1;
}
.info_more-btn:hover,
.info_more-btn:focus {
  background: var(--neon-cyan);
  color: var(--eerie-black);
}
.info_more-btn span {
  display: none;
}
.sidebar-info_more {
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-2);
}
.sidebar.active .sidebar-info_more {
  opacity: 1;
  visibility: visible;
}
.contacts-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.contact-item {
  min-width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}
.contact-info {
  max-width: calc(100% - 46px);
  width: calc(100% - 46px);
}
.contact-title {
  color: var(--light-gray);
  font-size: var(--fs-8);
  text-transform: uppercase;
  margin-bottom: 2px;
}
.contact-info :is(.contact-link, time, address) {
  color: var(--white);
  font-size: var(--fs-7);
}
.contact-info address {
  font-style: normal;
}
.social-list {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 15px;
  padding-bottom: 4px;
  padding-left: 7px;
}
.social-item a ion-icon {
  color: var(--light-gray);
  font-size: 24px; /* Or any size you want */
  transition: var(--transition-1);
}
.social-item a:hover ion-icon {
  color: var(--neon-cyan); /* Color on hover */
}

/*-----------------------------------*\
  #NAVBAR
\*-----------------------------------*/

.navbar {
  position: sticky;
  top: 0;
  background: var(--smoky-black);
  border-bottom: 1px solid var(--border-color);
  z-index: 4;
  backdrop-filter: blur(10px);
}
.navbar-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 0 10px;
}
.navbar-link {
  color: var(--light-gray);
  font-size: var(--fs-8);
  padding: 20px 7px;
  transition: color var(--transition-1);
}
.navbar-link:hover,
.navbar-link:focus {
  color: var(--white);
}
.navbar-link.active {
  color: var(--neon-cyan);
  text-shadow: var(--neon-cyan-glow);
}

/*-----------------------------------*\
  #ABOUT
\*-----------------------------------*/

.about .article-title {
  margin-bottom: 15px;
}
.about-text {
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
  line-height: 1.6;
}
.about-text p {
  margin-bottom: 15px;
}

/**
 * #service
 */

.service {
  margin-bottom: 35px;
}
.service-title {
  margin-bottom: 20px;
}
.service-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.service-item {
  padding: 20px;
}
.service-icon-box {
  margin-bottom: 10px;
}
.service-icon-box img {
  margin: auto;
}
.service-content-box {
  text-align: center;
}
.service-item-title {
  margin-bottom: 7px;
}
.service-item-text {
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
  line-height: 1.6;
}

/**
 * #testimonials
 */

.testimonials {
  margin-bottom: 30px;
}
.testimonials-title {
  margin-bottom: 20px;
}
.testimonials-list {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 15px;
  margin: 0 -15px;
  padding: 25px 15px;
  padding-bottom: 35px;
  overflow-x: auto;
  scroll-behavior: smooth;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
}
.testimonials-item {
  min-width: 100%;
  scroll-snap-align: center;
  cursor: pointer;
}
.testimonials-avatar-box {
  position: relative;
  transform: translateY(-15px);
  margin-bottom: -15px;
  width: max-content;

  /* --- ADD THESE 4 LINES --- */
  background: transparent;  /* Makes the box invisible */
  box-shadow: none;         /* Removes the shadow from the box */
  margin-left: auto;       /* Centers the box */
  margin-right: auto;     /* Centers the box */
}
/* You can delete or comment-out your 
  .testimonials-avatar-box rule 
*/

.achievement-icon-box {
  position: relative;
  width: 60px; /* Same size as your old avatar */
  height: 60px;
  
  /* This pulls it up */
  transform: translateY(-15px);
  margin-bottom: -15px; 

  /* This centers it */
  margin-left: auto;
  margin-right: auto;

  /* This styles the icon */
  background: var(--smoky-black-2);
  border-radius: 14px;
  box-shadow: var(--shadow-1);
  display: grid;
  place-items: center;
  color: var(--neon-cyan);
  font-size: 32px;
}
.testimonials-item-title {
  margin-bottom: 7px;
  align-items: center;
  color: var(--neon-cyan);
}
.testimonials-text {
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.testimonials-modal .modal-title {
  color: var(--neon-cyan);
}
.testimonials-text b {
  font-weight: bold; /* or 600 or 'bold' */
}

.testimonials-item .testimonials-date {
  display: none;
}

.testimonials-text b,
[data-modal-text] b {
  font-weight: 700; /* or 600 or 'bold' */
}
/* Hides the date on the card (but NOT in the modal) */
.content-card [data-testimonials-time] {
  display: none;
}
.testimonials-modal .modal-content {
  text-align: left; /* Aligns all text to the left */
}

.testimonials-modal .modal-content time {
  font-weight: 700
}

/* 1. Makes the DATE bold and adds uniform space below it */
.testimonials-modal time {
  font-weight: 700;
  display: block; /* Ensures it's on its own line */
  margin-top: 10px;
  margin-bottom: 20px; /* UNIFORM SPACING */
}

/* 2. Adds uniform space below the MAIN PARAGRAPH */
.testimonials-modal [data-modal-text] > p:first-child {
  margin-bottom: 20px; /* UNIFORM SPACING */
}
/*
  This styles the 80x80 box in the modal.
  It's probably very similar to your existing rule.
*/
.modal-avatar-box {
  position: relative;
  width: 80px;
  height: 80px;
  background: var(--smoky-black-2);
  border-radius: 14px;
  box-shadow: var(--shadow-1);
  
  /* Use grid to center the icon perfectly */
  display: grid;
  place-items: center;
}

/* This styles the new ion-icon inside that box.
*/
.modal-avatar-box ion-icon {
  color: var(--neon-cyan);
  font-size: 40px; /* Or whatever size you like */
}
.testimonials-modal .testimonials-link-wrapper {
  display: flex;         /* Aligns items in a row */
  flex-wrap: wrap;       /* Lets them wrap on tiny screens */
  gap: 8px;              /* Adds a clean 8px space */
  color: var(--light-gray);
  font-size: var(--fs-6);
}

/* 4. Styles the LINK itself */
.testimonials-modal .testimonials-link-wrapper a {
  color: var(--light-gray);
  font-weight: 400; /* Normal weight */
  text-decoration: underline; /* Underlined, as in your screenshot */
}

.testimonials-modal .testimonials-link-wrapper a:hover {
  color: var(--neon-cyan);
}
/**
 * #testimonials-modal & project-modal
 */

.modal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 20;
  pointer-events: none;
  visibility: hidden;
}
.modal-container::-webkit-scrollbar {
  display: none;
}
.modal-container.active {
  pointer-events: all;
  visibility: visible;
}
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: hsl(0, 0%, 5%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1;
  transition: var(--transition-1);
}
.overlay.active {
  opacity: 0.8;
  visibility: visible;
  pointer-events: all;
}
.testimonials-modal {
  position: relative;
  margin: 15px 12px;
  transform: scale(1.2);
  opacity: 0;
  transition: var(--transition-1);
  z-index: 2;
}
.modal-container.active .testimonials-modal {
  transform: scale(1);
  opacity: 1;
}
.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--smoky-black-2);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--white);
  font-size: 18px;
  opacity: 0.7;
}
.modal-close-btn:hover,
.modal-close-btn:focus {
  opacity: 1;
}
.modal-close-btn ion-icon {
  --ionicon-stroke-width: 50px;
}
.modal-avatar-box {
  background: var(--smoky-black-2);
  width: max-content;
  border-radius: 14px;
  margin-bottom: 15px;
  box-shadow: var(--shadow-2);
}
.modal-img-wrapper > img {
  display: none;
}
.modal-title {
  margin-bottom: 4px;
}
.modal-content time {
  font-size: var(--fs-6);
  color: var(--light-gray);
  font-weight: var(--fw-300);
  margin-bottom: 10px;
}
.modal-content p {
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
  line-height: 1.6;
}

/**
 * #clients
 */

.clients {
  margin-bottom: 15px;
}
.clients-list {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 15px;
  margin: 0 -15px;
  padding: 25px;
  padding-bottom: 25px;
  overflow-x: auto;
  scroll-behavior: smooth;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scroll-padding-inline: 25px;
}
.clients-item {
  position: relative;
  min-width: 50%;
  scroll-snap-align: start;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 15px;
  transition: var(--transition-1);
}

.clients-item button {
  width: 100%;
}

.clients-item img {
  width: 100%;
  transition: var(--transition-1);
}

.clients-item:hover img,
.clients-item.active img {
  filter: grayscale(0);
}

.clients-item.active {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan);
}

.clients-rating {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3px;
  margin-top: 10px;
  color: var(--neon-cyan);
  font-size: 14px;
  opacity: 0;
  transition: var(--transition-1);
}

.clients-item.active .clients-rating,
.clients-item:hover .clients-rating {
  opacity: 1;
}

/**
 * #hobbies
 */

.hobbies {
  margin-bottom: 30px;
}

.hobbies-title {
  margin-bottom: 20px;
}

.hobbies-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}

.hobbies-item {
  border: 1px solid transparent;
  border-radius: 14px;
  overflow: hidden;
  transition: var(--transition-1);
  aspect-ratio: 3 / 4;
}

.hobbies-item:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan);
}

.hobbies-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hobby-modal {
  background: var(--smoky-black);
  position: relative;
  padding: 30px;
  margin: 15px 12px;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  box-shadow: var(--shadow-5);
  transform: scale(1.2);
  opacity: 0;
  transition: var(--transition-1);
  z-index: 2;
  max-width: 400px;
  text-align: center;
}

.modal-container.active .hobby-modal {
  transform: scale(1);
  opacity: 1;
}

.hobby-modal-title {
  color: var(--neon-cyan);
  font-size: var(--fs-2);
  margin-bottom: 10px;
  text-shadow: var(--neon-cyan-glow);
}

.hobby-modal-text {
  color: var(--light-gray);
  font-size: var(--fs-6);
  line-height: 1.6;
}

.hobby-modal-link {
  display: none; /* Hidden by default; JS will show it */
  margin-top: 20px;
  color: var(--neon-cyan);
  font-size: var(--fs-6);
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  transition: var(--transition-1);
}

.hobby-modal-link:hover {
  text-decoration: underline;
}
/*-----------------------------------*\
  #RESUME
\*-----------------------------------*/

.article-title {
  margin-bottom: 30px;
}

/**
 * education and experience
 */

.timeline {
  margin-bottom: 30px;
}
.timeline .title-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}
.timeline-list {
  font-size: var(--fs-6);
  margin-left: 45px;
}
.timeline-item {
  position: relative;
}
.timeline-item:not(:last-child) {
  margin-bottom: 20px;
}
.timeline-item-title {
  color: var(--neon-cyan); /* NOW it's your light blue accent */
  font-size: var(--fs-5);
  font-weight: var(--fw-600);
  margin-bottom: 5px;
}
.timeline-list span {
  color: var(--neon-cyan);
  font-weight: var(--fw-400);
  line-height: 1.6;
}
.timeline-item:not(:last-child)::before {
  content: "";
  position: absolute;
  top: -25px;
  left: -30px;
  width: 1px;
  height: calc(100% + 50px);
  background: var(--border-color);
}
.timeline-item::after {
  content: "";
  position: absolute;
  top: 5px;
  left: -33px;
  height: 6px;
  width: 6px;
  background: var(--neon-cyan);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--border-color);
}
.timeline-text {
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
  line-height: 1.6;
  text-align: justify;
  
  /* --- This is the fix --- */
  list-style-type: none; /* Hides the default dot */
  margin-top: 20px;      /* This was missing from my previous code */
  padding-left: 0;       /* Resets list padding */
}
.timeline-item-company {
  color: var(--light-gray); /* A good contrast but softer than white */
  font-size: var(--fs-6);
  font-weight: var(--fw-500); /* Medium weight */
  margin-top: 0;             /* No extra top margin, close to title */
  margin-bottom: 10px;       /* Good space below company name */
}
.timeline-item-date {
  color: var(--light-gray); /* Swapped to a softer, standard color */
  font-size: var(--fs-6);
  font-weight: var(--fw-500);
  display: block;
  margin-bottom: 20px;
}
.timeline-text li {
  position: relative;     /* Required for the custom bullet */
  padding-left: 20px;   /* Space for the '>' */
  margin-bottom: 10px;  /* Space between bullets */
}
.timeline-text1{
  color: var(--light-gray); /* A good contrast but softer than white */
  font-size: var(--fs-6);
  font-weight: var(--fw-500); /* Medium weight */
  margin-top: 0;             /* No extra top margin, close to title */
  margin-bottom: 10px;       /* Good space below company name */
}
.timeline-text li::before {
  content: '>';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--neon-cyan); /* Your blue color */
  font-weight: 700;
}
.timeline-text li:last-child {
  margin-bottom: 0;
}
.timeline-text b {
  font-weight: 600;
  color: var(--white-2);
}

/**
 * skills
 */

.skills-title {
  margin-bottom: 20px;
}
.skills-list,
.project-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.skills-list {
  padding: 20px;
}
.skills-item:not(:last-child) {
  margin-bottom: 15px;
}
.skill .title-wrapper {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
}
.skill .title-wrapper data {
  color: var(--light-gray);
  font-size: var(--fs-7);
  font-weight: var(--fw-300);
}
.skill-progress-bg {
  background: var(--border-color);
  width: 100%;
  height: 8px;
  border-radius: 10px;
}
.skill-progress-fill {
  background: var(--neon-cyan);
  height: 100%;
  border-radius: inherit;
}

/*-----------------------------------*\
  #PORTFOLIO
\*-----------------------------------*/

.filter-list {
  display: none;
}
.filter-select-box {
  position: relative;
  margin-bottom: 25px;
}
.filter-select {
  background: var(--smoky-black);
  color: var(--light-gray);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
}
.filter-select.active .select-icon {
  transform: rotate(0.5turn);
}
.select-list {
  background: var(--smoky-black-2);
  position: absolute;
  top: calc(100% + 6px);
  width: 100%;
  padding: 6px;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: 0.15s ease-in-out;
}
.filter-select.active + .select-list {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}
.select-item button {
  background: var(--smoky-black-2);
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
  text-transform: capitalize;
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
}
.select-item button:hover {
  background: var(--smoky-black);
}
.project-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 10px;
}
.project-item {
  display: none;
}
.project-item.active {
  display: block;
  animation: scaleUp 0.25s ease forwards;
}
@keyframes scaleUp {
  0% {
    transform: scale(0.5);
  }
  100% {
    transform: scale(1);
  }
}
.project-item > button {
  width: 100%;
}
.project-img {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 15px;
}
.project-img::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 1;
  transition: var(--transition-1);
}
.project-item > button:hover .project-img::before {
  background: hsla(0, 0%, 0%, 0.5);
}
.project-item-icon-box {
  --scale: 0.8;
  background: var(--border-color);
  color: var(--neon-cyan);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(var(--scale));
  font-size: 20px;
  padding: 18px;
  border-radius: 12px;
  opacity: 0;
  z-index: 1;
  transition: var(--transition-1);
}
.project-item > button:hover .project-item-icon-box {
  --scale: 1;
  opacity: 1;
}
.project-item-icon-box ion-icon {
  --ionicon-stroke-width: 50px;
}
.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-1);
}
.project-item > button:hover img {
  transform: scale(1.1);
}
.project-title,
.project-category {
  margin-left: 10px;
}
.project-title {
  color: var(--white);
  font-size: var(--fs-5);
  font-weight: var(--fw-400);
  text-transform: capitalize;
  line-height: 1.3;
}
.project-category {
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
}

/*-----------------------------------*\
  #BLOG
\*-----------------------------------*/

.blog-posts {
  margin-bottom: 10px;
}

.blog-posts-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.blog-post-item {
  background: var(--smoky-black-2);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow-4);
  overflow: hidden; /* Ensures button corners are rounded */
}

/* NEW: Resets the button so it looks invisible 
*/
.blog-post-button {
  background: transparent;
  border: none;
  margin: 0;
  font: inherit; /* Uses your page's font */
  color: inherit; /* Uses your page's text color */
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.blog-banner-box {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
}

.blog-banner-box img {
  width: 100%;
  height: 100%;
  object-fit: content;
  transition: var(--transition-1);
}

/* UPDATED: Now targets the button hover
*/
.blog-post-button:hover .blog-banner-box img {
  transform: scale(1.1);
}

/* FIXED: Merged duplicate rules 
*/
.blog-post-button .blog-content {
  padding: 15px;
}
/* FIXED: Merged duplicate rules 
*/
.blog-meta {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
}

.blog-meta :is(.blog-category, time) {
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
}

.blog-meta .dot {
  background: var(--light-gray);
  width: 4px;
  height: 4px;
  border-radius: 4px;
}

/* FIXED: Merged duplicate rules 
*/
.blog-item-title {
  margin-bottom: 10px;
  line-height: 1.3;
  transition: var(--transition-1);
}

/* UPDATED: Now targets the button hover
*/
.blog-post-button:hover .blog-item-title {
  color: var(--neon-cyan);
}

.blog-text {
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
  line-height: 1.6;
}
.blog-text p{
  font-weight: 700;
}

.blog-content {
  padding: 15px;
}

/*
  Styles the link button in the modal.
  (This is probably already in your CSS, but good to check)
*/
.project-modal-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 25px;
}

.project-modal-link {
  display: inline-block;
  padding: 10px 20px;
  background: var(--neon-cyan);
  color: var(--eerie-black);
  border-radius: 5px;
  font-size: var(--fs-6);
  font-weight: var(--fw-600);
  text-decoration: none;
  text-align: center;
  transition: background-color 0.2s ease;
  min-width: 180px;
}

.project-modal-link:hover {
  background-color: var(--blue-ryb);
  text-decoration: none;
}
/*-----------------------------------*\
  #CONTACT
\*-----------------------------------*/

.mapbox {
  position: relative;
  height: 250px;
  width: 100%;
  border-radius: 16px;
  margin-bottom: 30px;
  border: 1px solid var(--border-color);
  overflow: hidden;
}
.mapbox figure {
  height: 100%;
}
.mapbox iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(1) invert(1);
}
.contact-form {
  margin-bottom: 10px;
}
.form-title {
  margin-bottom: 20px;
}
.input-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  margin-bottom: 25px;
}
.form-input {
  color: var(--white);
  font-size: var(--fs-6);
  font-weight: var(--fw-400);
  padding: 13px 20px;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  outline: none;
}
.form-input::placeholder {
  font-weight: var(--fw-500);
}
.form-input:focus {
  border-color: var(--neon-cyan);
}
textarea.form-input {
  min-height: 100px;
  height: 120px;
  max-height: 200px;
  resize: vertical;
  margin-bottom: 25px;
}
textarea.form-input::-webkit-resizer {
  display: none;
}
.form-input:focus:invalid {
  border-color: var(--neon-cyan);
}
.form-btn {
  position: relative;
  width: 100%;
  background: var(--border-color);
  color: var(--neon-cyan);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 14px;
  font-size: var(--fs-6);
  text-transform: capitalize;
  box-shadow: var(--shadow-3);
  z-index: 1;
  transition: var(--transition-1);
}
.form-btn::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--smoky-black);
  border-radius: inherit;
  z-index: -1;
  transition: var(--transition-1);
}
.form-btn ion-icon {
  font-size: 16px;
}
.form-btn:hover {
  background: var(--neon-cyan);
  color: var(--eerie-black);
}
.form-btn:hover::before {
  background: var(--neon-cyan);
}
.form-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.form-btn:disabled:hover {
  background: var(--border-color);
  color: var(--neon-cyan);
}
.form-btn:disabled:hover::before {
  background: var(--smoky-black);
}

/*-----------------------------------*\
  #PROJECT MODAL
\*-----------------------------------*/

.project-modal {
  background: var(--smoky-black);
  position: relative;
  padding: 30px;
  margin: 15px 12px;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  box-shadow: var(--shadow-5);
  transform: scale(1.2);
  opacity: 0;
  transition: var(--transition-1);
  z-index: 2;
  max-width: 580px;
}
.modal-container.active .project-modal {
  transform: scale(1);
  opacity: 1;
}

.project-modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--smoky-black-2);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--white);
  font-size: 18px;
  opacity: 0.7;
}

.project-modal-close-btn:hover,
.project-modal-close-btn:focus {
  opacity: 1;
}

.project-modal-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 20px;
}

.project-modal-title {
  color: var(--neon-cyan);
  font-size: var(--fs-2);
  margin-bottom: 5px;
  text-shadow: var(--neon-cyan-glow);
}

.project-modal-category {
  color: var(--light-gray);
  font-size: var(--fs-6);
  margin-bottom: 15px;
}

.project-modal-text {
  color: var(--light-gray);
  font-size: var(--fs-6);
  line-height: 1.6;
  margin-bottom: 20px;
}

.project-modal-links {
  display: flex;
  gap: 15px;
}

.project-modal-link,
.project-modal-repo {
  background: var(--smoky-black-2);
  color: var(--neon-cyan);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: var(--fs-6);
  transition: var(--transition-1);
  text-shadow: 0 0 5px var(--neon-cyan);

  /* --- Add these lines --- */
  display: block;       /* Makes it a block-level element */
  width: fit-content;   /* Makes the width fit the text */
  margin: 1px auto;    /* Adds 10px top/bottom margin & centers left/right */
}

.project-modal-link:hover,
.project-modal-repo:hover {
  background: var(--neon-cyan);
  color: var(--eerie-black);
  text-shadow: none;
}
/* Capitalizes the first letter of every word */
.filter-item button,
.navbar-item button,
.select-item button,
.select-value,
.project-category {
  text-transform: capitalize;
}
/*-----------------------------------*\
  #RESPONSIVE
\*-----------------------------------*/

@media (min-width: 450px) {
  .clients-item {
    min-width: calc(33.33% - 10px);
  }
  .project-img,
  .blog-banner-box {
    height: auto;
  }
}

@media (min-width: 580px) {
  :root {
    --fs-1: 32px;
    --fs-2: 24px;
    --fs-3: 26px;
    --fs-4: 18px;
    --fs-6: 15px;
    --fs-7: 15px;
    --fs-8: 12px;
  }
  .sidebar,
  article {
    width: 520px;
    margin-inline: auto;
    padding: 30px;
  }
  .article-title {
    font-weight: var(--fw-600);
    padding-bottom: 15px;
  }
  .article-title::after {
    width: 40px;
    height: 5px;
  }
  .icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    font-size: 18px;
  }
  main {
    margin-top: 60px;
    margin-bottom: 100px;
  }
  .sidebar {
    max-height: 180px;
    margin-bottom: 30px;
  }
  .sidebar.active {
    max-height: 584px;
  }
  .sidebar-info {
    gap: 25px;
  }
  .avatar-box {
    border-radius: 30px;
  }
  .avatar-box img {
    width: 120px;
  }
  .info-content .name {
    margin-bottom: 15px;
  }
  .info-content .title {
    padding: 5px 18px;
  }
  .info_more-btn {
    top: -30px;
    right: -30px;
    padding: 10px 15px;
  }
  .info_more-btn span {
    display: block;
    font-size: var(--fs-8);
  }
  .info_more-btn ion-icon {
    display: none;
  }
  .separator {
    margin: 32px 0;
  }
  .contacts-list {
    gap: 20px;
  }
  .contact-info {
    max-width: calc(100% - 64px);
    width: calc(100% - 64px);
  }
  .navbar {
    border-radius: 20px 20px 0 0;
  }
  .navbar-list {
    gap: 20px;
  }
  .navbar-link {
    --fs-8: 14px;
  }
  .about .article-title {
    margin-bottom: 20px;
  }
  .about-text {
    margin-bottom: 40px;
  }
  .service-item {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 18px;
    padding: 30px;
  }
  .service-icon-box {
    margin-bottom: 0;
    margin-top: 5px;
  }
  .service-content-box {
    text-align: left;
  }
  .testimonials-title {
    margin-bottom: 25px;
  }
  .testimonials-list {
    gap: 30px;
    margin: 0 -30px;
    padding: 30px;
    padding-bottom: 35px;
  }
  .content-card {
    padding: 30px;
    padding-top: 25px;
  }
  .testimonials-avatar-box {
    transform: translate(30px, -30px);
    border-radius: 20px;
  }
  .testimonials-avatar-box img {
    width: 80px;
  }

  .testimonials-text {
    -webkit-line-clamp: 2;
  }
  
  .testimonials-text b,
  .testimonials-text strong {
    font-weight: 700;
  }

  .modal-container {
    padding: 20px;
  }
  .testimonials-modal {
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    gap: 25px;
    padding: 30px;
    border-radius: 20px;
  }
  .modal-img-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .modal-avatar-box {
    border-radius: 18px;
    margin-bottom: 0;
  }
  .modal-avatar-box img {
    width: 65px;
  }
  .modal-img-wrapper > img {
    display: block;
    flex-grow: 1;
    width: 35px;
  }
  .clients-list {
    gap: 20px;
    margin: 0 -10px;
    padding: 45px;
    scroll-padding-inline: 45px;
  }
  .clients-item {
    min-width: calc(33.33% - 35px);
  }
  .timeline-list {
    margin-left: 65px;
  }
  .timeline-item:not(:last-child)::before {
    left: -40px;
  }
  .timeline-item::after {
    height: 8px;
    width: 8px;
    left: -43px;
  }
  .skills-item:not(:last-child) {
    margin-bottom: 25px;
  }
  .project-img,
  .blog-banner-box {
    border-radius: 16px;
  }
  .blog-posts-list {
    gap: 30px;
  }
  .blog-content {
    padding: 25px;
  }
  .mapbox {
    height: 380px;
    border-radius: 18px;
  }
  .input-wrapper {
    gap: 30px;
    margin-bottom: 30px;
  }
  .form-input {
    padding: 15px 20px;
  }
  textarea.form-input {
    margin-bottom: 30px;
  }
  .form-btn {
    --fs-6: 16px;
    padding: 16px 20px;
  }
  .form-btn ion-icon {
    font-size: 18px;
  }
}

@media (min-width: 768px) {
  .sidebar,
  article {
    width: 700px;
  }
  .has-scrollbar::-webkit-scrollbar-button {
    width: 100px;
  }
  .contacts-list {
    grid-template-columns: 1fr 1fr;
    gap: 30px 15px;
  }
  .navbar-link {
    --fs-8: 15px;
  }
  .testimonials-modal {
    gap: 35px;
    max-width: 680px;
  }
  .modal-avatar-box img {
    width: 80px;
  }
  .article-title {
    padding-bottom: 20px;
  }
  .filter-select-box {
    display: none;
  }
  .filter-list {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 25px;
    padding-left: 5px;
    margin-bottom: 30px;
  }
  .filter-item button {
    color: var(--light-gray);
    font-size: var(--fs-5);
    transition: var(--transition-1);
  }
  .filter-item button:hover {
    color: var(--white);
  }
  .filter-item button.active {
    color: var(--neon-cyan);
  }
  .project-list,
  .blog-posts-list {
    grid-template-columns: 1fr 1fr;
  }
  .input-wrapper {
    grid-template-columns: 1fr 1fr;
  }
  .form-btn {
    width: max-content;
    margin-left: auto;
  }
}

@media (min-width: 1024px) {
  :root {
    --shadow-1: -4px 8px 24px hsla(0, 0%, 0%, 0.125);
    --shadow-2: 0 16px 30px hsla(0, 0%, 0%, 0.125);
    --shadow-3: 0 16px 40px hsla(0, 0%, 0%, 0.125);
  }
  .sidebar,
  article {
    width: 950px;
    box-shadow: var(--shadow-5);
  }
  main {
    margin-bottom: 60px;
  }
  .main-content {
    position: relative;
    width: max-content;
    margin: auto;
  }
  .navbar {
    position: absolute;
    bottom: auto;
    top: 0;
    left: auto;
    right: 0;
    width: max-content;
    border-radius: 0 20px;
    padding: 0 20px;
    box-shadow: none;
  }
  .navbar-list {
    gap: 30px;
    padding: 0 20px;
  }
  .navbar-link {
    font-weight: var(--fw-500);
  }
  .service-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 25px;
  }
  .testimonials-item {
    min-width: calc(50% - 15px);
  }
  .clients-item {
    min-width: calc(25% - 38px);
  }

  .skills-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 25px;
  }
  .project-list {
    grid-template-columns: repeat(3, 1fr);
  }
  .blog-banner-box {
    height: 230px;
  }
}

@media (min-width: 1250px) {
  body::-webkit-scrollbar {
    width: 20px;
  }
  body::-webkit-scrollbar-track {
    background: var(--eerie-black);
  }
  body::-webkit-scrollbar-thumb {
    border: 5px solid var(--eerie-black);
    background: hsla(0, 0%, 100%, 0.1);
    border-radius: 20px;
    box-shadow: inset 1px 1px 0 hsla(0, 0%, 100%, 0.11),
      inset -1px -1px 0 hsla(0, 0%, 100%, 0.11);
  }
  body::-webkit-scrollbar-thumb:hover {
    background: hsla(0, 0%, 100%, 0.15);
  }
  body::-webkit-scrollbar-button {
    height: 60px;
  }
  .sidebar,
  article {
    width: auto;
  }
  article {
    min-height: 100%;
  }
  main {
    max-width: 1200px;
    margin-inline: auto;
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 25px;
  }
  .main-content {
    min-width: 75%;
    width: 75%;
    margin: 0;
  }
  .sidebar {
    position: sticky;
    top: 60px;
    max-height: max-content;
    height: 100%;
    margin-bottom: 0;
    padding-top: 60px;
    z-index: 1;
  }
  .sidebar-info {
    flex-direction: column;
  }
  .avatar-box img {
    width: 150px;
  }
  .info-content .name {
    white-space: nowrap;
    text-align: center;
  }
  .info-content .title {
    margin: auto;
  }
  .info_more-btn {
    display: none;
  }
  .sidebar-info_more {
    opacity: 1;
    visibility: visible;
  }
  .contacts-list {
    grid-template-columns: 1fr;
  }
  .contact-info :is(.contact-link) {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .contact-info :is(.contact-link, time, address) {
    --fs-7: 14px;
    font-weight: var(--fw-300);
  }
  .separator:last-of-type {
    margin: 15px 0;
    opacity: 0;
  }
  .social-list {
    justify-content: center;
  }
  .timeline-text {
    max-width: 700px;
  }
}
