﻿/* ======= 1. FONT-FACE ======= */
/* Google Fonts loaded via HTML link for performance, local fallbacks here if any */


/* ======= 2. ROOT VARIABLES ======= */
:root {
    --primary-color: #131313;
    --secondary-color: #2a2a2a;
    --border-color: #2a2a2a;
    --text-color: #e5e2e1;

    --ease-1s: all 0.1s ease;
    --ease-3s: all 0.3s ease;
    --ease-5s: all 0.5s ease;

    /* Eon Noir Design System Colors */
    --black-1: #0e0e0e;
    /* surface-container-lowest */
    --black-2: #131313;
    /* background / surface-dim */
    --black-3: #1c1b1b;
    /* surface-container-low */
    --black-4: #201f1f;
    /* surface-container */
    --black-5: #2a2a2a;
    /* surface-container-high / outline-variant */
    --black-6: #353534;
    /* surface-container-highest */
    --black-7: #3a3939;
    /* surface-bright */

    --white-1: #ffffff;

    --off-white-1: #e5e2e1;
    /* on-surface */
    --off-white-2: #e6bdbc;
    /* on-surface-variant */
    --off-white-3: #f4f4f4;
    /* on-tertiary-container */
    --off-white-4: #c6c6c7;
    /* tertiary-fixed-dim */
    --off-white-5: #ac8888;
    /* outline */
    --off-white-6: #989898;
    /* muted gray */

    --red-3: #DC143C;
    /* primary crimson / noir-accent */
    --red-4: #ffb3b3;
    /* primary-fixed-dim / surface-tint */

    --blue-2: #2792ff;
    /* secondary-container / Dodger Blue */
    --blue-3: #a5c8ff;
    /* secondary-fixed-dim */
}


/* ======= 3. KEYFRAMES ======= */
@keyframes opacity0to100 {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes marquee-ltr {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0%);
    }
}

@keyframes marquee-rtl {
    0% {
        transform: translateX(0%);
    }

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

@keyframes pulseBreathe {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}


/* ======= 4. UNIVERSAL RESET ======= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* ======= 5. BASE ELEMENTS ======= */
html {
    overflow-y: auto;
    overflow-x: clip;
    scroll-behavior: smooth;
}

/* Hide default cursor on desktop & style custom circle cursor */




body {
    background: var(--black-2);
    color: var(--off-white-1);
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
    font-size: 16px;
    position: relative;
    transition: var(--ease-5s);
    overflow-x: clip;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--ease-3s);
}

ul {
    list-style: none;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Manrope', sans-serif;
    letter-spacing: -0.02em;
    color: var(--white-1);
}

::selection {
    background: var(--red-3);
    color: var(--white-1);
}


/* ======= 6. UTILITY CLASSES ======= */
.is-bold {
    font-weight: 700;
}

.has-underline {
    text-decoration: underline;
}

.is-red--1 {
    color: var(--red-3);
}

.center-me {
    text-align: center;
    margin: 0 auto;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}





/* ======= 7. LAYOUT ======= */
.row {
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    padding: 0 64px;
}

.col-1-of-2 {
    width: calc((100% - 50px) / 2);
}

.col-1-of-3 {
    width: calc((100% - 100px) / 3);
}


/* ======= 8. UI COMPONENTS ======= */
/* Custom Scrollbar - Hidden globally as per requirement */
::-webkit-scrollbar {
    display: none;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    border-radius: 2px;
    cursor: pointer;
    transition: var(--ease-3s);
}

.btn--primary {
    background: var(--red-3);
    color: var(--white-1);
    border: none;
}

.btn--primary:hover {
    background: #b30c2e;
    transform: translateY(-2px);
}

.btn--secondary {
    background: transparent;
    border: 1px solid var(--blue-2);
    color: var(--blue-2);
}

.btn--secondary:hover {
    background: rgba(39, 146, 255, 0.1);
    transform: translateY(-2px);
}

.btn--tertiary {
    background: transparent;
    border: none;
    color: var(--white-1);
}

.btn--tertiary:hover {
    opacity: 0.8;
}

.btn--outline-white {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white-1);
}

.btn--outline-white:hover {
    background: var(--red-3);
    border-color: var(--red-3);
}


/* ======= 9. SKILL HOVER PREVIEW BOX ======= */

/* Floating preview box — follows cursor via transform (GPU-composited, no layout thrash) */
#skill-cursor-preview {
    position: fixed;
    left: 0;
    top: 0;
    width: 200px;
    height: 140px;
    pointer-events: none;
    z-index: 99;
    opacity: 0;
    overflow: hidden;
    border-radius: 2px;
    /* JS sets --cx / --cy; translate3d keeps this on the GPU compositor */
    transform: translate3d(calc(var(--cx, 0) * 1px - 50%), calc(var(--cy, 0) * 1px - 50%), 0) scale(0.85);
    transition: opacity 0.18s ease, transform 0.18s ease;
    will-change: transform, opacity;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    contain: layout style paint;
}

#skill-cursor-preview.active {
    opacity: 1;
    transform: translate3d(calc(var(--cx, 0) * 1px - 50%), calc(var(--cy, 0) * 1px - 50%), 0) scale(1);
}

/* Image layers — real <img> tags decoded at load time, toggled via opacity */
.skill-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.12s ease;
    will-change: opacity;
}

/* Active layer — matched by data-attribute set from JS */
.skill-layer.active {
    opacity: 1;
}


/* ======= 10. PAGE SECTIONS ======= */

/* Site Header */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    background: var(--black-1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.main-header .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    padding-bottom: 20px;
}

.header__logo-box {
    display: flex;
    align-items: center;
}

.header-logo {
    display: block;
    width: 160px;
    height: 35px;
    background-image: url("images/logo.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left center;
}

.header-nav {
    display: flex;
    gap: 32px;
}

.header-nav__link {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--off-white-6);
}

.header-nav__link:hover {
    color: var(--white-1);
}

.header-nav li.active .header-nav__link {
    color: var(--white-1);
}

.hamburger-menu {
    display: none;
    cursor: pointer;
    font-size: 23px;
    color: var(--white-1);
}


/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    padding-top: 160px;
    padding-bottom: 40px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hero-section .row {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    z-index: 2;
}

.marquee-container {
    position: absolute;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    z-index: 1;
    pointer-events: none;
    user-select: none;
    opacity: 1;
}

.marquee-container--row-1 {
    top: 40%;
    transform: translateY(-50%);
}

.marquee-container--row-2 {
    top: 45%;
}

.marquee-content {
    display: inline-block;
    animation: marquee-ltr 30s linear infinite;
}

.marquee-content--reverse {
    display: inline-block;
    animation: marquee-rtl 40s linear infinite;
}

.marquee-text {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(8rem, 25vw, 26rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    padding-right: 0.1em;
}

.text-outline {
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.05);
}

.hero-ambient-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(255, 30, 79, 0.06) 0%, rgba(255, 30, 79, 0) 70%);
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}

.hero-section__content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin-top: 40px;
}

.hero-section__heading {
    font-size: 48px;
    _font-weight: 800;
    line-height: 1.1;
    _margin-bottom: 20px;
}

.highlight-crimson {
    background-image: linear-gradient(to right, var(--red-3) 50%, transparent 50%);
    background-size: 200% 100%;
    background-position: 100% 0;
    color: var(--white-1);
    padding: 0 8px;
    display: inline-block;
    transition: background-position 1.2s cubic-bezier(0.25, 1, 0.5, 1);
    transition-delay: 1s;
}

.highlight-crimson.loaded {
    background-position: 0 0;
}

.hero-section__footer {
    position: relative;
    z-index: 10;
    max-width: 85%;
    margin-top: 10px;
}

.hero-section__subtext {
    font-family: 'Raleway', sans-serif;
    font-size: 18px;
    font-weight: 300;
    color: var(--off-white-6);
    line-height: 1.6;
}

.hero-section__meta {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-section__tagline {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--off-white-6);
}

.hero-section__tagline-bar {
    width: 48px;
    height: 1px;
    background: var(--red-3);
}

.hero-section__scroll-btn {
    position: absolute;
    right: 64px;
    bottom: 0;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    z-index: 10;
}

.scroll-btn-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circular-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: rotateText 15s linear infinite;
    pointer-events: none;
    transition: animation-duration 0.5s ease;
}

.circular-text__path {
    font-family: 'Manrope', sans-serif;
    font-size: 8px;
    font-weight: 700;
    fill: var(--off-white-6);
    letter-spacing: 6.2px;
    text-transform: uppercase;
    opacity: 0.6;
    transition: fill 0.3s ease, opacity 0.3s ease;
}

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

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

.hero-section__scroll-icon-box {
    width: 60px;
    height: 60px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--ease-3s);
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.hero-section__scroll-icon-box i {
    color: var(--white-1);
    font-size: 20px;
    position: absolute;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
}

.hero-section__scroll-icon-box .icon-first {
    transform: translateY(0);
    opacity: 1;
}

.hero-section__scroll-icon-box .icon-second {
    transform: translateY(-150%);
    opacity: 0;
}

.hero-section__scroll-btn:hover .circular-text__path {
    fill: var(--white-1);
    opacity: 1;
}

.hero-section__scroll-btn:hover .hero-section__scroll-icon-box .icon-first {
    transform: translateY(150%);
    opacity: 0;
}

.hero-section__scroll-btn:hover .hero-section__scroll-icon-box .icon-second {
    transform: translateY(0);
    opacity: 1;
}

.hero-section__scroll-btn:hover .hero-section__scroll-icon-box {
    border-color: var(--white-1);
    outline: 2px solid var(--white-1);
}



/* Projects Grid Section */
.projects-section {
    padding: 96px 0;
    background: var(--black-1);
}

.section-title-box {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 48px;
}

.section-indicator {
    width: 8px;
    height: 8px;
    background: var(--red-3);
    display: inline-block;
}

.section-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--white-1);
}

.projects-grid {
    display: flex;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.project-card {
    display: block;
    padding: 10px;

    width: calc((100% - 64px) / 3);
}



.project-card__img-box {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--black-3);
    overflow: hidden;
    margin-bottom: 24px;
    border-radius: 0px;
}

.project-card__img--bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
    opacity: 1;
    filter: blur(0px) grayscale(100%);
    transition: filter 0.5s ease, transform 0.5s ease, opacity 0.5s ease;
}

.project-card__img--fg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.65);
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top left;
    opacity: 0;
    filter: grayscale(100%);
    transition: opacity 0.5s ease, transform 0.5s ease, filter 0.5s ease;
    pointer-events: none;
}

.project-card:hover .project-card__img--bg {
    filter: blur(12px) grayscale(30%);
    opacity: 0.6;
    transform: scale(1.05);
}

.project-card:hover .project-card__img--fg {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.75);
    filter: grayscale(0%);
}

.project-card__title {
    font-size: 24px;
    font-weight: 700;
    color: var(--white-1);
    margin-bottom: 8px;
}

.project-card__desc {
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    color: var(--off-white-6);
    margin-bottom: 15px;
    line-height: 1.6;
}


.projects-section__footer {
    margin-top: 64px;
}


/* About Section */
.about-section {
    padding: 96px 0;
    position: relative;
}

.about-section .row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 48px;
}

.about-section__content {
    position: static;
    width: 100%;
}

.about-section__heading {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--white-1);
}

.reveal-word {
    opacity: 0.15;
    transition: opacity 0.1s ease-out;
    display: inline-block;
}

.harold-highlight {
    position: relative;
    background-color: transparent;
    transition: background-color 0.4s ease;
    padding: 0 6px;
    _border-radius: 4px;
    display: inline-block;
}

.harold-highlight.active {
    background-color: var(--red-3);
}

.harold-avatar {
    position: absolute;
    top: -76px;
    right: -68px;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--white-1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: scale(0.5) translate(-10px, 10px);
    transition: opacity 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    z-index: 10;
}

.harold-highlight.active .harold-avatar {
    opacity: 1;
    transform: scale(1) translate(0, 0);
}

/* Desktop-only avatar visibility */






/* Services Section */
.services-section {
    padding: 96px 0;
    background: var(--black-1);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.services-list {
    display: flex;
    flex-direction: column;
    _gap: 128px;
}

.services-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 64px;
}

.services-item:nth-child(even) {
    _flex-direction: row-reverse;
}

.services-item__img-box {
    width: 50%;
    overflow: hidden;
    _border-radius: 4px;
}

.services-item__img {
    width: 100%;
    height: auto;
    filter: grayscale(100%);
    transition: all 0.7s ease;
}

.services-item.revealed .services-item__img,
.services-item:hover .services-item__img {
    filter: grayscale(0%);
}

.services-item__content {
    width: 45%;
}

.services-item__label-box {
    margin-bottom: 8px;
}

.services-item__title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--white-1);
    margin-bottom: 15px;

    /* Progress bar text background highlight */
    display: inline-block;
    background-image: linear-gradient(var(--red-3), var(--red-3));
    background-repeat: no-repeat;
    background-size: 0% 100%;
    transition: background-size 1.2s cubic-bezier(0.25, 1, 0.5, 1);
    padding: 2px 8px;
    margin-left: -8px;
}

.services-item.revealed .services-item__title {
    background-size: 100% 100%;
}

.services-item__desc {
    _font-family: 'Raleway', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: var(--off-white-6);
}

.services-item__desc strong,
.services-item__desc span.is-bold {
    color: var(--white-1);
    font-weight: 500;
}


/* Skills Section */
.skills-section {
    padding: 96px 0;
    background: var(--black-2);
    position: relative;
}

.skills-list {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.skills-list__item {
    display: flex;
    align-items: center;
    padding: 48px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--ease-3s);
}

.skills-list__item:last-child {
    border-bottom: none;
}

.skills-list__item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.skills-list__item span {
    width: 8.33%;
    /* 1/12 */
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--red-3);
    _padding-left: 15px;
}

.skills-list__item>div {
    display: flex;
    width: 91.67%;
    /* 11/12 */
    align-items: center;
}

.skills-list__title-box {
    width: 36.36%;
    /* 4/11 */
}

.skills-list__title {
    font-size: 24px;
    font-weight: 800;
    color: var(--white-1);
    transition: transform 0.5s ease;
}

/* .skills-list__item:hover .skills-list__title {
    transform: translateX(16px);
} */

.skills-list__desc {
    width: 63.64%;
    /* 7/11 */
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: var(--off-white-6);
    line-height: 1.6;
}


/* Call to Action Section */
.cta-section {
    padding: 128px 0;
    background: var(--black-2);
    text-align: center;
}

.cta-section__content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-section__title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.14;
}

.cta-section__desc {
    font-size: 18px;
    color: var(--off-white-6);
    letter-spacing: 0.05em;
    line-height: 1.6;
    margin: 0 auto 15px;
    width: 75%;
}

.cta-section__email {
    display: block;
    font-size: 16px;
    color: white;
    letter-spacing: 2px;
}

/* ======= 11. FOOTER ======= */
.footer-section {
    background: var(--black-1);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 48px 0;
}

.footer-section__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    margin-bottom: 48px;
}

.footer-logo {
    display: block;
    width: 160px;
    height: 35px;
    background-image: url("images/logo.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left center;
}

.footer-nav {
    display: flex;
    gap: 32px;
}

.footer-nav__link {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--off-white-6);
}

.footer-nav__link:hover {
    color: var(--white-1);
}

.footer-socials {
    display: flex;
    gap: 24px;
}

.footer-socials__link {
    color: var(--off-white-6);
    font-size: 16px;
}

.footer-socials__link:hover {
    color: var(--white-1);
}

.footer-section__bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 48px;
}

.footer-copyright {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.2);
}


/* ======= 12. SUB-PAGE STYLES ======= */
/* Used for future expandability or multi-page shared styling */


/* ======= 13. MEDIA QUERIES ======= */











/* ======= 11. SCROLL-DRIVEN VIDEO SECTION ======= */
.scroll-video-section {
    position: relative;
    height: 400vh;
    background-color: #131313;
    z-index: 5;
}

.scroll-video-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #131313;
}

#video-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 1;
}

.video-vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 35%, rgba(19, 19, 19, 0.7) 70%, #131313 100%);
    pointer-events: none;
    z-index: 2;
}

.film-grain-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
    opacity: 0.025;
    /* ~2.5% opacity */
}

.video-panels {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    pointer-events: none;
}

.video-panel-card {
    position: absolute;
    max-width: 500px;
    width: calc(100% - 40px);
    padding: 40px 40px 60px 40px;
    border-radius: 2px;
    background: rgba(19, 19, 19, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transform: translateY(1.5rem);
    pointer-events: auto;
    transition: opacity 0.8s cubic-bezier(0.32, 0.72, 0, 1), transform 0.8s cubic-bezier(0.32, 0.72, 0, 1);
}

.video-panel-card.active {
    opacity: 1;
    transform: translateY(0);
}

.video-panel-card__badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(220, 20, 60, 0.15);
    border: 1px solid rgba(220, 20, 60, 0.3);
    color: #ffb3b3;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-radius: 2px;
    margin-bottom: 15px;
    font-family: 'Manrope', sans-serif;
}

.video-panel-card__title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 5px;
    line-height: 1.2;
    color: var(--white-1);
}

.video-panel-card__desc {
    font-size: 16px;
    color: var(--off-white-1);
    line-height: 1.6;
    font-weight: 300;
}

/* Adjustments for smaller screen layouts */


/* ======= 12. PRELOADER ======= */
body.preloading {
    overflow: hidden !important;
    height: 100vh;
    height: 100dvh;
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background-color: #000000;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.8s cubic-bezier(0.85, 0, 0.15, 1), opacity 0.8s;
    opacity: 1;
    overflow: hidden;
}

.preloader.fade-out {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.preloader__inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader__logo {
    text-align: center;
    font-family: 'Manrope', sans-serif;
    display: flex;
    flex-direction: column;
    font-weight: 800;
    font-size: clamp(2.2rem, 7.5vw, 5.5rem);
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: var(--white-1);
    user-select: none;
}

.preloader-char {
    opacity: 0.15;
    transition: opacity 0.2s ease-out;
    display: inline-block;
    white-space: pre;
}

.preloader__line-1 {
    color: var(--white-1);
}

.preloader__line-2 {
    color: var(--white-1);
}

.preloader__slash {
    color: var(--red-3);
    /* Crimson slash matching user request */
}

.preloader__status {
    position: absolute;
    bottom: 48px;
    right: 64px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.preloader__counter {
    font-family: 'Manrope', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--white-1);
    line-height: 1;
    user-select: none;
}

.preloader__progress-bar-track {
    width: 160px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.preloader__progress-bar {
    height: 100%;
    width: 0%;
    background: var(--red-3);
    transition: width 0.1s ease;
}



/* ======= 14. PORTFOLIO PAGE STYLES ======= */

.page-hero {
    position: relative;
    background: var(--black-3);
    padding: 150px 0 75px 0;
}

.page-hero__content {
    max-width: 85%;
    padding-left: 70px;
}

.page-hero__heading {
    font-family: 'Manrope', sans-serif;
    font-size: 42px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--white-1);
    margin-bottom: 10px;
}

.project-body .page-hero__heading {
    font-size: 24px;
}

.page-hero__heading p {
    display: block;
    font-size: 42px;
}

.page-hero__subtext {
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: var(--off-white-6);
    line-height: 1.3;
}

.page-hero__slash {
    color: var(--red-3);
}

.page-hero__content .project-tags {
    margin-top: 5px;
    margin-bottom: 16px;
}

.page-hero__content .project-tag:not(.project-tag--red) {
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* .page-project-textree .project-tag {
    font-size: 8px;
} */

.portfolio-body .project-tag {
    font-size: 10px;
}

.portfolio-showcase-section {
    padding: 64px 0 96px 0;
    position: relative;
    background: var(--black-1);
}

.timeline-indicator-box {
    position: absolute;
    left: 64px;
    top: 0;
    bottom: 0;
    width: 80px;
    display: block;
    z-index: 10;
}

.timeline-years-nav {
    position: sticky;
    top: 220px;
    display: flex;
    gap: 20px;
    height: 280px;
    align-items: stretch;
}

.timeline-track {
    width: 2px;
    background: rgba(255, 255, 255, 0.08);
    position: relative;
    height: 100%;
    border-radius: 1px;
}

.timeline-progress {
    width: 2px;
    background: var(--red-3);
    height: 0%;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 1px;
    transition: height 0.15s ease-out;
}

.timeline-year-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.timeline-year-list li {
    display: flex;
    align-items: center;
}

.timeline-year-link {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--off-white-4);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    display: inline-block;
    cursor: pointer;
    position: relative;
    padding-left: 8px;
}

.timeline-year-link::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%) scaleX(0);
    width: 12px;
    height: 2px;
    background-color: var(--red-3);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.timeline-year-link:hover {
    color: var(--white-1);
    transform: translateX(4px);
}

.timeline-year-link.active {
    color: var(--red-3);
    transform: translateX(8px);
}

.timeline-year-link.active::before {
    transform: translateY(-50%) scaleX(1);
}

.timeline-mobile-nav {
    display: none;
}

.timeline-mobile-nav__list {
    display: flex;
    justify-content: space-around;
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-mobile-nav__link {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--off-white-4);
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 6px 12px;
    display: inline-block;
    position: relative;
    cursor: pointer;
}

.timeline-mobile-nav__link:hover {
    color: var(--white-1);
}

.timeline-mobile-nav__link.active {
    color: var(--red-3);
}

.timeline-mobile-nav__link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 2px;
    background-color: var(--red-3);
    border-radius: 1px;
}

.timeline-container {
    margin-left: 0;
}

.timeline-year-group {
    margin-bottom: 96px;
}

.timeline-year {
    font-family: 'Manrope', sans-serif;
    font-size: 42px;
    font-weight: 800;
    /* color: var(--off-white-6); */
    opacity: 0.25;
    margin-bottom: 15px;
    transition: color 0.5s ease, opacity 0.5s ease;
}

.timeline-year.active {
    color: var(--white-1);
    opacity: 1;
}

.timeline-project-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.timeline-project-card {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: stretch;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 48px 0px;
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), border-top-color 0.3s ease;
}

.timeline-project-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.timeline-project-card:hover,
.timeline-project-card.viewport-hover {
    border-top-color: var(--red-3);
}

.project-card__img-container {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    width: 100%;
    background: var(--black-3);
}

.project-card__image--bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
    opacity: 1;
    filter: blur(0px) grayscale(100%);
    transition: filter 0.5s ease, transform 0.5s ease, opacity 0.5s ease;
}

.project-card__image--fg {
    position: absolute;
    top: 50%;
    left: 53%;
    transform: translate(-50%, -50%) scale(0.65);
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
    opacity: 0;
    filter: grayscale(100%);
    transition: opacity 0.5s ease, transform 0.5s ease, filter 0.5s ease;
    pointer-events: none;
}

.timeline-project-card:hover .project-card__image--bg,
.timeline-project-card.viewport-hover .project-card__image--bg {
    filter: blur(12px) grayscale(30%);
    opacity: 0.6;
    transform: scale(1.05);
}

.timeline-project-card:hover .project-card__image--fg,
.timeline-project-card.viewport-hover .project-card__image--fg {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.75);
    filter: grayscale(0%);
}

.project-card__info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ── Reusable Project Tags ── */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
    align-items: center;
}

.project-tag {
    font-family: 'Manrope', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 5px 12px;
    border-radius: 2px;
    display: inline-block;

    color: var(--white-1);
    border: 1px solid var(--black-5);
}

.project-tag--red,
.project-tag--primary {
    background-color: var(--red-3);
    color: var(--white-1);
    border: 1px solid var(--red-3);
}

.project-tag--secondary {
    background: rgba(220, 20, 60, 0.18);
    color: var(--red-3);
    border: 1px solid rgba(220, 20, 60, 0.3);
}

.project-tag--outline {
    background: transparent;
    color: var(--off-white-6);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.project-card__headline {
    font-family: 'Manrope', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: var(--white-1);
    margin-bottom: 8px;
    line-height: 1.2;
}

.project-card__description {
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    color: var(--off-white-6);
    line-height: 1.6;
    margin-bottom: 40px;
}

.project-card__link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--off-white-1);
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 700;
    _text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: color 0.3s ease;
    width: fit-content;
}

.project-card__link:hover {
    color: var(--red-3);
}

.project-card__link i {
    transition: transform 0.3s ease;
}

.project-card__link:hover i {
    transform: translateX(6px);
}

.timeline-more-box {
    display: flex;
    justify-content: center;
    margin-top: 64px;
}

.btn--more i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn--more:hover i {
    transform: translateY(4px);
}



/* ── ① 2-column project overview card (inside .row) ── */
.project-overview {
    background: var(--black-1);
    padding: 80px 0;
}

.project-overview__grid {
    display: flex;
    gap: 64px;
    align-items: center;
}

/* LEFT — screenshot & gallery column */
.project-overview__left-col {
    flex: 0 0 calc(45% - 32px);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.project-overview__img-col {
    position: relative;
    overflow: hidden;
    background: var(--black-3);
    _border: 1px solid rgba(255, 255, 255, 0.08);
    _border-radius: 2px;
    _aspect-ratio: 16 / 10;
    width: 100%;
    height: 250px;
}

.project-overview__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
    display: block;
}

/* RIGHT — info panel */
.project-overview__info-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--black-1);
    flex: 0 0 calc(55% - 32px);
}

/* Small "◼ PROJECT" label at top of right panel */
.project-overview__label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.project-overview__label-dot {
    width: 8px;
    height: 8px;
    background: var(--red-3);
    flex-shrink: 0;
}

.project-overview__label-text {
    font-family: 'Manrope', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--off-white-6);
}

/* Big bold project title */
.project-overview__title {
    font-family: 'Manrope', sans-serif;
    font-size: 30px;
    font-weight: 800;
    color: var(--white-1);
    line-height: 1.0;
    letter-spacing: -0.02em;
    margin-bottom: 5px;
}


/* Description */
.project-overview__desc {
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--off-white-6);
    line-height: 1.75;
    margin-bottom: 8px;
    max-width: 100%;
}

.project-overview__desc:last-of-type {
    margin-bottom: 40px;
}

.project-overview__link-title {
    font-size: 14px;
    font-family: 'Manrope';
    color: #606060;
    margin-bottom: 10px;
}

.project-overview__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    /* color: var(--off-white-6); */
    font-family: 'Manrope', sans-serif;
    /* font-size: 12px; */
    /* font-weight: 700; */
    /* text-transform: uppercase; */
    letter-spacing: 0.12em;
    text-decoration: none;
    transition: color 0.3s ease;
    margin-bottom: 10px;
    width: fit-content;
}

.project-overview__link:hover {
    color: var(--red-3);
    text-decoration: underline;
}

.project-overview__link i {
    transition: transform 0.3s ease;
    font-size: 16px;
}

.project-overview__link:hover i {
    transform: translate(2px, -2px);
}

/* Inline meta row: Year / Services / Client */
.project-overview__meta {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 28px;
}

.project-overview__meta-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.project-overview__meta-label {
    font-family: 'Manrope', sans-serif;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--off-white-6);
}

.project-overview__meta-value {
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--white-1);
    letter-spacing: 0.03em;
}

.project-overview__progress-bar-container {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 1.5px;
    overflow: hidden;
    margin-top: 0;
}

.project-overview__progress-bar {
    width: 0%;
    height: 100%;
    background: rgb(100, 100, 100);
}




/* ── ③ Small Gallery Thumbnails ── */
.project-gallery__group {
    display: flex;
    gap: 12px;
}

.project-gallery__item {
    flex: 1;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--black-3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    _border-radius: 2px;
    _cursor: pointer;
    opacity: 0.2;
    transition: border-color 0.3s ease, opacity 0.3s ease;
}

.project-gallery__item:hover {
    border-color: var(--red-3);
    opacity: 1;
}

.project-gallery__item.active {
    opacity: 1;
}

.project-gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
    display: block;
    filter: brightness(1);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        filter 0.5s ease;
}

.project-gallery__item:hover .project-gallery__img {
    transform: scale(1.04);
    filter: brightness(1);
}

@keyframes marquee-gallery {
    0% {
        transform: translateX(0);
    }

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





/* Desktop Styles */


/* Tablet Media Query (max-width: 1024px) */


/* Mobile Media Queries */




/* ======= About Page Specific Styles ======= */

/* About Hero Section (Shared styling with Portfolio Hero) */


/* About Grid Section */
.about-grid-section {
    padding: 96px 0;
    background: var(--black-1);
}

.about-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 64px;
}

.about-grid__content {
    width: 45%;
}

.about-body .about-grid__content .section-title-box {
    margin-bottom: 35px;
}

.about-grid__heading {
    font-family: 'Manrope', sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    color: var(--white-1);
    margin-top: 16px;
    margin-bottom: 15px;
}

.about-grid__text {
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--off-white-6);
    margin-bottom: 15px;
}

.about-grid__text:last-child {
    margin-bottom: 0;
}

.about-grid__image-box {
    width: 50%;
    position: relative;
    _height: 500px;
    background: #000000;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.about-grid__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.5s ease, opacity 0.5s ease;
}

.about-grid__image--hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.about-grid__image-box:hover .about-grid__image,
.about-grid__image-box.is-hovered .about-grid__image {
    filter: grayscale(0%);
}

.about-grid__image-box:hover .about-grid__image--hover,
.about-grid__image-box.is-hovered .about-grid__image--hover {
    opacity: 1;
}


/* About Timeline Section */
.about-timeline-section {
    padding: 96px 0;
    background: var(--black-1);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.about-timeline {
    position: relative;
    padding-left: 48px;
    max-width: 95%;
}

.about-timeline__line {
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: var(--black-5);
}

.about-timeline__item {
    position: relative;
    margin-bottom: 48px;
}

.about-timeline__item:last-child {
    margin-bottom: 0;
}

.about-timeline__dot {
    position: absolute;
    left: -48px;
    top: 4px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--black-2);
    border: 2px solid var(--red-3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-timeline__dot-inner {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--red-3);
}

.about-timeline__date {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--white-1);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.about-timeline__date::before {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--red-3);
    display: inline-block;
}

.about-timeline__title {
    font-family: 'Manrope', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--white-1);
    margin-bottom: 12px;
}

.about-timeline__desc {
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--off-white-6);
}

.about-timeline__desc:not(:last-child) {
    margin-bottom: 15px;
}

/* Responsiveness for About Page grid & timeline */


/* ======= RESPONSIVE & MEDIA QUERIES ======= */

@media screen and (max-width: 1440px) {
    .row {
        max-width: 1200px;
    }
}

@media screen and (max-width: 1280px) {
    .row {
        max-width: 960px;
        padding: 0 40px;
    }

    .hero-section__heading {
        font-size: 54px;
    }

    .projects-grid {
        gap: 24px;
    }

    .project-card {
        width: calc((100% - 48px) / 3);
    }

    .hero-section__scroll-btn {
        right: 40px;
    }
}

@media screen and (min-width: 1025px) {
    .timeline-indicator-box {
        display: block;
    }

    .timeline-container {
        margin-left: 160px;
    }

    .timeline-project-card {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 48px;
    }

    .project-card__img-container {
        flex: 0 0 calc((100% - 48px) * 7 / 12);
    }

    .project-card__info {
        flex: 0 0 calc((100% - 48px) * 5 / 12);
        padding-left: 32px;
    }

    /* Alternating layout order swapped on desktop */
    .timeline-project-card.reverse {
        flex-direction: row-reverse;
    }

    .timeline-project-card.reverse .project-card__info {
        padding-left: 0;
        padding-right: 32px;
    }
}

@media screen and (max-width: 1024px) {
    .row {
        max-width: 720px;
    }

    .hero-section__heading {
        font-size: 40px;
    }

    .hero-section__footer {
        max-width: 65%;
    }

    .projects-grid {
        gap: 32px;
    }

    .project-card {
        width: calc((100% - 32px) / 2);
    }



    .services-item {
        flex-direction: column-reverse !important;
        gap: 32px;
        margin-bottom: 48px;
    }

    .services-item:last-child {
        margin-bottom: 0;
    }

    .services-item__img-box {
        width: 100%;
    }

    .services-item__content {
        width: 100%;
    }

    .skills-list__item span {
        width: 10%;
    }

    .skills-list__item>div {
        width: 90%;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .skills-list__title-box {
        width: 100%;
    }

    .skills-list__desc {
        width: 100%;
    }

    .page-hero__content {
        padding-left: 0;
    }

    .timeline-indicator-box {
        display: none;
    }

    .timeline-container {
        margin-left: 0;
    }

    .timeline-mobile-nav {
        display: block;
        position: sticky;
        top: 70px;
        z-index: 45;
        background: rgba(18, 18, 18, 0.9);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding: 12px 0 18px;
        margin: 0 -40px 32px -40px;
    }

    /* Project overview: stack to single column at tablet */
    .project-overview__grid {
        flex-direction: column;
        align-items: stretch;
        min-height: auto;
    }

    .project-overview__left-col {
        flex: none;
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .project-overview__img-col {
        height: 200px;
    }

    .project-overview__info-col {
        flex: none;
        width: 100%;
        padding: 48px 0;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .project-overview__title {
        font-size: 36px;
    }

    .project-overview__meta {
        gap: 24px;
    }

    /* Gallery: responsive layout at tablet */
    .project-gallery__group {
        gap: 12px;
    }

    .portfolio-showcase-section {
        padding: 0px 0 96px 0;
    }

    /* .portfolio-showcase-section {
        padding: 12px 0 96px 0;
    } */

    .marquee-text {
        font-size: clamp(12rem, 35vw, 20rem);
    }

    .marquee-container--row-1 {
        top: 35%;
    }

    .page-hero__heading {
        font-size: 40px;
    }

    .project-info__title {
        font-size: 40px;
    }

    .project-card__headline {
        font-size: 28px;
    }

    .project-features-card__title {
        font-size: 28px;
    }

    .about-grid__heading {
        font-size: 28px;
    }

    .about-section__heading {
        font-size: 28px;
    }

    .about-grid {
        flex-direction: column;
        gap: 48px;
    }

    .about-grid__content,
    .about-grid__image-box {
        width: 100%;
    }

    .about-grid__image-box {
        height: 450px;
    }
}

/* ── Tablet-Only (iPad portrait 768px → 1024px, Surface Pro) ── */
@media screen and (min-width: 920px) and (max-width: 1370px) {

    .row {
        padding: 0 32px;
        max-width: 1000px;
    }

    .hero-section {
        position: relative;
        min-height: initial;
        height: 750px;
    }

    .hero-section {
        padding-top: 140px;
        padding-bottom: 40px;
    }

    .hero-section__heading {
        font-size: 38px;
    }

    .hero-section__subtext {
        font-size: 18px;
    }

    .hero-section__footer {
        max-width: 80%;
    }

    .hero-section__scroll-btn {
        right: 32px;
    }

    .scroll-btn-wrapper {
        width: 108px;
        height: 108px;
    }

    .project-card__desc {
        font-size: 18px;
    }


    /* Projects: 2-column on tablet */
    .project-card {
        /* width: calc((100% - 24px) / 2); */
        width: 100%;
    }

    /* About section */
    .about-section__heading {
        font-size: 32px;
    }

    /* Skills list: more compact on tablet */
    .skills-list__item {
        padding: 32px 16px;
    }

    /* CTA */
    .cta-section__title {
        font-size: 36px;
    }

    /* Footer: keep horizontal on tablet */
    .footer-section__top {
        flex-wrap: wrap;
        gap: 20px;
    }

    /* Page hero for sub-pages */
    .page-hero {
        padding: 130px 0 60px 0;
    }

    .page-hero__heading {
        font-size: 36px;
    }

    /* Timeline mobile nav: show on tablet too */
    .timeline-mobile-nav {
        margin: 0 -32px 32px -32px;
    }

    /* Portfolio project cards on tablet */
    .project-overview__img-col {
        height: 400px;
    }

    .project-overview__grid {
        gap: 10px;
    }

    .project-card__headline {
        font-size: 26px;
    }

    .project-card__description {
        font-size: 15px;
        margin-bottom: 24px;
    }

    /* About grid: stack on tablet */
    .about-grid {
        flex-direction: column;
        gap: 40px;
    }

    .about-grid__content,
    .about-grid__image-box {
        width: 100%;
    }

    .about-grid__image-box {
        height: 380px;
    }

    .about-timeline__desc,
    .about-grid__text,
    .skills-list__desc {
        font-size: 16px;
    }

    /* Services */
    .services-item__title {
        font-size: 26px;
    }

    .services-item__desc {
        font-size: 18px;
    }

    /* Preloader */
    .preloader__status {
        right: auto;
        left: 50%;
        bottom: 40px;
        transform: translateX(-50%);
        align-items: center;
    }

    /* Video panels */
    .video-panel-card {
        padding: 32px;
        max-width: 65%;
    }

    .video-panel-card__title {
        font-size: 26px;
    }

    .video-panel-card__desc {
        font-size: 18px;
    }
}

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

    html,
    body,
    a,
    button,
    input,
    select,
    textarea,
    .skill-row,
    .hamburger-menu {
        cursor: none !important;
    }

    .custom-cursor {
        width: 8px;
        height: 8px;
        background-color: var(--white-1);
        border-radius: 50%;
        position: fixed;
        top: 0;
        left: 0;
        pointer-events: none;
        z-index: 10000;
        transform: translate(-50%, -50%);
        opacity: 0;
        transition: opacity 0.2s ease, width 0.15s ease, height 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
    }

    .custom-cursor.hover {
        width: 24px;
        height: 24px;
        background-color: transparent;
        border: 1px solid var(--white-1);
    }
}

/* ── Tablet-Only (iPad portrait 768px → 1024px, Surface Pro) ── */

@media screen and (min-width: 768px) and (max-width: 1024px) {

    .row {
        padding: 0 32px;
        max-width: 1000px;
    }

    .hero-section {
        position: relative;
        min-height: initial;
        height: 750px;
    }

    .hero-section {
        padding-top: 140px;
        padding-bottom: 40px;
    }

    .hero-section__heading {
        font-size: 38px;
    }

    .hero-section__subtext {
        font-size: 18px;
    }

    .hero-section__footer {
        max-width: 80%;
    }

    .hero-section__scroll-btn {
        right: 32px;
    }

    .scroll-btn-wrapper {
        width: 108px;
        height: 108px;
    }

    .project-card__desc {
        font-size: 18px;
    }


    /* Projects: 2-column on tablet */
    .project-card {
        /* width: calc((100% - 24px) / 2); */
        width: 100%;
    }

    /* About section */
    .about-section__heading {
        font-size: 32px;
    }

    /* Skills list: more compact on tablet */
    .skills-list__item {
        padding: 32px 16px;
    }

    /* CTA */
    .cta-section__title {
        font-size: 36px;
    }

    /* Footer: keep horizontal on tablet */
    .footer-section__top {
        flex-wrap: wrap;
        gap: 20px;
    }

    /* Page hero for sub-pages */
    .page-hero {
        padding: 130px 0 60px 0;
    }

    .page-hero__heading {
        font-size: 36px;
    }

    /* Timeline mobile nav: show on tablet too */
    .timeline-mobile-nav {
        margin: 0 -32px 32px -32px;
    }

    /* Portfolio project cards on tablet */
     .project-overview__grid {
        gap: 10px;
    }

    .project-overview__img-col {
        height: 400px;
    }

    .project-card__headline {
        font-size: 26px;
    }

    .project-card__description {
        font-size: 15px;
        margin-bottom: 24px;
    }

    /* About grid: stack on tablet */
    .about-grid {
        flex-direction: column;
        gap: 40px;
    }

    .about-grid__content,
    .about-grid__image-box {
        width: 100%;
    }

    .about-grid__image-box {
        height: 380px;
    }

    .about-timeline__desc,
    .about-grid__text,
    .skills-list__desc {
        font-size: 16px;
    }

    /* Services */
    .services-item__title {
        font-size: 26px;
    }

    .services-item__desc {
        font-size: 18px;
    }

    /* Preloader */
    .preloader__status {
        right: 40px;
        bottom: 40px;
    }

    /* Video panels */
    .video-panel-card {
        padding: 32px;
        max-width: 65%;
    }

    .video-panel-card__title {
        font-size: 26px;
    }

    .video-panel-card__desc {
        font-size: 18px;
    }
}

@media screen and (max-width: 767px) {
    .custom-cursor {
        display: none;
    }

    .harold-avatar {
        display: none !important;
    }

    .row {
        padding: 0 24px;
    }

    .hamburger-menu {
        display: block;
    }

    .header-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--black-2);
        flex-direction: column;
        padding: 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        gap: 20px;
    }

    .header-nav.active {
        display: flex;
    }

    .hero-section {
        padding-top: 120px;
    }

    .hero-section__heading {
        font-size: 36px;
    }

    .project-card {
        width: 100%;
    }

    .services-item__title {
        font-size: 28px;
    }

    .footer-section__top {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .footer-nav {
        flex-direction: column;
        gap: 16px;
        margin-bottom: 30px;
    }

    .hero-section__scroll-btn {
        right: 24px;
    }

    .video-panel-card {
        padding: 24px;
        max-width: 90%;
    }

    .video-panel-card__title {
        font-size: 22px;
    }

    .video-panel-card__desc {
        font-size: 14px;
    }

    .preloader__status {
        right: auto;
        left: 50%;
        bottom: 32px;
        transform: translateX(-50%);
        align-items: center;
    }

    .timeline-indicator-box {
        display: none;
    }

    .timeline-container {
        margin-left: 0;
    }

    .timeline-mobile-nav {
        margin: 0 -24px 32px -24px;
    }

    #skill-cursor-preview {
        width: 140px;
        height: 98px;
    }

    .page-hero {
        padding-top: 130px;
    }

    .marquee-text {
        font-size: clamp(10rem, 75vw, 16rem);
    }

    .marquee-container--row-1 {
        top: 30%;
    }

    /* .page-hero__heading {
        font-size: 32px;
    } */

    .timeline-year {
        font-size: 36px;
        margin-bottom: 24px;
    }

    .project-card__headline {
        font-size: 24px;
    }

    /* Project overview: fully stacked on mobile */
    .project-overview__img-col {
        min-height: 180px;
    }

    .project-overview__info-col {
        padding: 32px 0 80px;
    }

    .project-overview__title {
        font-size: 36px;
    }

    .project-overview__desc {
        font-size: 14px;
        max-width: 100%;
    }

    .project-overview__meta {
        gap: 20px;
        flex-wrap: wrap;
    }

    /* Gallery: 2x2 grid on mobile */
    .project-gallery__group {
        flex-wrap: wrap;
        gap: 8px;
    }

    .project-gallery__item {
        width: calc(50% - 4px);
    }

    .skills-list__title {
        font-size: 22px;
    }
}

@media screen and (max-width: 576px) {
    .row {
        padding: 0 20px;
        /* margin-mobile in DESIGN.md */
    }

    .hero-section .row {
        padding-bottom: 30px;
    }

    .header-logo {
        width: 90px;
        height: 40px;
    }

    .section-title-box {
        margin-bottom: 30px;
    }


    .hero-section__heading {
        font-size: 32px;
    }

    .hero-section__subtext {
        font-size: 16px;
    }

    .video-panel-card__badge {
        margin-bottom: 10px;
    }

    .skills-list__item {
        padding: 32px 10px;
    }

    .skills-list__title {
        font-size: 20px;
    }

    .cta-section__title {
        font-size: 28px;
    }

    .hero-section__scroll-btn {
        bottom: 10px;
        right: 20px;
    }

    .scroll-btn-wrapper {
        position: relative;
        width: 112px;
        height: 112px;
    }

    .hero-section__scroll-icon-box {
        width: 50px;
        height: 50px;
    }

    .timeline-indicator-box {
        display: none;
    }

    .timeline-container {
        margin-left: 0;
    }

    .timeline-year {
        font-size: 30px;
    }

    .about-timeline {
        padding-left: 32px;
    }

    .about-timeline__date {
        margin-bottom: 20px;
    }

    .about-timeline__line {
        left: 5px;
    }

    .about-timeline__dot {
        left: -32px;
        width: 11px;
        height: 11px;
        top: 6px;
    }

    .about-timeline__dot-inner {
        width: 3px;
        height: 3px;
    }

    .about-timeline__title {
        font-size: 20px;
    }

    .about-grid__image-box {
        height: 350px;
    }



    .timeline-project-list {
        gap: 0px;
    }


    .project-overview {
        padding: 10px 0px 30px;
    }

    .cta-section__desc {
        font-size: 14px;
    }

    .page-hero__heading p {
        font-size: 32px;
    }

    .cta-section__email {
        font-size: 12px;
    }

        .project-overview__title {
        font-size: 28px;
    }
}

@media screen and (max-width: 400px) {


    .marquee-text {
        font-size: clamp(10rem, 75vw, 10rem);
    }


    .hero-section__scroll-btn {
        bottom: 20px;
    }
}

@media screen and (max-width: 380px) {

        .page-hero__heading {
        font-size: 32px;
    }

    .about-section__heading {
        font-size: 24px;
    }

    .about-grid__text,
    .about-timeline__desc,
    .skills-list__desc,
    .project-card__description,
    .services-item__desc,
    .project-card__desc,
    .hero-section__subtext,
    .page-hero__subtext {
        font-size: 14px;
    }

    .hero-section__heading {
        font-size: 28px;
    }



}

@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}