/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Unbounded:wght@200..900&display=swap");

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

  /*========== Colors ==========*/
  --hue: 348;
  --first-color: #c9183c;
  --first-color-alt: #a01330;
  --first-color-alt-2: hsl(var(--hue), 65%, 50%);
  --first-color-light: hsl(var(--hue), 60%, 85%);
  --title-color: hsl(0, 0%, 95%);
  --text-color: hsl(0, 0%, 75%);
  --text-color-light: hsl(0, 0%, 55%);
  --body-color: hsl(0, 0%, 0%);
  --container-color: hsl(0, 0%, 3%);

  /*========== Typography ==========*/
  --body-font: "Montserrat", sans-serif;
  --second-font: "Unbounded", sans-serif;
  --biggest-font-size: 2rem;
  --bigger-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;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;

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

  /*========== Shadows ==========*/
  --shadow-button: 0 8px 32px hsla(var(--hue), 60%, 64%, 0.2);
  --shadow-button-hover: 0 8px 32px hsla(var(--hue), 60%, 64%, 0.5);
  --shadow-glow: 0 0 32px hsla(var(--hue), 80%, 50%, 0.3);
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1150px) {
  :root {
    --biggest-font-size: 3rem;
    --bigger-font-size: 2rem;
    --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,
input,
button {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

body {
  background-color: var(--body-color);
  color: var(--text-color);
}

button {
  outline: none;
  border: none;
}

h1,
h2,
h3,
h4 {
  color: var(--title-color);
  font-family: var(--second-font);
  font-weight: var(--font-semi-bold);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

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

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

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

.section {
  padding-block: 4rem 1rem;
}

.section__title {
  text-align: center;
  font-size: var(--h1-font-size);
  margin-bottom: 3rem;
}

.section__title span {
  color: var(--first-color);
}

.main {
  overflow: hidden;
}

/*=============== BLOB ===============*/
.blob-animate {
  width: 100px;
  height: 100px;
  background: linear-gradient(180deg,
      var(--first-color-alt) 20%,
      var(--first-color-light) 100%);
  border-radius: 50%;
  position: absolute;
  filter: blur(35px);
  z-index: -1;
  animation: animateBlob 5s linear infinite;
}

@keyframes animateBlob {
  0% {
    transform: rotate(0);
  }

  100% {
    transform: rotate(360deg);
  }
}

.blob {
  width: 250px;
  height: 250px;
  background: linear-gradient(180deg,
      var(--first-color) 0%,
      var(--first-color-alt) 100%);
  border-radius: 50%;
  filter: blur(50px);
  position: absolute;
  z-index: -1;
}

/*=============== CUSTOM CURSOR ===============*/
.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9999;
  width: 50px;
  height: 50px;
  background-color: var(--first-color-light);
  border-radius: 50%;
  box-shadow: 0 0 30px var(--first-color);
  mix-blend-mode: difference;
  pointer-events: none;
  opacity: 0;
  transition:
    opacity 0.3s ease,
    transform 0.2s ease-out,
    left 0.2s ease-out,
    top 0.2s ease-out,
    width 0.3s,
    height 0.3s;
}

.cursor.visible {
  opacity: 1;
}

.hide-cursor {
  width: 0;
  height: 0;
}

/*=============== HEADER & NAV ===============*/
.main {
  padding-top: 3rem;
}

.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: transparent;
  z-index: var(--z-fixed);
  transition: 0.4s;
  /* KEY: makes header a flex container so nav pill centers naturally */
  display: flex;
  justify-content: center;
}

.scroll-header {
  background: transparent;
}

.header .blob-animate {
  top: -3rem;
  left: -3rem;
}

/* --- NAV LINK BASE (shared) --- */
.nav__link {
  color: var(--title-color);
  font: var(--font-semi-bold) var(--small-font-size) var(--second-font);
  transition: color 0.25s, text-shadow 0.25s, background 0.25s, transform 0.2s;
  padding: 0.25rem 0.65rem;
  border-radius: 1.5rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav__link:hover {
  color: var(--first-color);
  text-shadow: 0 2px 12px rgba(201, 24, 60, 0.6);
  background: rgba(201, 24, 60, 0.1);
  transform: translateY(-1px);
}

.active-link {
  color: var(--first-color);
  text-shadow: 0 2px 10px var(--first-color);
  background: rgba(201, 24, 60, 0.16);
  box-shadow: inset 0 0 12px rgba(201, 24, 60, 0.1);
}

/* --- LOGO (shared) --- */
.nav__logo {
  display: flex;
  align-items: center;
  transition: opacity 0.3s, filter 0.3s, transform 0.25s;
}

.nav__logo img {
  height: 1.4rem;
  width: auto;
  display: block;
}

.nav__logo:hover {
  opacity: 1;
  filter: drop-shadow(0 0 8px rgba(201, 24, 60, 0.5));
  transform: scale(1.04);
}

/* --- ICON defaults --- */
.nav__icon {
  line-height: 1;
}

/* ===========================================
   MOBILE: iOS Liquid Glass Tab Bar
   =========================================== */
@media screen and (max-width: 767px) {

  /* restore block on mobile — pill uses its own fixed positioning */
  .header {
    pointer-events: none;
    display: block;
  }

  /* Mobile: nav is at bottom, so no top padding needed on main */
  .main {
    padding-top: 0.5rem;
  }

  /* Tighter section padding on mobile — nav at bottom means more usable height */
  .section {
    padding-block: 2.5rem 1rem;
  }

  .nav {
    height: var(--header-height);
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
  }

  .nav__logo {
    display: none;
  }

  .nav__toggle,
  .nav__close {
    display: none;
  }

  .nav__text {
    display: none;
  }

  /* iOS-style glass tab bar */
  .nav__menu {
    position: fixed;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    padding: 0.5rem 1.5rem;
    z-index: var(--z-fixed);
    pointer-events: auto;
    background: linear-gradient(145deg,
        rgba(30, 30, 30, 0.65) 0%,
        rgba(18, 18, 18, 0.35) 100%);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    box-shadow:
      0 4px 24px rgba(0, 0, 0, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }

  .nav__list {
    display: flex;
    flex-direction: row;
    align-items: center;
    column-gap: 0.75rem;
  }

  .nav__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border-radius: 50%;
    font-size: 0;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
  }

  .nav__icon {
    font-size: 1.25rem;
    display: block;
  }

  .nav__link:hover {
    background: rgba(255, 255, 255, 0.08);
    text-shadow: none;
  }

  .nav__link.active-link,
  .active-link {
    background: rgba(201, 24, 60, 0.15);
    color: var(--first-color);
    box-shadow: 0 0 12px rgba(201, 24, 60, 0.2);
    text-shadow: none;
  }

  .nav__scroll-top {
    width: 0;
    opacity: 0;
    overflow: hidden;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.35s ease,
      margin 0.35s ease;
    margin-left: -0.75rem;
  }

  .nav__scroll-top.show-scroll {
    width: 2.5rem;
    opacity: 1;
    margin-left: 0;
  }

  .nav__scroll-top .nav__link {
    color: var(--first-color);
  }

  .back-to-top {
    display: none !important;
  }
}

/* ===========================================
   DESKTOP: Slim Centered Glass Pill
   =========================================== */
@media screen and (min-width: 768px) {

  .nav__icon {
    display: none;
  }

  .nav {
    display: inline-flex;
    width: auto;
    height: auto;
    align-items: center;
    gap: 0;
    margin-top: 1.3rem;
    padding: 0.85rem 1.5rem 0.85rem 1.2rem;
    background: linear-gradient(160deg,
        rgba(28, 28, 28, 0.88) 0%,
        rgba(12, 12, 12, 0.72) 60%,
        rgba(20, 8, 8, 0.55) 100%);
    backdrop-filter: blur(28px) saturate(1.6) brightness(0.9);
    -webkit-backdrop-filter: blur(28px) saturate(1.6) brightness(0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-right: 1px solid rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid rgba(0, 0, 0, 0.35);
    border-radius: 3rem;
    box-shadow:
      0 12px 40px rgba(0, 0, 0, 0.7),
      0 4px 12px rgba(0, 0, 0, 0.4),
      0 0 60px rgba(201, 24, 60, 0.09),
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      inset 0 -1px 0 rgba(0, 0, 0, 0.4),
      inset 0 0 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: visible;
  }

  /* Red brand signature line — ties pill to site's red identity */
  .nav::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 28%;
    right: 28%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(201, 24, 60, 0.55) 50%,
        transparent);
    pointer-events: none;
  }

  .nav__logo {
    position: relative;
    padding-right: 1rem;
    margin-right: 0.35rem;
    flex-shrink: 0;
  }

  .nav__logo img {
    height: 1.6rem;
  }

  .nav__logo::after {
    content: "";
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background: linear-gradient(180deg,
        transparent,
        rgba(201, 24, 60, 0.35) 50%,
        transparent);
  }

  .nav__toggle,
  .nav__close {
    display: none;
  }

  .nav__menu {
    display: flex !important;
    align-items: center !important;
    position: static !important;
    transform: none !important;
    width: auto !important;
    background: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    bottom: auto !important;
    left: auto !important;
  }

  .nav__list {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    width: auto;
  }

  .nav__link {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.5rem 1.1rem;
    border-radius: 2rem;
    width: auto;
    height: auto;
    flex-shrink: 0;
    white-space: nowrap;
  }

  .nav__scroll-top {
    display: none;
  }
}


/* ===========================================
   LARGE SCREENS — nav overrides (1150px+)
   IMPORTANT: only layout changes here,
   never touch gap/height or pill breaks again
   =========================================== */
@media screen and (min-width: 1150px) {
  .container {
    margin-inline: auto;
  }

  .section {
    padding-block: 7rem 2rem;
  }

  .section__title {
    margin-bottom: 4rem;
  }

  .blob {
    width: 300px;
    height: 300px;
  }

  /* NAV — only reset alignment, never height or gap */
  .nav {
    height: auto;
    align-items: center;
  }

  .nav__logo {
    align-self: initial;
  }

  .nav__list {
    flex-direction: row;
    column-gap: 0;
  }

  .home__container {
    width: initial;
    padding-top: 3rem;
  }

  .home__perfil {
    width: 600px;
  }

  .home__image .blob-animate {
    width: 450px;
    height: 450px;
    bottom: 2rem;
    filter: blur(50px);
  }

  .home__shadow {
    width: 700px;
    height: 700px;
    left: 0;
    right: 0;
    margin-inline: auto;
    background: linear-gradient(180deg,
        hsla(0, 0%, 0%, 0) 60%,
        hsl(0, 0%, 0%) 95%);
  }

  .home__data {
    position: absolute;
    top: 12rem;
    left: 3rem;
    z-index: 2;
  }

  .home__info {
    top: 12rem;
    right: 1rem;
    bottom: initial;
  }

  .home__split {
    font-size: var(--h2-font-size);
  }

  .home__profession-1 {
    font-size: var(--biggest-font-size);
    text-align: initial;
  }

  .home__profession-2 {
    font-size: var(--biggest-font-size);
    transform: translateY(-1.5rem);
  }

  .home__social {
    bottom: 3rem;
    row-gap: 1.5rem;
  }

  .home__social-link {
    font-size: 1.5rem;
  }

  .home__cv {
    font-size: var(--normal-font-size);
    rotate: 0deg;
    right: 0;
  }

  .about__container {
    grid-template-columns: repeat(2, 500px);
    align-items: center;
    column-gap: 5.5rem;
    padding-top: 2rem;
  }

  .about__data,
  .about__data .section__title {
    text-align: initial;
    z-index: 2;
  }

  .about__description {
    margin-bottom: 3rem;
  }

  .about__perfil {
    width: 500px;
  }

  .about__image {
    order: -1;
  }

  .about__image .blob-animate {
    width: 200px;
    height: 200px;
    filter: blur(50px);
  }

  .about__image .blob-animate:nth-child(1) {
    left: 4rem;
    top: 4rem;
  }

  .about__image .blob-animate:nth-child(2) {
    right: -1rem;
    bottom: 3rem;
  }

  .about__shadow {
    height: 600px;
    bottom: 0;
  }

  .projects {
    padding-block: 9rem 4rem;
  }

  .projects__swiper {
    padding-bottom: 4rem;
  }

  .projects__container {
    max-width: 1380px;
  }

  .projects__card {
    width: 440px;
    padding: 2.5rem;
    border-radius: 4rem;
  }

  .projects__subtitle,
  .projects__description {
    font-size: var(--normal-font-size);
  }

  .projects__img {
    border-radius: 2rem;
  }

  .projects__button {
    top: 1.5rem;
    right: 1.5rem;
  }

  .work__container {
    grid-template-columns: 1050px;
    row-gap: 3rem;
  }

  .work__content {
    row-gap: 5rem;
  }

  .work__card {
    grid-template-columns: repeat(2, 450px);
    column-gap: 9rem;
  }

  .work__title {
    font-size: var(--bigger-font-size);
  }

  .work__subtitle,
  .work__description {
    font-size: var(--h3-font-size);
  }

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

  .services__card {
    padding: 3rem 3rem 4rem 3rem;
    border-radius: 4rem;
    row-gap: 2rem;
  }

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

  .services__button {
    right: 2rem;
    bottom: 2rem;
  }

  .testimonials__container {
    row-gap: 3rem;
  }

  .testimonials__container::after,
  .testimonials__container::before {
    content: "";
    position: absolute;
    top: 0;
    width: 20%;
    height: 100%;
  }

  .testimonials__container::after {
    left: 0;
    background: linear-gradient(90deg,
        hsl(0, 0%, 0%) 0%,
        hsla(0, 0%, 0%, 0) 100%);
  }

  .testimonials__container::before {
    right: 0;
    z-index: 1;
    background: linear-gradient(90deg,
        hsla(0, 0%, 0%, 0) 0%,
        hsl(0, 0%, 0%) 100%);
  }

  .testimonials__card {
    width: 370px;
    padding: 3rem 2rem;
    border-radius: 4rem;
  }

  .testimonials__number {
    font-size: var(--normal-font-size);
  }

  .contact {
    padding-block: 9rem 4rem;
  }

  .contact__container {
    row-gap: 8rem;
  }

  .contact__description {
    font-size: var(--h2-font-size);
  }

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

  .contact__info {
    row-gap: 1.5rem;
    justify-self: flex-start;
  }

  .contact__write {
    justify-self: flex-end;
  }

  .contact__title {
    margin-bottom: 0.75rem;
  }

  .contact__links {
    row-gap: 0.5rem;
  }

  .contact__link {
    font-size: 1.25rem;
  }
}

/*=============== HOME ===============*/
.home {
  position: relative;
}

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

.home__greeting {
  font-size: var(--h2-font-size);
  font-weight: var(--font-regular);
  color: var(--first-color);
}

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

.home__image {
  position: relative;
  display: grid;
  overflow-y: clip;
}

.home__image .blob-animate {
  width: 250px;
  height: 250px;
  bottom: 0;
  justify-self: center;
}

.home__perfil {
  width: 320px;
  justify-self: center;
}

.home__shadow,
.home__info,
.home__social,
.home__cv {
  position: absolute;
}

.home__shadow {
  width: 100%;
  height: 375px;
  bottom: 1rem;
  z-index: 1;
  background: linear-gradient(180deg,
      hsla(0, 0%, 0%, 0) 60%,
      hsl(0, 0%, 0%) 85%);
}

.home__info {
  z-index: 2;
  bottom: -1rem;
  justify-self: center;
}

.home__split {
  font-size: var(--h3-font-size);
  font-weight: var(--font-regular);
  color: var(--first-color);
}

.home__profession-1,
.home__profession-2 {
  font-size: var(--bigger-font-size);
  text-align: center;
  overflow: hidden;
}

.home__profession-1 {
  position: relative;
  color: var(--first-color);
}

.home__profession-1::after {
  content: "";
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, hsl(0, 0%, 0%) 10%, hsla(0, 0%, 0%, 0) 60%);
  position: absolute;
  top: 0;
  left: 0;
}

.home__profession-2 {
  transform: translateY(-1rem);
}

.home__social {
  z-index: 2;
  left: 0;
  align-self: center;
  display: flex;
  flex-direction: column;
  row-gap: 0.75rem;
}

.home__social-link {
  color: var(--title-color);
  font-size: 1.25rem;
  transition: transform 0.3s, color 0.3s, text-shadow 0.3s;
}

.home__social-link:hover {
  color: var(--first-color);
  transform: translateX(0.3rem);
  text-shadow: 0 0 12px rgba(201, 24, 60, 0.5);
}

.home__cv {
  z-index: 2;
  right: -2.5rem;
  bottom: 2.5rem;
  rotate: -90deg;
  color: var(--text-color-light);
  font: var(--font-medium) var(--small-font-size) var(--second-font);
  display: flex;
  align-items: center;
  column-gap: 0.5rem;
  transition: color 0.3s, text-shadow 0.3s, letter-spacing 0.3s;
}

.home__cv i {
  font-size: 1rem;
}

.home__cv:hover {
  color: var(--first-color);
  text-shadow: 0 0 10px rgba(201, 24, 60, 0.4);
  letter-spacing: 0.5px;
}

/*=============== BUTTON ===============*/
.button {
  background: linear-gradient(145deg,
      rgba(25, 25, 25, 0.5) 0%,
      rgba(15, 15, 15, 0.2) 100%);
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  border: 2px solid var(--first-color);
  color: var(--title-color);
  padding: 1rem 2rem;
  box-shadow:
    0 4px 20px hsla(var(--hue), 60%, 64%, 0.2),
    inset 0 0 15px rgba(255, 255, 255, 0.02);
  border-radius: 4rem;
  font-family: var(--second-font);
  font-weight: var(--font-semi-bold);
  display: inline-flex;
  align-items: center;
  column-gap: 0.5rem;
  transition: box-shadow 0.4s, border-color 0.4s, background 0.4s;
}

.button i {
  font-weight: initial;
  font-size: 1rem;
}

.button:hover {
  background: linear-gradient(145deg,
      rgba(201, 24, 60, 0.18) 0%,
      rgba(15, 15, 15, 0.3) 100%);
  box-shadow:
    0 8px 32px hsla(var(--hue), 60%, 64%, 0.4),
    0 0 20px rgba(201, 24, 60, 0.15),
    inset 0 0 25px rgba(255, 255, 255, 0.04);
  border-color: var(--first-color-alt-2);
}

/*=============== ABOUT ===============*/
.about {
  position: relative;
}

.about__container {
  row-gap: 3rem;
  overflow-y: clip;
}

/* Mobile Reordering for About Section */
@media screen and (max-width: 1150px) {
  .about__container {
    row-gap: 1.5rem;
  }

  .about__data {
    display: contents;
  }

  .about__data .section__title {
    order: -2;
    margin-bottom: 0.5rem;
  }

  .about__image {
    order: -1;
    margin-bottom: -4rem;
  }

  .about__image::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 150vw;
    height: 250px;
    background: linear-gradient(180deg, hsla(0, 0%, 0%, 0) 20%, var(--body-color) 80%);
    pointer-events: none;
    z-index: 5;
  }

  .about__shadow {
    display: none;
  }

  .about__description {
    order: 0;
    margin-bottom: 0;
    z-index: 10;
    position: relative;
  }

  .about__data .button {
    order: 1;
    justify-self: center;
    margin-top: 0;
    z-index: 10;
    position: relative;
  }
}

.about__data .section__title {
  margin-bottom: 1.5rem;
  text-align: initial;
}

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

.about__description b {
  color: var(--first-color);
  font-weight: var(--font-semi-bold);
}

.about__image {
  position: relative;
  justify-self: center;
}

.about__image .blob-animate:nth-child(1) {
  top: 1.5rem;
  left: 1rem;
}

.about__image .blob-animate:nth-child(2) {
  right: -0.5rem;
  bottom: 0.5rem;
}

.about__perfil {
  width: 220px;
}

.about__shadow {
  width: 100%;
  height: 258px;
  position: absolute;
  bottom: 1rem;
  z-index: 1;
  background: linear-gradient(180deg,
      hsla(0, 0%, 0%, 0) 60%,
      var(--body-color) 95%);
}

/*=============== PROJECTS ===============*/
.projects .section__title {
  text-align: initial;
  margin-left: 1.5rem;
}

.projects__card {
  position: relative;
  background: linear-gradient(145deg,
      rgba(25, 25, 25, 0.6) 0%,
      rgba(15, 15, 15, 0.3) 100%);
  backdrop-filter: blur(20px) saturate(1.5) brightness(0.95);
  -webkit-backdrop-filter: blur(20px) saturate(1.5) brightness(0.95);
  padding: 1.5rem;
  border-radius: 3rem;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  border-right: 1px solid transparent;
  border-bottom: 1px solid transparent;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.25),
    inset 0 0 15px rgba(255, 255, 255, 0.02);
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.projects__card:hover {
  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.35),
    0 0 30px rgba(201, 24, 60, 0.06),
    inset 0 0 25px rgba(255, 255, 255, 0.04);
  border-top-color: rgba(255, 255, 255, 0.12);
}

.projects__card .blob {
  z-index: 0;
  right: -7.75rem;
  bottom: 0;
}

.projects__number,
.projects__data,
.projects__image {
  position: relative;
  z-index: 1;
}

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

.projects__number h1 {
  font-size: var(--biggest-font-size);
}

.projects__number h3 {
  font-weight: var(--font-regular);
  font-size: var(--h3-font-size);
}

.projects__data {
  margin-block: 2rem;
}

.projects__title {
  font-size: var(--h2-font-size);
  margin-bottom: 1rem;
}

.projects__subtitle {
  font-family: var(--second-font);
  font-size: var(--small-font-size);
  margin-bottom: 0.5rem;
}

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

.projects__img {
  border-radius: 1.5rem;
}

.projects__button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: rgba(25, 25, 25, 0.5);
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  border: 2px solid var(--first-color);
  border-radius: 50%;
  color: var(--title-color);
  font-size: 2rem;
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  opacity: 0;
  pointer-events: none;
  transition: box-shadow 0.4s, opacity 0.4s, background 0.4s;
}

.projects__button:hover {
  box-shadow: 0 0 24px var(--first-color);
}

.projects__image:hover .projects__button {
  opacity: 1;
  pointer-events: initial;
}

.projects__swiper {
  margin-inline: initial;
  padding-bottom: 2rem;
}

.projects .swiper-pagination-bullets {
  bottom: 0;
}

.projects .swiper-pagination-bullet {
  background-color: var(--first-color);
  transition: opacity 0.4s;
}

/*=============== CREATIVE VAULT (PORTFOLIO CARDS) ===============*/
.creative__swiper {
  margin-inline: initial;
  padding-bottom: 2rem;
}

.creative__swiper .swiper-pagination-bullets {
  bottom: 0;
}

.creative__swiper .swiper-pagination-bullet {
  background-color: var(--first-color);
  transition: opacity 0.4s;
}

/*=============== VIP VAULT CARDS (LIQUID GLASS) ===============*/
.vault__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  padding-bottom: 2rem;
  justify-items: center;
  justify-content: center;
}

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



.vault__card {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: 2rem;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(145deg,
      rgba(25, 25, 25, 0.4) 0%,
      rgba(15, 15, 15, 0.1) 100%);
  backdrop-filter: blur(20px) saturate(1.4) brightness(0.95);
  -webkit-backdrop-filter: blur(20px) saturate(1.4) brightness(0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  border-right: 1px solid rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.5),
    inset 0 0 15px rgba(255, 255, 255, 0.02);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  z-index: 1;
}

.vault__card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.6),
    inset 0 0 20px rgba(255, 255, 255, 0.04);
}

.vault__glow {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  filter: blur(60px);
  z-index: -1;
  opacity: 0.15;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.vault__card:hover .vault__glow {
  opacity: 0.6;
  transform: scale(1.4);
}

.vault__studio {
  font-size: var(--small-font-size);
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--first-color);
  margin-bottom: 1rem;
  font-weight: 600;
  transition: transform 0.4s ease;
}

.vault__title {
  font-size: var(--h2-font-size);
  font-family: var(--second-font);
  color: var(--title-color);
  margin-bottom: 0.5rem;
  line-height: 1.2;
  transition: transform 0.4s ease;
}

.vault__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2rem;
  font-size: var(--smaller-font-size);
  color: var(--text-color);
  margin-top: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: transform 0.4s ease;
}

.vault__card:hover .vault__studio,
.vault__card:hover .vault__title,
.vault__card:hover .vault__tag {
  transform: translateY(-10px);
}

.vault__cta {
  position: absolute;
  bottom: 2.5rem;
  font-size: var(--small-font-size);
  font-family: var(--second-font);
  color: #fff;
  display: flex;
  align-items: center;
  column-gap: 0.5rem;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.vault__cta i {
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.vault__card:hover .vault__cta {
  opacity: 1;
  transform: translateY(0);
}

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

@media screen and (max-width: 768px) {
  .vault__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 1.5rem;
  }

  .vault__card {
    height: 220px;
    padding: 1.25rem;
    border-radius: 1rem;
    justify-content: center;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
  }

  /* Restore the br tags for wrapping Titles in the 2x2 portrait cards */
  .vault__title br {
    display: block;
  }

  .vault__studio {
    font-size: 0.55rem;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
  }

  .vault__title {
    font-size: 0.8rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    white-space: normal;
    text-overflow: clip;
  }

  .vault__tag {
    font-size: 0.55rem;
    padding: 0.35rem 0.6rem;
    display: inline-flex;
  }

  .vault__tag i {
    font-size: 0.7rem;
  }

  .vault__cta {
    position: absolute;
    bottom: 1.25rem;
    font-size: 0.6rem;
    display: flex;
    align-items: center;
  }

  .vault__cta i {
    font-size: 0.8rem;
    margin-left: 0.25rem;
  }

  .vault__glow {
    width: 80px;
    height: 80px;
    filter: blur(30px);
    opacity: 0.4;
  }
}

.portfolio-card {
  position: relative;
  background-color: var(--container-color);
  padding: 1rem;
  border-radius: 1.5rem;
  transition:
    transform 0.4s ease,
    border-color 0.4s ease;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.05);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.portfolio-card .blob {
  position: absolute;
  top: -2rem;
  left: -2rem;
  width: 100px;
  height: 100px;
  background: var(--first-color);
  filter: blur(40px);
  opacity: 0.4;
  border-radius: 50%;
  z-index: -1;
  transition: 0.4s;
}

.portfolio-card:hover .blob {
  opacity: 0.8;
  transform: scale(1.2);
}

.portfolio-card:hover {
  border-color: var(--first-color);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.portfolio-img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 0.75rem;
  display: block;
  z-index: 2;
}

/*=============== WORK ===============*/
.work__tabs {
  background: linear-gradient(145deg,
      rgba(25, 25, 25, 0.5) 0%,
      rgba(15, 15, 15, 0.2) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1.25rem 2rem;
  border-radius: 4rem;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 1px solid rgba(255, 255, 255, 0.04);
  border-right: 1px solid rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.4),
    inset 0 0 12px rgba(255, 255, 255, 0.015);
}

.work__button {
  background: none;
  color: var(--text-color);
  display: flex;
  align-items: center;
  column-gap: 0.25rem;
  font-size: var(--small-font-size);
  font-family: var(--second-font);
  cursor: pointer;
  transition: color 0.4s;
}

.work__button i {
  font-size: 1rem;
}

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

.work__area {
  position: relative;
  padding-left: 1rem;
}

.work__content {
  display: grid;
  row-gap: 4rem;
}

.work__card {
  display: grid;
  row-gap: 1rem;
  padding: 1.25rem;
  border-radius: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-left: 1px solid rgba(255, 255, 255, 0.03);
  border-right: 1px solid transparent;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.work__card:hover {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.work__data {
  display: flex;
  justify-content: space-between;
  column-gap: 1.5rem;
  align-items: flex-start;
}

.work__title {
  font-size: var(--h2-font-size);
  margin-bottom: 0.5rem;
}

.work__subtitle {
  font-size: var(--normal-font-size);
  font-weight: var(--font-regular);
  color: var(--first-color);
}

.work__year {
  font-size: var(--h1-font-size);
}

.work__line {
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg,
      hsla(var(--hue), 60%, 64%, 0),
      var(--first-color-alt-2));
  position: absolute;
  left: -0.25rem;
}

.work__line::after {
  content: "";
  width: 16px;
  height: 16px;
  background-color: var(--first-color-alt-2);
  border-radius: 50%;
  position: absolute;
  bottom: -1px;
  left: -6px;
}

.work__area [data-content] {
  display: none;
}

.work-active[data-content] {
  display: grid;
}

.work__button.active-work {
  color: var(--first-color);
}

.work__button.active-work::after {
  width: 100%;
}

.work__content.work-active {
  display: grid;
}

/*=============== SERVICES ===============*/
.services__container {
  row-gap: 2rem;
}

.services__card {
  position: relative;
  background: linear-gradient(145deg,
      rgba(25, 25, 25, 0.6) 0%,
      rgba(15, 15, 15, 0.3) 100%);
  backdrop-filter: blur(20px) saturate(1.5) brightness(0.95);
  -webkit-backdrop-filter: blur(20px) saturate(1.5) brightness(0.95);
  padding: 2rem 1.5rem;
  border-radius: 3rem;
  display: grid;
  row-gap: 1.5rem;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  border-right: 1px solid transparent;
  border-bottom: 1px solid transparent;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.25),
    inset 0 0 15px rgba(255, 255, 255, 0.02);
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.services__card:hover {
  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.35),
    inset 0 0 25px rgba(255, 255, 255, 0.04);
  border-top-color: rgba(255, 255, 255, 0.12);
}

.services__card .blob {
  z-index: 0;
  top: -7.75rem;
  left: -7.75rem;
}

.services__card .blob-2 {
  left: initial;
  right: -7.75rem;
}

.services__data,
.services__info {
  position: relative;
  z-index: 1;
}

.services__title {
  font-size: var(--h2-font-size);
  margin-bottom: 0.5rem;
}

.services__subtitle {
  font-size: var(--small-font-size);
  font-weight: var(--font-regular);
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.services__skills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.25rem;
}

.services__skill {
  background: rgba(25, 25, 25, 0.4);
  color: var(--title-color);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  border-right: 1px solid rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  padding: 4px 10px;
  border-radius: 4rem;
  font-size: var(--smaller-font-size);
  font-family: var(--second-font);
}

.services__button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: rgba(25, 25, 25, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid var(--first-color);
  color: var(--title-color);
  border-radius: 0.5rem;
  font-size: 1.5rem;
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  cursor: pointer;
  transition: background 0.3s, box-shadow 0.3s;
}

.services__button:hover {
  background: rgba(201, 24, 60, 0.15);
  box-shadow: 0 0 15px rgba(201, 24, 60, 0.2);
}

.services__button i {
  transition: rotate 0.4s;
}

.services-close .services__info {
  height: 0;
  opacity: 0;
  overflow: hidden;
}

.services__info {
  transition: height 0.4s, opacity 0.4s;
}

.services-open .services__button i {
  rotate: -180deg;
}

/*=============== TESTIMONIALS ===============*/
.testimonials .section__title {
  text-align: initial;
  margin-left: 1.5rem;
}

.testimonials__container {
  position: relative;
  margin-inline: 0;
  overflow: hidden;
}

.testimonials__card {
  position: relative;
  width: 320px;
  background: linear-gradient(145deg,
      rgba(25, 25, 25, 0.6) 0%,
      rgba(15, 15, 15, 0.3) 100%);
  backdrop-filter: blur(20px) saturate(1.5) brightness(0.95);
  -webkit-backdrop-filter: blur(20px) saturate(1.5) brightness(0.95);
  padding: 1.5rem 1rem 2.5rem;
  margin-inline: 1rem;
  border-radius: 3rem;
  text-align: center;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  border-right: 1px solid transparent;
  border-bottom: 1px solid transparent;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.25),
    inset 0 0 15px rgba(255, 255, 255, 0.02);
}

.testimonials__card .blob {
  z-index: 0;
  left: 0;
  right: 0;
  margin-inline: auto;
  bottom: -12.5rem;
}

.testimonials__data {
  position: relative;
  z-index: 1;
}

.testimonials__img {
  width: 60px;
  border-radius: 50%;
  margin: 0 auto 0.5rem;
}

.testimonials__name {
  font-size: var(--normal-font-size);
  font-weight: var(--font-regular);
  margin-bottom: 1.5rem;
}

.testimonials__rating {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.testimonials__stars {
  display: flex;
  column-gap: 0.25rem;
}

.testimonials__stars i {
  font-size: 1rem;
  color: var(--title-color);
}

.testimonials__number {
  font-size: var(--h3-font-size);
}

.testimonials__content {
  display: flex;
  width: max-content;
  animation: scroll 18s linear infinite;
}

.testimonials__reverse {
  flex-direction: row-reverse;
  animation-direction: reverse;
  animation-delay: -1s;
}

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

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

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

.contact .section__title {
  margin-bottom: 1rem;
}

.contact__data {
  text-align: center;
}

.contact__description {
  font-family: var(--second-font);
  margin-bottom: 1.5rem;
}

.contact__email {
  display: none;
}

.contact__button {
  cursor: pointer;
}

.contact__content {
  row-gap: 3rem;
}

.contact__info {
  row-gap: 1rem;
}

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

.contact__address {
  color: var(--title-color);
  font-style: normal;
  font-weight: var(--font-medium);
  text-align: center;
}

.contact__links {
  display: grid;
  grid-template-columns: max-content;
  justify-content: center;
  row-gap: 0.25rem;
}

.contact__link {
  color: var(--title-color);
  font-weight: var(--font-medium);
  display: flex;
  justify-content: space-between;
  align-items: center;
  column-gap: 0.5rem;
  transition: transform 0.4s, color 0.4s;
}

.contact__link i {
  font-size: 1.5rem;
}

.contact__link:hover {
  transform: translateX(0.35rem);
  color: var(--text-color);
}

/*=============== FOOTER ===============*/
.footer {
  position: relative;
  padding-block: 4rem 2rem;
  text-align: center;
  row-gap: 1rem;
  overflow: hidden;
}

@media screen and (max-width: 767px) {
  .footer {
    padding-bottom: 5rem;
  }
}

.footer .blob-animate {
  right: -3rem;
  bottom: -3rem;
}

.footer__copy {
  color: var(--title-color);
}

.footer__copy span {
  color: var(--first-color);
}

.footer__year span {
  font-family: var(--second-font);
}

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
  width: 0.6rem;
  background-color: hsl(0, 0%, 6%);
  border-radius: 0.5rem;
}

::-webkit-scrollbar-thumb {
  background-color: hsl(0, 0%, 14%);
  border-radius: 0.5rem;
}

::-webkit-scrollbar-thumb:hover {
  background-color: hsl(0, 0%, 18%);
}

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

  .blob,
  .home__image .blob-animate {
    width: 220px;
    height: 220px;
  }

  .projects__card {
    padding-inline: 1rem;
  }

  .work__tabs {
    padding-inline: 1rem;
  }

  .testimonials__card {
    width: 250px;
    padding-bottom: 2rem;
  }
}

/* For medium devices */
@media screen and (min-width: 540px) {
  .home__container {
    width: 460px;
    margin-inline: auto;
  }

  .about__container,
  .work__container,
  .services__container {
    grid-template-columns: 460px;
    justify-content: center;
  }

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

  :is(.projects, .testimonials) .section__title {
    text-align: center;
    margin-left: 0;
  }

  .projects__card {
    width: 350px;
  }

  .work__tabs {
    width: 330px;
    justify-self: center;
  }
}

@media screen and (min-width: 768px) {
  .home__container {
    width: 600px;
  }

  .work__container {
    grid-template-columns: 600px;
  }

  .work__area {
    padding-left: 0;
  }

  .work__card {
    grid-template-columns: repeat(2, 270px);
    justify-content: center;
    column-gap: 3rem;
  }

  .work__line {
    left: 0;
    right: 0;
    margin-inline: auto;
  }

  .services__container {
    grid-template-columns: repeat(2, 350px);
    align-items: flex-start;
  }
}

/* For large devices */
@media screen and (min-width: 1150px) {
  .container {
    margin-inline: auto;
  }

  .section {
    padding-block: 7rem 2rem;
  }

  .section__title {
    margin-bottom: 4rem;
  }

  .blob {
    width: 300px;
    height: 300px;
  }

  /* NAV — keep pill compact at large screens, do NOT override with old values */
  .nav {
    height: auto;
    /* was: calc(var(--header-height) + 2rem) — caused bulkiness */
    align-items: center;
  }

  .nav__logo {
    align-self: initial;
  }

  .nav__list {
    flex-direction: row;
    column-gap: 0;
    /* was: 5.5rem — THIS was the root cause of massive gaps */
  }

  .home__container {
    width: initial;
    padding-top: 1rem;
  }

  .home__perfil {
    width: 600px;
  }

  .home__image .blob-animate {
    width: 450px;
    height: 450px;
    bottom: 2rem;
    filter: blur(50px);
  }

  .home__shadow {
    width: 700px;
    height: 700px;
    left: 0;
    right: 0;
    margin-inline: auto;
    background: linear-gradient(180deg,
        hsla(0, 0%, 0%, 0) 60%,
        hsl(0, 0%, 0%) 95%);
  }

  .home__data {
    position: absolute;
    top: 12rem;
    left: 3rem;
    z-index: 2;
  }

  .home__info {
    top: 12rem;
    right: 1rem;
    bottom: initial;
  }

  .home__split {
    font-size: var(--h2-font-size);
  }

  .home__profession-1 {
    font-size: var(--biggest-font-size);
    text-align: initial;
  }

  .home__profession-2 {
    font-size: var(--biggest-font-size);
    transform: translateY(-1.5rem);
  }

  .home__social {
    bottom: 3rem;
    row-gap: 1.5rem;
  }

  .home__social-link {
    font-size: 1.5rem;
  }

  .home__cv {
    font-size: var(--normal-font-size);
    rotate: 0deg;
    right: 0;
  }

  .about__container {
    grid-template-columns: repeat(2, 500px);
    align-items: center;
    column-gap: 5.5rem;
    padding-top: 2rem;
  }

  .about__data,
  .about__data .section__title {
    text-align: initial;
    z-index: 2;
  }

  .about__description {
    margin-bottom: 3rem;
  }

  .about__perfil {
    width: 500px;
  }

  .about__image {
    order: -1;
  }

  .about__image .blob-animate {
    width: 200px;
    height: 200px;
    filter: blur(50px);
  }

  .about__image .blob-animate:nth-child(1) {
    left: 4rem;
    top: 4rem;
  }

  .about__image .blob-animate:nth-child(2) {
    right: -1rem;
    bottom: 3rem;
  }

  .about__shadow {
    height: 600px;
    bottom: 0;
  }

  .projects {
    padding-block: 9rem 4rem;
  }

  .projects__swiper {
    padding-bottom: 4rem;
  }

  .creative__swiper {
    padding-bottom: 4rem;
  }

  .vault__card {
    max-width: 380px;
    width: 100%;
  }

  .projects__container {
    max-width: 1380px;
  }

  .projects__card {
    width: 440px;
    padding: 2.5rem;
    border-radius: 4rem;
  }

  .projects__subtitle,
  .projects__description {
    font-size: var(--normal-font-size);
  }

  .projects__img {
    border-radius: 2rem;
  }

  .projects__button {
    top: 1.5rem;
    right: 1.5rem;
  }

  .work__container {
    grid-template-columns: 1050px;
    row-gap: 3rem;
  }

  .work__content {
    row-gap: 5rem;
  }

  .work__card {
    grid-template-columns: repeat(2, 450px);
    column-gap: 9rem;
  }

  .work__title {
    font-size: var(--bigger-font-size);
  }

  .work__subtitle,
  .work__description {
    font-size: var(--h3-font-size);
  }

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

  .services__card {
    padding: 3rem 3rem 4rem 3rem;
    border-radius: 4rem;
    row-gap: 2rem;
  }

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

  .services__button {
    right: 2rem;
    bottom: 2rem;
  }

  .testimonials__container {
    row-gap: 3rem;
  }

  .testimonials__container::after,
  .testimonials__container::before {
    content: "";
    position: absolute;
    top: 0;
    width: 20%;
    height: 100%;
  }

  .testimonials__container::after {
    left: 0;
    background: linear-gradient(90deg,
        hsl(0, 0%, 0%) 0%,
        hsla(0, 0%, 0%, 0) 100%);
  }

  .testimonials__container::before {
    right: 0;
    z-index: 1;
    background: linear-gradient(90deg,
        hsla(0, 0%, 0%, 0) 0%,
        hsl(0, 0%, 0%) 100%);
  }

  .testimonials__card {
    width: 370px;
    padding: 3rem 2rem;
    border-radius: 4rem;
  }

  .testimonials__number {
    font-size: var(--normal-font-size);
  }

  .contact {
    padding-block: 9rem 4rem;
  }

  .contact__container {
    row-gap: 8rem;
  }

  .contact__description {
    font-size: var(--h2-font-size);
  }

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

  .contact__info {
    row-gap: 1.5rem;
    justify-self: flex-start;
  }

  .contact__write {
    justify-self: flex-end;
  }

  .contact__title {
    margin-bottom: 0.75rem;
  }

  .contact__links {
    row-gap: 0.5rem;
  }

  .contact__link {
    font-size: 1.25rem;
  }
}

/* For 2K resolutions */
@media screen and (min-width: 2048px) {
  body {
    zoom: 1.4;
  }
}

/* Custom cursor hidden on touch devices */
@media (pointer: coarse) {
  .cursor {
    display: none;
  }
}

/*=============== CONTACT FINAL LAYOUT FIX ===============*/
.contact__container {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  row-gap: 5rem;
}

.contact__data {
  justify-items: center;
  text-align: center;
  width: 100%;
}

.contact__content {
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 2.5rem;
  width: 100%;
}

.contact__info {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  width: 100%;
}

.contact__social {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 1rem;
}

.contact__links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/*=============== LOGO SHOWCASE PAGE ===============*/
.logos__container {
  grid-template-columns: 320px;
  justify-content: center;
  row-gap: 2rem;
}

.logo__card {
  position: relative;
  background: linear-gradient(145deg,
      rgba(25, 25, 25, 0.6) 0%,
      rgba(15, 15, 15, 0.3) 100%);
  backdrop-filter: blur(20px) saturate(1.5) brightness(0.95);
  -webkit-backdrop-filter: blur(20px) saturate(1.5) brightness(0.95);
  padding: 2rem;
  border-radius: 3rem;
  text-align: center;
  transition: transform 0.4s, box-shadow 0.4s, border-color 0.4s;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  border-right: 1px solid transparent;
  border-bottom: 1px solid transparent;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.25),
    inset 0 0 15px rgba(255, 255, 255, 0.02);
}

.logo__card:hover {
  transform: translateY(-0.5rem);
  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.35),
    inset 0 0 25px rgba(255, 255, 255, 0.04),
    0 0 20px rgba(201, 24, 60, 0.15);
  border-top-color: rgba(255, 255, 255, 0.12);
}

.logo__card .blob {
  width: 150px;
  height: 150px;
  top: -3rem;
  left: -3rem;
  opacity: 0.6;
  filter: blur(40px);
  z-index: 0;
}

.logo__card:nth-child(even) .blob {
  top: auto;
  left: auto;
  bottom: -3rem;
  right: -3rem;
}

.logo__img {
  position: relative;
  width: 100%;
  border-radius: 1.5rem;
  margin-bottom: 1.5rem;
  aspect-ratio: 1/1;
  object-fit: cover;
  z-index: 1;
}

.logo__title {
  position: relative;
  font-size: var(--h2-font-size);
  margin-bottom: 0.5rem;
  z-index: 1;
}

.logo__description {
  position: relative;
  font-size: var(--small-font-size);
  color: var(--text-color);
  z-index: 1;
}

@media screen and (min-width: 540px) {
  .logos__container {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
  }
}

@media screen and (min-width: 968px) {
  .logos__container {
    grid-template-columns: repeat(3, 350px);
    column-gap: 2.5rem;
    row-gap: 3rem;
  }
}

/*=============== LIGHTBOX GALLERY ===============*/
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: 0.3s;
  backdrop-filter: blur(10px);
}

.lightbox.active-lightbox {
  opacity: 1;
  visibility: visible;
  pointer-events: initial;
}

.lightbox__content {
  position: relative;
  width: 100%;
  max-width: 900px;
  padding: 0 1rem;
}

.lightbox__close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 3rem;
  color: #fff;
  cursor: pointer;
  z-index: 1010;
  transition: 0.3s;
}

.lightbox__close:hover {
  transform: rotate(90deg);
  color: var(--first-color);
}

.lightbox__swiper {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 2rem;
}

.lightbox .swiper-slide {
  width: 100% !important;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox .swiper-slide img {
  display: block;
  width: auto;
  height: 80vh;
  max-width: 100%;
  object-fit: contain;
  border-radius: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox .swiper-button-next,
.lightbox .swiper-button-prev {
  color: var(--first-color);
  width: 4rem;
  height: 4rem;
  margin-top: -2rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  backdrop-filter: blur(4px);
  transition: 0.3s;
  z-index: 1050;
}

.lightbox .swiper-button-next:hover,
.lightbox .swiper-button-prev:hover {
  background: var(--first-color);
  color: #fff;
  transform: scale(1.1);
}

.lightbox .swiper-button-next::after,
.lightbox .swiper-button-prev::after {
  content: "";
}

.lightbox .swiper-button-next i,
.lightbox .swiper-button-prev i {
  font-size: 2.5rem;
  font-weight: 700;
}

.lightbox .swiper-button-next {
  right: -4rem;
}

.lightbox .swiper-button-prev {
  left: -4rem;
}

.lightbox .swiper-pagination-bullets {
  bottom: -3rem;
}

.lightbox .swiper-pagination-bullet {
  background: #fff;
  opacity: 0.3;
  width: 10px;
  height: 10px;
  transition: 0.3s;
}

.lightbox .swiper-pagination-bullet-active {
  background: var(--first-color);
  opacity: 1;
  width: 30px;
  border-radius: 1rem;
}

@media screen and (max-width: 1024px) {
  .lightbox .swiper-button-next {
    right: 0;
    background: transparent;
  }

  .lightbox .swiper-button-prev {
    left: 0;
    background: transparent;
  }

  .lightbox .swiper-button-next:hover,
  .lightbox .swiper-button-prev:hover {
    background: transparent;
    color: var(--first-color);
  }

  .swiper-slide img {
    max-width: 90%;
  }
}

/* ==================== FINAL MOBILE FIXES ==================== */
@media screen and (max-width: 767px) {
  .home__data {
    left: 0 !important;
    width: 100% !important;
    text-align: center !important;
    top: 6rem !important;
  }

  .home__social-link {
    color: var(--text-color-light) !important;
  }

  .about {
    margin-top: 5rem;
  }

  .about__data,
  .about__data .section__title {
    text-align: center !important;
  }

  .projects .section__title,
  .testimonials .section__title {
    text-align: center !important;
    margin-left: 0 !important;
  }

  .projects__image {
    width: 100% !important;
    display: block !important;
  }

  .projects__img {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    object-fit: cover !important;
  }
}

/*=============== BACK TO TOP BUTTON ===============*/
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  background: linear-gradient(145deg, rgba(25, 25, 25, 0.5) 0%, rgba(15, 15, 15, 0.2) 100%);
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  border-right: 1px solid rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  color: var(--title-color);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: var(--z-tooltip);
  opacity: 0;
  visibility: hidden;
  transform: translateY(1rem);
  transition: all 0.3s ease;
}

.back-to-top.show-scroll {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--first-color);
  border-color: var(--first-color);
  box-shadow: var(--shadow-glow);
}

@media (pointer: coarse) {
  .back-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 2.75rem;
    height: 2.75rem;
  }
}

@media screen and (max-width: 767px) {
  .back-to-top {
    bottom: 1.35rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(145deg,
        rgba(30, 30, 30, 0.65) 0%,
        rgba(18, 18, 18, 0.35) 100%);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
      0 4px 24px rgba(0, 0, 0, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }
}

/*=============== FOUC PREVENTION ===============*/
body {
  opacity: 0;
  transition: opacity 0.3s ease;
}

body.loaded {
  opacity: 1;
}

/*=============== VIEW TRANSITIONS ===============*/
@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.25s;
}

/*=============== COOKIE BANNER ===============*/
.cookie-banner {
  position: fixed;
  bottom: -150%;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  z-index: 1000;
  transition: bottom 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  justify-content: center;
}

.cookie-banner--show {
  bottom: 0;
}

.cookie-banner__content {
  background: linear-gradient(160deg,
      rgba(28, 28, 28, 0.95) 0%,
      rgba(12, 12, 12, 0.95) 100%);
  backdrop-filter: blur(28px) saturate(1.5) brightness(0.9);
  -webkit-backdrop-filter: blur(28px) saturate(1.5) brightness(0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 800px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(201, 24, 60, 0.1);
}

.cookie-banner__icon {
  font-size: 2rem;
  color: var(--first-color);
  display: none;
}

.cookie-banner__text {
  font-size: var(--small-font-size);
  color: var(--text-color);
  line-height: 1.5;
}

.cookie-banner__link {
  color: var(--first-color-light);
  text-decoration: underline;
  margin-left: 0.25rem;
  transition: color 0.3s;
}

.cookie-banner__link:hover {
  color: var(--first-color);
}

.cookie-banner__buttons {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.cookie-banner__btn {
  padding: 0.6rem 1.5rem;
  border-radius: 2rem;
  font-family: var(--second-font);
  font-size: var(--smaller-font-size);
  font-weight: var(--font-semi-bold);
  cursor: pointer;
  transition: 0.3s;
}

.cookie-banner__btn--accept {
  background-color: var(--first-color);
  color: #fff;
}

.cookie-banner__btn--accept:hover {
  background-color: var(--first-color-alt);
  box-shadow: var(--shadow-button);
}

.cookie-banner__btn--reject {
  background-color: transparent;
  color: var(--text-color);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-banner__btn--reject:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: #fff;
}

/* For large screens */
@media screen and (min-width: 768px) {
  .cookie-banner {
    padding: 2rem;
  }

  .cookie-banner__content {
    flex-direction: row;
    align-items: center;
    padding: 1.5rem 2rem;
  }

  .cookie-banner__icon {
    display: block;
  }
}