:root {
    --bg: #080c13;
    --bg-soft: #0d121c;
    --card: #101722;
    --card-hover: #141c29;

    --text: #f4f7fb;
    --muted: #8d9bb1;
    --muted-light: #aeb9ca;

    --accent: #5b8cff;
    --accent-light: #79a1ff;

    --green: #55e6aa;

    --border: rgba(255, 255, 255, 0.09);
    --border-blue: rgba(91, 140, 255, 0.30);

    --max: 1180px;

    --sans: "DM Sans", sans-serif;
    --mono: "Space Mono", monospace;
}


/* =========================
   RESET
========================= */

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    line-height: 1.6;
    overflow-x: hidden;
}

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

button {
    font: inherit;
}

img {
    max-width: 100%;
}

.container {
    width: min(92%, var(--max));
    margin: 0 auto;
}


/* =========================
   SCROLLBAR
========================= */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: #202b3c;
    border-radius: 20px;
}


/* =========================
   CURSOR GLOW
========================= */

.cursor-glow {
    position: fixed;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(
        circle,
        rgba(91, 140, 255, 0.07),
        transparent 65%
    );
    transform: translate(-50%, -50%);
    z-index: 0;
}


/* =========================
   NAVBAR
========================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 78px;

    display: flex;
    align-items: center;

    background: rgba(8, 12, 19, 0.84);
    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(18px);

    z-index: 1000;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--mono);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.logo span {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    position: relative;

    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 500;

    transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
}

.nav-link.active::after {
    content: "";

    position: absolute;
    left: 50%;
    bottom: -11px;

    width: 4px;
    height: 4px;

    background: var(--accent);
    border-radius: 50%;

    transform: translateX(-50%);
}

.menu-toggle {
    display: none;

    background: transparent;
    border: none;

    color: var(--text);
    font-size: 1.2rem;

    cursor: pointer;
}


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

.hero {
    position: relative;
    min-height: 100vh;

    display: flex;
    align-items: center;

    padding: 150px 0 90px;

    overflow: hidden;
}

.hero-grid {
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(91, 140, 255, 0.045) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(91, 140, 255, 0.045) 1px,
            transparent 1px
        );

    background-size: 70px 70px;

    mask-image: linear-gradient(
        to bottom,
        black,
        transparent 90%
    );

    pointer-events: none;
}

.orb {
    position: absolute;

    border-radius: 50%;

    filter: blur(90px);

    pointer-events: none;
}

.orb-one {
    width: 300px;
    height: 300px;

    top: 15%;
    left: -120px;

    background: rgba(91, 140, 255, 0.10);
}

.orb-two {
    width: 250px;
    height: 250px;

    right: -100px;
    bottom: 10%;

    background: rgba(65, 120, 255, 0.08);
}

.hero-layout {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: 1.05fr 0.95fr;

    align-items: center;

    gap: 80px;
}

.hero-copy {
    max-width: 690px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 22px;

    color: var(--accent-light);

    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 700;

    letter-spacing: 2px;
}

.eyebrow-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;
    background: var(--green);

    box-shadow: 0 0 12px rgba(85, 230, 170, 0.7);
}

.name-heading {
    font-size: clamp(3.5rem, 7vw, 6.4rem);

    line-height: 0.95;

    letter-spacing: -5px;

    margin-bottom: 22px;
}

.name-heading span {
    color: var(--accent);
}

.hero-role {
    max-width: 700px;

    font-size: clamp(1.7rem, 3vw, 2.7rem);

    line-height: 1.15;

    font-weight: 500;

    color: #dce4f0;
}

.hero-role em {
    color: var(--accent-light);
    font-style: normal;
}

.hero-description {
    max-width: 630px;

    margin-top: 28px;

    color: var(--muted-light);

    font-size: 1rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    margin-top: 34px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-height: 48px;

    padding: 0 22px;

    border-radius: 7px;

    font-size: 0.82rem;
    font-weight: 600;

    transition: 0.3s ease;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.hero-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    margin-top: 40px;
}

.hero-tools span {
    padding: 6px 10px;

    border: 1px solid var(--border);

    border-radius: 4px;

    color: var(--muted);

    font-family: var(--mono);
    font-size: 0.62rem;
}


/* =========================
   HERO PHOTO
========================= */

.hero-photo {
    position: relative;

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

    min-height: 500px;
}

.photo-frame {
    position: relative;

    width: min(380px, 100%);

    aspect-ratio: 5 / 5.9;

    overflow: hidden;

    border-radius: 16px;

    border: 1px solid var(--border-blue);

    background: var(--card);

    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.45),
        0 0 70px rgba(91, 140, 255, 0.08);

    transform: rotate(1deg);
}

.photo-frame img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center 25%;
}

.photo-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(8, 12, 19, 0.45),
            transparent 40%
        );
}

.photo-label {
    position: absolute;

    right: -5px;
    bottom: 35px;

    padding: 13px 18px;

    background: rgba(13, 18, 28, 0.92);

    border: 1px solid var(--border-blue);

    border-radius: 7px;

    font-family: var(--mono);

    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
}

.photo-label span {
    display: block;

    color: var(--muted);

    font-size: 0.55rem;

    letter-spacing: 2px;
}

.photo-label strong {
    display: block;

    margin-top: 2px;

    color: var(--accent-light);

    font-size: 0.75rem;
}


/* =========================
   SECTIONS
========================= */

.section {
    position: relative;

    padding: 120px 0;
}

.section-alt {
    background: var(--bg-soft);

    border-top: 1px solid rgba(255, 255, 255, 0.025);
    border-bottom: 1px solid rgba(255, 255, 255, 0.025);
}

.section-heading {
    display: grid;
    grid-template-columns: 60px 1fr;

    gap: 20px;

    align-items: start;

    margin-bottom: 65px;
}

.section-number {
    color: var(--accent);

    font-family: var(--mono);
    font-size: 0.72rem;

    padding-top: 9px;
}

.section-label {
    color: var(--accent-light);

    font-family: var(--mono);
    font-size: 0.66rem;
    font-weight: 700;

    letter-spacing: 2px;
}

.section-heading h2 {
    margin-top: 10px;

    font-size: clamp(2.2rem, 4vw, 4rem);

    line-height: 1;

    letter-spacing: -2px;
}


/* =========================
   ABOUT
========================= */

.about-grid {
    display: grid;

    grid-template-columns: 1.15fr 0.85fr;

    gap: 100px;
}

.about-main {
    max-width: 720px;
}

.about-main p {
    color: var(--muted);

    line-height: 1.85;

    margin-top: 20px;
}

.about-main .large-text {
    margin-top: 0;

    color: var(--text);

    font-size: 1.5rem;
    line-height: 1.55;
}

.about-details {
    display: flex;
    flex-direction: column;

    gap: 20px;
}

.detail-item {
    display: grid;
    grid-template-columns: 40px 1fr;

    gap: 15px;

    padding: 20px;

    border: 1px solid var(--border);

    border-radius: 9px;

    background: rgba(16, 23, 34, 0.45);
}

.detail-item > span {
    color: var(--accent);

    font-family: var(--mono);
    font-size: 0.65rem;
}

.detail-item strong {
    font-size: 0.95rem;
}

.detail-item p {
    margin-top: 4px;

    color: var(--muted);

    font-size: 0.82rem;
}


/* =========================
   SKILLS
========================= */

.skills-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 15px;
}

.skill-card {
    padding: 28px 24px;

    border: 1px solid var(--border);

    border-radius: 10px;

    background: rgba(16, 23, 34, 0.65);

    transition: 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);

    border-color: var(--border-blue);

    background: var(--card-hover);
}

.skill-icon {
    width: 44px;
    height: 44px;

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

    margin-bottom: 22px;

    border: 1px solid var(--border-blue);

    border-radius: 8px;

    color: var(--accent-light);

    font-size: 1.1rem;
}

.skill-card h3 {
    font-size: 1.05rem;
}

.skill-card p {
    margin-top: 10px;

    color: var(--muted);

    font-size: 0.82rem;
    line-height: 1.7;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;

    gap: 6px;

    margin-top: 22px;
}

.skill-tags span,
.app-tags span {
    padding: 5px 8px;

    border: 1px solid var(--border);

    border-radius: 4px;

    color: var(--muted);

    font-family: var(--mono);
    font-size: 0.57rem;
}


/* =========================
   PROJECTS
========================= */

.project-list {
    border-top: 1px solid var(--border);
}

.project-row {
    display: grid;

    grid-template-columns: 70px 1fr 180px;

    gap: 30px;

    padding: 35px 0;

    border-bottom: 1px solid var(--border);

    transition: 0.3s ease;
}

.project-row:hover {
    padding-left: 10px;
}

.project-number {
    color: var(--accent);

    font-family: var(--mono);
    font-size: 0.7rem;
}

.project-type {
    color: var(--accent-light);

    font-family: var(--mono);
    font-size: 0.58rem;

    letter-spacing: 1.5px;
}

.project-content h3 {
    margin-top: 8px;

    font-size: 1.4rem;
}

.project-content p {
    max-width: 680px;

    margin-top: 10px;

    color: var(--muted);

    font-size: 0.87rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: flex-start;
    gap: 8px;

    color: var(--accent-light);

    font-family: var(--mono);
    font-size: 0.62rem;

    line-height: 1.2;
}


/* Individual tool badges */
.project-tech span {
    display: inline-flex;
    align-items: center;

    opacity: 1;
    transform: translateY(0);

    padding: 7px 10px;
    border: 1px solid rgba(91, 140, 255, 0.28);
    border-radius: 5px;
    background: rgba(91, 140, 255, 0.06);
    color: #9bb7ff;

    font-family: var(--mono);
    font-size: 0.62rem;
    font-weight: 400;

    white-space: nowrap;

    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}
}


/* Highlight on hover */
.project-tech span:hover {
    color: #ffffff;

    background: rgba(91, 140, 255, 0.13);

    border-color: rgba(91, 140, 255, 0.7);

    box-shadow:
        0 0 0 1px rgba(91, 140, 255, 0.08),
        0 0 18px rgba(91, 140, 255, 0.16);

    transform: translateY(-2px);
}
}


/* =========================
   LIVE APPS
========================= */

.apps-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 15px;
}

.app-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-height: 445px;

    padding: 30px;

    background:
        radial-gradient(
            circle at top right,
            rgba(91, 140, 255, 0.09),
            transparent 45%
        ),
        rgba(16, 23, 34, 0.72);

    border: 1px solid var(--border);

    border-radius: 12px;

    transition: 0.3s ease;
}

.app-card:hover {
    transform: translateY(-5px);

    border-color: var(--border-blue);

    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.22);
}

.app-top {
    display: flex;

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

    margin-bottom: 34px;
}

.app-number {
    color: #6f82a3;

    font-family: var(--mono);
    font-size: 0.65rem;
}

.app-status {
    display: flex;
    align-items: center;

    gap: 7px;

    font-family: var(--mono);
    font-size: 0.6rem;
    font-weight: 700;

    letter-spacing: 1px;
}

.app-status.live {
    color: var(--green);
}

.app-status.live i {
    font-size: 0.4rem;
}

.project-status {
    color: var(--accent-light);
}

.app-icon {
    width: 55px;
    height: 55px;

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

    margin-bottom: 22px;

    border: 1px solid var(--border-blue);

    border-radius: 10px;

    color: var(--accent-light);

    font-size: 1.3rem;
}

.app-card h3 {
    font-size: 1.25rem;

    line-height: 1.3;
}

.app-card p {
    margin-top: 12px;

    color: var(--muted);

    font-size: 0.82rem;

    line-height: 1.7;
}

.app-tags {
    display: flex;
    flex-wrap: wrap;

    gap: 6px;

    margin-top: 22px;
}

.app-actions {
    margin-top: auto;

    padding-top: 30px;
}

.app-btn {
    width: 100%;

    min-height: 44px;

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

    gap: 10px;

    border-radius: 6px;

    font-family: var(--mono);

    font-size: 0.65rem;
    font-weight: 700;

    transition: 0.25s ease;
}

.app-btn.primary {
    background: var(--accent);

    color: white;
}

.app-btn.primary:hover {
    background: var(--accent-light);

    transform: translateY(-2px);

    box-shadow: 0 10px 30px rgba(91, 140, 255, 0.22);
}


/* =========================
   CERTIFICATIONS
========================= */

.certification-box {
    display: flex;
    align-items: center;

    gap: 25px;

    padding: 30px;

    border: 1px solid var(--border);

    border-radius: 10px;

    background: rgba(16, 23, 34, 0.5);
}

.cert-icon {
    width: 55px;
    height: 55px;

    flex-shrink: 0;

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

    border: 1px solid var(--border-blue);

    border-radius: 9px;

    color: var(--accent-light);
}

.certification-box h3 {
    font-size: 1.1rem;
}

.certification-box p {
    margin-top: 7px;

    color: var(--muted);

    font-size: 0.85rem;
}


/* =========================
   CONTACT
========================= */

.contact-section {
    min-height: 70vh;

    display: flex;
    align-items: center;
}

.contact-content {
    max-width: 850px;
}

.contact-content h2 {
    margin-top: 15px;

    font-size: clamp(3rem, 7vw, 6rem);

    line-height: 0.95;

    letter-spacing: -4px;
}

.contact-content h2 em {
    color: var(--accent-light);

    font-style: normal;
}

.contact-content > p {
    max-width: 650px;

    margin-top: 25px;

    color: var(--muted);

    font-size: 1rem;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 32px;
}


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

.footer {
    padding: 35px 0;

    border-top: 1px solid var(--border);
}

.footer-container {
    display: flex;

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

    gap: 20px;
}

.footer-logo {
    font-family: var(--mono);

    font-weight: 700;
}

.footer-logo span {
    color: var(--accent);
}

.footer p {
    margin-top: 5px;

    color: var(--muted);

    font-size: 0.7rem;
}


/* =========================
   REVEAL ANIMATION
========================= */

.reveal {
    opacity: 0;

    transform: translateY(25px);

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

.reveal.visible {
    opacity: 1;

    transform: translateY(0);
}

.delay {
    transition-delay: 0.15s;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1000px) {

    .nav-menu {
        gap: 20px;
    }

    .hero-layout {
        gap: 45px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .apps-grid {
        grid-template-columns: 1fr;
    }

    .app-card {
        min-height: auto;
    }

    .about-grid {
        gap: 50px;
    }
}


@media (max-width: 760px) {

    .navbar {
        height: 70px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;

        top: 70px;
        left: 0;

        width: 100%;

        display: none;
        flex-direction: column;
        align-items: flex-start;

        gap: 0;

        padding: 10px 4% 20px;

        background: rgba(8, 12, 19, 0.98);

        border-bottom: 1px solid var(--border);
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-link {
        width: 100%;

        padding: 13px 0;
    }

    .nav-link.active::after {
        display: none;
    }

    .hero {
        padding-top: 125px;
    }

    .hero-layout {
        grid-template-columns: 1fr;

        gap: 55px;
    }

    .hero-copy {
        text-align: left;
    }

    .name-heading {
        font-size: clamp(3.2rem, 16vw, 5rem);

        letter-spacing: -3px;
    }

    .hero-role {
        font-size: 1.65rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .hero-photo {
        min-height: auto;

        justify-content: flex-start;
    }

    .photo-frame {
        width: min(330px, 85%);
    }

    .photo-label {
        right: 3%;
        bottom: 20px;
    }

    .section {
        padding: 85px 0;
    }

    .section-heading {
        grid-template-columns: 45px 1fr;

        margin-bottom: 45px;
    }

    .section-heading h2 {
        font-size: 2.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .project-row {
        grid-template-columns: 40px 1fr;

        gap: 15px;
    }

    .project-tech {
        grid-column: 2;
    }

    .contact-content h2 {
        font-size: 3.4rem;

        letter-spacing: -2px;
    }

    .footer-container {
        flex-direction: column;
        align-items: flex-start;
    }
}


@media (max-width: 480px) {

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .hero-tools {
        gap: 6px;
    }

    .hero-tools span {
        font-size: 0.53rem;
    }

    .app-card {
        padding: 24px;
    }

    .certification-box {
        align-items: flex-start;
        flex-direction: column;
    }
}
/* =========================================
   FLOWSTATE SCROLL EXPERIENCE
========================================= */

/* Smooth section transitions */
section {
    position: relative;
    isolation: isolate;
}


/* Scroll reveal */
[data-scroll] {
    opacity: 0;
    transform: translateY(55px);
    transition:
        opacity 0.9s cubic-bezier(.22, 1, .36, 1),
        transform 1s cubic-bezier(.22, 1, .36, 1);
}

[data-scroll].is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* Directional reveals */
[data-scroll="left"] {
    transform: translateX(-70px);
}

[data-scroll="right"] {
    transform: translateX(70px);
}

[data-scroll="scale"] {
    transform: scale(.92);
}

[data-scroll].is-visible[data-scroll="left"],
[data-scroll].is-visible[data-scroll="right"] {
    transform: translateX(0);
}

[data-scroll].is-visible[data-scroll="scale"] {
    transform: scale(1);
}


/* =========================================
   HERO PARALLAX
========================================= */

.hero-copy {
    will-change: transform;
}

.hero-photo {
    will-change: transform;
}


/* =========================================
   BACKGROUND FLOW
========================================= */

.hero-grid {
    will-change: transform;
    transition: opacity .3s ease;
}

.orb {
    will-change: transform;
}


/* =========================================
   SECTION HEADINGS
========================================= */

.section-heading {
    transition:
        transform .7s cubic-bezier(.22, 1, .36, 1),
        opacity .7s ease;
}

.section-heading .section-number {
    transition:
        transform .7s cubic-bezier(.22, 1, .36, 1),
        color .3s ease;
}

.section-heading:hover .section-number {
    color: var(--accent-light);
    transform: translateX(6px);
}


/* =========================================
   PROJECT ROW INTERACTION
========================================= */

.project-row {
    position: relative;
    overflow: hidden;

    transition:
        transform .6s cubic-bezier(.22, 1, .36, 1),
        padding-left .5s ease,
        background .5s ease;
}

.project-row::before {
    content: "";

    position: absolute;
    left: 0;
    top: 0;

    width: 2px;
    height: 100%;

    background: var(--accent);

    transform: scaleY(0);
    transform-origin: top;

    transition: transform .6s cubic-bezier(.22, 1, .36, 1);
}

.project-row.is-active {
    background: rgba(91, 140, 255, .025);
    padding-left: 18px;
}

.project-row.is-active::before {
    transform: scaleY(1);
}

.project-row.is-active .project-number {
    color: var(--accent-light);
}


/* =========================================
   PROJECT TOOLS
========================================= */

.project-tech span {
    opacity: 0;
    transform: translateY(10px);

    transition:
        opacity .45s ease,
        transform .45s cubic-bezier(.22, 1, .36, 1),
        background .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}

.project-row.is-active .project-tech span {
    opacity: 1;
    transform: translateY(0);
}

.project-row.is-active .project-tech span:nth-child(1) {
    transition-delay: .05s;
}

.project-row.is-active .project-tech span:nth-child(2) {
    transition-delay: .12s;
}

.project-row.is-active .project-tech span:nth-child(3) {
    transition-delay: .19s;
}

.project-row.is-active .project-tech span:nth-child(4) {
    transition-delay: .26s;
}


/* =========================================
   APP CARDS
========================================= */

.app-card {
    will-change: transform;
    transition:
        transform .65s cubic-bezier(.22, 1, .36, 1),
        border-color .3s ease,
        box-shadow .4s ease;
}

.app-card:nth-child(1) {
    transition-delay: .05s;
}

.app-card:nth-child(2) {
    transition-delay: .13s;
}

.app-card:nth-child(3) {
    transition-delay: .21s;
}


/* =========================================
   APP ICON FLOW
========================================= */

.app-icon {
    transition:
        transform .5s cubic-bezier(.22, 1, .36, 1),
        border-color .3s ease,
        box-shadow .3s ease;
}

.app-card.is-active .app-icon {
    transform: translateY(-5px) rotate(-3deg);

    border-color: rgba(91, 140, 255, .55);

    box-shadow:
        0 10px 30px rgba(91, 140, 255, .12);
}


/* =========================================
   HERO TOOLS
========================================= */

.hero-tools span {
    transition:
        transform .3s ease,
        border-color .3s ease,
        color .3s ease,
        background .3s ease;
}

.hero-tools span:hover {
    transform: translateY(-3px);

    color: white;

    border-color: rgba(91, 140, 255, .5);

    background: rgba(91, 140, 255, .07);
}


/* =========================================
   PHOTO PARALLAX FRAME
========================================= */

.photo-frame {
    will-change: transform;
}


/* =========================================
   SCROLL PROGRESS LINE
========================================= */

.scroll-progress {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 2px;

    background: rgba(255,255,255,.04);

    z-index: 2000;
}

.scroll-progress-bar {
    width: 0;
    height: 100%;

    background: var(--accent);

    transform-origin: left;

    box-shadow: 0 0 12px rgba(91, 140, 255, .5);
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 760px) {

    [data-scroll="left"],
    [data-scroll="right"] {
        transform: translateY(35px);
    }

    [data-scroll].is-visible[data-scroll="left"],
    [data-scroll].is-visible[data-scroll="right"] {
        transform: translateY(0);
    }

    .project-row.is-active {
        padding-left: 8px;
    }

}


/* =========================================
   ACCESSIBILITY
========================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    [data-scroll],
    [data-scroll="left"],
    [data-scroll="right"],
    [data-scroll="scale"] {
        opacity: 1;
        transform: none;
    }

}
/* =========================================
   DATA DETECTIVE
========================================= */

.detective-section {
    background:
        radial-gradient(
            circle at 80% 30%,
            rgba(91, 140, 255, 0.06),
            transparent 35%
        );
}

.detective-intro {
    max-width: 700px;
    margin-bottom: 45px;
}

.detective-kicker {
    color: var(--accent-light) !important;
    font-family: var(--mono);
    font-size: 0.62rem !important;
    letter-spacing: 2px;
    font-weight: 700;
}

.detective-intro h3 {
    margin-top: 10px;

    font-size: clamp(2rem, 4vw, 3.4rem);

    line-height: 1;

    letter-spacing: -2px;
}

.detective-intro > p:last-child {
    margin-top: 18px;

    color: var(--muted);

    max-width: 560px;
}


/* Game container */

.detective-game {
    max-width: 1050px;
    margin: 0 auto;

    padding: 30px;

    border: 1px solid var(--border-blue);

    border-radius: 14px;

    background:
        radial-gradient(
            circle at top right,
            rgba(91, 140, 255, 0.08),
            transparent 35%
        ),
        rgba(16, 23, 34, 0.78);

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.22);
}


/* Header */

.detective-header {
    display: flex;
    justify-content: space-between;

    padding-bottom: 25px;

    border-bottom: 1px solid var(--border);
}

.detective-header div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detective-header span {
    color: var(--muted);

    font-family: var(--mono);
    font-size: 0.55rem;

    letter-spacing: 1.5px;
}

.detective-header strong {
    color: var(--accent-light);

    font-family: var(--mono);
    font-size: 0.8rem;
}


/* Question */

.detective-question {
    padding: 30px 0 25px;
}

.detective-label {
    color: var(--accent-light);

    font-family: var(--mono);
    font-size: 0.58rem;

    letter-spacing: 2px;
}

.detective-question h4 {
    max-width: 700px;

    margin-top: 9px;

    font-size: 1.2rem;

    font-weight: 500;
}


/* Table */

.detective-table-wrap {
    width: 100%;

    overflow-x: auto;

    border: 1px solid var(--border);

    border-radius: 8px;
}

.detective-table {
    width: 100%;

    border-collapse: collapse;

    min-width: 550px;
}

.detective-table th {
    padding: 13px 16px;

    background: rgba(91, 140, 255, 0.06);

    color: var(--accent-light);

    font-family: var(--mono);

    font-size: 0.58rem;

    font-weight: 400;

    text-align: left;

    border-bottom: 1px solid var(--border);
}

.detective-table td {
    position: relative;

    padding: 15px 16px;

    color: var(--muted-light);

    font-size: 0.78rem;

    border-bottom: 1px solid rgba(255,255,255,.05);

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease;
}

.detective-table tr:last-child td {
    border-bottom: none;
}

.detective-table td:hover {
    background: rgba(91, 140, 255, 0.06);

    color: white;
}

.detective-table td.selectable {
    cursor: crosshair;
}


/* Selected answers */

.detective-table td.correct {
    background: rgba(85, 230, 170, 0.10);

    color: var(--green);

    box-shadow:
        inset 0 0 0 1px rgba(85, 230, 170, 0.35);
}

.detective-table td.wrong {
    background: rgba(255, 90, 110, 0.08);

    color: #ff8c9c;

    box-shadow:
        inset 0 0 0 1px rgba(255, 90, 110, 0.25);
}


/* Message */

.detective-message {
    min-height: 25px;

    margin-top: 20px;

    color: var(--muted);

    font-family: var(--mono);

    font-size: 0.62rem;
}

.detective-message.success {
    color: var(--green);
}

.detective-message.error {
    color: #ff8c9c;
}


/* Footer */

.detective-footer {
    display: flex;

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

    gap: 20px;

    margin-top: 15px;
}

#detectiveProgress {
    color: var(--muted);

    font-family: var(--mono);

    font-size: 0.58rem;
}

.detective-next,
.detective-restart {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    min-height: 44px;

    padding: 0 18px;

    border: 1px solid var(--border-blue);

    border-radius: 6px;

    background: var(--accent);

    color: white;

    font-family: var(--mono);

    font-size: 0.62rem;

    cursor: pointer;

    transition: .25s ease;
}

.detective-next:hover:not(:disabled),
.detective-restart:hover {
    background: var(--accent-light);

    transform: translateY(-2px);
}

.detective-next:disabled {
    opacity: .35;

    cursor: not-allowed;
}


/* Result */

.detective-result {
    display: none;

    max-width: 700px;

    margin: 50px auto 0;

    padding: 45px;

    text-align: center;

    border: 1px solid var(--border-blue);

    border-radius: 12px;

    background: rgba(16, 23, 34, .75);
}

.detective-result.show {
    display: block;

    animation: detectiveResult .7s
        cubic-bezier(.22, 1, .36, 1);
}

@keyframes detectiveResult {

    from {
        opacity: 0;
        transform: translateY(25px) scale(.97);
    }

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

}

.detective-result-score {
    margin: 20px 0 5px;
}

.detective-result-score strong {
    color: var(--accent-light);

    font-size: 4rem;

    line-height: 1;
}

.detective-result-score span {
    color: var(--muted);

    font-family: var(--mono);
}

.detective-result h3 {
    margin-top: 12px;

    font-size: 1.5rem;
}

.detective-result p {
    margin: 12px auto 25px;

    max-width: 500px;

    color: var(--muted);

    font-size: .85rem;
}


/* Mobile */

@media (max-width: 650px) {

    .detective-game {
        padding: 20px;
    }

    .detective-question h4 {
        font-size: 1rem;
    }

    .detective-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .detective-next {
        width: 100%;
    }

    .detective-result {
        padding: 30px 20px;
    }

}
/* Always show project tool badges */
.project-tech span {
    opacity: 1 !important;
    transform: translateY(0) !important;
}
/* =========================================
   CERTIFICATIONS
========================================= */

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}


/* Certification Card */

.certification-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-height: 360px;

    padding: 30px;

    background:
        radial-gradient(
            circle at top right,
            rgba(91, 140, 255, 0.09),
            transparent 45%
        ),
        rgba(16, 23, 34, 0.72);

    border: 1px solid var(--border);

    border-radius: 12px;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}


/* Hover */

.certification-card:hover {
    transform: translateY(-6px);

    border-color: var(--border-blue);

    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.22),
        0 0 30px rgba(91, 140, 255, 0.05);
}


/* Top */

.certification-top {
    display: flex;

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

    margin-bottom: 30px;
}


/* Icon */

.cert-icon {
    width: 52px;
    height: 52px;

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

    border: 1px solid var(--border-blue);

    border-radius: 9px;

    background: rgba(91, 140, 255, 0.04);

    color: var(--accent-light);

    font-size: 1.1rem;
}


/* Date */

.certification-date {
    color: #6f82a3;

    font-family: var(--mono);

    font-size: 0.6rem;

    letter-spacing: 1.5px;
}


/* Content */

.certification-content {
    flex: 1;
}


/* Small Label */

.certification-type {
    color: var(--accent-light);

    font-family: var(--mono);

    font-size: 0.58rem;

    font-weight: 700;

    letter-spacing: 1.5px;
}


/* Title */

.certification-card h3 {
    margin-top: 10px;

    font-size: 1.35rem;

    line-height: 1.3;
}


/* Issuer */

.certification-issuer {
    margin-top: 5px;

    color: var(--muted-light);

    font-size: 0.85rem;

    font-weight: 500;
}


/* Description */

.certification-description {
    max-width: 520px;

    margin-top: 18px;

    color: var(--muted);

    font-size: 0.82rem;

    line-height: 1.75;
}


/* Footer */

.certification-footer {
    display: flex;

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

    gap: 15px;

    margin-top: 28px;

    padding-top: 20px;

    border-top: 1px solid var(--border);

    color: #6f82a3;

    font-family: var(--mono);

    font-size: 0.55rem;
}


/* Credential ID */

.certification-footer span {
    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}


.certification-footer strong {
    color: var(--muted-light);

    font-weight: 400;
}


/* Verify Button */

.certification-footer a {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    flex-shrink: 0;

    color: var(--accent-light);

    font-family: var(--mono);

    font-size: 0.6rem;

    font-weight: 700;

    transition: 0.25s ease;
}


.certification-footer a:hover {
    color: var(--text);

    transform: translateX(3px);
}


/* =========================================
   CERTIFICATIONS — MOBILE
========================================= */

@media (max-width: 760px) {

    .certifications-grid {
        grid-template-columns: 1fr;
    }

    .certification-card {
        min-height: auto;

        padding: 24px;
    }

    .certification-footer {
        align-items: flex-start;

        flex-direction: column;

        gap: 12px;
    }

    .certification-footer span {
        white-space: normal;

        overflow: visible;
    }

}
