/* === Root variables === */
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

:root {
    --color1: #ff4c4c;
    --color2: #3366ff;
    --color3: #ffc857;
    --color4: #333333;
    --color5: #f9f9f9;
    --base-font: "Poppins", sans-serif;
    --base-bg: var(--color5);
    --base-text-color: var(--color4);
    --dark-text: var(--color4);
    --light-text: var(--color5);
    --base-bg: floralwhite;
    --base-color: #0f0f0f;
    --base-1: var(--base-bg);
    --base-2: var(--base-color);
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--base-2);
    overflow-x: hidden;
    font-family: sans-serif;
    font-size: 16px;
}

section {
    width: 100%;
    height: 100dvh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}




.container {
    display: flex;
    flex-direction: column;
    max-width: 800px;
    align-items: center;
    box-sizing: border-box;
    padding: 4rem;
}


/* Headings */
h1 {
    font-size: 60px;
}


h2 {
    color: var(--base-1);
    text-align: left;
    font-size: clamp(24px, 4vw, 40px);
    font-weight: normal;
    font-family: system-ui, sans-serif;
    margin: 0 auto;
}

h2.portfolio-title,
h2.gallery-title,
h2.connect-title {
    font-size: clamp(36px, 8vw, 80px);
    line-height: 1;
    margin: 0 0 2rem 0;
    text-align: left;
}

h2.portfolio-title {
    font-weight: bold;
    color: darkslategray;
}

h2.connect-title {
    color: var(--base-2);
}



h3.sub-text {
    font-size: clamp(14px, 3vw, 28px);
    margin: 0 0 54px 0;
    font-weight: normal;
    color: gray;
}


/* Text */
p {
    text-align: left;
}

p.connect-text {
    margin: 0 auto 1rem auto;
}

/* Figures Images Captions */



.figcaptions {
    color: var(--base-1);
    background-color: var(--base-2);
    font-size: 0.7rem;
    padding: 0.5rem;
    margin: 0 auto;
    text-align: left;
}



/* Custom cursor */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgb(255, 55, 0.8);
    mix-blend-mode: difference;
    filter: contrast(1);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
}


/* Site basics */



.bold {
    font-weight: bold;
}

.light {
    font-weight: 100;
}

/* Header */
header {
    color: var(--base-1);
    padding: 0;
    font-size: 14px;
    position: fixed;
    height: 5rem;
    top: 0;
    left: 0;
    z-index: 99;
    mix-blend-mode: difference;
    width: 100vw;

}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100svw;
    z-index: 90;
    background: rgba(255, 250, 240, 0);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    /* fade blur downward */
    mask-image: linear-gradient(to bottom,
            rgb(255, 250, 240) 0%,
            rgb(255, 250, 240) 80%,
            rgba(0, 0, 0, 0) 100%);
    -webkit-mask-image: linear-gradient(to bottom,
            rgb(255, 250, 240) 0%,
            rgb(255, 250, 240) 60%,
            rgba(0, 0, 0, 0) 100%);
    pointer-events: none;


}

nav.site-nav {
    margin-bottom: 2rem;
    padding: 1rem 2rem;
}

.site-nav {
    display: flex;
    gap: 1.5rem;
    align-items: start;
    justify-content: flex-start;
    pointer-events: auto;
    z-index: 95;
}

/* === LINKS === */
.nav-link {
    position: relative;
    font-family: system-ui, sans-serif;
    font-size: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--base-1);
    text-decoration: none;
    padding: 0;
    z-index: 98;

    transition:
        color 0.6s ease,
        transform 0.6s ease;
}


/* Footer */
.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100svw;
    z-index: 90;
    background: rgba(255, 250, 240, 0);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    /* fade blur upward */
    mask-image: linear-gradient(to top,
            rgba(0, 0, 0, 1) 0%,
            rgba(0, 0, 0, 1) 80%,
            rgba(0, 0, 0, 0) 100%);
    -webkit-mask-image: linear-gradient(to top,
            rgba(0, 0, 0, 1) 0%,
            rgba(0, 0, 0, 1) 60%,
            rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
    mix-blend-mode: difference;
    color: var(--base-1);
}

nav.site-footer-nav {
    margin-top: 2rem;
    padding: 1rem 2rem;
}

.site-footer-nav, .footer-socials {
    display: flex;
    gap: 1.5rem;
    align-items: end;
    justify-content: flex-end;
    pointer-events: auto;
    z-index: 95;
}

/* your existing socials styles */
.footer-socials2 {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-icon {
    width: 24px;
    height: 24px;
    fill: var(--base-1);
    transition: transform 0.3s ease, fill 0.3s ease;
}

.footer-socials a:hover .social-icon {
    transform: translateY(-3px);
    fill: gold;
}



/* Buttons */
#contactBtn {
    width: fit-content;
    background-color: transparent;
    margin-top: 1rem;
}

#viewWorkBtn,
#contactBtn {
    position: relative;
    display: inline-block;
    padding: 12px 28px;
    font-size: 16px;
    color: var(--base-2);
    /* text color */
    text-decoration: none;
    overflow: hidden;
    border: 2px solid var(--base-2);
    border-radius: 6px;
    transition: color 0.4s ease, transform 0.3s ease;
}

/* Background overlay */
#viewWorkBtn::before,
#contactBtn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    /* start off screen */
    width: 100%;
    height: 100%;
    background: gold;
    z-index: 0;
    /* behind the text */
    transition: all 0.5s ease;
}

/* Text stays above overlay */
#viewWorkBtn span,
#contactBtn span {
    position: relative;
    z-index: 1;
    color: var(--base-2);
}

/* Hover effect: slide overlay in */
#viewWorkBtn:hover::before,
#contactBtn:hover::before {
    left: 0;
}

/* Hover effect: optional lift */
#viewWorkBtn:hover,
#contactBtn:hover {
    cursor: pointer;
    transform: translateY(-2px);

}

/* Backgrounds */

.light-bg {
    background-color: var(--base-1);
    color: var(--base-2);
}

.dark-bg {
    background-color: var(--base-2);
    color: var(--base-1);
}

.show-bg {
    background-color: paleturquoise;
    color: var(--base-2);
}

/* Hover effects */

/* --- Underline slide --- */
.hvr-underline::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: currentColor;

    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35ss ease;
}

.hvr-underline:hover::after {
    transform: scaleX(1);
}

/* --- Glow + lift --- */
.hvr-glow:hover {
    color: #ff00ff;
    transform: translateY(-2px);
    text-shadow:
        0 0 8px rgba(255, 0, 255, 0.6),
        0 0 18px rgba(255, 0, 255, 0.4);
}

/* --- Shared hover feel --- */
.nav-link:hover {
    cursor: pointer;
}


/* Intro */
svg {
    padding: 0;
    margin: 0 auto;
    width: 100%;
    height: 100vh;
    display: block;

}



/* Sections */

#introSection {
    position: fixed;
    inset: 0;
    z-index: 1;
}

#portfolioSection,
#gallerySection,
#connectSection,
#overlayContainer,
#marquee {
    display: none;
    opacity: 0;
}


/* Portfolio Screen */
#portfolioSection {
    padding: 8rem;
    z-index: 0;
}

#portfolioSection .container {
    max-width: 800px;
    align-items: center;
}

/* Gallery */
#gallerySection {
    width: 100%;
    padding: 0;
    height: 100%;
}

#gallerySection .container {
    width: 100%;
}

.gallery {
    display: grid;
    width: 100%;
    gap: 1.4rem;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    justify-content: center;
    grid-auto-flow: dense;

}



.gallery__item {
    flex: 0 0 400px;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    margin: 1rem;
    opacity: 0;
    filter: brightness(0.7);
    transition: filter 0.3s;
}

.gallery__item:hover {
    filter: brightness(1.2);
    transition: filter 0.3s;
    cursor: pointer;
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}



.gallery-container {
    padding: 2rem 8rem;
    display: flex;
    flex-direction: row;
    width: 100%;
    height: auto;
    position: relative;
    align-items: flex-start;
    justify-content: space-around; 
}

/*
.gallery-main {
    position: relative;
    max-width: 800px;
    height:auto;
    border: 1px solid cyan;
}

/*
img#mainGalleryImage {
    height: 100%;
    object-fit: contain;
}
*/


.gallery-main {
  width: fit-content;
 align-content: center;
  max-width: 800px;
  margin: 0 auto;

  display: block;              /* IMPORTANT: not flex */
  height: auto;                /* auto fit content */

  background: var(--base-2);
  box-sizing: border-box;
  min-height:50dvh;
  max-height: 100%;

}

/* Image scales but keeps aspect ratio */
#mainGalleryImage {
  width: 100%;
  height: auto;
  max-height: 90vh;

  object-fit: contain;
  display: block;
    opacity: 1;
  transform: translateY(0);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

#mainGalleryImage,
#mainGalleryCaption {
  transition: opacity 0.25s ease;
  opacity: 1;
}

#mainGalleryImage.is-switching,
#mainGalleryCaption.is-switching {
  opacity: 0;
}



img#mainGalleryImage {
  width: 100%;
padding:0;
margin:0;}

/* Caption sits directly under image, full width */
.gallery-main figcaption {
  width: 100%;
  display: block;

  margin: 0;
  padding: 0.5rem 1rem;

  background: var(--base-2);
  color: var(--base-1);
  font-size: 0.9rem;
  opacity: 0.8;

  border-top: 1px dotted var(--base-1);
  box-sizing: border-box;
}


.gallery-thumbnails {
    position: relative;
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 3rem);
    gap: 0.5rem;

    justify-content: start;
    align-content: flex-start;
    align-self: flex-start;

    overflow-y: auto;
    height: 100%;

    padding: 0.5rem;
    background-color: var(--base-2);
    border: 1px solid red;

}

.gallery-thumbnails h2 {
    grid-column: span 2;
    line-height: 1;
    font-size: 0.6rem;
}

.thumbnail {
    flex: 0 0 auto;
    width: 3rem;
    height: 2rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s, opacity 0.2s;
    opacity: 0.8;
    overflow: hidden;
}


.thumbnail:hover {
    opacity: 1;
}

.thumbnail.active {
    border-color: var(--base-1);
    opacity: 1;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.main-caption {
    margin: 0.5rem 0 0.5rem 0;
    font-size: 0.9rem;
    opacity: 0.8;
    border-bottom: 2px dotted var(--base-1);
}


.split span {
    display: inline-block;
    opacity: 0;

}

#lineContainer,
#lastlineContainer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    z-index: 5;
    color: var(--base-1);
    font-family: sans-serif;

    display: flex;
    justify-content: space-between;
    align-items: center;

    font-size: clamp(8px, 2vw, 24px);
    mix-blend-mode: difference;

}


.line {
    font-size: clamp(8px, 2vw, 24px);
    mix-blend-mode: difference;
    white-space: nowrap;
}



.l1 {

    width: 45%;
    text-align: right;

}

.l2 {
    text-align: left;
    width: 20%;


}

.l3 {
    flex: 1 1 100%;
    /* full width row */
    text-align: center;
    color: var(--base-1);
    font-size: 60px;
}


/* Labels Tags */


.label.tags {
    position: relative;
    top: 0.15rem;
    padding: 0.2rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    z-index: 1001;
}


.label.icon {
    color: white;
    /* THIS controls the SVG stroke */
    display: inline-flex;
    align-items: center;
}

.label.icon svg {
    stroke: white !important;
    opacity: 1 !important;
}

.fs-content .label.date, .fs-content .label.category {
    font-size: small;
    position: relative;
    text-transform: capitalize;

}


span.label.category {
    margin: 0 0.2rem 0 0;
    text-transform: capitalize;
}

span.label.date.fs-date {
    background-color: transparent;
    top: 0;
}

.date-box {
    margin-bottom: 1rem;
}


.tag {
    position: relative;
    padding: 0.2rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    z-index: 1001;
    background-color: rgba(255, 250, 240, 0.3);
    margin: 0.25rem;
    text-transform: capitalize;
}

.label.category-fs {
    position: relative;
    padding: 0.2rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    z-index: 1001;
    background-color: var(--base-2);
    color:var(--base-1);
    margin: 0;
    text-transform: capitalize;
}

.label.tag {
    position: relative;
    top: 0.15rem;
    padding: 0.2rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    z-index: 1001;
}

.label.category {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.2rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    z-index: 1000;
}

.label.date {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    z-index: 1001;
}

#overlayContent.label.category {
    background-color: #ff00ff;
}


/* Overlay */

#overlayContainer {
    position: fixed;
    display: flex;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1000;
    overflow-y: auto;
    padding: 0;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    background-color: var(--base-2);
    color: var(--base-1);


}

#overlayContent {
    display: block;
    margin: 0 auto;
    color: var(--base-1);
    align-items: center;
    justify-content: center;
}

.end {
    border-top: 2px dotted var(--base-1);
    width: 100%;
    height: 2rem;
}

#overlayText {
    margin: 0rem auto 3rem auto;
    font-size: clamp(18px, 2vw, 28px);
    line-height: 1.4;
    color: var(--base-2);
    background-color: var(--base-1);
    display: block;
    width: 100%;
    height: fit-content;
    max-width: 800px;
    padding:3rem;
}

#overlayGallery {
    margin: 0 auto;
    font-size: clamp(18px, 2vw, 28px);
    line-height: 1.4;
    color: var(--base-1);
    background-color: var(--base-2);
    display: block;
    width: 100%;
    height: fit-content;
    max-width: 1200px;
}

#overlayClose {
    position: fixed;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0);
    color: var(--base-1);
    font-size: 16px;
    cursor: pointer;
    z-index: 1001;
    mix-blend-mode: difference;
}

#overlayClose:hover {
    background: rgba(255, 255, 255, .3);
    mix-blend-mode: difference;
}

#overlayContainer {
    will-change: opacity;
}


.overlay {
    pointer-events: none;
}

.overlay a {
    pointer-events: auto;
}


.overlay {
    position: fixed;
    inset: 0;
    padding: 0;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: start;
    gap: 0.5rem;
    z-index: 9999;
    height: 100%;


    color: #f0f0f0;
    background: rgb(0, 0, 0);

    /* only show bottom 30% */
    -webkit-mask-image: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.5) 70%,
            rgba(0, 0, 0, 1) 100%);
    mask-image: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.5) 70%,
            rgba(0, 0, 0, 1) 100%);

}


.overlay-content {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.overlay-tags {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-end;
    margin: 1rem 0;

}

.overlay-tags span.tag {
    white-space: nowrap;    
    background-color: var(--base-2);
    color:var(--base-1);

}

.overlay-title {
    margin: 0;
    padding: 0.5rem 1rem;
    text-shadow: 0px 1px 1px #2f2f2f33;
    z-index: 1003;
    color: var(--base-1);
    text-align: left;
    font-family: system-ui, sans-serif;
    font-size: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;

    text-decoration: none;
}

.overlay-fs-title {
    margin: 1rem 0;
    text-shadow: 0px 1px 1px #2f2f2f33;
    z-index: 1003;
    color: var(--base-2);
    text-align: left;
    font-family: system-ui, sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;

    text-decoration: none;
}


.overlay-subtitle {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 400;
}

.overlay-fs-subtitle {
    margin: 0.5rem 0;
    font-size: 1.2rem;
    font-weight: 400;
    padding: 0.5rem 0;

}

.overlay-body {
    font-size: 1rem;
    margin: 1rem 0;

}

.overlay-link {
    color: var(--color2);
    margin-top: 0.5rem;
    width:fit-content;
    font-size: 0.8rem;
}





.overlay h3.overlay-subtitle {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 400;
}

.overlay p.overlay-body {
    font-size: 1rem;
    margin: 0.25rem 0 0 0;
}

.overlay .overlay-link {
    margin-top: 0.5rem;
    color: #fff;
    text-decoration: underline;
    font-size: 0.9rem;
}

.overlay .label.icon {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    z-index: 1005;
}

/* Carousel */
.carousel-title {
    margin-bottom:0.5rem;
    text-align: left;
    font-size:1rem;
}

.carousel-card {
    list-style: none;
}

.carousel-thumb {
    width: 4rem;
    height: 3rem;
    background-size: contain;
    background-position: center;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: 0.8;
}

.carousel-card.active .carousel-thumb {
    border-color: var(--base-1);
    opacity: 1;
}


.carousel-thumb:focus-visible {
    outline: 3px solid gold;
    outline-offset: 3px;
}


.carousel-gallery {
    height: 100%;
    padding: 0.5rem 0.25rem;
    width: 100%;
    max-width: 240px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
}

/* the UL that contains the thumb buttons */
.carousel-cards {
    list-style: none;
    padding: 0;
    margin: 0;
    height: 100%;
    display: grid;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    width: max-content;
    height: auto;
}


/* Carousel actions row */
.carousel-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    margin-top: 0;
    padding: 0;
    column-span: span 2;
}

.carousel-actions button {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    cursor: pointer;
}



/* Connect */
#connectSection {
    padding: 0;
    height: 100%;
}

#connectSection .container {
    max-width: 800px;
}

.connect-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    margin: 1rem auto 4rem auto;
    align-items: center;
    text-align: left;
    z-index: 20;
    padding-bottom: 3rem;

}

.connect-form label {
    font-weight: bold;
    font-size: 1rem;
    text-align: left;

}

.connect-form input,
.connect-form textarea {
    padding: 0.25rem;
    font-size: 1rem;
    border-radius: 0;
    resize: vertical;
    background-color: transparent;
    border: 0;
    border-bottom: 2px solid black;
    width: 100%;
    outline: 0;
}


.connect-form input:focus,
.connect-form textarea:focus {
    outline: none;

    color: var(--base-2);
    background-color: gold;
}

.connect-form textarea::placeholder {

    font-family: system-ui, sans-serif;
    font-weight: normal;
    white-space: normal;
}


.connect-btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: bold;
    color: var(--base-2);
    text-decoration: none;
    background: gold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.connect-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.5);
}

#connect {
    padding: 2rem 1rem;

    text-align: left;
    font-family: system-ui, sans-serif;

    display: none;
    pointer-events: auto;

}

#connect p {
    max-width: 600px;
}

#connect .gallery-title {
    font-size: clamp(14px, 3vw, 40px);
    margin-bottom: 24px;
}

#connect .connect-text {
    font-size: clamp(14px, 1vw, 18px);
    line-height: 1.4;

    text-align: left;
}

#connect .connect-btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 18px;
    text-decoration: none;
    color: var(--base-2);
    background-color: gold;
    border-radius: 6px;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#connect .connect-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 215, 0, 0.5);
    cursor: pointer;
}


.lucide {
    width: 24px;
    height: 24px;
}


/* Testimonials */
 #testimonialSection {
    padding: 0;
    position: relative;
    overflow: hidden;
}

/* Progress bar at top */
.progress-bar {
    width: 600px;
    min-width: 400px;
    height: 6px;
    background: #f0f0f0;
    border-radius: 2px;
    overflow: hidden;
    align-self: flex-start;
}

.progress-fill {
    height: 100%;
    background: var(--color2);
    width: 0%;
    transition: width 0.1s linear;
}


.testimonial-stage {
    position: relative;
    width: 100%;
    min-width: 400px;
    min-height: 300px;
}

.testimonial-card {
    position: absolute;
    top: 0;
    left: 0;
   /* transform: translateX(-50%);*/
    width: 100%;
    opacity: 0;
    padding: 3rem;
    font-size: 1rem;
    line-height: normal;
    visibility: hidden;
    transition: box-shadow 0.3s ease;
    background-color: var(--base-2);
    color: var(--base-1);
    pointer-events: none;
}


.testimonial-card.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.testimonial-card:hover {
    mix-blend-mode: none;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    display: block;
    border: 4px solid #f0f0f0;
}

.quote {
    font-size: 1rem;
    line-height: 1.4;
    color: var(--base-1);
    margin: 0 0 2rem;
    text-align: left;
    position: relative;
}



.testimonial-meta {
    line-height: 1.2; 
}

.testimonial-meta .name {
    display: block; 
    margin-bottom: 0.1rem; 
}

.testimonial-meta .role {
    display: block;
    margin-bottom: 0; 
}

.testimonial-meta .company {
    display: inline; 
    color: #666;
}




.nav-btn {
    background: transparent;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #666;
}

.nav-btn:hover:not(:disabled) {
    border-color: var(--color1);
    color: var(--base-2);
    transform: scale(1.1);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Dots - vertical */
.testimonial-dots {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.dot.active {
    background-color: var(--color2);
    width: 14px;
    height: 14px;
}

.dot:hover {
    color:var(--color2);
    transform: scale(1.2);
}


    .testimonial-wrapper {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        height: fit-content;
        width:100%;
    }

    .testimonial-nav {
        display: flex;
        justify-content: center;
    align-items: center; 
        width:100%;
        margin-top: 0;
        flex-direction: row;
        padding: 0;
        margin-bottom: 2rem;
            box-sizing: border-box;

    }

    .testimonial-card, article { 
        padding: 3rem;
        height: 100%;
    }

    .testimonial-dots {
        flex-direction: row;
    }

    .progress-bar {
        width: 100%;
        min-width: auto;
        max-width: 600px;
    }

    .testimonial-stage {
        width: 100%;
        min-width: auto;
        padding: 0 1rem;
    }


/* Marquee */

.scrolling-text {
    overflow: hidden;
    width: 100%;
    height: 4rem;
    display: flex;
    align-items: center;
    background-color: var(--base-1);
    margin-bottom: 6rem;
}

.scrolling-text .rail {
    display: flex;
}

.scrolling-text .rail h4 {
    white-space: nowrap;
    font-size: 2rem;
    font-family: system-ui, sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0 12rem;
    text-decoration: none;
}



/* Accessibility */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    /* prevent line break */
    border: 0;
}

.is-hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.is-visible {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
  .testimonial-card {
    transform: none !important;
    transition: none !important;
  }

  .testimonial-card.active {
    animation: none;
  }
}

/* Box styles */

.article {
    grid-column: span 1;
    grid-row: span 2;
    min-height: 200px;
    background-color: var(--color4);
    color: var(--color5);
}

.project {
    grid-column: span 2;
    grid-row: span 1;
    min-height: 220px;
    background-color: var(--color3);
}

.sites {
    grid-column: span 2;
    grid-row: span 1;
    min-height: 200px;
    background-color: var(--color2);
    color: var(--light-text);
}

.default {
    grid-column: span 1;
    grid-row: span 2;
    min-height: 280px;
    background-color: var(--color1);
    color: var(--dark-text);
}

.hero {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 280px;
    background-color: var(--color1);
    color: var(--dark-text);
}


.box {
    position: relative;
    border: 2px solid var(--base-1);

    min-width: 200px;
    min-height: 200px;

    max-width: 100%;
    max-height: 100%;

    background-size: cover;
    background-position: center;
    overflow: hidden;
    display: flex;
    align-items: flex-end;

    will-change: transform, opacity;
    transform: translateY(30px) translateZ(0);

    cursor: pointer;
}

.box.project,
.box.sites,
.box.default,
.box.hero {
    border-radius: 0;
}

/* Box has image start */
.box.highlight[data-has-image="true"]::before {
    filter: grayscale(0%) contrast(100%) brightness(100%);
}

/* Box no image start */
.box[data-has-image="false"]:not([data-type="display"]) {
    background-color: #000;
    transition: background-color 0.5s ease;
}


/* Box hover, always show true background */
/* Box hover article */
.box[data-has-image="false"]:not([data-type="display"]).article:hover {
    background-color: var(--color4) !important;
}

/* Box hover project */
.box[data-has-image="false"]:not([data-type="display"]).project:hover {
    background-color: var(--color3) !important;
}

/* Box hover sites */
.box[data-has-image="false"]:not([data-type="display"]).sites:hover {
    background-color: var(--color2) !important;
}

/* Box hover default / hero */
.box[data-has-image="false"]:not([data-type="display"]).default:hover,
.box[data-has-image="false"]:not([data-type="display"]).hero:hover {
    background-color: var(--color1) !important;
}

/* Box hover display */
.box[data-has-image="true"]:not([data-type="display"]):hover::before {
    filter: grayscale(0%) contrast(100%) brightness(100%);
}

/* Box hover text */
.box[data-has-image="true"]:not([data-type="display"]) h2.overlay-title {
    text-shadow: 4px 4px 4px #2727276c;
    color: var(--base-1);
    z-index: 1004;
}


/* Box hover label text category / display */
.box[data-has-image="true"]:not([data-type="display"]) span.label.category,
.box[data-has-image="true"]:not([data-type="display"]) span.label.date {
    background: rgba(255, 255, 255, 0.5);
    text-transform: capitalize;
}

/* Box hover project label text category */
.box[data-category="project"]>span.label.category {
    background-color: var(--color3) !important;
}

/* Box hover article label text category */
.box[data-category="article"]>span.label.category {
    background-color: var(--color2) !important;
}

/* Box hover sites label text category */
.box[data-category="sites"]>span.label.category {
    background-color: var(--color1) !important;
}





/* Additionals */


@supports not (height: 100svh) {
    .gallery {
        min-height: 100vh;
    }
}

@media (pointer: fine) {
    body.custom-cursor {
        cursor: none;
    }
}

/* Media Queries - Mobile */

@media (max-width: 768px) {

    header {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    header.site-header {

        align-items: center;
    }



    #lineContainer,
    #lastlineContainer {
        position: fixed;
        /* lock to viewport */
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 90%;
        max-width: 420px;
        text-align: center;
    }

    .line {
        width: fit-content;
        font-size: 1.1rem;
        text-align: center;

    }

    .l1,
    .l2,
    .l3 {
        width: 100%;
    }

    .l1 {
        padding: 0;
        margin: 0;
    }

    .l2 {
        margin-top: 20rem;


    }

    .l3 {
        margin-top: auto;
        font-size: 30px;

    }

    #gallerySection .container {
        max-width: 600px;
    }

    .gallery {
        margin: 2rem auto;
        display: flex;

        flex-direction: column;
        border: 1px solid red;
        width: 100%;
        min-width: 100%;
        align-items: center;
        justify-content: center;

    }



    h2.portfolio-title,
    h2.gallery-title,
    h2.connect-title {
        font-size: 50px;
    }

    h3.sub-text {
        font-size: 14px;
    }



    .container {
        padding: 3rem;
    }

    footer {
        font-size: 14px;
        justify-content: center;
    }
}





