@import url('https://fonts.googleapis.com/css2?family=Agdasima:wght@400;700& family=Manrope:wght@200..800&display=swap');

:root {
    --light: #000;
    /* SWAP - was #fff */
    --dark: #fff;
    /* SWAP - was #000 */
    --bg: #0a0a0a;
    /* CHANGE - was #f5f1e8 */
    --bg-dark: #f5f1e8;
    /* SWAP */
    --text: #f5f1e8;
    /* CHANGE - was #0f1720 */
    --text-muted: #9ca3af;
    /* CHANGE - was #6b7280 */
    --accent: #f5f1e8;
    /* CHANGE - was #0a0a0a */
    --border: rgba(245, 241, 232, 0.08);
    /* CHANGE - light border on dark */
    --nav-height: 96px;
    /* desktop nav height */
}

::-webkit-scrollbar {
    display: none;
}

html {
    scroll-behavior: smooth;
}


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

body {
    font-family: 'Manrope';
    background-color: #0a0a0a;
    overflow-x: hidden;
    color: #f5f1e8;
}

a,
button {
    -webkit-tap-highlight-color: transparent;
}

a {
    text-decoration: none;
    color: inherit;
}

a:focus,
a:active {
    outline: none;
    text-decoration: none;
}

@media (max-width: 768px) {
    * {
        -webkit-overflow-scrolling: touch;
        /* iOS momentum scrolling */
    }

    body {
        overscroll-behavior-y: none;
        /* Prevent pull-to-refresh bounce */
    }
}

* {
    -webkit-touch-callout: none;
}


/* Prevent scroll during preloader */
.preloader-active {
    overflow: hidden;
    height: 100vh;
}

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

h1 {
    text-transform: uppercase;
    font-size: 8rem;
    font-family: 'Agdasima', sans-serif;

    line-height: 1;
    letter-spacing: -0.5rem;
    margin: 0;
    color: #f5f1e8;
    z-index: 3;
    position: relative;
    flex: 1;
    white-space: nowrap;
    overflow: visible;
}

h2 {
    text-transform: uppercase;
    font-size: 3rem;
    font-weight: 500;
    line-height: 1;
    color: #f5f1e8;
}

p {
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 550;
}

.logo {
    text-decoration: none;
    text-transform: uppercase;
    color: #ff6b6b;
    -webkit-text-stroke: 0.3px rgba(0, 0, 0, 0.4);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
    font-family: 'Agdasima', sans-serif;
    font-size: 5rem;
    font-weight: 600;
    line-height: 0.9;
    /* mix-blend-mode: difference; */
    display: block;

}

.nav-logo {
    text-decoration: none;
    text-transform: uppercase;
    color: var(--accent);
    -webkit-text-stroke: 0.3px rgba(0, 0, 0, 0.4);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
    font-family: 'Agdasima', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 0.9;
    /* mix-blend-mode: difference; */
    display: block;

}

nav {
    position: fixed;
    width: 100%;
    height: var(--nav-height);
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    mix-blend-mode: difference;
    z-index: 999;
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-links a {
    position: relative;
    display: inline-block;
    overflow: hidden;
    margin-left: 2rem;
}

.link-mask {
    position: relative;
    display: block;
    height: 1.2em;
    overflow: hidden;
}

.nav-link-text {
    display: block;
    line-height: 1.2em;
    font-family: 'Agdasima', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent);
    will-change: transform, opacity;
}

.nav-link-text.secondary {
    position: absolute;
    left: 0;
    top: 0;
    transform: translateY(100%);
    opacity: 0;
}

@media (max-width: 1200px) {
    .nav-logo {
        font-size: 1rem;
    }

    :root {
        --nav-h: 80px;
    }

    .nav-link-text {
        font-size: 1rem;
    }

    .nav-links a {
        margin-left: 1.5rem;
    }
}

@media (max-width: 900px) {

    .nav-logo,
    .logo {
        display: none;
    }

    :root {
        --nav-h: 64px;
    }

    nav {
        justify-content: center;
    }

    .nav-links a {
        margin-left: 1.4rem;
    }
}

@media (max-width: 600px) {
    nav {
        padding: 1.5rem 1.2rem;
    }

    :root {
        --nav-h: 58px;
    }

    .nav-link-text {
        font-size: 0.95rem;
    }

    .nav-links a {
        margin-left: 1.1rem;
    }
}

/* Initial state for nav elements */
.nav-logo {
    opacity: 0;
    transform: translateY(-30px);
}

.nav-links a {
    opacity: 0;
    transform: translateY(-30px);
}


section {
    position: relative;
    z-index: 1;
    width: 100%;
    /* min-height: 100vh; */
}

/* ============================================
   CUSTOM CURSOR
============================================ */

.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;

    transform: translate(-50%, -50%);
}

/* Small dot */
.cursor-dot {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff8c00;
    opacity: 1;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}

.cursor-text {
    position: absolute;
    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);
    padding: 8px 14px;

    background: rgba(255, 140, 0, 0.95);
    border-radius: 999px;

    font-size: 12px;
    color: #fff;
    white-space: nowrap;

    opacity: 0;
    scale: 0.6;

    transition:
        opacity 0.2s ease,
        scale 0.25s ease;
}

.custom-cursor.is-hover .cursor-dot {
    opacity: 0;
    transform: scale(0.3);
}

.custom-cursor.is-hover .cursor-text {
    opacity: 1;
    scale: 1;
}

/* ============================================
   PRE LOADER 
============================================ */

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--dark);
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
    will-change: clip-path;
    z-index: 9999;
}

.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 7px;
    background: linear-gradient(90deg, #ff6b6b, #ffd93d);
    transform: scaleX(0);
    transform-origin: left;
    will-change: transform;
}

.preloader-images {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 25rem;
    height: 25rem;
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
    will-change: clip-path;
    overflow: hidden;
}

.preloader-images .img {
    position: absolute;
    width: 100%;
    height: 100%;
    clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%);
    will-change: clip-path;
    overflow: hidden;

}

.preloader-images .img img {
    position: relative;
    transform: scale(2);
    will-change: transform;

}

.preloader-copy {
    position: absolute;
    bottom: 5rem;
    left: 50%;
    transform: translate(-50%);
    width: 30%;
    color: var(--light);
    text-align: center;
}

.preloader-header {
    position: fixed;
    width: 100%;
    color: var(--light);
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(60vh);
    transform-origin: top;
    will-change: transform;
    z-index: 9999;
}

/* Prevent FOUC - hide until JS positions elements */
.preloader-header,
.preloader-copy {
    opacity: 0;
    visibility: hidden;
}


/* ============================================
   VERTICAL SECTION NAVIGATOR
============================================ */

.section-navigator {
    position: fixed;
    left: .5rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    border-radius: 8px 0px;
}

.nav-line {
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 0%;
    background: linear-gradient(180deg, #ff6b6b, #ffd93d);
    transform-origin: top;
    transition: height 0.3s ease;
    will-change: height;
}

.nav-item {

    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1.5rem;
    cursor: pointer;
    gap: 1rem;
    transition: transform 0.3s ease;
}

.nav-item:hover {
    transform: translateX(5px);
}

.nav-number {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
}

.nav-number::before {
    content: '';
    position: absolute;
    width: 90%;
    height: 90%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
}


/* Hover state */
.nav-item:hover .nav-label {
    opacity: 1;
    transform: translateX(0);
}

/* Active state */
.nav-item.active .nav-number::before {
    border-color: #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* Animated progress ring */
.nav-item.active .nav-number::after {
    content: '';
    position: absolute;
    width: 95%;
    height: 95%;
    border: 2px solid transparent;
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.nav-item.active .nav-label {
    opacity: 1;
    transform: translateX(0);
    color: #ff6b6b;
}

/* Hide on mobile */
@media (max-width: 1000px) {
    .section-navigator {
        display: none;
    }
}

.nav-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1.5rem;
    cursor: pointer;
}

.nav-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.nav-label {
    position: absolute;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #000;
    white-space: nowrap;
    writing-mode: vertical-rl;
    /* Vertical text */
    opacity: 0;
    transition: all 0.3s ease;
}

.nav-label {
    position: absolute;
    left: 50px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #000;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    white-space: nowrap;
    pointer-events: none;
}

.nav-item:hover .nav-label,
.nav-item.active .nav-label {
    opacity: 1;
    left: 80px;
    color: white;
}

.nav-item.active .nav-number {
    color: #fff;
    transform: scale(1.2);
}

/* Progress line */
.nav-line {
    position: absolute;
    right: 0;
    top: 0;
    width: 3px;
    height: 0%;
    background: #fff;
    transition: height 0.5s ease;
}

/* ============================================
    SECTION HERO
============================================ */

.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 2rem;
    padding-top: calc(var(--nav-h) + 2rem);
    background-color: #0a0a0a;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0;
    text-align: center;
    overflow: hidden;
    z-index: 100;
}

.divider {
    position: relative;
    width: 100%;
    margin: 0.25rem 0;
    height: 1.5px;
    transform: scaleX(0);
    background-color: rgba(255, 255, 255, 0.2);
    will-change: transform;
    z-index: 1;
}

.hero-signature {
    opacity: 0;
    will-change: opacity;
    margin-top: 0;
}

#hero-signature-svg {
    margin-top: 1rem;
}

#hero-signature-svg {
    margin-top: 0.5rem;
    width: 100%;
    /* Add responsive sizing */
    max-width: 400px;
    /* Smaller on desktop */
    height: auto;
}

@media (max-width: 1200px) {

    .hero {
        min-height: 60svh;
        padding-bottom: 2rem;
        /* Less padding on mobile */
    }
}

/* Add mobile override */
@media (max-width: 768px) {

    .hero {
        min-height: 35svh;
        padding-bottom: 2rem;
        /* Less padding on mobile */
    }

    #hero-signature-svg {
        max-width: 300px;
        /* Larger percentage on mobile */
        margin-top: 0.25rem;
    }

    .hero .divider {
        margin: 0.15rem 0;
        /* Even tighter on mobile */
    }

    section {
        min-height: 30svh;
    }
}

@media (max-width: 480px) {
    #hero-signature-svg {
        max-width: 250px;
    }
}

#hero-signature-path {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    will-change: stroke-dashoffset;
}

.header-row {
    margin: 0;
    /* reduce gap between rows */
}

.preloader-header a .char,
.preloader-copy p .line,
.header-row h1 .line {
    position: relative;
    display: inline-block !important;
    white-space: nowrap;
    transform: translateY(0);
    will-change: transform;

}

/* ⭐ NEW: Constrain SplitText wrapper */
h1 .line-mask {
    display: inline-block !important;
    max-width: 100%;
    overflow: hidden !important;
    padding-right: 0.09em;
    /* ⭐ ADD THIS - gives breathing room */
    margin-right: -0.01em;
    /* ⭐ ADD THIS - compensates for padding */
}

@media (max-width: 1000px) {

    h1 {
        font-size: 4rem;
        letter-spacing: -0.2rem;
    }

    h1 {
        font-size: 2;
        letter-spacing: 0;
    }

    .preloader-images {
        top: 35%;
        width: 10rem;
        height: 10rem;
    }

    .preloader-copy {
        width: 80%;
    }

    .preloader-header {
        transform: translateY(50svh);

    }

    .preloader-header a {
        font-size: 4rem;

    }

}

@media (max-width: 1200px) {
    h1 {
        font-size: 5rem;
        letter-spacing: -0.3rem;
    }

}

@media (max-width: 1000px) {
    h1 {
        font-size: 4rem;
        letter-spacing: -0.2rem;
    }


}

@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
        letter-spacing: -0.15rem;
    }

}

@media (max-width: 600px) {
    h1 {
        font-size: 2.5rem;
        letter-spacing: -0.1rem;
    }

}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
        letter-spacing: -0.05rem;
    }
}

/* ============================================
   SKILLS & ABOUT SECTION
============================================ */

@media screen and (min-width: 320px) {
    body {
        font-size: calc(14px + 2 * (100vw - 320px) / 1600);
    }
}

@media (min-width: 1024px) {
    body {
        letter-spacing: -0.015em;
    }
}



/* === SECTION HOLDER === */
.site-section__holder {
    flex-grow: 1;
    padding: 8vmin 0;
}

.skills-section .site-section__holder {
    position: relative;
}

/* === CONTAINER === */
.container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

@media (min-width: 375px) {
    .container {
        max-width: 1060px;
    }
}

@media (min-width: 1024px) {
    .container {
        padding-left: 65px;
        padding-right: 65px;
    }
}

.container--fluid {
    max-width: 100%;
}

/* === CONTENT === */
.skills-section__content {
    position: relative;
}

.text-size-lead {
    font-size: 14px;
}

@media screen and (min-width: 320px) {
    .text-size-lead {
        font-size: calc(12px + 44 * (100vw - 320px) / 1600);
    }
}

.font--italic {
    font-family: "Silk Serif", Plain, Helvetica Neue, Arial, Noto Sans, sans-serif;
    font-style: italic;
    font-weight: 400;
}

/* === HEADER === */
.skills-section__header {
    width: 100%;
}

.skills-section__headline {
    flex-grow: 1;
    position: relative;
    width: 100%;
}

.headline:last-child {
    margin-bottom: 1.5em;
}

/* === TYPOGRAPHY === */
h1,
h2,
h3,
h4,
h5,
h6 {

    font-weight: 400;
}

.h1,
h1 {
    font-size: 34px;
    line-height: 1;
}

@media screen and (min-width: 320px) {

    .h1,
    h1 {
        font-size: calc(34px + 106 * (100vw - 320px) / 1600);
    }
}

.entry-title {
    text-transform: uppercase;
    margin: 0;
    letter-spacing: -0.05em;
    line-height: 1;
}

.skills-section .entry-title {
    letter-spacing: -0.06em;
}

/* === SPLITTED TITLE STRUCTURE === */
.splitted-title__line {
    display: flex;
    overflow: hidden;
    padding-bottom: 0.15em;
    margin-bottom: -0.15em;
    padding-left: 0.15em;
    padding-right: 0.15em;
    margin-left: -0.15em;
    margin-right: -0.15em;
    flex-wrap: wrap;
}

/* Better mobile spacing for skills */
@media (max-width: 768px) {
    .skills-section .entry-title {
        font-size: clamp(28px, 8vw, 60px);
        /* Adjust font size for mobile */
        line-height: 1.1;
        /* Better line height */
    }

    .splitted-title__line .word {
        margin-right: 0.3em;
        /* Add spacing between wrapped words */
    }
}


@media (min-width: 768px) {
    .skills-section .splitted-title__line {
        position: relative;
        padding-left: 25%;
        margin-left: 0;
    }
}

.splitting .word {
    display: inline-block;
    position: relative;
}

.splitting .word:last-child {
    margin-right: 0;
}

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

img {
    border-style: none;
    vertical-align: middle;
}


/* === SECTION BASE === */
.site-section {
    backface-visibility: hidden;
    position: relative;
    background-color: #0a0a0a;
    color: #f5f1e8;
}

.about-section {
    padding: 6vw 0 0;
    z-index: 100;
}

.skills-section {
    padding-top: 1.6rem;
    padding-bottom: 2rem;
}

.skills-section--with-hover {
    position: relative;
    z-index: 200;
}


@media (min-width: 1024px) {
    .skills-section--with-hover {
        min-height: auto;
    }
}


@media (min-width: 1024px) {
    .about-section {
        padding-top: 8rem;
    }
}

/* === CONTAINER & GRID === */
.container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

@media (min-width: 375px) {
    .container {
        max-width: 1060px;
    }
}

@media (min-width: 1024px) {
    .container {
        padding-left: 65px;
        padding-right: 65px;
    }
}

.container--fluid {
    max-width: 100%;
}

/* === OFFSET GRID LAYOUT (25/75 split) === */
.site-offset-holder {
    display: flex;
    flex-wrap: wrap;
    margin-left: 0;
    margin-right: 0;
}

.site-offset {
    position: relative;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}

@media (min-width: 768px) {
    .site-offset--left {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .site-offset--right {
        flex: 0 0 75%;
        max-width: 75%;
    }
}

/* === SECTION COUNTER === */
.section-counter {
    display: block;
    text-align: left;
    font-weight: 300;
    margin-bottom: 6px;
}

@media (min-width: 768px) {
    .section-counter {
        text-align: right;
        padding-right: 4rem;
    }
}

@media (min-width: 768px) {
    .skills-section .section-counter {
        width: 25%;
        position: absolute;
        left: 0;
    }
}

@media (min-width: 1440px) {
    .section-counter {
        padding-right: 9rem;
    }
}

@media (min-width: 768px) {
    .section-counter {
        text-align: right;
        padding-right: 4rem;
    }
}

.font--italic {
    font-family: "Silk Serif", Plain, Helvetica Neue, Arial, Noto Sans, sans-serif;
    font-style: italic;
    font-weight: 400;
}

/* === CONTENT AREA === */
.about-section__content {
    position: relative;
}

@media (min-width: 768px) {
    .about-section__content {
        padding-bottom: 10rem;
    }
}

/* === HEADLINE === */
.about-section__headline:not(:only-child) {
    margin-bottom: 5.3rem;
}

.headline--bordered {
    position: relative;
    padding-bottom: 3.3rem;
}

@media (min-width: 768px) {
    .headline:not(:only-child) {
        margin-bottom: 4rem;
    }
}

/* === HEADLINE (Mobile) === */
.about-section__headline:not(:only-child) {
    margin-bottom: 2.4rem;
}

.headline--bordered {
    position: relative;
    padding-bottom: 1.6rem;
}

@media (min-width: 768px) {
    .about-section__headline:not(:only-child) {
        margin-bottom: 3.6rem;
    }

    .headline--bordered {
        padding-bottom: 2.4rem;
    }
}

@media (min-width: 1024px) {
    .about-section__headline:not(:only-child) {
        margin-bottom: 4.8rem;
    }

    .headline--bordered {
        padding-bottom: 3.2rem;
    }
}

@media (min-width: 1440px) {
    .about-section__headline:not(:only-child) {
        margin-bottom: 5.6rem;
    }

    .headline--bordered {
        padding-bottom: 3.6rem;
    }
}


/* Headline border - static version for GSAP animation later */
.animated-border {
    height: 1px;
    background-color: currentColor;
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    transform: scaleX(0);
    transform-origin: right;
    will-change: transform;
}

@media screen and (min-width: 320px) {

    .h1,
    h1 {
        font-size: calc(34px + 106 * (100vw - 320px) / 1600);
    }
}

.entry-title {
    text-transform: uppercase;
    margin: 0;
    letter-spacing: -0.05em;
    line-height: 1;
}

@media (min-width: 1024px) {
    .entry-title {
        letter-spacing: -0.015em;
    }
}

/* Splitted title structure for animation */
.splitted-title__line {
    display: flex;
    overflow: hidden;
    padding-bottom: 0.15em;
    margin-bottom: 0.0em;
    padding-left: 0.15em;
    padding-right: 0.15em;
    margin-left: -0.15em;
    margin-right: -0.15em;
}

.splitting .word {
    display: inline-block;
    position: relative;
}

/* === ENTRY TEXT === */
.about-section__entry-text {
    font-size: 22px;
    line-height: 1.15;
    padding-right: 1rem;
}

.about-section__entry-text .word {
    display: inline-block;
    margin-right: 0.35em;
    /* restores word spacing */
    margin-bottom: 0.3em;
}

.about-section__entry-text .highlight {
    color: #ff6b6b;
    font-weight: 500;
}


@media screen and (min-width: 320px) {
    .about-section__entry-text {
        font-size: calc(22px + 18 * (100vw - 320px) / 1600);
    }
}

@media (min-width: 768px) {
    .about-section__entry-text {
        padding-right: 12.5%;
        margin-bottom: 3rem;
    }
}

@media (min-width: 1024px) {
    .about-section__entry-text {
        padding-right: 43.75%;
        margin-bottom: 6.3rem;
    }
}

.about-section__entry-text .splitted-title__line {
    display: inline-flex;
}

.about-section__entry-text p {
    margin-top: 0;
    margin-bottom: 1.4em;
}

/* === VISUAL PART (50/50 Grid) === */
.about-section__visual-part {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.about-section__visual,
.about-section__additional-text {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width: 768px) {

    .about-section__visual,
    .about-section__additional-text {
        max-width: 50%;
        flex: 0 0 50%;
    }
}

/* === IMAGE CONTAINER === */
.embed-responsive {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
}

.embed-responsive::before {
    display: block;
    content: "";
}

.embed-responsive--default::before {
    padding-top: 125%;
}

.embed-responsive__item {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-size: cover;
    background-position: 50% 50%;
    background-color: #1a1a1a;
    backface-visibility: hidden;
}

/* Ensure proper stacking */
.embed-responsive {
    position: relative;
    overflow: hidden;
}

/* Reveal overlay */

.reveal {
    position: absolute;
    inset: 0;
    display: flex;
    z-index: 2;
    pointer-events: none;
}

.slice {
    flex: 1;
    background: var(--accent);
    height: 100%;
}

.slice:nth-child(1) {
    flex: 0.33;
}

.slice:nth-child(2) {
    flex: 0.34;
}

.slice:nth-child(3) {
    flex: 0.33;
}



/* === ADDITIONAL TEXT === */
.about-section__additional-text {
    order: -12;
    margin-bottom: 2.5rem;
    max-width: 305px;
    font-weight: 300;
}

@media (min-width: 768px) {
    .about-section__additional-text {
        order: inherit;
        margin-bottom: 0;
        padding-bottom: 10rem;
    }
}

@media (min-width: 1024px) {
    .about-section__additional-text {
        padding-right: 0.8vw;
        padding-left: 2rem;
        margin-top: -0.5em;
    }
}

.about-section__additional-text p {
    margin-top: 0;
    margin-bottom: 1.5em;
}

/* === REWARDS BLOCK === */
.about-section__rewards {
    position: relative;
    z-index: 3;
}

@media (min-width: 768px) {
    .about-section__rewards {
        padding-left: 12.5%;
        margin-top: -10rem;
        /* Overlaps the image */
    }
}

@media (min-width: 1024px) {
    .about-section__rewards {
        padding-left: 34.375%;
    }
}

.rewards-block {
    background: rgba(255, 255, 255, 0.08);
    /* dark glass */
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;

    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);

    color: #ffffff;
    background:
        linear-gradient(135deg,
            rgba(255, 107, 107, 0.12),
            rgba(255, 255, 255, 0.04));
    padding: 1.2rem 1.1rem;
    border-radius: 16px;
    margin-top: 1rem;
}

@media (min-width: 1024px) {
    .rewards-block {
        padding: 4.8rem 5.5rem 7rem;
    }
}

/* Rewards grid - 2 columns */
.rewards-block__row {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    grid-template-rows: auto;
    line-height: 1.1;
    backface-visibility: hidden;
    gap: 0 30px;
    padding: 28px 0 27px;
    border-bottom: 1px solid;
}

@media (min-width: 1024px) {
    .rewards-block__row {
        align-items: baseline;
    }
}

.rewards-block__title {
    font-size: 14px;
}

@media screen and (min-width: 320px) {
    .rewards-block__title {
        font-size: calc(11.2px + 0.875vw);
    }
}

/* ============================================
           BLUR EFFECT SETUP
           ============================================ */
.blur-entrance {
    filter: blur(8px);
    will-change: filter;
}

/* // SKILLS & ABOUT   - SECTION END */



/* ============================================
   PROJECT SECTION 
============================================ */

.whitespace.w1 {
    width: 100%;
    height: 50vh;
}

.whitespace.w2 {
    width: 100%;
    height: 45vh;
}

.gallery {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20em;
}

.project {
    position: relative;
    width: 100vw;
    height: 100svh;
    display: flex;
    will-change: transform;
}

.index {
    flex: 1;
    padding-left: 2em;
    height: 0;
}

.images {
    flex: 6;
    display: flex;
    flex-direction: column;
    gap: 1em;
    height: 100svh;

}

.img {
    flex: 1;
    width: 200px;
    background-color: lightgrey;
    overflow: hidden;
}

.img img {
    opacity: 0.9;
}

.index .mask {
    position: absolute;
    top: 0;
    left: 2em;
    height: 70px;
    overflow: hidden;
    will-change: transform;
}

.index .mask h1 {
    position: relative;
    will-change: transform;
}

.index .mask h1 span {
    position: relative;
    display: inline-block;
    will-change: transform;
}

.digit-wrapper,
.digit-wrapper span {
    display: inline-block;
    position: relative;
    will-change: transform;
}

.project-names {
    position: fixed;
    width: 200px;
    top: 50vh;
    left: 40%;
    transform: translateX(0%);
    opacity: 0;
    pointer-events: none;
    will-change: opacity, transform;
}

.indicator {
    position: absolute;
    top: 0;
    right: 0;
    width: 18px;
    height: 18px;
    display: flex;
    justify-content: center;
    opacity: 1;
    will-change: transform;
}

.symbol {
    width: 12px;
    height: 12px;
    background: linear-gradient(#ff6b6b, #ffd93d);
    clip-path: polygon(0 50%, 100% 100%, 100% 0);
}

.name {
    height: 18px;
}

.name p {
    color: rgba(255, 255, 255, 0.95);
    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.6);
}

.name.active p {
    color: #ff6b6b;
}

.preview-img {
    position: fixed;
    bottom: 2em;
    right: 2em;
    max-width: 40vw;
    height: calc(65vh - 2em);
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.6),
        0 4px 30px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 107, 107, 0.8);
    opacity: 0;
    pointer-events: none;
    will-change: opacity, transform;

}

.projects {
    position: relative;
    /* ⭐ Not fixed */
    width: 100%;
    /* No fixed height - let it grow with content */
    padding: 2rem 4rem;
    background-color: #0a0a0a;
}

.projects-bar {
    position: fixed;
    top: 0;
    right: 0;
    width: 10px;
    height: 100svh;
    background: linear-gradient(90deg, #ff6b6b, #ffd93d);
    transform-origin: top;
    transform: scaleY(0);
}


/* thumbnail Preview */

.thumbnail-preview {
    position: fixed;
    top: 10vh;
    right: 5%;
    display: flex;
    flex-direction: row;
    gap: 15px;
    z-index: 100;
    opacity: 0;
    transform: translateX(20px);
    /* Slide from right */
    pointer-events: none;
    will-change: opacity, transform;
}

.thumb-item {
    position: relative;
    width: 80px;
    height: 100px;
    cursor: pointer;
    will-change: transform, filter, opacity;
    transition: transform 0.3s ease;
}

.thumb-item:hover {
    transform: translateX(-5px) !important;
}

.thumb-image {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.thumb-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-item.active .thumb-image {
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.6),
        0 4px 30px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 107, 107, 0.8);
}

.thumb-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #ffd93d);
    transform-origin: left;
    transform: scaleX(0);
}

.thumb-number {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 10px;
    font-weight: 700;
    color: white;
    background: rgba(0, 0, 0, 0.6);
    padding: 2px 6px;
    border-radius: 4px;
    backdrop-filter: blur(5px);
}


/* Thumbnail Preview end */


/* Skill Preview */

.skill-preview {
    position: fixed;
    top: 10vh;
    left: 5%;
    display: flex;
    flex-direction: row;
    gap: 15px;
    z-index: 100;
    opacity: 0;
    transform: translateX(-20px);
    /* Slide from left */
    pointer-events: none;
    will-change: opacity, transform;
}

.skill-item {
    position: relative;
    width: 80px;
    height: 100px;
    cursor: pointer;
    /* transition: opacity, filter, transform 0.3s ease; */
    will-change: transform, opacity;
}

.skill-image {
    position: relative;
    width: 100%;
    height: 80%;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.skill-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.skill-item.active .skill-image {
    background: rgba(255, 107, 107, 0.1);
    border: 2px solid rgba(255, 107, 107, 0.6);
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.4),
        0 4px 30px rgba(0, 0, 0, 0.3);
}

.skill-names {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: 600;
    color: white;
    text-align: center;
    width: 100%;
    padding: 4px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* RESPONSIVE BREAKPOINTS */

/* Medium Desktop (1200px - 1440px) */
@media screen and (max-width: 1440px) {
    .projects {
        padding: 2rem 3rem;
    }

    .gallery {
        gap: 15em;
        background-color: #0a0a0a;
    }

    .preview-img {
        max-width: 45vw;
        height: calc(60vh - 2em);
        bottom: 1.5em;
        right: 1.5em;
    }

    .thumbnail-preview {
        right: 3%;
        gap: 12px;
    }

    .skill-preview {
        left: 3%;
        gap: 12px;
    }

    .thumb-item,
    .skill-item {
        width: 70px;
        height: 90px;
    }

}

/* Small Desktop / Large Tablet (1024px - 1199px) */
@media screen and (max-width: 1300px) {
    .projects {
        padding: 1rem 1.5rem;
    }

    .gallery {
        gap: 8em;
    }

    .project {
        height: 80vh;
    }

    .images {
        height: 80vh;
        flex: 5;
    }

    .index {
        flex: 0.5;
        padding-left: 1em;
    }

    .index .mask {
        left: 1em;
        height: 50px;
    }

    .index .mask h2 {
        font-size: 2.5rem;
    }

    /* Hide preview image on tablet */
    .preview-img {
        max-width: 50vw;
        height: calc(50vh - 2em);
        bottom: 25em;
        right: 1em;
    }

    /* Reposition project names */
    .project-names {
        padding: 10px 12px;
        left: 50%;
        transform: translateX(-50%);
        top: auto;
        bottom: 5vh;
        text-align: center;
        opacity: 0;

        /* visual clarity layer */
        background: linear-gradient(to bottom,
                rgba(0, 0, 0, 0.65),
                rgba(0, 0, 0, 0.25));

        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);

        box-shadow:
            0 10px 30px rgba(0, 0, 0, 0.35);

        pointer-events: none;
        will-change: transform, opacity;
    }

    .thumbnail-preview {
        top: auto;
        bottom: 5vh;
        right: 2%;
        gap: 8px;
    }

    .skill-preview {
        top: auto;
        bottom: 5vh;
        left: 2%;
        gap: 8px;
    }

    .thumb-item,
    .skill-item {
        width: 50px;
        height: 70px;
    }

    .thumb-number,
    .skill-names {
        font-size: 8px;
        padding: 2px 4px;
    }

    .projects-bar {
        width: 6px;
    }

    .whitespace.w1 {
        height: 10vh;
    }

    .whitespace.w2 {
        height: 25vh;
    }
}

/* Mobile Landscape & Small tablet (641px - 767px) */
@media screen and (max-width: 1200px) {
    .projects {
        padding: 1rem;
    }

    .gallery {
        gap: 5em;
    }

    .project {
        height: 70vh;
        flex-direction: column;
    }

    .index {
        flex: none;
        padding-left: 0.5em;
        height: auto;
        padding-bottom: 1em;
    }

    .index .mask {
        position: relative;
        left: 0;
        height: 40px;
    }

    .index .mask h2 {
        font-size: 2rem;
    }

    .images {
        flex: 1;
        height: auto;
        min-height: 60vh;
        gap: 0.5em;
    }

    .img {
        width: 100%;
    }

    .preview-img {
        display: none;
    }

    .project-names {
        font-size: 12px;
        bottom: 3vh;
    }

    .name {
        height: 16px;
    }

    .thumbnail-preview {
        bottom: 3vh;
        right: 1%;
        gap: 6px;
    }

    .skill-preview {
        bottom: 3vh;
        left: 1%;
        gap: 6px;
    }

    .thumb-item,
    .skill-item {
        width: 40px;
        height: 55px;
    }

    .projects-bar {
        width: 4px;
    }

    .whitespace.w1 {
        height: 20vh;
    }

    .whitespace.w2 {
        height: 15vh;
    }
}

/* Mobile Portrait (320px - 640px) */
@media screen and (max-width: 640px) {
    .projects {
        padding: 0.5rem;
    }

    .gallery {
        gap: 3em;
    }

    .project {
        height: 80vh;
        width: 100%;
    }

    .index {
        padding-left: 0.5em;
    }

    .index .mask {
        height: 35px;
    }

    .index .mask h2 {
        font-size: 1.5rem;
    }

    .images {
        min-height: 70vh;
    }

    /* Stack sidebars horizontally at bottom */
    .skill-preview {
        left: 3%;
        transform: translateX(-50%);
        bottom: 2vh;
        flex-direction: row;
        gap: 8px;
    }

    .thumbnail-preview {
        display: none;
    }

    .project-names {
        font-size: 11px;
        bottom: 15vh;
    }

    .thumb-item,
    .skill-item {
        width: 35px;
        height: 50px;
    }

    .thumb-number,
    .skill-names {
        font-size: 7px;
        padding: 1px 3px;
    }

    /* .indicator {
        width: 14px;
        height: 14px;
    } */

    .symbol {
        width: 10px;
        height: 10px;
    }

    .whitespace.w1 {
        height: 15vh;
    }

    .whitespace.w2 {
        height: 10vh;
    }
}

/* Very Small Mobile (max 375px) */
@media screen and (max-width: 375px) {
    .index .mask h2 {
        font-size: 1.2rem;
    }

    .project-names {
        font-size: 10px;
    }

    .skill-item {
        width: 30px;
        height: 45px;
    }

    .skill-names {
        font-size: 6px;
    }
}


/* Skill Preview End */

.skill-preview,
.thumbnail-preview,
.project-names,
.preview-img,
.thumb-item,
.skill-item {
    transform: translateZ(0);
    /* Force GPU layer */
    backface-visibility: hidden;
    perspective: 1000px;
}

/* ============================================
   FOOTER SECTION
============================================ */

.footer-section {
    position: relative;
    z-index: 9999;
    width: 100%;
    min-height: 100vh;
    background: #000;
    overflow: hidden;
    padding: 6rem 2rem 2rem;
}

/* Footer Content (Top Part) */
.footer-content {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 4rem;
    z-index: 2;
}

.footer-heading {
    font-family: 'Agdasima', sans-serif;
    font-size: clamp(3rem, 10vw, 12rem);
    font-weight: 700;
    line-height: 0.9;
    text-transform: uppercase;
    color: #ff6b6b;
    text-align: center;
    letter-spacing: -0.02em;
    margin-bottom: 4rem;
    will-change: transform;
}

.footer-heading .char-mask {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
}

.footer-heading .char {
    display: inline-block;
    transform: translateY(0);
    will-change: transform;
}

/* Contact Links */
.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.footer-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: transform 0.3s ease;
    will-change: transform;
}

.footer-link:hover {
    transform: translateY(-5px);
}

.link-label {
    font-family: 'Manrope', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
}

.link-text {
    font-family: 'Agdasima', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 600;
    color: #ffd93d;
    transition: color 0.3s ease;
}

.footer-link:hover .link-text {
    color: #ff6b6b;
}

/* Quote Section (Bottom Part) */
.footer-quote-section {
    position: relative;
    width: 100%;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background: #0a0a0a;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    will-change: clip-path;
    z-index: 1;
}

.footer-quote {
    font-family: 'Agdasima', sans-serif;
    font-size: clamp(2rem, 6vw, 6rem);
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
    text-align: center;
    margin: 0;
    margin-bottom: 3rem;
    max-width: 990px;
}

.quote-mark {
    font-size: 1.5em;
    color: #ff6b6b;
    opacity: 0.5;
}

.quote-text {
    display: inline-block;
    will-change: transform;
}

.quote-text .char-mask {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
}

.quote-text .char {
    display: inline-block;
    transform: translateY(0);
    will-change: transform;
}

/* Signature Styles */

.footer-signature {
    width: 100%;
    max-width: 500px;
    height: 150px;
    opacity: 0;
    will-change: opacity;
    margin: 0 auto;
}

#signature-svg {
    width: 100%;
    height: 100%;
}

#signature-path {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    will-change: stroke-dashoffset;
}

/* Optional: Animate underline separately */
#signature-underline {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    will-change: stroke-dashoffset;
}

/* Glow effect (optional) */
.footer-signature:hover #signature-path {
    filter: drop-shadow(0 0 8px rgba(255, 107, 107, 0.6)) drop-shadow(0 0 15px rgba(255, 107, 107, 0.4));
}

/* Responsive */
@media (max-width: 768px) {
    .footer-section {
        padding: 4rem 1rem 1rem;
        min-height: 50svh;
    }

    .footer-links {
        gap: 2rem;
    }

    .footer-quote {
        margin-bottom: 1rem;
    }

    .quote-mark {
        font-size: 1em;
    }

    .footer-quote-section {
        min-height: 30vh;
        padding: 3rem 1rem;
    }

    .footer-signature {
        max-width: 250px;
        height: 80px;
    }
}

@media (max-width: 1000px) {
    .index {
        flex: 1.5;
    }

    .preview-img {
        width: calc(45% - 4em);
        box-shadow: 0 0 20px rgba(255, 107, 107, 0.6),
            0 4px 30px rgba(0, 0, 0, 0.3);
        border: 2px solid rgba(255, 107, 107, 0.8);
    }

}