/* SF Pro font stack used for native feel */

:root {
    --bg-color: #f4f4f4;
    --yellow: #fdd22e;
    --pink: #ff006e;
    --purple: #8338ec;
    --cyan: #00f5d4;
    --black: #111111;
    --white: #ffffff;
    --green: #06d6a0;
    --orange: #ff5400;
    --blue: #0f52ba;
    --gray-light: #f8fafc;

    --border-width: 4px;
    --shadow-size: 8px;
    --gap: 1vh;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

html {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
}

html,
body {
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

body {
    background-color: var(--bg-color);
    /* Fixed pixel background so it doesn't stretch into stripes across browsers */
    background-image:
        radial-gradient(var(--black) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: 0 0;

    /* Leave perfect padding for shadow to not cause scrollbar */
    padding: 1.5vh 2vw 1.5vh 2vw;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Floating Top Badges Layer */
.top-badges {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 1.5vh;
    /* Gap before the grid starts */
    position: relative;
    z-index: 10;
}

.badge {
    background: var(--white);
    border: var(--border-width) solid var(--black);
    padding: 0.5vh 1vw;
    font-weight: 800;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
}

.badge.available {
    margin-left: auto;
    margin-right: 1vw;
}

.dot {
    width: 10px;
    height: 10px;
    background: var(--cyan);
    border-radius: 50%;
    border: 2px solid var(--black);
}

/* The Exact 24-Column Mathematical Grid */
.viewport-container {
    width: 100%;
    height: calc(100vh - 3vh);
    /* Exactly fills remaining viewport */
    display: grid;
    /* Columns defined mathematically: Hero is ~58%, Right is ~42% */
    grid-template-columns: repeat(24, 1fr);
    /* Reverted to 6 rows - Marquee now integrated into Row 6 (v190) */
    grid-template-rows: 2.8fr 2.8fr 2.0fr 0.8fr 1.5fr 3.5fr;
    gap: var(--gap);
}

/* Restored Core Panel Properties (v188 Fidelity) */
.panel {
    border: var(--border-width) solid var(--black);
    position: relative;
    overflow: hidden;
    /* Cinematic Entry (Wait for GSAP Orchestration) */
    opacity: 0;
    transform: scale(0);
    transform-origin: center center;
}

/* Base Colors */
.bg-yellow {
    background-color: var(--yellow);
}

.bg-pink {
    background-color: var(--pink);
}

.bg-purple {
    background-color: var(--purple);
}

.bg-white {
    background-color: var(--white);
}

.bg-black {
    background-color: var(--black);
}

.bg-cyan {
    background-color: var(--cyan);
}

.bg-orange {
    background-color: #FF5B00;
}


/* Grid Placement Mapping exactly to coordinates */

/* Row 1, 2, 3 Left */
.hero {
    grid-column: 1 / 15;
    grid-row: 1 / 4;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    padding: clamp(55px, 6.5vw, 100px) clamp(30px, 3.5vw, 60px) !important;
    isolation: isolate;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}



.hero-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3.5vh;
    z-index: 2;
    max-width: 55%;
    position: relative;
}

.hero-info {
    display: flex;
    flex-direction: column;
}

.hero-name {
    font-size: clamp(24px, 3.8vw, 54px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5vh;
}

.hero-title {
    font-size: clamp(14px, 1.6vw, 22px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5vh;
}

.hero-body {
    display: flex;
    flex-direction: column;
    gap: 0.4vh;
}

.hero-text {
    font-size: clamp(10px, 0.95vw, 14px);
    font-weight: 700;
    line-height: 1.4;
    color: var(--black);
    opacity: 0.85;
}

.hero-links {
    display: flex;
    gap: 1vw;
    margin-top: 2vh;
    pointer-events: auto;
    flex-wrap: wrap;
    position: relative;
}

.link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 2px solid var(--black);
    height: 3.2vw;
    padding: 0 1.2vw;
    text-decoration: none;
    color: var(--black);
    font-weight: 800;
    font-size: 0.9vw;
    white-space: nowrap;
    gap: 0.5vw;
    transition: 0.2s;
    box-shadow: 2px 2px 0px 0px var(--black);
}

.link-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0px 0px var(--black);
}

.link-btn img {
    width: 1.1vw;
    height: 1.1vw;
    display: block;
    object-fit: contain;
}

.link-btn.hover-fiverr img {
    width: 1.6vw;
    height: 1.6vw;
}

.link-btn.hover-linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
    color: white;
}

.link-btn.hover-linkedin:hover img {
    filter: brightness(0) invert(1);
}

.link-btn.hover-whatsapp:hover {
    background: #25D366;
    border-color: #25D366;
    color: white;
}

.link-btn.hover-whatsapp:hover img {
    filter: brightness(0) invert(1);
}

.link-btn.hover-gmail:hover {
    background: #ea4335;
    border-color: #ea4335;
    color: white;
}

.link-btn.hover-gmail:hover img {
    filter: brightness(0) invert(1);
}

.link-btn.hover-fiverr:hover {
    background: #1dbf73;
    border-color: #1dbf73;
    color: white;
}

.link-btn.hover-fiverr:hover img {
    filter: brightness(0) invert(1);
}

.link-btn.hover-behance:hover {
    background: #1769ff;
    border-color: #1769ff;
    color: white;
}

.link-btn.hover-behance:hover img {
    filter: brightness(0) invert(1);
}

.link-btn.resume-btn:hover {
    background: var(--pink);
    border-color: var(--pink);
    color: white;
}

/* Desktop Hero Image (v218) — Ultra-Large with White Stroke */
.hero-right {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: clamp(240px, 26vw, 360px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.hero-profile-img {
    height: 150%;
    width: auto;
    display: block;
    margin-left: auto;
    transform: translateY(15%);
}


/* Row 1, 2 Right */
/* Synchronized Bento Matrix Hub (v160) */
.m-matrix-hub {
    grid-column: 15 / 20;
    grid-row: 1 / 3;
    display: grid;
    grid-template: 1fr 1fr / 1fr 1fr;
    gap: var(--gap);
}

.m-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: clamp(6px, 0.8vw, 12px) !important;
    gap: clamp(5px, 0.6vw, 10px);
    /* Internal breathing room */
    text-align: center;
    transition: all 0.2s ease;
}

/* Hover Disabled per User Request (v164) */
.m-card:hover {
    filter: brightness(1.05);
    /* Subtle highlight only, no popup/shadow */
}

.bg-light-grey {
    background-color: #D1D5DB;
}

/* Soft Technical Grey */
.bg-light-grey .t-text,
.bg-light-grey .t-author {
    color: var(--black);
}

.bg-light-grey .t-stars {
    color: #F59E0B;
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.1);
}




.career-log {
    grid-column: 20 / 25;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    padding: 0;
}



.c-num {
    font-size: clamp(18px, 1.8vw, 30px);
    font-weight: 900;
    color: var(--white);
    line-height: 1;
}

.c-label {
    font-size: clamp(7.5px, 0.7vw, 9.5px);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--white);
    line-height: 1.1;
}

/* Sticker Capsule Colors */
.b-indigo {
    background-color: #4F46E5 !important;
}

.b-yellow {
    background-color: #F59E0B !important;
    color: var(--black);
}

.b-pink {
    background-color: #EC4899 !important;
}

.b-emerald {
    background-color: #10B981 !important;
}

.b-yellow .c-num,
.b-yellow .c-label {
    color: var(--black);
}

/* Mini Product Card Styles (v219) */
.product-card-mini {
    display: flex;
    flex-direction: column;
    justify-content: space-between !important;
    align-items: center;
    padding: 8px !important;
    position: relative;
    overflow: hidden;
}

.mini-app-badge {
    font-size: clamp(6px, 0.5vw, 8px);
    font-weight: 900;
    background: rgba(0, 0, 0, 0.15);
    color: var(--white);
    padding: 2px 6px;
    border-radius: 100px;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.mini-product-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
}

.mini-product-icon {
    width: clamp(24px, 2.5vw, 36px);
    height: clamp(24px, 2.5vw, 36px);
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.mini-product-name {
    font-size: clamp(10px, 1.1vw, 14px);
    font-weight: 900;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

/* End Proven Impact Section */

.career-log {
    grid-column: 20 / 25;
    grid-row: 1 / 3;
}

/* Row 3 Right */
.worked-with {
    grid-column: 15 / 25;
    grid-row: 3 / 4;
}

/* Center Marquee Divider (v193) */
.marquee {
    grid-column: 1 / 25;
    grid-row: 4 / 5;
    display: flex;
    align-items: center;
    background: var(--black);
    overflow: hidden;
    padding: 0 !important;
}

.marquee .marquee-wrapper {
    width: 100%;
}

/* Project Card Styles (Framed Mockups) */
.projects-row {
    grid-column: 1 / 25;
    grid-row: 5 / 6;
    display: flex;
    gap: clamp(10px, 1vw, 20px);
}

.proj-1,
.proj-2,
.proj-3,
.proj-4,
.proj-5 {
    display: flex;
    flex: 1;
    padding: clamp(12px, 1.2vw, 20px) !important;
    overflow: hidden;
    position: relative;
    border: var(--border-width) solid var(--black);
    border-radius: 0;
}

.proj-1,
.proj-2,
.proj-3,
.proj-4,
.proj-5 {
    color: var(--white) !important;
}

.project-card.text-only {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    text-decoration: none;
    color: var(--black);
    position: relative;
    cursor: pointer;
    background-color: transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card.text-only:hover {
    transform: translate(-3px, -3px);
}

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

.project-tag {
    font-size: clamp(7px, 0.55vw, 10px);
    font-weight: 800;
    color: var(--black);
    letter-spacing: 0.12em;
    margin-bottom: 4px;
    display: block;
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 20px;
    /* leaves room for arrow */
}

.project-name {
    font-size: clamp(12px, 1vw, 20px);
    font-weight: 900;
    color: var(--black);
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-desc {
    font-size: clamp(9px, 0.8vw, 12px);
    font-weight: 700;
    color: var(--black);
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: auto;
}

.project-tools span {
    font-size: clamp(7px, 0.5vw, 9px);
    font-weight: 900;
    padding: 3px 8px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 4px;
    color: var(--black);
    text-transform: uppercase;
}

.project-arrow {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 34px;
    height: 34px;
    background: var(--white) !important;
    color: var(--black) !important;
    border: 2px solid var(--black) !important;
    /* Industrial stroke added */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
    transform: translate(100%, 100%);
    border-radius: 0;
    box-shadow: none !important;
}

/* Interaction Handlers (v171) */
.project-card:hover .project-arrow {
    opacity: 1;
    transform: translate(0, 0);
}

/* Row 6 Bottom */



/* Contrast overrides for dark solid backgrounds (v123 set) */
.proj-1 .project-tag,
.proj-2 .project-tag,
.proj-3 .project-tag,
.proj-4 .project-tag,
.proj-5 .project-tag,
.proj-1 .project-name,
.proj-2 .project-name,
.proj-3 .project-name,
.proj-4 .project-name,
.proj-5 .project-name,
.proj-1 .project-desc,
.proj-2 .project-desc,
.proj-3 .project-desc,
.proj-4 .project-desc,
.proj-5 .project-desc {
    color: var(--white) !important;
}

.proj-1 .project-tools span,
.proj-2 .project-tools span,
.proj-3 .project-tools span,
.proj-4 .project-tools span,
.proj-5 .project-tools span {
    color: var(--black);
    background: var(--white);
}

.proj-1 .project-arrow,
.proj-2 .project-arrow,
.proj-3 .project-arrow,
.proj-4 .project-arrow,
.proj-5 .project-arrow {
    border: none;
    box-shadow: none;
}

/* Row 6 Bottom (v188 Restoration) */
.client-love {
    grid-column: 1 / 17;
    grid-row: 6 / 7;
    position: relative;
    overflow: hidden;
    padding: 0 clamp(20px, 3vw, 60px) !important;
}

.marquee-track {
    display: flex;
    white-space: nowrap;
    animation: marquee-scroll 30s linear infinite;
    /* Right-to-Left premium speed */
    padding-left: 0;
    gap: 30px;
    /* Unified gap between items for even spatial distribution */
}

.m-item {
    font-size: clamp(11px, 0.9vw, 17px);
    font-weight: 800;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 30px;
    /* Precise internal gap between text and star */
    padding: 0;
    /* Removing lateral padding for unified gap logic */
    letter-spacing: 0.12em;
    color: var(--white) !important;
}

.star {
    font-style: normal;
    font-size: 1.3em;
    margin-left: 0;
    -webkit-text-stroke: 0.5px var(--white);
    /* Refined 0.5px hairline stroke per request */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    display: inline-block;
}

/* Multi-colored Stars per request */
.s-gold {
    color: #FFD700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.s-pink {
    color: #ff006e;
    text-shadow: 0 0 15px rgba(255, 0, 110, 0.4);
}

.s-purple {
    color: #8338ec;
    text-shadow: 0 0 15px rgba(131, 56, 236, 0.4);
}

.s-cyan {
    color: #00f5d4;
    text-shadow: 0 0 15px rgba(0, 245, 212, 0.4);
}

.s-green {
    color: #06d6a0;
    text-shadow: 0 0 15px rgba(6, 214, 160, 0.4);
}

.s-orange {
    color: #ff5400;
    text-shadow: 0 0 15px rgba(255, 84, 0, 0.4);
}

.s-blue {
    color: #0f52ba;
    text-shadow: 0 0 15px rgba(15, 82, 186, 0.4);
}

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

    /* Start offset for Right-to-Left loop */
    100% {
        transform: translateX(0);
    }

    /* Flow from Left to Right per request */
}

.carousel-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

.carousel-track {
    display: flex;
    gap: 0;
    /* Removed gap seamlessly */
    padding: 0 5px;
    /* Inner margin for track start/end */
    width: 100%;
    height: 100%;
    align-items: stretch;
}

.testimonial {
    flex: 0 0 var(--tile-w, 400px);
    width: var(--tile-w, 400px);
    max-width: 90vw;
    background: var(--white);
    /* Review Container background */
    padding: clamp(14px, 1.5vw, 28px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: none;
    height: 100%;
    position: relative;
    /* Stroke removed per user request */
}

/* Floating Separator Line */
.testimonial:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    bottom: 15%;
    width: 2px;
    background: rgba(0, 0, 0, 0.1);
}

.testimonial:last-child {
    border-right: none;
}

.t-stars {
    color: var(--yellow);
    font-size: clamp(10px, 1vw, 14px);
    margin-bottom: 4px;
    -webkit-text-stroke: 1px var(--black);
    letter-spacing: 1px;
}

.t-text {
    font-size: clamp(9px, 0.82vw, 12.5px);
    font-weight: 700;
    line-height: 1.5;
    color: var(--black);
    margin-bottom: 6px;
    flex-grow: 1;
}

.t-author {
    font-size: clamp(8px, 0.6vw, 10px);
    font-weight: 900;
    text-align: right;
    text-transform: uppercase;
    color: var(--black);
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.t-flag {
    width: 14px;
    height: 10px;
    object-fit: cover;
    margin-left: 6px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.client-love {
    grid-column: 1 / 20;
    grid-row: 6 / 7;
}

.sandbox {
    grid-column: 20 / 25;
    grid-row: 6 / 7;
}

/* Review Section Header (hidden on desktop, shown on mobile) */
.review-header {
    display: none;
}

/* Tech Stack Header (hidden on desktop, shown on mobile) */
.techstack-header {
    display: none;
}

/* Collaborations Card (#3) */
.stat-purple {
    display: flex;
    flex-direction: column;
    padding: 0 !important;
}

.collab-header {
    font-size: clamp(10px, 0.70vw, 13px);
    font-weight: 800;
    color: var(--white);
    letter-spacing: 0.18em;
    padding: 15px 15px 0;
    border-bottom: 2px solid rgba(0, 0, 0, 0.15);
}

/* Collaborations Card Removed in v145 - Handled by Impact Panel */



/* Clock Card (Card #12) — two-column layout */
.clock-card {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: stretch;
    padding: clamp(10px, 1vw, 20px) clamp(14px, 1.4vw, 28px);
    gap: clamp(14px, 1.4vw, 28px);
}

/* LEFT — big clock */
.clock-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(2px, 0.2vw, 5px);
    flex: 0.8;
}

.clock-top {
    display: flex;
    align-items: center;
    gap: clamp(4px, 0.4vw, 7px);
    margin-bottom: clamp(2px, 0.3vw, 6px);
}

.clock-live-dot {
    width: clamp(6px, 0.5vw, 9px);
    height: clamp(6px, 0.5vw, 9px);
    border-radius: 50%;
    background: #00f5d4;
    animation: livePulse 1.4s ease-in-out infinite;
}

@keyframes livePulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 245, 212, 0.5);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.3);
        box-shadow: 0 0 0 5px rgba(0, 245, 212, 0);
    }
}

.clock-live-label {
    font-size: clamp(7px, 0.5vw, 10px);
    font-weight: 900;
    color: #00f5d4;
    letter-spacing: 0.15em;
}

.clock-time {
    font-size: clamp(16px, 2vw, 32px);
    font-weight: 800;
    color: #ffffff;
    font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
    letter-spacing: 0.04em;
    line-height: 1;
}

#current-time {
    font-size: 40px;
    font-weight: 900;
    letter-spacing: -1px;
}

.clock-date {
    font-size: clamp(8px, 0.55vw, 11px);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-top: clamp(1px, 0.15vw, 3px);
}

/* Vertical divider */
.clock-vdivider {
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
    align-self: stretch;
    flex-shrink: 0;
}

/* RIGHT — stats */
.clock-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1.2;
    gap: 0;
}

.clock-stat {
    display: flex;
    flex-direction: column;
    gap: clamp(2px, 0.2vw, 4px);
    padding: clamp(6px, 0.6vw, 12px) 0;
}

.clock-stat-label {
    display: flex;
    align-items: center;
    gap: clamp(4px, 0.35vw, 7px);
    font-size: clamp(7px, 0.6vw, 9px);
    font-weight: 900;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.clock-stat-value {
    font-size: clamp(10px, 0.9vw, 14px);
    font-weight: 800;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.02em;
}

.clock-stat-value.accent {
    font-size: clamp(26px, 2.5vw, 42px);
    color: #00f5d4;
    font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
    font-weight: 900;
}

/* Horizontal divider between stats */
.clock-hdivider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    width: 100%;
}

/* Career Trail Timeline (v159 — Fused) */
/* .career-log position handled above for grid stability */


.trail-header {
    font-size: clamp(10px, 0.85vw, 16px);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    padding: clamp(6px, 0.6vw, 12px) clamp(8px, 1vw, 16px);
    border-bottom: 2px solid var(--black);
    flex-shrink: 0;
}

.trail-scroll {
    flex: 1;
    overflow: hidden;
    padding: 0 clamp(8px, 0.8vw, 14px);
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    position: relative;
}

.trail-line {
    position: absolute;
    left: calc(clamp(8px, 0.8vw, 14px) + 7px);
    top: 0;
    bottom: 0;
    width: 2px;
    background: #ddd;
    z-index: 0;
}

.trail-item {
    display: flex;
    align-items: center;
    gap: clamp(8px, 0.6vw, 12px);
    position: relative;
    animation: trailFadeIn 0.5s ease both;
}

.trail-item:nth-child(2) {
    animation-delay: 0.1s;
}

.trail-item:nth-child(3) {
    animation-delay: 0.2s;
}

.trail-item:nth-child(4) {
    animation-delay: 0.3s;
}

.trail-item:nth-child(5) {
    animation-delay: 0.4s;
}

@keyframes trailFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.trail-dot {
    width: 12px;
    height: 12px;
    min-width: 12px;
    border-radius: 50%;
    background: var(--black);
    position: relative;
    z-index: 1;
    border: 2px solid var(--white);
    box-sizing: content-box;
}

.trail-item.active .trail-dot {
    background: #1dbf73;
    border-color: var(--white);
    box-shadow: 0 0 0 3px rgba(29, 191, 115, 0.25);
    animation: pulse 2s ease-in-out infinite;
}

.trail-dot.edu {
    background: var(--purple);
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 2px rgba(29, 191, 115, 0.2);
    }

    50% {
        box-shadow: 0 0 0 5px rgba(29, 191, 115, 0.35);
    }
}

.trail-content {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    flex: 1;
}

.trail-role {
    font-size: clamp(10px, 0.7vw, 14px);
    font-weight: 900;
    line-height: 1.3;
    color: var(--black);
}

.trail-company {
    font-size: clamp(9px, 0.6vw, 12px);
    font-weight: 600;
    color: #555;
    line-height: 1.3;
}

.trail-date {
    font-size: clamp(8px, 0.5vw, 11px);
    font-weight: 700;
    color: #999;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 1px;
}

/* Tools App Dock Card */
.worked-with {
    padding: 0 !important;
    overflow: hidden;
}

.app-dock {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    padding: 0 clamp(12px, 1.2vw, 24px);
    gap: clamp(6px, 0.8vw, 16px);
}

.app-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(3px, 0.3vw, 6px);
    cursor: default;
    transition: transform 0.25s ease;
}

.app-icon:hover {
    transform: translateY(-3px) scale(1.05);
}

/* Base size for all icons */
.app-icon img {
    width: clamp(22px, 2.2vw, 38px);
    height: clamp(22px, 2.2vw, 38px);
    border-radius: clamp(5px, 0.5vw, 10px);
    transition: box-shadow 0.25s;
}

.app-icon:hover img {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

/* SVG icons - same box, contain */
.app-svg-clean {
    object-fit: contain;
    width: clamp(22px, 2.2vw, 38px) !important;
    height: clamp(22px, 2.2vw, 38px) !important;
}

/* PNG app icons fill their square */
.app-png {
    object-fit: cover;
}

/* Colored square wrapper for SVGs that need a background (e.g. ChatGPT) */
.app-svg-bg {
    width: clamp(22px, 2.2vw, 38px);
    height: clamp(22px, 2.2vw, 38px);
    border-radius: clamp(5px, 0.5vw, 10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18%;
    box-sizing: border-box;
    transition: box-shadow 0.25s;
}

.app-icon:hover .app-svg-bg {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

/* White icon inside colored bg */
.app-svg-invert {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.app-icon span {
    font-size: clamp(8px, 0.55vw, 11px);
    font-weight: 800;
    color: #444;
    text-align: center;
    line-height: 1.1;
    white-space: nowrap;
}

/* Coming Soon Labels */
.coming-soon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.9vw;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--black);
    opacity: 0.35;
    pointer-events: none;
    white-space: nowrap;
}

.coming-soon.light {
    color: var(--white);
}

/* --- Responsive Layout Adjustments --- */

@media (max-width: 1024px) {

    /* Release strict single viewport to allow scrolling */
    html,
    body {
        height: auto;
        overflow-y: auto;
    }

    body {
        padding: 5vw;
    }

    .viewport-container {
        /* Swap to proportional rows instead of fractions of screen height */
        grid-template-rows: auto;
        grid-auto-rows: 15vh;
        gap: 2vw;
    }

    /* Flow tablet items into chunks */
    .hero {
        grid-column: 1 / 25;
        grid-row: span 3;
    }

    .stat-pink {
        grid-column: 1 / 13;
        grid-row: span 1;
    }

    .stat-purple {
        grid-column: 13 / 25;
        grid-row: span 1;
    }

    .career-log {
        grid-column: 1 / 25;
        grid-row: span 2;
    }

    .worked-with {
        grid-column: 1 / 25;
        grid-row: span 2;
    }

    .marquee {
        grid-column: 1 / 25;
        grid-row: span 1;
    }

    .proj-1 {
        grid-column: 1 / 13;
        grid-row: span 2;
    }

    .proj-2 {
        grid-column: 13 / 25;
        grid-row: span 2;
    }

    .proj-3 {
        grid-column: 1 / 13;
        grid-row: span 2;
    }

    .proj-4 {
        grid-column: 13 / 25;
        grid-row: span 2;
    }

    .client-love {
        grid-column: 1 / 25;
        grid-row: span 2;
    }

    .sandbox {
        grid-column: 1 / 25;
        grid-row: span 2;
    }
}

/* Mobile Absolute Logic (v202 Hero Visibility Fix) */
@media (max-width: 991px) {
    body {
        padding: 3vw !important;
        height: auto !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        width: 100% !important;
        max-width: 100vw !important;
    }

    /* Universal Mobile Containment (v215) */
    *,
    *::before,
    *::after {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Scroll Reveal (v218) — CSS class-based, one-time */
    .reveal-on-scroll {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.5s ease, transform 0.5s ease;
    }

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

    .viewport-container {
        display: flex !important;
        /* Override 24-col grid */
        flex-direction: column !important;
        height: auto !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow-x: hidden !important;
        width: 100% !important;
        grid-template-columns: none !important;
        grid-template-rows: none !important;
    }

    .panel {
        margin-bottom: 3vw;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: auto;
        grid-column: auto !important;
        grid-row: auto !important;
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 40px 20px !important;
        overflow: hidden !important;
    }

    .marquee,
    .carousel-container,
    .carousel-track,
    .projects-row,
    .m-matrix-hub,
    .hero,
    .client-love,
    .sandbox,
    .career-log,
    .worked-with {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    /* Hero Mobile Layout — Profile sticker (v218) */
    .hero {
        display: flex !important;
        flex-direction: column !important;
        padding: 25px 20px !important;
        background-color: var(--yellow);
        min-height: auto !important;
        gap: 0 !important;
    }

    .hero-left, .hero-info {
        display: contents !important; /* Flatten all hierarchy for custom ordering */
    }

    .hero-name {
        order: 1 !important;
        width: 100% !important;
        margin-bottom: 5px !important;
    }

    .hero-title {
        order: 2 !important;
        width: 100% !important;
        margin-bottom: 10px !important;
    }

    .hero-right {
        display: flex !important;
        align-items: flex-end !important;
        justify-content: center !important;
        width: 100% !important;
        height: 85vw !important; 
        margin: 0 auto 20px auto !important;
        background: none !important;
        order: 3;
        border: none !important;
        position: relative !important;
        right: auto !important; 
        flex-shrink: 0;
        box-shadow: none !important;
        transform: none !important;
        overflow: hidden !important;
    }

    .hero-profile-img {
        height: 100% !important;
        width: auto !important;
        object-fit: cover !important;
        object-position: center 20% !important;
        transform: scale(1.1) translateY(5%) !important;
        margin: 0 !important;
    }

    .hero-logo {
        display: none !important;
    }

    .hero-body {
        text-align: left;
        width: 100% !important;
        padding: 0 5px !important;
        order: 4;
        margin-top: 5px !important;
    }

    /* Hero Responsive Action Hub (v218) */
    .hero-links {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
        margin-top: 25px !important;
        width: 100% !important;
        order: 5;
    }

    .link-btn {
        width: 100% !important;
        height: 50px !important;
        padding: 0 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        background-color: var(--white) !important;
        border: 2px solid var(--black);
        box-shadow: 2px 2px 0px var(--black);
    }

    .link-btn.hover-behance {
        background-color: var(--white) !important;
    }

    .link-btn img {
        width: 20px !important;
        height: 20px !important;
    }

    .resume-btn {
        grid-column: 1 / 3 !important;
        /* Full-width on 2-col grid */
        height: 48px !important;
        background-color: var(--black) !important;
        color: var(--white) !important;
        font-weight: 900 !important;
        letter-spacing: 0.2em !important;
        font-size: 3.8vw !important;
        box-shadow: 3px 3px 0px var(--black);
        margin-top: 4px;
    }

    .hero-name {
        font-size: 8vw;
        line-height: 1;
        margin-bottom: 2px;
        font-weight: 900;
    }

    .hero-title {
        font-size: 4.5vw;
        margin-top: 2px;
        font-weight: 800;
        opacity: 0.95;
        letter-spacing: 0.05em;
    }

    .hero-text {
        font-size: 4.5vw;
        margin-top: 10px;
        line-height: 1.5;
        font-weight: 500;
        max-width: 100%;
        width: 100%;
        color: rgba(0, 0, 0, 0.85);
    }

    /* Metrics Hub Scaling */
    .m-matrix-hub {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        margin-bottom: 25px;
        width: 100%;
        height: auto;
    }

    .m-card {
        min-height: 140px;
        margin-bottom: 0;
        padding: 25px 10px !important;
    }

    .m-card .c-num {
        font-size: 11vw;
        line-height: 1;
    }

    .m-card .c-label {
        font-size: 3.5vw;
        margin-top: 10px;
        font-weight: 700;
        width: 90%;
        line-height: 1.2;
    }

    /* Section Headings — Unified Style (v217) */
    .trail-header {
        font-size: 8vw;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        padding: 18px 20px;
        border-bottom: 3px solid var(--black);
        text-align: center;
        box-sizing: border-box;
        margin: -40px -20px 20px -20px;
        width: calc(100% + 40px);
    }

    /* Clients Review Heading */
    .review-header {
        display: block !important;
        font-size: 6.5vw;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        padding: 18px 20px;
        border-bottom: 3px solid var(--black);
        text-align: center;
        width: calc(100% + 40px);
        margin: -40px -20px 25px -20px;
        box-sizing: border-box;
        white-space: nowrap;
    }

    /* Tech Stack Heading */
    .techstack-header {
        display: block !important;
        font-size: 8vw;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        padding: 18px 20px;
        border-bottom: 3px solid var(--black);
        text-align: center;
        width: calc(100% + 40px);
        margin: -40px -20px 20px -20px;
        box-sizing: border-box;
    }

    .trail-content {
        text-align: left;
    }

    .trail-role {
        font-size: 4.5vw;
    }

    .trail-company {
        font-size: 3.5vw;
    }

    /* Worked With App Dock Mobile Scaling */
    .app-dock {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 25px;
    }

    .app-icon span {
        font-size: 3.8vw;
        margin-top: 10px;
    }

    /* Portfolio Track Scaling */
    .projects-row {
        flex-direction: column;
        width: 100%;
    }

    .project-card {
        padding: 40px 25px !important;
        align-items: center !important;
        text-align: center !important;
    }

    .project-name {
        font-size: 8vw;
        margin-bottom: 20px;
    }

    .project-desc {
        font-size: 3.8vw;
        line-height: 1.5;
        max-width: 95%;
    }

    .project-tag {
        font-size: 3.5vw;
        margin-bottom: 15px;
        text-align: center !important;
    }

    .project-tools {
        justify-content: center !important;
    }

    .project-tools span {
        font-size: 3.5vw;
        padding: 8px 16px;
    }

    /* Row 6 Reviews Mobile Architecture (v203 Vertical Stack) */
    .client-love {
        height: auto !important;
        padding: 0 clamp(15px, 3.5vw, 35px) !important;
        overflow: visible !important;
    }

    .carousel-container {
        padding: 0 !important;
        overflow: visible !important;
        height: auto !important;
    }

    .carousel-track {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        width: 100% !important;
        animation: none !important;
        /* Disable scroll on mobile stack */
        transform: none !important;
    }

    .testimonial {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        text-align: left;
        align-items: flex-start !important;
        padding: 35px !important;
        margin-right: 0 !important;
        border: none !important;
        box-shadow: none !important;
    }
    
    .testimonial:not(:last-child)::after {
        right: 10%;
        left: 10%;
        top: auto;
        bottom: 0;
        width: auto;
        height: 2px;
        background: rgba(0, 0, 0, 0.1);
    }

    .t-stars {
        font-size: 5vw;
        margin-bottom: 12px;
    }

    .t-text {
        font-size: 4.2vw;
        line-height: 1.6;
        color: var(--black);
    }

    .t-author {
        font-size: 3.5vw;
        margin-top: 10px;
        font-weight: 900;
    }

    /* Marquee Center Panel Mobile Architecture (v204 High Visibility) */
    .marquee {
        height: 75px !important;
        width: 100% !important;
        padding: 0 !important;
        overflow: hidden !important;
        position: relative;
        /* Sophisticated Mask for Infinite Feel */
        -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
        mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    }

    .marquee-track {
        animation: marquee-scroll 4.5s linear infinite !important; /* Ultra-high intensity */
        gap: 30px; 
    }

    .m-item {
        font-size: 5.5vw;
        gap: 35px;
        /* Decompressed Rhythms */
    }

    .star {
        font-size: 1.4em;
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
        /* Enhanced mobile glow */
    }

    /* Sandbox / Clock Mobile Scaling (v210) */
    .clock-card {
        position: relative !important;
        padding: 30px 20px !important;
        display: flex !important;
        flex-direction: row !important;
    }

    .clock-left,
    .clock-right {
        flex: 1;
        width: 50%;
    }

    /* Highlighted Visit Count on Mobile */
    .clock-stat-value.accent {
        font-size: 12vw !important;
        color: #00f5d4 !important;
        text-shadow: 0 0 20px rgba(0, 245, 212, 0.4);
    }

    .clock-stat-label {
        font-size: 2.8vw !important;
    }

    /* Reduced date & location */
    .clock-stat-value {
        font-size: 3vw !important;
    }

    .clock-time {
        font-size: 10vw !important;
        line-height: 1;
    }

    .clock-date {
        font-size: 2.5vw !important;
    }

    .clock-live-label {
        font-size: 3vw;
    }

    /* Normalized Social Icons — all icons same size (v214) */
    .link-btn img {
        width: 24px !important;
        height: 24px !important;
        max-width: 24px !important;
        max-height: 24px !important;
        min-width: 24px !important;
        min-height: 24px !important;
        object-fit: contain !important;
    }

    /* Fiverr SVG fix — force same visual size */
    .hover-fiverr img {
        width: 28px !important;
        height: 28px !important;
        max-width: 28px !important;
        max-height: 28px !important;
        min-width: 28px !important;
        min-height: 28px !important;
    }
}

/* --- Spento App Modal - Retro Style 2 (v220) --- */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2vw;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-backdrop.active {
    display: flex !important;
    opacity: 1;
}

.modal-container.retro-style-2 {
    background: #fdfdfd;
    border: 5px solid var(--black);
    width: 95%;
    max-width: 1000px;
    height: 85vh;
    max-height: 85vh;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modal-slide-up 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

@keyframes modal-slide-up {
    from { transform: translateY(100px) scale(0.9); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--white);
    border: 4px solid var(--black);
    font-size: 30px;
    font-weight: 900;
    font-family: Arial, sans-serif;
    width: 45px;
    height: 45px;
    cursor: pointer;
    z-index: 100;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    padding-bottom: 4px;
    line-height: 0;
}

.modal-close:hover {
    background: var(--pink);
    color: white;
    transform: rotate(90deg) scale(1.1);
}

.modal-content-scroll {
    overflow-y: auto;
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    scrollbar-width: thick;
    scrollbar-color: var(--black) transparent;
}

.modal-content-scroll::-webkit-scrollbar {
    width: 12px;
}
.modal-content-scroll::-webkit-scrollbar-thumb {
    background: var(--black);
    border: 3px solid #fdfdfd;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Wraps action button down natively */
    gap: 20px;
    margin-bottom: 15px;
    border-bottom: 5px solid var(--black);
    padding-bottom: 15px;
    position: relative;
    flex-shrink: 0;
}

.modal-header-main {
    display: flex;
    align-items: center;
    gap: 20px;
}

.modal-header-action {
    display: flex;
    justify-content: center;
    padding-right: 50px;
}

.modal-app-icon {
    width: 90px;
    height: 90px;
    border: 5px solid var(--black);
    background: white;
    padding: 6px;
    object-fit: contain;
}

.modal-header-text {
    flex: 1;
}

.modal-app-title {
    font-size: clamp(24px, 3vw, 42px);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 0.9;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.modal-app-version {
    font-size: 18px;
    font-weight: 800;
    color: #444;
    letter-spacing: 0.05em;
}

.beta-tag {
    background: var(--yellow);
    color: var(--black);
    padding: 2px 10px;
    border: 2px solid var(--black);
    font-size: 14px;
    margin-left: 5px;
}

.download-btn {
    background: #00ff7f;
    color: var(--black);
    border: 4px solid var(--black);
    padding: 15px 30px;
    font-weight: 900;
    text-decoration: none;
    font-size: 20px;
    transition: 0.2s;
    text-transform: uppercase;
}

.download-btn:hover {
    background: #00e672;
}

.modal-beta-notice {
    background: #fff9c4;
    border: 4px solid var(--black);
    padding: 12px 20px;
    margin-bottom: 20px;
    font-weight: 800;
    font-size: 14px;
    line-height: 1.4;
    flex-shrink: 0;
}

.modal-section h3 {
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 20px;
    background: var(--black);
    color: white;
    display: inline-block;
    padding: 4px 12px;
    transform: skew(-5deg);
}

.carousel-wrapper {
    overflow-x: auto;
    padding-bottom: 20px;
    margin-bottom: 40px;
    -webkit-overflow-scrolling: touch;
    border: 4px solid var(--black);
    background: #eee;
    padding: 20px;
}

.screenshot-carousel {
    display: flex;
    gap: 20px;
    width: max-content;
}

.screenshot-item {
    flex: 0 0 150px;
    width: 150px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.screenshot-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border: 4px solid var(--black);
    border-radius: 4px;
    cursor: pointer;
}

.screenshot-item span {
    font-size: 13px;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
    background: var(--white);
    border: 2px solid var(--black);
    padding: 4px;
}

.modal-column p {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 15px;
    margin-top: 25px;
}

.feature-list li {
    padding: 8px 8px 8px 30px;
    position: relative;
    font-weight: 800;
    font-size: 13px;
    line-height: 1.3;
    background: white;
    border: 3px solid var(--black);
}

.feature-list li::before {
    content: "✔";
    position: absolute;
    left: 12px;
    color: #00ff7f;
    font-weight: 900;
}

@media (max-width: 900px) {
    .modal-header { align-items: flex-start; }
    .modal-header-main { gap: 15px; }
    .modal-header-action { width: 100%; padding-right: 0; margin-top: 10px; }
    .modal-app-version { justify-content: flex-start; }
    .feature-list { grid-template-columns: 1fr; }
    .modal-app-icon { width: 80px; height: 80px; }
}