/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&family=Newsreader:ital,wght@0,600;1,600&family=IBM+Plex+Mono:wght@500;600&display=swap");

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

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  /*   
        Purple: hsl(250, 66%, 75%)
        Blue: hsl(207, 90%, 72%)
        Pink: hsl(356, 66%, 75%)
        Teal: hsl(174, 63%, 62%)
  */
  --first-hue: 38;
  --sat: 78%;
  --lig: 65%;
  --second-hue: 219;
  --first-color: #e3a05a;
  --first-color-alt: #82b3cc;
  --accent-green: #86b573;
  --accent-green-light: #a9d296;
  --accent-red: #d97a64;
  --title-color: #ece8da;
  --text-color: #a7a48f;
  --text-color-light: #8a8570; /* lightened from #726f5d for AA contrast (~4.9:1) on --body-color */
  --body-color: #14160f;
  --container-color: #1b1e14;

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --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: 0.4s; /* for light mode animation */
}

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;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #e3a05a;
  outline-offset: 2px;
  border-radius: 2px;
}

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

/*=============== THEME ===============*/
.change__theme {
  font-size: 1.25rem;
  cursor: pointer;
  transition: 0.3s;
}

.change__theme:hover {
  color: #e3a05a;
}

/*========== 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: #e9e9e9;
}

/*========== 
    Color changes in some parts of 
    the website, in light theme
==========*/
.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%, 90%, 0.8);
}

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

.light-theme .home__social-link {
  box-shadow: 0 2px 16px 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 .about__box {
  box-shadow: 0 2px 16px hsla(var(--second-hue), 48%, 8%, 0.1);
}

.light-theme .button,
.light-theme .skills__content,
.light-theme .services__card,
.light-theme .work__card,
.light-theme .testimonial__card,
.light-theme .contact__card,
.light-theme .contact__form-div {
  box-shadow: 0 2px 16px hsla(var(--second-hue), 48%, 8%, 0.1);
}

.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: #e3a05a;
  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%;
  /* height: var(--header-height); */
  background-color: var(--body-color);
  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: #e3a05a;
  font-weight: var(--font-medium);
  transition: 0.4s;
}

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

.nav__menu {
  position: fixed;
  bottom: 0.5rem;
  background-color: hsla(var(--second-hue), 32%, 16%, 0.8);
  width: 95%;
  left: 2.5%;
  border-radius: 4rem;
  padding: 0.6rem 2.25rem;
  backdrop-filter: blur(10px);
  transition: 0.4s;
}

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

.nav__link {
  color: var(--text-color);
  font-size: 1.25rem;
  padding: 0.3rem;
  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.5),
    hsla(var(--first-hue), var(--sat), var(--lig), 0.2)
  );
  box-shadow: 0 0 16px hsla(var(--first-hue), var(--sat), var(--lig), 0.4);
  border-radius: 5rem;

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

/* Change background header */
.scroll-header {
  box-shadow: 0 4px 4px hsla(0, 0%, 4%, 0.3);
}

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

.home__data {
  text-align: center;
}

.home__greeting,
.home__education {
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  transition: opacity 0.5s ease-in-out;
}

.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(--title-color);
}

.home__animated-text-container {
  overflow: hidden;
  display: inline-block;
  width: 100%;
}

.animated-text {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  max-width: 100%;
  vertical-align: top;
}


.home__img {
  width: 160;
  scale: 1.2;
}

.home__handle {
  justify-self: center;
  width: 190px;
  height: 293px;
  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: 10rem 10rem 1rem 1rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;

  z-index: 1;
}

.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;
  z-index: 10000;
}

.home__social-link {
  width: max-content;
  background-color: var(--container-color);
  color: #e3a05a;
  padding: 0.25rem;
  border-radius: 0.5rem;
  display: flex;
  font-size: 1rem;
  transition: 0.4s;
}

.home__social-link:hover {
  background-color: #e3a05a;
  color: #ffffff;
}

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

.home__scroll {
  color: #e3a05a;
  right: -1.5rem;
  bottom: 4rem;
  display: grid;
  row-gap: 2.25rem;
  justify-items: center;
  z-index: 10000;
}

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

.home__scroll-name {
  font-size: var(--smaller-font-size);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
}

/*
.hex-collage {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 0;
  overflow: hidden;
  position: relative;
}

.hex-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
}

.hex-row {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.hex-row.offset {
  margin-left: 75px;
}

.hex {
  width: 160px;
  height: 138px;
  clip-path: polygon(25% 5.77%, 75% 5.77%, 100% 50%, 75% 94.23%, 25% 94.23%, 0% 50%);
  overflow: hidden;
  position: relative;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hex img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.hex:hover img {
  filter: grayscale(0%);
}

.hex-collage:hover .hex-container {
  animation: rotate 10s infinite linear;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
*/



.hex-grid {
  perspective: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 2cm;

  -webkit-mask-image: linear-gradient(to right,
                      transparent 0%,
                      transparent 10%,   /* Fade in ENDS, visible starts here */
                      black 35%,         /* Fully visible at 45% */
                      black 65%,         /* Stays fully visible until 55% */
                      transparent 90%,   /* Fade out STARTS here */
                      transparent 100%
                    );
  mask-image: linear-gradient(to right,
                      transparent 0%,
                      transparent 10%,
                      black 35%,
                      black 65%,
                      transparent 90%,
                      transparent 100%
                    );

  /*
  -webkit-mask-image: linear-gradient(to right, transparent, black 50%, black 50%, transparent);
  mask-image: linear-gradient(to right, transparent, black 50%, black 50%, transparent);
  */
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
  z-index: 10000;
}

.hex-row {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin: -0.25rem 0;
}

.hex-row.offset {
  margin-left: 135px;
}

.hex {
  width: 135px;
  height: 135px;
  clip-path: polygon(
    50% 0%, 93% 25%, 93% 75%,
    50% 100%, 7% 75%, 7% 25%
  );
  overflow: hidden;
  position: relative;
  /*flex-shrink: 0;*/
  transform: translateY(-1px); /* move up */
  box-shadow: none; /* Explicitly ensure no default box-shadow */

  /* Add transitions for the new hover effects on the hex itself */
  transition: transform 0.3s ease-out, z-index 0s; /* Z-index transition should be instant */
  /*box-shadow: 0 0 0 transparent; /* Base shadow, no shadow by default */
  
  will-change: transform; /* Optimize for smooth animation */
}

/* Pseudo-element for the glow/shadow */
.hex::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Inherit the clip-path from the parent .hex so the shadow follows the hex shape */
  clip-path: inherit;
  /* Make sure it's behind the image/content but within the hex */
  z-index: 2;

  /* Initialize shadow to transparent for transition */
  box-shadow: 0 0 0 transparent;
  transition: box-shadow 0.3s ease-out; /* ONLY transition the box-shadow here */
  will-change: box-shadow;
}

.hex img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}


.hex:hover {
  /* Combine translateY with translateZ and scale for the pop-out effect */
  transform: translateY(-1px) /* Keep original Y position, or adjust slightly if you want a subtle lift too */
             translateZ(75px)   /* Move towards the viewer by 50px. Adjust for stronger pop. */
             scale(1.25);        /* Scale up to 110% of its size. Adjust for larger pop. */

  z-index: 10; /* Bring the hovered hex to the front of its siblings */
}

/* Apply the bright shadow to the pseudo-element on hex hover */
.hex:hover::before {
  box-shadow:
    0px 0px 30px rgba(var(--first-hue), var(--sat), var(--lig), 0.7), /* The bright colored glow */
    0px 10px 20px rgba(0, 0, 0, 0.4); /* Optional: A darker shadow underneath for more depth */
}

.hex:hover img {
  
  filter: grayscale(0%);
  /*transform: scale(1.1);*/
}


.hex-wrapper {
  display: flex;
  animation: scrollLeft 30s linear infinite;
  width: max-content;
}

/* Pause the auto-scroll on hover — otherwise :hover only ever catches a
   tile by coincidence, since CSS only re-evaluates :hover on mouse
   movement, not on every animation frame the tiles scroll past a
   stationary cursor. */
.hex-grid:hover .hex-wrapper {
  animation-play-state: paused;
}

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

/*=============== BUTTONS ===============*/
.button {
  display: inline-block;
  background-color: #e3a05a;
  color: var(--body-color);
  padding: 0.75rem 1rem;
  border-radius: 0.8rem;
  font-weight: var(--font-medium);
  transition: 0.4s;
}

.button:hover {
  background-color: var(--first-color-alt);
  color: var(--body-color);
}

.button--ghost {
  background-color: transparent;
  color: #e3a05a;
  border: 1px solid var(--first-color);
}

.button--ghost:hover {
  background-color: hsla(var(--first-hue), var(--sat), var(--lig), 0.08);
  color: #e3a05a;
  box-shadow: 0 0 20px hsla(var(--first-hue), var(--sat), var(--lig), 0.6);
}

.about__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.about__buttons .button {
  flex: 1 1 160px;
  text-align: center;
}

/* .about__button-contact also carries .services__button (to open the
   contact modal), which sets display:flex, a gold text color, and (for
   the Services "See More" buttons) a stripped border/padding — all of
   which collide with the ghost-button look this is supposed to have.
   Force it back to the same look as the CV button. */
.about__button-contact.services__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: #e3a05a;
  border: 1px solid var(--first-color);
  padding: 0.75rem 1rem;
  text-align: center;
}

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

.about__img {
  width: 220px;
  border-radius: 1.5rem;
  justify-self: center;
  z-index: 1;
}

.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: 0.75rem 0.5rem;
}

.about__icon {
  font-size: 1.5rem;
  color: #e3a05a;
  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;
}

/* Styles for all paragraphs within .about__data */
.about__data p {
    text-align: justify; /* Aligns text to both left and right margins */
    line-height: 1.6;    /* Improves readability for justified text */
    text-rendering: optimizeLegibility; /* Optional: Helps with font rendering for justified text */
    margin-bottom: 1rem; /* Gap between paragraphs */
}

/* Add larger gap after the last paragraph specifically */
.about__data p:last-of-type {
    margin-bottom: 2.5rem; /* Adjust for space between last paragraph and button */
}

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

/* CSS Variables for easier adjustment */
.skills__container {
    /* Define these based on your desired layout */
    --card-gap: 2rem; /* Space between cards */
    --num-original-cards: 6; /* IMPORTANT: Number of unique skills__content divs */
    --animation-duration: 30s; /* Total animation time for one loop */
    
    /* Default width for cards - reduced to about 60% of the previous value */
    --card-base-width: 13%; 
    --card-width-calc: calc(var(--card-base-width) - var(--card-gap) * 2 / var(--num-original-cards)); /* Distribute gap */
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .skills__container {
        --card-base-width: 50%; /* Make cards narrower on small screens */
        --animation-duration: 26s; /* Slightly slower on mobile */
    }
}

/* Skills wrapper to enable horizontal scrolling */
.skills__wrapper {
    overflow: hidden; /* Hide scrollbars */
    position: relative;
    width: 100%; /* Stretch to the full content area */
    max-width: 100%;
    height: 75vh; /* Adjust as needed, or remove if content defines height */
}

.skills__container {
    display: flex; /* Make it a flex container to arrange cards horizontally */
    /* Remove 'grid' from the class list in HTML for .skills__container if it's there,
       as it conflicts with display: flex for this purpose. */
    
    width: max-content; /* Allows content to define width, important for animation */
    margin: 0; /* Override any container centering */
    padding: 0;
    
    animation: scrollSkills var(--animation-duration) linear infinite;
}

/* Individual skill cards */
.skills__content {
    flex: 0 0 var(--card-width-calc); /* Keep each card fixed to the calculated width */
    width: var(--card-width-calc);
    margin-right: var(--card-gap); /* Space between cards */
    
    background-color: var(--container-color);
    padding: 0.5rem;
    border-radius: 1.25rem;
    box-sizing: border-box; /* Ensure padding does not affect width */

    /* Performance optimization for smooth scrolling */
    will-change: transform;
    transform: translateZ(0); /* Force GPU acceleration */
}

/* Keyframes for infinite scrolling */
@keyframes scrollSkills {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Translate by the width of all original cards + margins.
           This is required for a seamless loop once the originals are duplicated. */
        transform: translateX(calc(-1 * (var(--card-width-calc) + var(--card-gap)) * var(--num-original-cards)));
    }
}

/* Existing styles for internal content of cards */
.skills__title {
    font-size: var(--normal-font-size);
    font-weight: var(--font-medium);
    color: #e3a05a;
    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: #e3a05a;
}

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

.skills__level {
    font-size: var(--small-font-size);
}
/*=============== SKILLS ===============*/
/* Skills wrapper to enable horizontal scrolling */
/* .skills__wrapper {
  overflow: hidden; /* Hide scrollbars */
  /*position: relative;
  width: 100%; /* Full width */
  /*height: 50vh; /* Adjust as needed */
  /* height: 100vh; Ensure it takes full viewport height */
/*}

.skills__container {
  /* row-gap: 2rem;
  padding-top: 1rem;  */
  /*display: flex;
  /* transition: transform 0.5s ease; Smooth scrolling effect */
  /*animation: scroll 30s linear infinite; /* Adjust duration and easing as needed */
  /*white-space: nowrap; /* Prevent wrapping */

  /* Add transitions for the hover effects */
  /*transition: transform 0.3s ease-out, box-shadow 0.3s ease-out, z-index 0s 0.3s; /* z-index transition is tricky, setting delay */
  /*z-index: 1; /* Base z-index */
/*}


.skills__content {
  flex: 0 0 auto; /* Each section takes full width of the container */
  /*min-width: 50%;
  background-color: var(--container-color);
  padding: 0.5rem;
  border-radius: 1.25rem;
  box-sizing: border-box; /* Ensure padding does not affect width */
  /*display: inline-block; /* Flexbox for horizontal alignment */
/*}

/* Keyframes for infinite scrolling */
/*@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

.skills__title {
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  color: #e3a05a;
  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: #e3a05a;
}

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

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

/*=============== SERVICES ===============*/
.services__container {
  grid-template-columns: repeat(2, minmax(360px, 1fr));
  gap: 2rem;
  padding-top: 1rem;
  width: min(100%, 1040px);
  margin: 0 auto;
}

.services__card {
  background-color: var(--container-color);
  padding: 3rem 2rem 1.5rem;
  border-radius: 1.25rem;
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out; /* Smooth transition for both effects */
  z-index: 10;
  min-height: 18rem;
}

.services__card:hover {
    /* Popping Out Effect */
    /* Moves the card up slightly and scales it up a tiny bit for a pop-out feel */
    transform: translateY(-10px) scale(1.02); 
    
    /* Bright Edges / Glow Effect using box-shadow */
    /* This creates a subtle shadow for depth and a glowing outline */
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.4), /* A larger, darker shadow for perceived depth */
        0 0 20px 5px hsla(var(--first-hue), var(--sat), var(--lig), 0.7); /* A bright, glowing edge using your theme color */
        
    /* Increase z-index on hover to ensure it layers above adjacent cards that aren't hovered */
    z-index: 10; 
}

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

.services__preview-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.services__preview-skills .skill-chip {
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
}

.services__button {
  color: #e3a05a;
  font-size: var(--small-font-size);
  display: flex;
  align-items: center;
  column-gap: 0.25rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  text-align: left;
}

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

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

/* When the body has 'modal-open' class (meaning a modal is active),
   reset the transform on all service cards */
body.modal-open .services__card {
    transform: none !important; /* This should now correctly override ScrollReveal's transform */
}

/* Services modal */
.services__modal {
  position: fixed;
  inset: 0;
  background-color: hsl(var(--second-hue), 28%, 16%, 0.7);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.4s;
  z-index: var(--z-modal);
  visibility: hidden;
  opacity: 0;
}

/* Show the modal */
/* .services__modal.show {
  visibility: visible; /* Show when active 
  opacity: 1; /* Show when active 
} */

.services__modal-content {
  background-color: var(--body-color);
  padding: 3rem 2rem 2rem;
  border-radius: 1.5rem;
  position: relative;
  width: min(92vw, 760px);
  max-height: calc(100vh - 90px);
  overflow-y: auto;
  box-sizing: border-box;
}

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

.services__modal-title {
  font-size: var(--h3-font-size);
  color: #e3a05a;
  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: #e3a05a;
}

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

.services__modal-skills {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid hsla(var(--first-hue), var(--sat), var(--lig), 0.15);
}

.services__modal-skills-label {
  display: block;
  font-size: var(--smaller-font-size);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-color-light);
  margin-bottom: 0.75rem;
  text-align: center;
}

.services__modal-skills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.skill-chip {
  font-size: var(--smaller-font-size);
  padding: 0.3rem 0.75rem;
  border: 1px solid hsla(var(--first-hue), var(--sat), var(--lig), 0.35);
  border-radius: 999px;
  color: #e3a05a;
  background: hsla(var(--first-hue), var(--sat), var(--lig), 0.06);
}

.services__modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.5rem;
  color: #e3a05a;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.25rem;
  line-height: 1;
}
/*Active modal*/

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



/*=============== WORK ===============*/

.work__container {
  padding-top: 1rem;
  z-index: 2;
}

/* Project scrolling viewport and arrows */
.work__gallery {
  position: relative;
  width: min(100%, calc(4 * 18rem + 3 * 2.5rem + 1rem));
  max-width: calc(4 * 18rem + 3 * 2.5rem + 1rem);
  margin: 0 auto;
}

.work__viewport {
  position: relative;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  height: auto;
}

.work__list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, minmax(0, auto));
  grid-auto-columns: 18rem;
  gap: 2.5rem;
  justify-items: center;
  transition: transform 0.45s cubic-bezier(.22,.9,.35,1);
  width: max-content;
}

.work__card {
  width: 18rem;
  box-sizing: border-box;
}

.work__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  min-width: 70px;
  min-height: 70px;
  width: 100px;
  height: 700px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.38);
  color: #e3a05a;
  border: 0px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 12px 24px rgba(0,0,0,0.18);
  transition: all 0.3s ease;
}

.work__arrow:hover {
  background: rgba(0,0,0,0.1);
  border-color: rgba(255,255,255,0.15);
}

/* Default (also covers moderate desktop widths where there isn't room
   for the arrows to sit fully outside the gallery): a small inset, so
   they always stay on-screen and clickable. */
.work__arrow--left { left: 15px; }
.work__arrow--right { right: 15px; }

/* Wide screens: the gallery box has enough side margin around it for the
   arrows to sit just outside its boundary, on the open background,
   instead of inset within it — the boundary ends where the button
   starts. translateX offsets by the arrow's own width so this holds
   regardless of what width the gallery box actually resolves to. */
@media screen and (min-width: 1560px) {
  .work__arrow--left { left: 0; transform: translateY(-50%) translateX(calc(-100% - 12px)); }
  .work__arrow--right { right: 0; transform: translateY(-50%) translateX(calc(100% + 12px)); }
}

/* Hide arrows and revert to regular flow on small screens */
@media screen and (max-width: 768px) {
  .work__viewport { overflow: visible; padding-left: 0; padding-right: 0; }
  .work__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; row-gap: 2rem; transform: none !important; }
  .work__card { width: 100%; flex: 1 1 auto; }
  .work__arrow { display: none; }
}

@media screen and (max-width: 630px) {
  .work__list { grid-template-columns: repeat(1, 1fr); }
}

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

.work__item {
  cursor: pointer;
  color: var(--title-color);
  padding: 0.25rem 0.75rem;
  font-weight: var(--font-medium);
  border-radius: 0.5rem;
}

.work__card {
  background-color: var(--container-color);
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.1rem 1rem;
  border-radius: 1rem;
  z-index: 2;
  height: 100%;

  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;

  /* Ensure it has a position relative for z-index and potential overlays */
  position: relative; /* If not already set, good practice */
  z-index: 1; /* Give it a base z-index so it can pop above its siblings when hovered */
}


.work__card:hover {
    /* Popping Out Effect */
    /* Moves the card up slightly and scales it up a tiny bit for a pop-out feel */
    transform: translateY(-10px) scale(1.02);

    /* Bright Edges / Glow Effect using box-shadow */
    box-shadow:
        0 15px 30px rgba(0, 0, 0, 0.4), /* A larger, darker shadow for perceived depth */
        0 0 20px 5px hsla(var(--first-hue), var(--sat), var(--lig), 0.7); /* A bright, glowing edge using your theme color */

    /* Increase z-index on hover to ensure it layers above adjacent cards that aren't hovered */
    z-index: 10;
}


.work__img {
  width: 100%;
  height: 11.5rem;
  object-fit: cover;
  object-position: center;
  border-radius: 1rem;
  margin-bottom: 0.6rem;
  z-index: 1;
}

.work__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.15rem;
}

.work__title {
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  margin: 0;
  flex: 1;
  line-height: 1.35;
}

.work__status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.5);
  color: #86efac;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.work__status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.18);
}

.work__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin-top: 0.5rem;
}

.work__button,
.work__publication {
  width: max-content;
  font-size: var(--small-font-size);
  display: inline-flex;
  align-items: center;
  column-gap: 0.25rem; 
  cursor: pointer;
  transition: 0.3s ease;
}

.work__button {
  color: #e3a05a;
}

.work__button--disabled {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0.38rem 0.7rem;
  cursor: default;
  pointer-events: none;
  color: var(--title-color);
  font-weight: 500;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.work__publication::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.18), rgba(125, 211, 252, 0.12));
  transform: translateX(-110%);
  transition: transform 0.3s ease;
}

/* Ensure the publication link's pseudo-element is confined to the link
   itself rather than the whole card. This prevents the green overlay
   from covering the entire project tile. */
.work__publication {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.work__publication:hover::before,
.work__publication:focus-visible::before {
  transform: translateX(0);
}

.work__publication:hover,
.work__publication:focus-visible {
  border-color: rgba(94, 234, 212, 0.38);
  box-shadow: 0 8px 18px rgba(94, 234, 212, 0.14);
  color: var(--article-accent, #5eead4);
  transform: translateY(-2px);
}

.work__publication > * {
  position: relative;
  z-index: 1;
}

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

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

/* Active item work*/
.active-work {
  background-color: #e3a05a;
  color: var(--body-color);
}

/*=============== TESTIMONIAL ===============*/
.testimonial__container {
  overflow: hidden;
}

.testimonial__container .swiper-wrapper {
  display: flex;
  align-items: stretch;
  width: max-content;
  gap: 1.5rem;
  animation: testimonial-scroll 17s linear infinite;
  animation-play-state: paused;
}

.testimonial__container:hover .swiper-wrapper {
  animation-play-state: running;
}

@keyframes testimonial-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 0.75rem));
  }
}

.testimonial__card {
  background-color: var(--container-color);
  padding: 1.25rem 1.5rem;
  border-radius: 1.5rem;
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  height: 220px;
  width: 100%;
  flex: 0 0 320px;
}

.testimonial__container .swiper-slide {
  display: flex;
  height: auto;
}

.testimonial__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.testimonial__icon {
  font-size: 2.5rem;
  color: #e3a05a;
  flex-shrink: 0;
  transition: 0.3s;
}

.testimonial__card:hover .testimonial__icon {
  transform: scale(1.2) rotate(10deg);
  text-shadow: 0 0 10px hsla(var(--first-hue), var(--sat), var(--lig), 0.6);
}

.testimonial__name {
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  margin: 0;
  flex-grow: 1;
}

.testimonial__name .flag {
  display: inline-block;
  vertical-align: middle;
  width: 1.3em;
  height: 1.3em;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  margin-left: 0.35rem;
  filter: grayscale(100%) brightness(0.85);
  transition: filter 0.4s ease;
}

.testimonial__card:hover .testimonial__name .flag {
  filter: grayscale(0%) brightness(1.05);
}

.testimonial__description {
  font-size: var(--small-font-size);
  margin: 0;
  flex-grow: 1;
  display: flex;
  align-items: flex-start;
}

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

.swiper-pagination-bullet-active {
  background-color: #e3a05a;
}

.swiper-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.testimonial__container .swiper-pagination {
  margin-top: 1.5rem;
}

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

.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;
  z-index: 1;
}

.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: #e3a05a;
  font-size: var(--small-font-size);
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 0.25rem;
  cursor: pointer;
}

.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;
}

.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;
}

.contact__form-area {
  height: 17rem;
}

.contact__form-area textarea {
  resize: none;
}
/*=============== FOOTER ===============*/
.footer {
  background: linear-gradient(180deg, rgba(0,0,0,0.18), rgba(0,0,0,0.28));
  background-color: var(--container-color);
  border-top: 1px solid rgba(255,255,255,0.03);
  box-shadow: 0 -12px 30px rgba(0,0,0,0.45);
  padding: 2.5rem 0 3rem;
}

.footer__container {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  max-width: 968px;
  margin: 0 auto;
}

.footer__title,
.footer__link {
  color: var(--title-color);
}

.footer__title {
  text-align: center;
  margin-bottom: 0.5rem;
  font-size: var(--h2-font-size);
  color: #e3a05a;
}

.footer__list {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 1.25rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.footer__link {
  color: var(--text-color-light);
  font-weight: var(--font-medium);
  padding: 0.25rem 0.5rem;
  transition: color 0.25s ease, transform 0.25s ease;
}

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

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

.footer__social-link {
  background-color: transparent;
  color: var(--title-color);
  padding: 0.45rem;
  border-radius: 0.4rem;
  font-size: 1rem;
  display: inline-flex;
  border: 1px solid rgba(255,255,255,0.03);
}

.footer__social-link:hover {
  background-color: #e3a05a;
  color: var(--body-color);
}

.footer__copy {
  display: block;
  margin-top: 0.5rem;
  color: var(--text-color-light);
  text-align: center;
  font-size: var(--smaller-font-size);
}

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

::-webkit-scrollbar-track {
  border-radius: 1.5rem;
}

::-webkit-scrollbar-thumb {
  background-color: #e3a05a;
  border-radius: 0.5rem;
}

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

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 320px) {
  .nav__menu {
    padding: 1rem 1.5rem;
  }

  .home__button {
    flex-direction: column;
  }

  .home__handle {
    width: 125px;
    height: 203px;
    z-index: 1;
  }

  .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;
    z-index: 1;
  }

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

  .work__filters {
    column-gap: 0.25rem;
  }
}

@media screen and (min-width: 435px) {
  .work__container {
    justify-content: center;
    grid-template-columns: repeat(2, max-content);
  }

  .work__img {
    width: 165px;
  }
}

/* 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: 4rem 8.8rem;
  }

  .skills__title {
    font-size: var(--h3-font-size);
    margin-bottom: 1.5rem;
  }

  .skills__box {
    column-gap: 5.5rem;
  }

  .services__container {
    grid-template-columns: repeat(2, minmax(320px, 1fr));
    justify-content: center;
    gap: 2rem;
  }

  .services__modal-content {
    width: min(92vw, 680px);
    max-height: calc(100vh - 120px);
    padding: 3rem 2rem 2rem;
    overflow-y: auto;
  }

  .services__modal-description {
    padding: 0 1.5rem;
  }

  .work__container {
    justify-content: center;
    grid-template-columns: repeat(2, max-content);
  }

  .work__img {
    width: 250px;
  }

  /*.testimonial__container {
    width: 600px;
    margin: auto;
    align-items: stretch;
  }*/

  /* 1. Ensure the Swiper wrapper correctly stretches its slides */
.testimonial__container .swiper-wrapper {
    align-items: stretch; /* This is usually the default, but explicitly setting ensures it's not overridden */
}

/* 2. Make each testimonial card take the full height of its Swiper slide */
.testimonial__card {
    /* Your existing styles */
    background-color: var(--container-color);
    padding: 1.25rem 1.5rem;
    border-radius: 1.5rem;
    margin-bottom: 3rem; /* Keep this if you want spacing between the slider and next section */

    /* ----- NEW / MODIFIED STYLES BELOW ----- */
    height: 100%; /* IMPORTANT: This makes the card fill the available height of its parent swiper-slide */

    display: flex;          /* Make the card itself a flex container */
    flex-direction: column; /* Stack its children (img, h3, p) vertically */
}

/* 3. Allow the description paragraph to fill available space */
.testimonial__description {
    /* Your existing styles */
    font-size: var(--small-font-size);
    margin-bottom: 0.15rem; /* Your existing margin */

    /* ----- NEW / MODIFIED STYLES BELOW ----- */
    flex-grow: 1; /* This is key! It allows the description to take up all available vertical space */
                  /* within the card, pushing any content below it (like pagination or buttons if they were there)
                  to the bottom and making the top content (image, name) stay at the top. */

    /* Optional: If text still causes overflow in very extreme cases, you might want to truncate or scroll: */
    /*
    max-height: 120px; // Example: Set a maximum height for the description area
    overflow-y: auto;  // Add a scrollbar if text exceeds max-height
    */
    /* OR for truncating text with an ellipsis: */
    /*
    display: -webkit-box;
    -webkit-line-clamp: 5; // Number of lines to show before truncating
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    */
}
  .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;
  }
  /* .contact__info {
    grid-template-columns: 350px;
    justify-content: center;
  }

  .contact__form {
    width: 360px;
    margin: 0 auto;
  } */
}

/* @media screen and (min-width: 767px) {
  /* .work__container {
    grid-template-columns: repeat(2, max-content);
  } */

/* .contact__info {
    grid-template-columns: 300px;
  }

  .contact__container {
    grid-template-columns: repeat(2, 325px);
    justify-content: center;
  }
} */

/* 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;
    z-index: 1;
  }

  .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: 1rem 1.25rem;
  }

  .about__description {
    padding: 0 4rem 0 0;
    margin-bottom: 2.5rem;
  }

  .skills__container {
    display: flex;
    grid-template-columns: none;
    column-gap: 0;
    justify-content: flex-start;
  }

  .skills__title {
    margin-bottom: 3.5rem;
  }

  .services__container {
    grid-template-columns: repeat(3, 300px);
    column-gap: 2rem;
  }

  .services__card {
    padding: 5rem 2rem 1.5rem;
    z-index: 1;
  }

  .work__container {
    grid-template-columns: repeat(3, max-content);
    gap: 3rem;
  }

  .work__card {
    padding: 1.25rem;
  }

  .work__img {
    margin-bottom: 2rem;
  }

  .work__title {
    margin-bottom: 0.5rem;
  }

  .testimonial__container {
    width: 970px;
  }

  .testimonial__card {
    padding: 1.5rem 2rem;
  }

  .contact__info {
    grid-template-columns: 430px;
    gap: 1rem;
  }

  .contact__form {
    width: 430px;
  }

  .contact__form-area {
    height: 18rem;
  }

  .contact__container {
    grid-template-columns: repeat(2, 430px);
    column-gap: 6rem;
  }

  .footer__social-link {
    font-size: 1.25rem;
    padding: 0.4rem;
    border-radius: 0.5rem;
  }
}


/* FORCE COLOR OVERRIDE */.home__name { color: var(--title-color) !important; }
.home__name .name-gold { color: #e3a05a !important; }
.home__name .name-green { color: var(--accent-green-light) !important; }

/*=============== ARTICLE-STYLE TYPOGRAPHY & ACCENTS ===============*/
/* Brings the field-report typography/accent language from the project
   pages (Newsreader serif headings, IBM Plex Mono labels, gold/green
   two-tone accents) onto the main page, without touching the
   particles background or the base Poppins body copy. */
.home__name,
.section__title,
.services__modal-title,
.services__title,
.work__title,
.skills__name {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.section__subtitle,
.home__greeting,
.home__scroll-name {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: 0.08em;
}

.accent-word {
  font-style: italic;
  color: var(--first-color);
}

.accent-word.alt {
  color: var(--accent-green-light);
}

.contact__quick {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  margin-bottom: 2rem;
}

.contact__quick .contact__button {
  background-color: var(--container-color);
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
}

.contact__status {
  margin-top: 1rem;
  text-align: center;
  font-size: var(--small-font-size);
  min-height: 1.2em;
}

.contact__status--ok {
  color: var(--accent-green-light);
}

.contact__status--error {
  color: var(--accent-red);
}

/*=============== BAAZM (company) CTAs ===============*/
.home__baazm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.25rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid hsla(var(--first-hue), var(--sat), var(--lig), 0.45);
  border-radius: 999px;
  background: hsla(var(--first-hue), var(--sat), var(--lig), 0.07);
  color: var(--text-color);
  font-size: var(--small-font-size);
  line-height: 1.3;
  transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.home__baazm strong {
  color: #e3a05a;
  font-weight: var(--font-semibold);
}

.home__baazm i {
  font-size: 1.25rem;
  color: #e3a05a;
  transition: transform 0.3s;
}

.home__baazm-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: #e3a05a;
  animation: baazm-ping 2.4s infinite;
}

@keyframes baazm-ping {
  0% { box-shadow: 0 0 0 0 hsla(var(--first-hue), var(--sat), var(--lig), 0.6); }
  70%, 100% { box-shadow: 0 0 0 9px hsla(var(--first-hue), var(--sat), var(--lig), 0); }
}

.home__baazm:hover {
  border-color: #e3a05a;
  background: hsla(var(--first-hue), var(--sat), var(--lig), 0.14);
  box-shadow: 0 0 22px hsla(var(--first-hue), var(--sat), var(--lig), 0.35);
  transform: translateY(-2px);
}

.home__baazm:hover i {
  transform: translateX(4px);
}

.services__baazm {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 3rem;
  padding: 2rem 2.25rem;
  border: 1px solid hsla(var(--first-hue), var(--sat), var(--lig), 0.4);
  border-radius: 1.25rem;
  background:
    radial-gradient(520px circle at 0% 0%, hsla(var(--first-hue), var(--sat), var(--lig), 0.16), transparent 60%),
    var(--container-color);
}

.services__baazm-kicker {
  display: block;
  margin-bottom: 0.5rem;
  color: #e3a05a;
  font-size: var(--smaller-font-size);
  font-weight: var(--font-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.services__baazm-title {
  margin-bottom: 0.6rem;
  font-size: var(--h3-font-size);
}

.services__baazm-text {
  max-width: 560px;
  font-size: var(--small-font-size);
}

.services__baazm-cta {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.services__baazm-cta i {
  font-size: 1.25rem;
  transition: transform 0.3s;
}

.services__baazm-cta:hover i {
  transform: translateX(4px);
}

.footer__baazm {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 1.25rem;
  color: var(--text-color);
  font-size: var(--small-font-size);
  transition: color 0.3s;
}

.footer__baazm strong {
  color: #e3a05a;
}

.footer__baazm:hover {
  color: #e3a05a;
}

@media screen and (max-width: 630px) {
  .services__baazm {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
  }

  .services__baazm-cta {
    width: 100%;
    justify-content: center;
  }

  .home__baazm {
    font-size: var(--smaller-font-size);
  }
}
