/*=============== 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: 255;
   --first-color: hsl(var(--hue), 60%, 64%);
   --first-color-alt: hsl(var(--hue), 80%, 56%);
   --first-color-alt-2: hsl(var(--hue), 60%, 56%);
   --first-color-light: hsl(var(--hue), 60%, 74%);
   --title-color: hsl(240, 8%, 95%);
   --text-color: hsl(240, 8%, 70%);
   --text-color-light: hsl(240, 8%, 50%);
   --body-color: hsl(240, 100%, 2%);
   --container-color: hsl(240, 8%, 6%);

   /*========== Font and typography ==========*/
   --body-font: "Montserrat", sans-serif;
   --second-font: "Unbounded", sans-serif;
   --biggest-font-size: 2.5rem;
   --bigger-font-size: 1.75rem;
   --h1-font-size: 1.5rem;
   --h2-font-size: 1.25rem;
   --h3-font-size: 1rem;
   --normal-font-size: .938rem;
   --small-font-size: .813rem;
   --smaller-font-size: .75rem;

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

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

/*========== Responsive typography ==========*/
@media screen and (min-width: 1150px) {
   :root {
      --biggest-font-size: 3.5rem;
      --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: .875rem;
      --smaller-font-size: .813rem;
   }
}

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

html { scroll-behavior: smooth; }

body, 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: 2560px;
   margin-inline: 1.5rem;
}

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

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

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

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

.main { overflow: hidden; }

/*=============== BLOB ===============*/
@keyframes blob-morph {
   0%, 100% { border-radius: 60% 40% 55% 45% / 45% 55% 45% 55%; }
   33%       { border-radius: 70% 30% 40% 60% / 50% 44% 56% 50%; }
   66%       { border-radius: 44% 56% 64% 36% / 56% 47% 53% 44%; }
}

/*=============== HOME IMAGE ENTRANCE ===============*/
@keyframes img-rise-in {
   0%   {
      opacity: 0;
      transform: translateY(48px) scale(0.92);
      filter: blur(8px);
   }
   60%  {
      opacity: 1;
      filter: blur(0px);
   }
   100% {
      opacity: 1;
      transform: translateY(0px) scale(1);
      filter: blur(0px);
   }
}

@keyframes img-float {
   0%, 100% { transform: translateY(0px);    }
   50%       { transform: translateY(-10px);  }
}

/*=============== CUSTOM CURSOR ===============*/
.cursor__dot,
.cursor__outline {
   position: fixed;
   top: 0; left: 0;
   pointer-events: none;
   z-index: 9999;
   transform: translate(-50%, -50%);
}

.cursor__dot {
   width: 8px; height: 8px;
   background: var(--first-color);
   border-radius: 50%;
   transition: width .15s, height .15s, background-color .2s;
}

.cursor__outline {
   width: 36px; height: 36px;
   border: 2px solid hsla(var(--hue), 60%, 64%, .45);
   border-radius: 50%;
   transition: width .3s, height .3s, border-color .3s;
}

/* Hide cursor on touch */
@media (hover: none) {
   .cursor__dot, .cursor__outline { display: none; }
}

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

.header.scroll-header {
   background-color: hsla(240, 100%, 2%, .9);
   backdrop-filter: blur(20px);
   -webkit-backdrop-filter: blur(20px);
   box-shadow: 0 1px 0 hsla(var(--hue), 60%, 64%, .1);
}

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

.nav__logo {
   font-family: var(--second-font);
   font-size: var(--h2-font-size);
   font-weight: 800;
   letter-spacing: .05em;
   color: var(--title-color);
   transition: color .3s;
}

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

.nav__list {
   display: flex;
   column-gap: 2.5rem;
}

.nav__link {
   font-family: var(--second-font);
   font-size: var(--smaller-font-size);
   font-weight: var(--font-medium);
   letter-spacing: .06em;
   color: var(--title-color);
   text-transform: capitalize;
   transition: color .3s;
}

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

/* Active link */
.active-link { color: var(--first-color-light); }

.nav__toggle,
.nav__close {
   display: none;
   font-size: 1.4rem;
   color: var(--title-color);
   cursor: pointer;
}

/*=============== HOME ===============*/
.home {
   position: relative;
   min-height: 100svh;
   overflow: hidden;
}

/* Purple aura blob — sits behind the portrait, centered in viewport */
.home__blob {
   position: absolute;
   top: 50%;
   left: 50%;
   width: clamp(280px, 40vw, 520px);
   height: clamp(280px, 40vw, 520px);
   background: radial-gradient(
      ellipse at 50% 45%,
      hsl(var(--hue), 75%, 32%) 0%,
      hsl(var(--hue), 65%, 20%) 40%,
      transparent 72%
   );
   transform: translate(-50%, -50%);
   animation: blob-morph 10s ease-in-out infinite;
   filter: blur(90px);
   pointer-events: none;
   z-index: 0;
}

/*
   HOME CONTAINER
   ─────────────────────────────────────────────────────
   Full-viewport-width 3-column grid.
   We override .container's margin-inline so the image
   can bleed edge-to-edge while left/right text is padded
   manually inside their columns.
   Grid columns: [left-pad] [left-text] [image] [right-text] [right-pad]
   Simplified to: padding-inline on the section + 3-col grid.
*/
/* --- SHARED LAYOUT LOGIC --- */
.home__container {
    display: grid;
    grid-template-columns: 1fr; /* Mobile default */
    align-items: center;
    justify-items: center;
    min-height: 80svh;
    padding-top: 0rem;
    gap: 0rem;
    position: relative;
    max-width: 2560px; /* Limits width on ultra-large screens */
    margin: 0 auto;
}

/* TABLET */
@media screen and (min-width: 768px) and (max-width: 1023px) {
    .home__container {
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 1rem;
        padding-top: 0;
    }

    .home__data {
        justify-self: end;
        text-align: left;
        padding-right: 2rem;
        z-index: 5;
    }

    .home__info {
        justify-self: start;
        text-align: left;
        padding-left: 2rem;
        max-width: 260px;
        z-index: 5;
        margin-left: -35px;
    }

    .home__img-wrapper {
        width: clamp(260px, 32vw, 340px);
        margin-left: -15px;
    }

    .home__split {
        font-size: 0.75rem;
        letter-spacing: 1px;
        margin-bottom: 0.4rem;
    }

    .home__profession {
        display: flex;
        flex-direction: column;
        line-height: 1.05;
    }

    .home__profession-1,
    .home__profession-2 {
        font-size: 1.6rem;
        font-weight: 900;
        white-space: nowrap;
    }

    .home__profession-1 {
        background: linear-gradient(to right, #d8b4fe, #7c3aed);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .home__cv {
        margin-top: 1rem;
        font-size: 0.7rem;
    }
}

/* LAPTOP (Start at 1024px x 857px) */
@media screen and (min-width: 1024px) {
    .home__data {
        padding-right: 8rem;
    }

    .home__info {
        padding-left: 2rem;
        max-width: 280px;
        width: 100%;
        margin-left: 0px;
    }

    .home__info-title {
        font-size: var(--small-font-size);
        margin-bottom: 1rem;
    }

    .home__info-description {
        font-size: var(--h2-font-size);
        line-height: 1.2;
    }
}

/* LARGE LAPTOP / DESKTOP (1200px - 2500px) */
@media screen and (min-width: 1200px) {
    .home__data {
        padding-right: 12rem;
    }

    .home__info {
        padding-left: 4rem;
        max-width: 350px;
    }
}


    .home__info {
        padding-left: 8rem;
        max-width: 600px; /* Much wider text container for 4K clarity */
    }

    /* Scaling typography for 4K display */
    .home__info-title {
        font-size: 2rem; 
        margin-bottom: 2rem;
    }

    .home__info-description {
        font-size: 4.5rem; /* Large, bold 'Hard' text impact */
        line-height: 1.1;
    }

    /* Resume link/button adjustment for 4K */
    .home__button {
        font-size: 1.5rem;
        margin-top: 3rem;
    }
}

@media screen and (max-width: 767px) {
    /* 1. Container */
    .home__container {
        padding-top: 4rem;
        gap: 0;
    }

    /* 2. Image Wrapper — head to shoulder/chest only */
    .home__img-wrapper {
    order: 1;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 4 / 3.2;   /* This forces a specific height based on width */
    transform: none;
}

    /* 3. Image — fill wrapper, anchor at top, fade below chest */
    .home__img {
        object-fit: cover;
        object-position: top center;
        transform: none;

        /* Fade starts at 70% — fades out at chest/shoulder */
        -webkit-mask-image: linear-gradient(to bottom, black 65%, transparent 95%);
        mask-image: linear-gradient(to bottom, black 65%, transparent 95%);
    }

    /* 4. Name — slight pull-up overlap */
    .home__data {
        order: 2;
        margin-top: -1rem;
        z-index: 10;
        text-align: center;
    }

    .home__name-line {
        font-size: 2.8rem;
        line-height: 1.1;
        margin-bottom: 0.8rem;
    }

    /* 5. Info & Socials */
    .home__info {
        order: 3;
        margin-top: 1.5rem;
    }

    .home__social {
        display: flex;
        justify-content: center;
        gap: 1.5rem;
        margin-top: 1rem;
    }
}

/* Re-enable 3-columns ONLY for large screens */
@media screen and (min-width: 1024px) {
   .home__container {
      grid-template-columns: minmax(250px, 1fr) auto minmax(250px, 1fr);
      padding: 0;
      text-align: left;
   }
}

/* ─────────────────────────────────────
   LEFT column
   ───────────────────────────────────── */
.home__data {
   display: flex;
   flex-direction: column;
   justify-content: space-between;
   /* Top padding clears the fixed header; bottom pads socials */
   padding: calc(var(--header-height) + 4.5rem) 0rem 4rem 2.5rem;
   min-width: 0; /* prevent flex blowout */
}

.home__greeting {
   font-family: var(--second-font);
   font-size: var(--small-font-size);
   font-weight: var(--font-medium);
   color: var(--first-color);
   letter-spacing: .05em;
   margin-bottom: .4rem;
   opacity: 0; /* Anime.js */
   transform: translateY(10px);
}

.home__name {
   font-family: var(--second-font);
   font-size: var(--biggest-font-size);
   font-weight: 900;
   line-height: 1.0;
   letter-spacing: -.03em;
   color: var(--title-color);
}

.home__name-line {
  display: block;
  overflow: hidden;
  line-height: 1.15;
}


.home__name-line > span {
   display: block;
}

/* Social icons — plain, strictly vertical */
.home__social {
   display: flex;
   flex-direction: column;
   gap: 1rem;
}

.home__social-link {
   font-size: 1.3rem;
   color: var(--text-color);
   line-height: 1;
   transition: color .3s, transform .3s;
}

.home__social-link:hover {
   color: var(--first-color-light);
   transform: translateX(3px);
}

/* ─────────────────────────────────────
   CENTER column — portrait image
   Image fills the column naturally.
   Fixed pixel width so it never
   compresses the side columns.
   ───────────────────────────────────── */
.home__img-wrapper {
   position: relative;
   display: flex;
   align-items: flex-end;
   justify-content: center;
   /* Match this to your design's ideal image size */
   width: clamp(350px, 35vw, 1000px); 
   z-index: 1;
   flex-shrink: 0; /* Prevents the grid from squishing the image */

   /* Entrance: rise + fade + unblur over 1.1s, then float gently */
   animation:
      img-rise-in 1.1s cubic-bezier(0.16, 1, 0.3, 1) both,
      img-float   6s  ease-in-out 1.2s infinite;
}

.home__img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   object-position: top center;
   -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
   mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
   display: block;
}

/* ─────────────────────────────────────
   RIGHT column
   ───────────────────────────────────── */
.home__info {
   display: flex;
   flex-direction: column;
   justify-content: space-between;
   align-items: flex-end;
   text-align: right;
   padding: calc(var(--header-height) + 4.5rem) 0rem 4rem 2rem;
   min-width: 0; /* prevent flex blowout */
}

/* "Creative" label */
.home__split {
   font-family: var(--second-font);
   font-size: var(--small-font-size);
   font-weight: var(--font-medium);
   color: var(--first-color);
   letter-spacing: .05em;
   margin-bottom: .4rem;
   opacity: 0; /* Anime.js */
   transform: translateY(10px);
}

/* "Developer & Designer" wrapper */
.home__profession {
   font-family: var(--second-font);
   font-weight: 900;
   line-height: 1.05;
   letter-spacing: -.03em;
   opacity: 0; /* Anime.js */
}

/* "Developer" — purple-top → white-bottom gradient */
.home__profession-1 {
   display: block;
   font-size: var(--biggest-font-size);
   background: linear-gradient(
      to bottom,
      var(--first-color-light) 0%,
      var(--title-color) 100%
   );
   -webkit-background-clip: text;
   background-clip: text;
   -webkit-text-fill-color: transparent;
   overflow: hidden;
}

/* Per-letter spans added by JS */
.home__profession-char {
   display: inline-block;
}

/* "& Designer" — plain white, same size */
.home__profession-2 {
   display: block;
   font-size: var(--biggest-font-size);
   color: var(--title-color);
   -webkit-text-fill-color: var(--title-color);
   overflow: hidden;
}

.home__profession-2 > span {
   display: block;
}



/* RESUME — plain text + icon, bottom-right */
.home__cv {
   display: inline-flex;
   align-items: center;
   gap: .45rem;
   font-family: var(--second-font);
   font-size: var(--smaller-font-size);
   font-weight: var(--font-semi-bold);
   letter-spacing: .14em;
   text-transform: uppercase;
   color: var(--text-color);
   transition: color .3s;
   opacity: 0; /* Anime.js */
}

.home__cv i { font-size: 1rem; }
.home__cv:hover { color: var(--first-color-light); }

/* Ensure the right side column has space */
@media screen and (min-width: 768px) {
    .home__info {
        display: flex;
        flex-direction: column;
        justify-content: center; /* Center vertically in the row */
        align-items: flex-start; /* Align text to the left of the right column */
        text-align: left;
        padding-left: 2rem;
        height: 100%;
    }
}

/* Base styles for animation - IMPORTANT */
.home__split, 
.home__profession,
.home__cv {
    opacity: 1; /* Changed from 0 so content is visible if JS fails */
}

/* Character wrapping for animation */
.home__profession-char {
    display: inline-block;
    will-change: transform;
}

/* Ensure the lines don't wrap weirdly */
.home__profession-1, 
.home__profession-2 {
    display: block;
    white-space: nowrap;
    overflow: hidden; /* Clips letters when they move up */
    height: 1.2em;
}

@media screen and (max-width: 767px) {
    .home__container {
        grid-template-columns: 1fr; /* Single column for mobile */
    }
    
    .home__info {
        order: 3; /* Places it below the image and name */
        align-items: center; /* Center text on mobile */
        text-align: center;
        padding: 2rem 0;
    }

    .home__profession-1, 
    .home__profession-2 {
        font-size: 2rem; /* Shrink text slightly for mobile screens */
    }
}

/*=============== BUTTON ===============*/
.button {
   display: inline-flex;
   align-items: center;
   gap: .5rem;
   padding: .875rem 2rem;
   background: linear-gradient(135deg, var(--first-color-alt), var(--first-color));
   color: #fff;
   font-family: var(--second-font);
   font-size: var(--smaller-font-size);
   font-weight: var(--font-semi-bold);
   letter-spacing: .1em;
   text-transform: uppercase;
   border-radius: 3rem;
   box-shadow: 0 0 24px hsla(var(--hue), 60%, 50%, .3);
   transition: box-shadow .35s, transform .3s;
   cursor: pointer;
}

.button:hover {
   box-shadow: 0 0 42px hsla(var(--hue), 60%, 50%, .6);
   transform: translateY(-3px);
}

/*=============== ABOUT ===============*/
.about__container {
   grid-template-columns: 1fr 1.2fr;
   align-items: center;
   column-gap: 4rem;
}

.about__img {
   width: 100%;
   border-radius: 1rem;
   box-shadow: 0 0 40px hsla(var(--hue), 60%, 40%, .25);
}

.about__description {
   margin-bottom: 2rem;
   line-height: 1.8;
}

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

/*=============== PROJECTS ===============*/
.projects__container {
   padding-bottom: 3rem;
}

.projects__swiper {
   /* No overflow override — let Swiper's built-in CSS handle it */
   padding-bottom: 3rem;
}

.projects__container {
   overflow: hidden;
   padding-bottom: 1rem;
}

.projects__card {
   background: var(--container-color);
   border-radius: 1.25rem;
   overflow: hidden;
   display: grid;
   grid-template-columns: auto 1fr;
   text-decoration: none;
   color: inherit;
   /* Fixed uniform height */
   height: 220px;
   transition: box-shadow .3s, transform .3s;
}

.projects__card--link:hover {
   box-shadow: 0 8px 32px hsla(var(--hue), 60%, 30%, .25);
   transform: translateY(-3px);
}

.projects__image {
   width: 200px;
   flex-shrink: 0;
   overflow: hidden;
}

.projects__img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   transition: transform .4s ease;
}

.projects__card--link:hover .projects__img {
   transform: scale(1.05);
}

.projects__data {
   padding: 1.5rem;
   display: flex;
   flex-direction: column;
   justify-content: space-between;
   overflow: hidden;
   min-width: 0;
}

.projects__header {
   display: flex;
   align-items: baseline;
   gap: 1rem;
   margin-bottom: .5rem;
}

.projects__number {
   font-family: var(--second-font);
   font-size: var(--h1-font-size);
   font-weight: 900;
   color: var(--first-color);
   opacity: .3;
   line-height: 1;
   flex-shrink: 0;
}

.projects__subtitle {
   font-family: var(--second-font);
   font-size: var(--smaller-font-size);
   color: var(--first-color-light);
   letter-spacing: .1em;
   text-transform: uppercase;
}

.projects__title {
   font-size: clamp(.7rem, 1.1vw, var(--h2-font-size));
   margin-bottom: .35rem;
   line-height: 1.3;
   /* Prevent overflow, shrink font if needed */
   display: -webkit-box;
   -webkit-line-clamp: 2;
   -webkit-box-orient: vertical;
   overflow: hidden;
}

.projects__label {
   font-size: var(--smaller-font-size);
   color: var(--first-color-light);
   display: block;
   margin-bottom: .25rem;
}

.projects__description {
   font-size: clamp(.65rem, .9vw, var(--small-font-size));
   line-height: 1.6;
   display: -webkit-box;
   -webkit-line-clamp: 2;
   -webkit-box-orient: vertical;
   overflow: hidden;
}

.projects__readmore {
   display: inline-flex;
   align-items: center;
   gap: .3rem;
   font-family: var(--second-font);
   font-size: var(--smaller-font-size);
   color: var(--first-color-light);
   font-weight: var(--font-semi-bold);
   letter-spacing: .06em;
   margin-top: .4rem;
   transition: color .3s, gap .3s;
   flex-shrink: 0;
}

.projects__card--link:hover .projects__readmore {
   color: var(--first-color);
   gap: .55rem;
}

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

.swiper-pagination-bullet-active {
   background: var(--first-color);
   width: 1.5rem;
   border-radius: 1rem;
   transition: width .3s;
}

/*=============== WORK ===============*/
.work__container { max-width: 800px; margin-inline: auto; }

.work__tabs {
   display: flex;
   justify-content: center;
   gap: 2rem;
   margin-bottom: 3rem;
}

.work__button {
   display: flex;
   align-items: center;
   gap: .5rem;
   font-family: var(--second-font);
   font-size: var(--small-font-size);
   font-weight: var(--font-semi-bold);
   letter-spacing: .06em;
   color: var(--text-color);
   background: transparent;
   border-bottom: 2px solid transparent;
   padding-bottom: .5rem;
   cursor: pointer;
   transition: color .3s, border-color .3s;
}

.work__button--active,
.work__button:hover {
   color: var(--first-color-light);
   border-color: var(--first-color);
}

.work__content { display: none; }
.work__content--active { display: block; }

.work__items { display: grid; gap: 2rem; }

.work__item {
   display: grid;
   grid-template-columns: 3.5rem 1px 1fr;
   column-gap: 1.5rem;
   align-items: start;
}

.work__year {
   font-family: var(--second-font);
   font-size: var(--small-font-size);
   color: var(--first-color-light);
   text-align: right;
   padding-top: .25rem;
}

.work__line {
   width: 1px;
   background: hsla(var(--hue), 60%, 64%, .2);
   height: 100%;
   position: relative;
}

.work__line::before {
   content: '';
   position: absolute;
   top: 6px; left: 50%;
   transform: translateX(-50%);
   width: 8px; height: 8px;
   border-radius: 50%;
   background: var(--first-color);
   box-shadow: 0 0 8px var(--first-color);
}

.work__title {
   font-size: var(--h3-font-size);
   line-height: 1.3;
   margin-bottom: .25rem;
}

.work__subtitle {
   font-size: var(--smaller-font-size);
   color: var(--first-color-light);
   display: block;
   margin-bottom: .5rem;
}

.work__description {
   font-size: var(--small-font-size);
   line-height: 1.7;
}

/*=============== SERVICES ===============*/
.services__container {
   max-width: 700px;
   margin-inline: auto;
   display: grid;
   gap: 1rem;
}

.services__item {
   background: var(--container-color);
   border-radius: 1rem;
   overflow: hidden;
}

.services__header {
   display: flex;
   align-items: center;
   gap: 1rem;
   padding: 1.5rem;
   cursor: pointer;
}

.services__icon {
   width: 2.5rem; height: 2.5rem;
   background: hsla(var(--hue), 60%, 64%, .1);
   border-radius: .5rem;
   display: grid;
   place-items: center;
   font-size: 1.25rem;
   color: var(--first-color-light);
   flex-shrink: 0;
}

.services__title {
   font-size: var(--h3-font-size);
   flex: 1;
}

.services__arrow {
   font-size: 1.25rem;
   color: var(--first-color-light);
   transition: transform .3s;
}

/* Rotate icon when open */
.services__item--open .services__arrow {
   transform: rotate(-180deg);
}

/* Hide services info */
.services__content {
   max-height: 0;
   overflow: hidden;
   transition: max-height .4s ease, padding .3s;
   padding: 0 1.5rem;
}

.services__item--open .services__content {
   max-height: 300px;
   padding: 0 1.5rem 1.5rem;
}

.services__description {
   font-size: var(--small-font-size);
   line-height: 1.7;
   margin-bottom: 1rem;
}

.services__tools { margin-top: .75rem; }

.services__subtitle {
   display: block;
   font-family: var(--second-font);
   font-size: var(--smaller-font-size);
   color: var(--first-color-light);
   margin-bottom: .35rem;
}

.services__skills {
   font-size: var(--small-font-size);
   line-height: 1.7;
}

/*=============== TESTIMONIALS ===============*/
/* Infinite scroll animation */
@keyframes scroll-left {
   from { transform: translateX(0); }
   to   { transform: translateX(-50%); }
}

.testimonials__container {
   overflow: hidden;
   position: relative;
   /* Edge fade */
   -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
   mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.testimonials__track {
   display: flex;
   gap: 1.5rem;
   width: max-content;
   animation: scroll-left 28s linear infinite;
}

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

.testimonials__card {
   background: var(--container-color);
   border-radius: 1.25rem;
   padding: 1.75rem;
   width: 300px;
   flex-shrink: 0;
}

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

.testimonials__img {
   width: 3rem; height: 3rem;
   border-radius: 50%;
   object-fit: cover;
   border: 2px solid hsla(var(--hue), 60%, 64%, .3);
}

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

.testimonials__number {
   font-size: var(--smaller-font-size);
   color: var(--first-color);
}

.testimonials__card p {
   font-size: var(--small-font-size);
   line-height: 1.7;
}

/*=============== CONTACT ===============*/
.contact__container {
   grid-template-columns: 1fr 1fr;
   column-gap: 4rem;
   align-items: start;
}

.contact__description {
   font-size: var(--h2-font-size);
   color: var(--title-color);
   font-family: var(--second-font);
   font-weight: var(--font-semi-bold);
   line-height: 1.3;
   margin-bottom: 2rem;
}

.contact__copy {
   display: flex;
   flex-direction: column;
   gap: .75rem;
}

.contact__button {
   display: inline-flex;
   align-items: center;
   gap: .5rem;
   background: var(--container-color);
   color: var(--title-color);
   padding: .75rem 1.5rem;
   border-radius: 3rem;
   font-family: var(--second-font);
   font-size: var(--smaller-font-size);
   font-weight: var(--font-semi-bold);
   letter-spacing: .08em;
   cursor: pointer;
   transition: background-color .3s, color .3s;
   border: 1.5px solid hsla(var(--hue), 60%, 64%, .2);
}

.contact__button:hover {
   background: hsla(var(--hue), 60%, 64%, .1);
   border-color: var(--first-color);
   color: var(--first-color-light);
}

.contact__email {
   font-size: var(--small-font-size);
   color: var(--text-color-light);
   transition: color .3s;
}

/* Copied state */
.contact__email--copied { color: var(--first-color-light); }

.contact__right {
   display: grid;
   gap: 1.75rem;
}

.contact__title {
   font-size: var(--small-font-size);
   color: var(--first-color-light);
   margin-bottom: .5rem;
   letter-spacing: .06em;
}

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

.contact__links {
   display: flex;
   flex-wrap: wrap;
   gap: .5rem .75rem;
}

.contact__link {
   font-size: var(--small-font-size);
   color: var(--text-color);
   transition: color .3s;
   position: relative;
}

.contact__link::after {
   content: '';
   position: absolute;
   left: 0; bottom: -2px;
   width: 0; height: 1px;
   background: var(--first-color);
   transition: width .3s;
}

.contact__link:hover { color: var(--first-color-light); }
.contact__link:hover::after { width: 100%; }

/*=============== FOOTER ===============*/
.footer {
   background: var(--container-color);
   padding-block: 2rem;
   margin-top: 3rem;
}

.footer__container {
   display: flex;
   justify-content: center;
}

.footer__copy {
   font-size: var(--smaller-font-size);
   color: var(--text-color-light);
   text-align: center;
}

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


/*=============== BADGES ===============*/
.badges {
   margin-bottom: 2rem;
}

.badges__title {
   font-family: var(--second-font);
   font-size: var(--smaller-font-size);
   font-weight: var(--font-semi-bold);
   color: var(--first-color-light);
   letter-spacing: .1em;
   text-transform: uppercase;
   margin-bottom: 1rem;
}

.badges__list {
   display: flex;
   flex-wrap: wrap;
   gap: 1rem;
}

.badge__item {
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: .4rem;
   cursor: pointer;
   transition: transform .3s;
}

.badge__item:hover { transform: translateY(-4px); }

.badge__img {
   width: 64px;
   height: 64px;
   object-fit: contain;
   border-radius: .75rem;
   background: var(--container-color);
   padding: .5rem;
   border: 1px solid hsla(var(--hue), 60%, 64%, .15);
   transition: border-color .3s, box-shadow .3s;
}

.badge__item:hover .badge__img {
   border-color: var(--first-color);
   box-shadow: 0 0 18px hsla(var(--hue), 60%, 64%, .25);
}

.badge__name {
   font-size: var(--smaller-font-size);
   color: var(--text-color-light);
   text-align: center;
   transition: color .3s;
}

.badge__item:hover .badge__name { color: var(--first-color-light); }

/*=============== LICENSES & CERTIFICATIONS ===============*/
.licenses__container {
   display: grid;
   grid-template-columns: repeat(2, 1fr);
   gap: 1.25rem;
}

.license__card {
   display: flex;
   align-items: flex-start;
   gap: 1rem;
   background: var(--container-color);
   border: 1px solid hsla(var(--hue), 60%, 64%, .1);
   border-radius: 1rem;
   padding: 1.25rem;
   transition: border-color .35s, box-shadow .35s, transform .3s;
}

.license__card:hover {
   border-color: hsla(var(--hue), 60%, 64%, .4);
   box-shadow: 0 0 28px hsla(var(--hue), 60%, 50%, .12);
   transform: translateY(-3px);
}

.license__icon-wrap {
   flex-shrink: 0;
   width: 2.75rem;
   height: 2.75rem;
   display: flex;
   align-items: center;
   justify-content: center;
   background: hsla(var(--hue), 60%, 64%, .1);
   border-radius: .6rem;
   font-size: 1.3rem;
   color: var(--first-color-light);
   transition: background .3s;
}

.license__card:hover .license__icon-wrap {
   background: hsla(var(--hue), 60%, 64%, .2);
}

.license__body { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }

.license__title {
   font-family: var(--second-font);
   font-size: var(--small-font-size);
   font-weight: var(--font-semi-bold);
   color: var(--title-color);
   line-height: 1.3;
}

.license__issuer {
   font-size: var(--smaller-font-size);
   color: var(--first-color-light);
   font-weight: var(--font-medium);
}

.license__date {
   font-size: var(--smaller-font-size);
   color: var(--text-color-light);
}

.license__link {
   display: inline-flex;
   align-items: center;
   gap: .3rem;
   font-size: var(--smaller-font-size);
   font-family: var(--second-font);
   font-weight: var(--font-semi-bold);
   color: var(--first-color);
   letter-spacing: .05em;
   margin-top: .25rem;
   transition: color .3s, gap .3s;
}

.license__link:hover { color: var(--first-color-light); gap: .5rem; }

/* "Show credential" button — looks like license__link but is a <button> */
.license__credential-btn {
   display: inline-flex;
   align-items: center;
   gap: .3rem;
   font-size: var(--smaller-font-size);
   font-family: var(--second-font);
   font-weight: var(--font-semi-bold);
   color: var(--first-color);
   letter-spacing: .05em;
   margin-top: .25rem;
   background: none;
   border: none;
   cursor: pointer;
   padding: 0;
   transition: color .3s, gap .3s;
}
.license__credential-btn:hover { color: var(--first-color-light); gap: .5rem; }

/* Hidden cards — toggled by JS */
.license__card--hidden { display: none; }

/* See more / See less toggle button */
.licenses__toggle-wrap {
   display: flex;
   justify-content: center;
   margin-top: 1.75rem;
}

.licenses__see-more {
   display: inline-flex;
   align-items: center;
   gap: .45rem;
   background: none;
   border: 1.5px solid hsla(var(--hue), 60%, 64%, .3);
   border-radius: 3rem;
   padding: .6rem 1.6rem;
   font-family: var(--second-font);
   font-size: var(--smaller-font-size);
   font-weight: var(--font-semi-bold);
   letter-spacing: .08em;
   color: var(--text-color);
   cursor: pointer;
   transition: border-color .3s, color .3s, background-color .3s;
}

.licenses__see-more:hover {
   border-color: var(--first-color);
   color: var(--first-color-light);
   background-color: hsla(var(--hue), 60%, 64%, .06);
}

.licenses__see-more-icon {
   transition: transform .35s;
}

.licenses__see-more--open .licenses__see-more-icon {
   transform: rotate(180deg);
}

/*=============== CERTIFICATE POPUP MODAL ===============*/
.cert-modal {
   position: fixed;
   inset: 0;
   z-index: 1000;
   display: flex;
   align-items: center;
   justify-content: center;
   pointer-events: none;
   opacity: 0;
   transition: opacity .3s;
}

.cert-modal--open {
   pointer-events: all;
   opacity: 1;
}

.cert-modal__backdrop {
   position: absolute;
   inset: 0;
   background: hsla(240, 100%, 2%, .85);
   backdrop-filter: blur(6px);
   -webkit-backdrop-filter: blur(6px);
}

.cert-modal__box {
   position: relative;
   z-index: 1;
   background: var(--container-color);
   border: 1px solid hsla(var(--hue), 60%, 64%, .2);
   border-radius: 1.5rem;
   padding: 2rem;
   max-width: min(680px, 92vw);
   width: 100%;
   max-height: 90svh;
   overflow-y: auto;
   display: flex;
   flex-direction: column;
   gap: 1rem;
   transform: scale(.92) translateY(24px);
   transition: transform .35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cert-modal--open .cert-modal__box {
   transform: scale(1) translateY(0);
}

.cert-modal__close {
   position: absolute;
   top: 1rem;
   right: 1rem;
   width: 2.25rem;
   height: 2.25rem;
   border-radius: 50%;
   background: hsla(var(--hue), 60%, 64%, .1);
   border: none;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 1.2rem;
   color: var(--title-color);
   cursor: pointer;
   transition: background .3s, color .3s;
}

.cert-modal__close:hover {
   background: hsla(var(--hue), 60%, 64%, .25);
   color: var(--first-color-light);
}

.cert-modal__label {
   font-family: var(--second-font);
   font-size: var(--small-font-size);
   font-weight: var(--font-semi-bold);
   color: var(--first-color-light);
   letter-spacing: .06em;
   padding-right: 2.5rem;
}

.cert-modal__img-wrap {
   position: relative;
   border-radius: 1rem;
   overflow: hidden;
   background: hsla(240, 8%, 6%, .6);
   min-height: 180px;
   display: flex;
   align-items: center;
   justify-content: center;
}

.cert-modal__img {
   width: 100%;
   height: auto;
   display: block;
   border-radius: .75rem;
}

.cert-modal__img[src=""] {
   display: none;
}

.cert-modal__placeholder {
   display: none;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   gap: .75rem;
   padding: 3rem 1rem;
   color: var(--text-color-light);
   font-size: var(--small-font-size);
}

.cert-modal__placeholder i {
   font-size: 3rem;
   color: hsla(var(--hue), 60%, 64%, .4);
}

.cert-modal__verify {
   display: inline-flex;
   align-items: center;
   gap: .4rem;
   font-family: var(--second-font);
   font-size: var(--smaller-font-size);
   font-weight: var(--font-semi-bold);
   color: var(--first-color);
   letter-spacing: .06em;
   transition: color .3s, gap .3s;
}

.cert-modal__verify:hover { color: var(--first-color-light); gap: .6rem; }

/*=============== SKILL MATRIX ===============*/
.skillmatrix__container {
   display: grid;
   grid-template-columns: repeat(2, 1fr);
   gap: 2rem;
   max-width: 1000px;
   margin-inline: auto;
}

/* Personality card spans both columns */
.skillmatrix__group--full {
   grid-column: 1 / -1;
}

/* Row layout for the Personality items */
.skillmatrix__items--row {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 1.25rem;
}

@media screen and (max-width: 576px) {
   .skillmatrix__items--row {
      grid-template-columns: 1fr;
   }
}

.skillmatrix__group {
   background: var(--container-color);
   border: 1px solid hsla(var(--hue), 60%, 64%, .1);
   border-radius: 1.25rem;
   padding: 1.5rem;
   transition: border-color .3s, box-shadow .3s;
}

.skillmatrix__group:hover {
   border-color: hsla(var(--hue), 60%, 64%, .3);
   box-shadow: 0 0 28px hsla(var(--hue), 60%, 50%, .08);
}

.skillmatrix__group-header {
   display: flex;
   align-items: center;
   gap: .75rem;
   margin-bottom: 1.25rem;
}

.skillmatrix__group-icon {
   width: 2.5rem;
   height: 2.5rem;
   background: hsla(var(--hue), 60%, 64%, .1);
   border-radius: .6rem;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 1.2rem;
   color: var(--first-color-light);
   flex-shrink: 0;
}

.skillmatrix__group-title {
   font-family: var(--second-font);
   font-size: var(--h3-font-size);
   font-weight: var(--font-semi-bold);
   color: var(--title-color);
}

.skillmatrix__items {
   display: flex;
   flex-direction: column;
   gap: .9rem;
}

.skillmatrix__item {}

.skillmatrix__info {
   display: flex;
   justify-content: space-between;
   align-items: center;
   margin-bottom: .35rem;
}

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

.skillmatrix__percent {
   font-family: var(--second-font);
   font-size: var(--smaller-font-size);
   font-weight: var(--font-semi-bold);
   color: var(--first-color-light);
}

.skillmatrix__bar {
   width: 100%;
   height: 6px;
   background: hsla(var(--hue), 60%, 64%, .1);
   border-radius: 3px;
   overflow: hidden;
}

.skillmatrix__fill {
   height: 100%;
   width: 0%;            /* animated by JS */
   background: linear-gradient(to right, var(--first-color-alt), var(--first-color-light));
   border-radius: 3px;
   transition: width 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Mobile: single column */
@media screen and (max-width: 700px) {
   .skillmatrix__container { grid-template-columns: 1fr; }
}

/*=============== PHOTO ALBUM CAROUSEL ===============*/
.album__header {
   display: flex;
   align-items: center;
   justify-content: space-between;
   margin-bottom: 2.5rem;
   flex-wrap: wrap;
   gap: 1rem;
}

.album__seemore {
   display: inline-flex;
   align-items: center;
   gap: .4rem;
   font-family: var(--second-font);
   font-size: var(--small-font-size);
   font-weight: var(--font-semi-bold);
   letter-spacing: .08em;
   color: var(--first-color-light);
   border: 1px solid hsla(var(--hue), 60%, 64%, .35);
   padding: .5rem 1.1rem;
   border-radius: 2rem;
   transition: color .3s, border-color .3s, background-color .3s;
}

.album__seemore:hover {
   color: var(--title-color);
   border-color: var(--first-color);
   background-color: hsla(var(--hue), 60%, 64%, .1);
}

.album__glide {
   padding-inline: 1.5rem;
   position: relative;
}

/* Photo card */
.photo__card {
   display: block;
   position: relative;
   border-radius: 1.25rem;
   overflow: hidden;
   aspect-ratio: 3 / 4;
   cursor: pointer;
   text-decoration: none;
   background: var(--container-color);
}

.photo__img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   display: block;
   transition: transform .6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.photo__card:hover .photo__img {
   transform: scale(1.07);
}

/* Overlay */
.photo__overlay {
   position: absolute;
   inset: 0;
   background: linear-gradient(
      to top,
      hsla(240, 100%, 2%, .95) 0%,
      hsla(240, 100%, 2%, .65) 45%,
      transparent 100%
   );
   display: flex;
   flex-direction: column;
   justify-content: flex-end;
   padding: 1.5rem;
   opacity: 0;
   transform: translateY(6px);
   transition: opacity .35s ease, transform .35s ease;
}

.photo__card:hover .photo__overlay {
   opacity: 1;
   transform: translateY(0);
}

.photo__date {
   display: inline-flex;
   align-items: center;
   gap: .3rem;
   font-size: var(--smaller-font-size);
   color: var(--first-color-light);
   margin-bottom: .4rem;
   letter-spacing: .04em;
}

.photo__title {
   font-family: var(--second-font);
   font-size: var(--h3-font-size);
   font-weight: var(--font-semi-bold);
   color: var(--title-color);
   margin-bottom: .4rem;
   line-height: 1.2;
}

.photo__desc {
   font-size: var(--smaller-font-size);
   color: hsla(240, 8%, 85%, .85);
   line-height: 1.55;
   display: -webkit-box;
   -webkit-line-clamp: 3;
   -webkit-box-orient: vertical;
   overflow: hidden;
}

/* Glide arrows */
.glide__arrows {
   position: absolute;
   top: 50%;
   left: 0;
   right: 0;
   transform: translateY(-50%);
   display: flex;
   justify-content: space-between;
   pointer-events: none;
   padding-inline: .25rem;
   z-index: 10;
}

.glide__arrow {
   pointer-events: all;
   width: 2.75rem;
   height: 2.75rem;
   border-radius: 50%;
   background: hsla(240, 100%, 2%, .75);
   backdrop-filter: blur(8px);
   border: 1px solid hsla(var(--hue), 60%, 64%, .3);
   color: var(--title-color);
   font-size: 1.4rem;
   display: flex;
   align-items: center;
   justify-content: center;
   cursor: pointer;
   transition: background .3s, border-color .3s, transform .2s;
}

.glide__arrow:hover {
   background: hsla(var(--hue), 60%, 56%, .25);
   border-color: var(--first-color);
   transform: scale(1.08);
}

/* Glide bullets */
.glide__bullets {
   display: flex;
   justify-content: center;
   gap: .5rem;
   margin-top: 1.5rem;
}

.glide__bullet {
   width: .5rem;
   height: .5rem;
   border-radius: 50%;
   background: var(--text-color-light);
   border: none;
   cursor: pointer;
   padding: 0;
   transition: background .3s, width .3s, border-radius .3s;
}

.glide__bullet--active {
   background: var(--first-color);
   width: 1.5rem;
   border-radius: 1rem;
}

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--body-color); }
::-webkit-scrollbar-thumb {
   background: hsla(var(--hue), 60%, 40%, .5);
   border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--first-color); }

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 576px) {
   .home__container {
      grid-template-columns: 1fr;
      min-height: unset;
      padding-top: calc(var(--header-height) + 1rem);
   }

   .home__data {
      padding: 0 0 2rem;
      order: 2;
      align-items: center;
      text-align: center;
   }

   .home__img-wrapper {
    order: 1;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 4 / 3.2;   /* This forces a specific height based on width */
    transform: none;
    margin-top: -20px;
}

   .home__info {
      order: 3;
      align-items: center;
      text-align: center;
      padding: 0 0 3rem;
      margin-top: 70px;
   }

   .home__social { flex-direction: row; justify-content: center; }

   .about__container { grid-template-columns: 1fr; }
   .contact__container { grid-template-columns: 1fr; }

   /* Licenses — single column on small mobile */
   .licenses__container { grid-template-columns: 1fr; }

   /* Photobook — 2-column masonry on small mobile */
   .photobook__grid {
      grid-template-columns: repeat(2, 1fr);
      grid-auto-rows: 160px;
   }
   .photo__item--wide  { grid-column: span 2; }
   .photo__item--tall  { grid-row: span 1; }

   /* Always show overlay text on touch (no hover) */
   @media (hover: none) {
      .photo__overlay { opacity: 1; transform: translateY(0); }
   }

   /* Projects card — stack image above content on small mobile */
   .projects__card {
      grid-template-columns: 1fr;
      height: auto;        /* override the fixed 220px — let content breathe */
   }
   .projects__image {
      width: 100%;
      height: 160px;       /* keep image at a tidy fixed height */
   }
   .projects__img {
      width: 100%;
      height: 100%;
      object-fit: cover;
   }
   .projects__data {
      padding: 1rem 1.25rem 1.25rem;
   }
   /* Clamp titles/descriptions less aggressively on mobile */
   .projects__title {
      font-size: .8rem;
      -webkit-line-clamp: 3;
   }
   .projects__description {
      font-size: .72rem;
      -webkit-line-clamp: 3;
   }

   .nav__menu {
      position: fixed;
      top: 0; right: -100%;
      height: 100dvh;
      width: 70%;
      background: var(--container-color);
      padding: 5rem 3rem;
      transition: right .4s;
   }

   .nav__menu--open { right: 0; }

   .nav__list { flex-direction: column; gap: 2rem; }

   .nav__close {
      display: block;
      position: absolute;
      top: 1rem; right: 1.5rem;
   }

   .nav__toggle { display: block; }
}

/* For medium devices */
@media screen and (min-width: 577px) and (max-width: 860px) {
   .home__container { column-gap: 0; }
   .home__img-wrapper { width: clamp(180px, 30vw, 280px); }
   .projects__card { grid-template-columns: 1fr; height: auto; }
   .projects__image { width: 100%; height: 180px; }
   .about__container { grid-template-columns: 1fr; }
   .contact__container { grid-template-columns: 1fr; }
   .licenses__container { grid-template-columns: repeat(2, 1fr); }
   .photobook__grid {
      grid-template-columns: repeat(2, 1fr);
      grid-auto-rows: 180px;
   }
}

/* For large devices */
@media screen and (min-width: 1150px) {
   .home__container { column-gap: 0; }
   .home__data { padding-left: 2rem; }
   .home__info  { padding-right: 2rem; }
   .home__img-wrapper { width: clamp(340px, 32vw, 460px); }
}

/* ═══════════════════════════════════════════════════════════════
   2K / QHD  ·  2048px → 3199px
   Goal: everything centred, fills the screen, ~1.6× desktop scale.
   ARRANGEMENT IS UNCHANGED — sizes only.
═══════════════════════════════════════════════════════════════ */
@media screen and (min-width: 2048px) {

   /* ── Tokens ───────────────────────────────────────────────── */
   :root {
      --header-height:     5.5rem;
      --biggest-font-size: 5.5rem;
      --bigger-font-size:  3.25rem;
      --h1-font-size:      3.75rem;
      --h2-font-size:      2.5rem;
      --h3-font-size:      2rem;
      --normal-font-size:  1.5rem;
      --small-font-size:   1.3rem;
      --smaller-font-size: 1.15rem;
   }

   /* ── Shell ────────────────────────────────────────────────── */
   .container {
      max-width: 2400px;
      margin-inline: auto;
      padding-inline: 5rem;
   }
   .section         { padding-block: 8rem 2rem; }
   .section__title  { margin-bottom: 4.5rem; }
   .grid            { gap: 2.5rem; }
   ::-webkit-scrollbar { width: 8px; }

   /* ── Nav ──────────────────────────────────────────────────── */
   .nav          { height: var(--header-height); }
   .nav__list    { column-gap: 4rem; }
   .nav__logo    { font-size: var(--h2-font-size); }
   .nav__link    { font-size: var(--smaller-font-size); }
   .nav__toggle,
   .nav__close   { font-size: 2.2rem; }

   /* ── Cursor ───────────────────────────────────────────────── */
   .cursor__dot     { width: 12px; height: 12px; }
   .cursor__outline { width: 52px; height: 52px; border-width: 2.5px; }

   /* ── Home ─────────────────────────────────────────────────── */
   .home__blob {
      width: clamp(600px, 32vw, 900px);
      height: clamp(600px, 32vw, 900px);
      filter: blur(130px);
   }
   .home__container {
      grid-template-columns: minmax(420px, 1fr) auto minmax(420px, 1fr);
      min-height: 100svh;
   }
   .home__data {
      padding: calc(var(--header-height) + 6rem) 2rem 5rem 5rem;
   }
   .home__info {
      padding: calc(var(--header-height) + 6rem) 5rem 5rem 2rem;
      max-width: 600px;
   }
   .home__img-wrapper { width: clamp(560px, 28vw, 900px); }
   .home__social      { gap: 1.75rem; }
   .home__social-link { font-size: 2rem; }
   .home__cv          { font-size: var(--smaller-font-size); gap: .6rem; }
   .home__cv i        { font-size: 1.5rem; }

   /* ── Button ───────────────────────────────────────────────── */
   .button {
      padding: 1.25rem 3rem;
      font-size: var(--smaller-font-size);
      gap: .75rem;
      border-radius: 4rem;
   }

   /* ── About ────────────────────────────────────────────────── */
   .about__container   { column-gap: 6rem; }
   .about__img         { border-radius: 1.5rem; }
   .about__description { margin-bottom: 3rem; line-height: 1.9; }

   /* ── Projects ─────────────────────────────────────────────── */
   .projects__card   { border-radius: 2rem; }
   .projects__image  { width: 340px; }
   .projects__data   { padding: 2.5rem; }
   .projects__header { gap: 1.5rem; margin-bottom: 1.25rem; }
   .projects__title  { margin-bottom: 1.25rem; }
   .projects__label  { margin-bottom: .4rem; }
   .swiper-pagination-bullet        { width: 10px; height: 10px; }
   .swiper-pagination-bullet-active { width: 2.5rem; }

   /* ── Work ─────────────────────────────────────────────────── */
   .work__container { max-width: 1400px; margin-inline: auto; }
   .work__tabs      { gap: 3.5rem; margin-bottom: 4.5rem; }
   .work__button    { gap: .75rem; padding-bottom: .75rem; border-bottom-width: 2.5px; }
   .work__items     { gap: 3rem; }
   .work__item      { grid-template-columns: 5.5rem 2px 1fr; column-gap: 2.5rem; }
   .work__line      { width: 2px; }
   .work__line::before { width: 13px; height: 13px; top: 8px; }

   /* ── Services ─────────────────────────────────────────────── */
   .services__container { max-width: 1300px; margin-inline: auto; gap: 1.5rem; }
   .services__header    { gap: 1.5rem; padding: 2.5rem; }
   .services__icon      {
      width: 4rem; height: 4rem;
      border-radius: .75rem;
      font-size: 2rem;
   }
   .services__arrow  { font-size: 2rem; }
   .services__content { padding: 0 2.5rem; }
   .services__item--open .services__content {
      max-height: 550px;
      padding: 0 2.5rem 2.5rem;
   }

   /* ── Testimonials ─────────────────────────────────────────── */
   .testimonials__track { gap: 2.5rem; }
   .testimonials__card  {
      border-radius: 2rem;
      padding: 2.75rem;
      width: 500px;
   }
   .testimonials__header { gap: 1.5rem; margin-bottom: 1.5rem; }
   .testimonials__img    { width: 4.75rem; height: 4.75rem; border-width: 2.5px; }

   /* ── Skill Matrix ─────────────────────────────────────────── */
   .skillmatrix__container { max-width: 1800px; gap: 3rem; }
   .skillmatrix__group     { padding: 2.5rem; border-radius: 2rem; }
   .skillmatrix__group-header { gap: 1.25rem; margin-bottom: 2rem; }
   .skillmatrix__group-icon { width: 4rem; height: 4rem; font-size: 2rem; border-radius: .75rem; }
   .skillmatrix__items  { gap: 1.5rem; }
   .skillmatrix__bar    { height: 8px; }

   /* ── Licenses ─────────────────────────────────────────────── */
   .licenses__container { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
   .license__card       { padding: 1.75rem; border-radius: 1.5rem; }
   .license__icon-wrap  { width: 3.5rem; height: 3.5rem; font-size: 1.75rem; border-radius: .75rem; }

   /* ── Cert Modal ───────────────────────────────────────────── */
   .cert-modal__box { max-width: min(900px, 85vw); padding: 3rem; border-radius: 2rem; }

   /* ── Contact ──────────────────────────────────────────────── */
   .contact__container  {
      grid-template-columns: 1fr 1fr;
      column-gap: 6rem;
      align-items: start;
   }
   .contact__description {
      font-size: var(--h2-font-size);
      margin-bottom: 3rem;
      line-height: 1.4;
   }
   .contact__copy        { gap: 1.25rem; }
   .contact__button      {
      display: inline-flex;      /* shrink to content — NOT block */
      width: fit-content;
      gap: .75rem;
      padding: 1.1rem 2.75rem;
      border-radius: 4rem;
      border-width: 2px;
      font-size: var(--smaller-font-size);
   }
   .contact__email       { font-size: var(--small-font-size); }
   .contact__right       { gap: 2.75rem; }
   .contact__title       {
      font-size: var(--small-font-size);
      margin-bottom: .65rem;
      letter-spacing: .07em;
   }
   .contact__address     { font-size: var(--small-font-size); }
   .contact__links       { gap: .85rem 1.25rem; }
   .contact__link        { font-size: var(--small-font-size); }
   .contact__link::after { height: 2px; bottom: -3px; }

   /* ── Footer ───────────────────────────────────────────────── */
   .footer { padding-block: 3rem; margin-top: 4.5rem; }
}

/* ═══════════════════════════════════════════════════════════════
   4K / ULTRA-HD  ·  3200px+
   ~2× desktop scale. Everything centred and filling the screen.
═══════════════════════════════════════════════════════════════ */
@media screen and (min-width: 3200px) {

   /* ── Tokens ───────────────────────────────────────────────── */
   :root {
      --header-height:     7rem;
      --biggest-font-size: 7.5rem;
      --bigger-font-size:  4.25rem;
      --h1-font-size:      5rem;
      --h2-font-size:      3.25rem;
      --h3-font-size:      2.5rem;
      --normal-font-size:  1.875rem;
      --small-font-size:   1.625rem;
      --smaller-font-size: 1.5rem;
   }

   /* ── Shell ────────────────────────────────────────────────── */
   .container {
      max-width: 3600px;
      margin-inline: auto;
      padding-inline: 7rem;
   }
   .section         { padding-block: 11rem 3rem; }
   .section__title  { margin-bottom: 6rem; }
   .grid            { gap: 3.5rem; }
   ::-webkit-scrollbar { width: 10px; }

   /* ── Nav ──────────────────────────────────────────────────── */
   .nav          { height: var(--header-height); }
   .nav__list    { column-gap: 6rem; }
   .nav__logo    { font-size: var(--h1-font-size); }
   .nav__link    { font-size: var(--small-font-size); }
   .nav__toggle,
   .nav__close   { font-size: 3rem; }

   /* ── Cursor ───────────────────────────────────────────────── */
   .cursor__dot     { width: 16px; height: 16px; }
   .cursor__outline { width: 68px; height: 68px; border-width: 3px; }

   /* ── Home ─────────────────────────────────────────────────── */
   .home__blob {
      width: clamp(900px, 34vw, 1300px);
      height: clamp(900px, 34vw, 1300px);
      filter: blur(180px);
   }
   .home__container {
      grid-template-columns: minmax(600px, 1fr) auto minmax(600px, 1fr);
      min-height: 100svh;
   }
   .home__data {
      padding: calc(var(--header-height) + 8rem) 2rem 7rem 7rem;
   }
   .home__info {
      padding: calc(var(--header-height) + 8rem) 7rem 7rem 2rem;
      max-width: 800px;
   }
   .home__img-wrapper { width: clamp(800px, 30vw, 1300px); }
   .home__social      { gap: 2.5rem; }
   .home__social-link { font-size: 2.75rem; }
   .home__cv          { font-size: var(--small-font-size); gap: .85rem; }
   .home__cv i        { font-size: 2rem; }

   /* ── Button ───────────────────────────────────────────────── */
   .button {
      padding: 1.75rem 4rem;
      font-size: var(--small-font-size);
      gap: 1rem;
      border-radius: 5rem;
      box-shadow: 0 0 56px hsla(var(--hue), 60%, 50%, .35);
   }

   /* ── About ────────────────────────────────────────────────── */
   .about__container   { column-gap: 9rem; }
   .about__img         { border-radius: 2rem; box-shadow: 0 0 90px hsla(var(--hue), 60%, 40%, .28); }
   .about__description { margin-bottom: 4rem; line-height: 2; }

   /* ── Projects ─────────────────────────────────────────────── */
   .projects__card   { border-radius: 2.5rem; }
   .projects__image  { width: 480px; }
   .projects__data   { padding: 3.5rem; }
   .projects__header { gap: 2rem; margin-bottom: 1.5rem; }
   .projects__title  { margin-bottom: 1.5rem; }
   .projects__label  { margin-bottom: .6rem; }
   .swiper-pagination-bullet        { width: 14px; height: 14px; }
   .swiper-pagination-bullet-active { width: 3.5rem; }

   /* ── Work ─────────────────────────────────────────────────── */
   .work__container { max-width: 1900px; margin-inline: auto; }
   .work__tabs      { gap: 5rem; margin-bottom: 6rem; }
   .work__button    { gap: 1rem; padding-bottom: 1rem; border-bottom-width: 3px; }
   .work__items     { gap: 4rem; }
   .work__item      { grid-template-columns: 7rem 3px 1fr; column-gap: 3.5rem; }
   .work__line      { width: 3px; }
   .work__line::before { width: 18px; height: 18px; top: 10px; }

   /* ── Services ─────────────────────────────────────────────── */
   .services__container { max-width: 1700px; margin-inline: auto; gap: 2rem; }
   .services__header    { gap: 2rem; padding: 3.5rem; }
   .services__icon      {
      width: 5.5rem; height: 5.5rem;
      border-radius: 1rem;
      font-size: 2.75rem;
   }
   .services__arrow   { font-size: 2.75rem; }
   .services__content { padding: 0 3.5rem; }
   .services__item--open .services__content {
      max-height: 700px;
      padding: 0 3.5rem 3.5rem;
   }

   /* ── Testimonials ─────────────────────────────────────────── */
   .testimonials__track { gap: 3.5rem; }
   .testimonials__card  {
      border-radius: 2.5rem;
      padding: 4rem;
      width: 680px;
   }
   .testimonials__header { gap: 2rem; margin-bottom: 2rem; }
   .testimonials__img    { width: 6.5rem; height: 6.5rem; border-width: 3px; }

   /* ── Skill Matrix ─────────────────────────────────────────── */
   .skillmatrix__container { max-width: 2600px; gap: 4rem; }
   .skillmatrix__group     { padding: 3.5rem; border-radius: 2.5rem; }
   .skillmatrix__group-header { gap: 1.75rem; margin-bottom: 2.5rem; }
   .skillmatrix__group-icon { width: 5.5rem; height: 5.5rem; font-size: 2.75rem; border-radius: 1rem; }
   .skillmatrix__items  { gap: 2rem; }
   .skillmatrix__bar    { height: 10px; }

   /* ── Licenses ─────────────────────────────────────────────── */
   .licenses__container { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
   .license__card       { padding: 2.5rem; border-radius: 2rem; }
   .license__icon-wrap  { width: 4.5rem; height: 4.5rem; font-size: 2.25rem; border-radius: 1rem; }

   /* ── Cert Modal ───────────────────────────────────────────── */
   .cert-modal__box { max-width: min(1200px, 80vw); padding: 4rem; border-radius: 2.5rem; }

   /* ── Contact ──────────────────────────────────────────────── */
   .contact__container  {
      grid-template-columns: 1fr 1fr;
      column-gap: 9rem;
      align-items: start;
   }
   .contact__description {
      font-size: var(--h2-font-size);
      margin-bottom: 4rem;
      line-height: 1.45;
   }
   .contact__copy        { gap: 1.75rem; }
   .contact__button      {
      display: inline-flex;      /* shrink to content — NOT block */
      width: fit-content;
      gap: 1rem;
      padding: 1.5rem 3.5rem;
      border-radius: 5rem;
      border-width: 2.5px;
      font-size: var(--smaller-font-size);
   }
   .contact__email       { font-size: var(--small-font-size); }
   .contact__right       { gap: 3.5rem; }
   .contact__title       {
      font-size: var(--small-font-size);
      margin-bottom: .85rem;
      letter-spacing: .08em;
   }
   .contact__address     { font-size: var(--small-font-size); }
   .contact__links       { gap: 1.1rem 1.75rem; }
   .contact__link        { font-size: var(--small-font-size); }
   .contact__link::after { height: 2.5px; bottom: -4px; }

   /* ── Footer ───────────────────────────────────────────────── */
   .footer { padding-block: 4.5rem; margin-top: 6rem; }
}

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