/* =========================================================
   JEFFDESIGN
   Main Stylesheet
   Social Media Manager Portfolio
========================================================= */


/* =========================================================
   1. THEME VARIABLES
========================================================= */

:root {
    --bg: #E8EDF5;
    --panel: #EDF2F8;

    --text: #1c2434;
    --muted: #667085;

    --accent: #7668FF;
    --accent-2: #9b91ff;

    --shadow-dark: rgba(163, 177, 198, 0.52);
    --shadow-light: rgba(255, 255, 255, 0.92);

    --border: rgba(255, 255, 255, 0.5);

    --max: 1240px;
}


/* DARK MODE */

html[data-theme="dark"] {
    --bg: #171a22;
    --panel: #1d212b;

    --text: #f4f6fa;
    --muted: #aab2c0;

    --shadow-dark: rgba(0, 0, 0, 0.45);
    --shadow-light: rgba(255, 255, 255, 0.035);

    --border: rgba(255, 255, 255, 0.06);
}


/* =========================================================
   2. GLOBAL
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    background: var(--bg);
    color: var(--text);

    font-family: Inter, system-ui, sans-serif;

    transition:
        background 0.3s ease,
        color 0.3s ease;
}

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

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

button,
input,
textarea {
    font: inherit;
}

button {
    color: inherit;
}

.shell {
    width: min(var(--max), calc(100% - 40px));
    margin-inline: auto;
}


/* =========================================================
   3. REUSABLE NEUMORPHIC CARD
========================================================= */

.neu-card {
    background: var(--panel);

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

    box-shadow:
        14px 14px 30px var(--shadow-dark),
        -14px -14px 30px var(--shadow-light);
}


/* =========================================================
   4. HEADER
========================================================= */

.site-header {
    position: sticky;

    top: 14px;
    z-index: 50;

    width: min(var(--max), calc(100% - 28px));

    min-height: 62px;

    margin: 14px auto 0;

    padding: 10px 16px 10px 22px;

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

    gap: 24px;

    border-radius: 22px;

    background:
        color-mix(
            in srgb,
            var(--panel) 88%,
            transparent
        );

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

    box-shadow:
        8px 8px 20px var(--shadow-dark),
        -8px -8px 20px var(--shadow-light);
}

.brand {
    font:
        800 1.2rem
        Manrope,
        sans-serif;
}

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


/* NAVIGATION */

.nav {
    display: flex;
    gap: 26px;

    font-size: 0.94rem;
}

.nav a {
    position: relative;

    color: var(--muted);

    transition:
        color 0.2s ease;
}

.nav a:hover {
    color: var(--accent);
}

.nav a.active {
    color: var(--accent);
    font-weight: 700;
}

.nav a.active::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: -10px;

    height: 2px;

    border-radius: 2px;

    background: var(--accent);
}


/* HEADER BUTTONS */

.header-actions {
    display: flex;
    gap: 10px;
}

.icon-btn {
    width: 42px;
    height: 42px;

    border: 0;
    border-radius: 14px;

    background: var(--panel);
    color: var(--text);

    box-shadow:
        4px 4px 10px var(--shadow-dark),
        -4px -4px 10px var(--shadow-light);

    cursor: pointer;

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

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

.mobile-menu-btn {
    display: none;
}


/* =========================================================
   5. HERO SECTION
========================================================= */

.hero {
    padding:
        64px 0
        26px;

    display: grid;

    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(300px, 0.65fr);

    gap: 28px;

    align-items: stretch;
}

.hero-copy {
    padding:
        clamp(
            34px,
            4.5vw,
            58px
        );
}

.eyebrow {
    display: inline-block;

    color: var(--accent);

    font-size: 0.76rem;
    font-weight: 800;

    letter-spacing: 0.18em;

    text-transform: uppercase;
}

.hero h1,
.page-top h1,
.section h2 {
    font-family:
        Manrope,
        sans-serif;

    line-height: 1.04;

    margin: 14px 0;
}

.hero h1 {
    max-width: 900px;

    font-size:
        clamp(
            3rem,
            6.3vw,
            5.8rem
        );

    letter-spacing: -0.055em;
}

.hero h2 {
    max-width: 760px;

    margin:
        0 0
        20px;

    font-size:
        clamp(
            1.15rem,
            2.1vw,
            1.85rem
        );
}

.hero p,
.section p {
    color: var(--muted);

    line-height: 1.75;
}

.hero-copy > p {
    max-width: 760px;
}


/* HERO BUTTONS */

.hero-actions {
    margin-top: 28px;

    display: flex;

    gap: 12px;

    flex-wrap: wrap;
}

.btn {
    min-height: 48px;

    padding:
        0 20px;

    border: 0;
    border-radius: 16px;

    background: var(--panel);
    color: var(--text);

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

    font-weight: 700;

    box-shadow:
        6px 6px 14px var(--shadow-dark),
        -6px -6px 14px var(--shadow-light);

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.btn:hover {
    transform:
        translateY(-2px);
}

.btn.primary {
    background:
        linear-gradient(
            135deg,
            var(--accent),
            var(--accent-2)
        );

    color: #fff;

    box-shadow:
        0 12px 26px
        rgba(118, 104, 255, 0.28);
}

.text-btn {
    box-shadow: none;
}


/* HERO PROFILE */

.hero-profile {
    min-height: 100%;

    padding: 20px;

    display: flex;
    flex-direction: column;

    justify-content:
        space-between;
}

.profile-frame {
    min-height: 420px;

    aspect-ratio: 4 / 5;

    border-radius: 24px;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #d7dce5,
            #f8fbff
        );
}

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

    object-fit: cover;
}

.profile-placeholder {
    height: 100%;

    display: grid;

    place-items: center;

    align-content: center;

    gap: 12px;

    text-align: center;
}

.profile-placeholder span {
    font:
        800 4rem
        Manrope;

    color: var(--accent);
}

.profile-placeholder small {
    color: var(--muted);

    font-size: 0.78rem;
    font-weight: 700;
}

.profile-meta {
    display: grid;

    gap: 7px;

    padding-top: 14px;
}

.availability {
    padding:
        16px 4px
        2px;

    display: flex;

    align-items: center;

    gap: 10px;

    font-size: 0.9rem;
}

.availability span {
    width: 10px;
    height: 10px;

    border-radius: 50%;

    background: #2ecc71;

    box-shadow:
        0 0 0 5px
        rgba(46, 204, 113, 0.14);
}

.location-line {
    padding-left: 20px;

    color: var(--muted);

    font-size: 0.84rem;
}


/* =========================================================
   6. QUICK FEATURE CARDS
========================================================= */

.quick-grid {
    display: grid;

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

    gap: 18px;

    padding:
        12px 0
        34px;
}

.mini-card {
    min-height: 126px;

    padding:
        22px 24px;

    border-radius: 22px;

    background: var(--panel);

    box-shadow:
        8px 8px 18px var(--shadow-dark),
        -8px -8px 18px var(--shadow-light);

    display: flex;

    align-items: center;

    gap: 16px;

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

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

    box-shadow:
        12px 12px 24px var(--shadow-dark),
        -12px -12px 24px var(--shadow-light);
}


/* QUICK CARD ICON */

.mini-icon {
    width: 50px;
    height: 50px;

    min-width: 50px;

    border-radius: 16px;

    display: grid;

    place-items: center;

    color: var(--accent);

    background: var(--panel);

    box-shadow:
        inset 3px 3px 8px var(--shadow-dark),
        inset -3px -3px 8px var(--shadow-light);
}

.mini-icon svg {
    width: 23px;
    height: 23px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.8;

    stroke-linecap: round;
    stroke-linejoin: round;
}

.mini-card-text {
    display: flex;

    flex-direction: column;

    gap: 3px;
}

.mini-card strong {
    font:
        800 1rem
        Manrope;
}

.mini-card span {
    color: var(--muted);

    font-size: 0.9rem;
}


/* =========================================================
   7. GENERAL SECTIONS
========================================================= */

.section {
    padding:
        54px 0;
}

.section-heading {
    max-width: 760px;

    margin-bottom: 34px;
}

.compact-heading {
    margin-bottom: 26px;
}

.section h2,
.page-top h1 {
    font-size:
        clamp(
            2rem,
            4.2vw,
            3.65rem
        );

    letter-spacing: -0.04em;
}

.row-heading {
    max-width: none;

    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 24px;
}

.text-link {
    color: var(--accent);

    font-weight: 700;

    white-space: nowrap;
}


/* =========================================================
   8. ABOUT
========================================================= */

.about-grid {
    display: grid;

    grid-template-columns:
        1.4fr
        0.6fr;

    gap: 24px;
}

.content-card,
.bento-note {
    padding: 34px;
}

.bento-note span {
    color: var(--accent);

    font-size: 0.8rem;
    font-weight: 800;
}

.bento-note strong {
    display: block;

    margin:
        10px 0;

    font:
        800 1.6rem
        Manrope;
}


/* =========================================================
   9. SERVICE CARDS
========================================================= */

.card-grid {
    display: grid;

    gap: 22px;
}

.card-grid.three {
    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );
}

.card-grid.four {
    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );
}

.service-card {
    min-height: 215px;

    padding: 28px;

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

.service-card:hover,
.project-card:hover,
.video-card:hover {
    transform:
        translateY(-6px);
}

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

    border-radius: 16px;

    display: grid;

    place-items: center;

    color: var(--accent);

    font-weight: 800;

    background: var(--panel);

    box-shadow:
        inset 3px 3px 8px var(--shadow-dark),
        inset -3px -3px 8px var(--shadow-light);
}

.service-icon svg {
    width: 24px;
    height: 24px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.8;

    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-card h3,
.project-body h3 {
    margin:
        24px 0
        8px;

    font:
        800 1.2rem
        Manrope;
}


/* =========================================================
   10. NORMAL PORTFOLIO / VIDEO GRID
========================================================= */

.portfolio-grid,
.video-grid {
    display: grid;

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

    gap: 24px;
}

.project-card,
.video-card {
    overflow: hidden;

    transition:
        transform 0.25s ease;
}

.project-card > img {
    width: 100%;

    aspect-ratio: 16 / 10;

    object-fit: cover;
}

.project-body {
    padding: 22px;
}

.project-body > span,
.meta-line span:first-child {
    color: var(--accent);

    font-size: 0.76rem;
    font-weight: 800;

    text-transform: uppercase;
}

.project-body p {
    font-size: 0.93rem;
}

.project-body a {
    color: var(--accent);

    font-weight: 700;
}


/* VIDEO CARD */

.video-preview {
    position: relative;

    width: 100%;

    aspect-ratio: 16 / 10;

    padding: 0;

    overflow: hidden;

    border: 0;

    background: #12141a;

    cursor: pointer;
}

.video-preview img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.video-placeholder {
    height: 100%;

    display: grid;

    place-items: center;

    color: #fff;

    letter-spacing: 0.3em;
}

.play-button {
    position: absolute;

    left: 50%;
    top: 50%;

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

    width: 68px;
    height: 68px;

    border-radius: 50%;

    display: grid;

    place-items: center;

    background:
        rgba(
            255,
            255,
            255,
            0.92
        );

    color: var(--accent);

    font-size: 1.3rem;

    box-shadow:
        0 18px 42px
        rgba(0, 0, 0, 0.3);
}

.meta-line {
    display: flex;

    justify-content: space-between;

    gap: 12px;

    color: var(--muted);

    font-size: 0.82rem;
}


/* EMPTY STATE */

.empty-showcase {
    grid-column: 1 / -1;

    min-height: 130px;

    padding: 28px;

    display: flex;

    align-items: center;

    gap: 18px;
}

.empty-showcase .empty-icon {
    flex: 0 0 54px;

    width: 54px;
    height: 54px;

    border-radius: 18px;

    display: grid;

    place-items: center;

    color: var(--accent);

    font-size: 1.2rem;
    font-weight: 800;

    box-shadow:
        inset 3px 3px 8px var(--shadow-dark),
        inset -3px -3px 8px var(--shadow-light);
}

.empty-showcase strong {
    font:
        800 1.08rem
        Manrope;
}

.empty-showcase p {
    margin:
        6px 0
        0;
}


/* =========================================================
   11. 3D FEATURED PROJECT CAROUSEL
========================================================= */

.project-orbit-shell {
    position: relative;

    min-height: 610px;

    display: grid;

    place-items: center;

    overflow: hidden;

    border-radius: 36px;

    perspective: 1500px;

    isolation: isolate;
}

.project-orbit-glow {
    position: absolute;

    width:
        min(
            760px,
            72vw
        );

    height: 210px;

    left: 50%;
    top: 48%;

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

    background:
        radial-gradient(
            ellipse at center,
            rgba(118, 104, 255, 0.26),
            rgba(118, 104, 255, 0.08) 45%,
            transparent 72%
        );

    filter: blur(24px);

    pointer-events: none;
}

.project-orbit {
    position: relative;

    width: 100%;
    height: 520px;

    transform-style: preserve-3d;

    touch-action: pan-y;

    cursor: grab;
}

.project-orbit.is-dragging {
    cursor: grabbing;
}

.orbit-card {
    --orbit-scale: 1;

    position: absolute;

    left: 50%;
    top: 50%;

    width:
        min(
            340px,
            30vw
        );

    min-width: 250px;

    overflow: hidden;

    transform-style: preserve-3d;

    backface-visibility: hidden;

    will-change:
        transform,
        opacity,
        filter;

    transition:
        opacity 0.28s ease,
        filter 0.28s ease,
        box-shadow 0.28s ease;

    border:
        1px solid
        color-mix(
            in srgb,
            var(--accent) 22%,
            var(--border)
        );

    box-shadow:
        0 28px 62px rgba(31, 38, 65, 0.18),
        0 0 0 1px rgba(118, 104, 255, 0.08),
        0 0 34px rgba(118, 104, 255, 0.12);
}

.orbit-card:hover {
    box-shadow:
        0 32px 72px rgba(31, 38, 65, 0.25),
        0 0 42px rgba(118, 104, 255, 0.24);
}

.orbit-card-link {
    display: block;

    height: 100%;
}

.orbit-image-wrap {
    position: relative;

    aspect-ratio: 4 / 3;

    overflow: hidden;

    background: #111;
}

.orbit-image-wrap img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.45s ease;
}

.orbit-card:hover
.orbit-image-wrap img {
    transform:
        scale(1.04);
}

.orbit-category {
    position: absolute;

    left: 14px;
    top: 14px;

    padding:
        8px 11px;

    border-radius: 999px;

    background:
        rgba(
            14,
            18,
            30,
            0.68
        );

    backdrop-filter: blur(10px);

    color: #fff;

    font-size: 0.7rem;
    font-weight: 800;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}

.orbit-card-body {
    padding:
        18px 20px
        20px;
}

.orbit-card-body h3 {
    margin:
        0 0
        8px;

    font:
        800 1.15rem
        Manrope;
}

.orbit-card-body p {
    margin:
        0 0
        12px;

    color: var(--muted);

    font-size: 0.88rem;

    line-height: 1.55;
}

.orbit-view {
    color: var(--accent);

    font-size: 0.84rem;
    font-weight: 800;
}

.orbit-hint {
    position: absolute;

    bottom: 16px;

    margin: 0;

    color: var(--muted);

    font-size: 0.8rem;

    opacity: 0.78;
}


/* =========================================================
   12. EXPERIENCE
========================================================= */

.timeline {
    display: grid;

    gap: 18px;
}

.timeline-item {
    padding:
        28px 32px;

    display: grid;

    grid-template-columns:
        220px 1fr;

    gap: 28px;

    align-items: start;
}

.timeline-date {
    padding-top: 4px;

    color: var(--accent);

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

    letter-spacing: 0.04em;
}

.timeline-content h3 {
    margin:
        0 0
        4px;

    font:
        800 1.26rem
        Manrope;
}

.timeline-content strong {
    color: var(--muted);
}

.timeline-content p {
    margin-bottom: 0;
}


/* =========================================================
   13. GRAMMARLY-STYLE TOOLS MARQUEE
========================================================= */

.tools-marquee-section {
    padding:
        58px 0
        68px;

    overflow: hidden;
}

.tools-heading {
    max-width: none;

    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 24px;
}

.tools-heading h2 {
    max-width: 820px;
}


/* PAUSE BUTTON */

.marquee-pause {
    flex: 0 0 auto;

    width: 46px;
    height: 46px;

    padding: 0;

    border: 0;

    display: grid;

    place-items: center;

    color: var(--text);

    font-weight: 800;

    cursor: pointer;

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

.marquee-pause:hover {
    color: var(--accent);

    transform:
        translateY(-2px);
}


/* MARQUEE CONTAINER */

.tool-marquee {
    position: relative;

    width: 100%;

    overflow: hidden;

    padding:
        20px 0;

    mask-image:
        linear-gradient(
            90deg,
            transparent 0,
            #000 7%,
            #000 93%,
            transparent 100%
        );

    -webkit-mask-image:
        linear-gradient(
            90deg,
            transparent 0,
            #000 7%,
            #000 93%,
            transparent 100%
        );
}

.tool-marquee-secondary {
    margin-top: 4px;
}


/* MOVING TRACK */

.tool-marquee-track {
    width: max-content;

    display: flex;

    align-items: center;

    gap: 72px;

    padding-inline: 36px;

    animation:
        toolMarqueeLeft
        34s linear
        infinite;

    will-change: transform;
}

.tool-marquee-track.reverse {
    animation:
        toolMarqueeRight
        38s linear
        infinite;
}


/* PAUSED */

.tool-marquee.is-paused
.tool-marquee-track,

.tools-marquee-section.is-paused
.tool-marquee-track {
    animation-play-state: paused;
}


/* TOOL ITEM */

.tool-logo-item {
    flex:
        0 0
        165px;

    width: 165px;
    height: 96px;

    display: flex;

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

    opacity: 0.72;

    filter:
        grayscale(1)
        saturate(0);

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

.tool-logo-item:hover {
    opacity: 1;

    filter: none;

    transform:
        translateY(-3px)
        scale(1.08);
}


/* TOOL LOGO IMAGE */

.tool-logo-item img {
    display: block;

    width: auto;
    height: auto;

    max-width: 145px;
    max-height: 64px;

    object-fit: contain;
}


/* TOOL TEXT FALLBACK */

.tool-wordmark {
    white-space: nowrap;

    font:
        800
        clamp(
            1rem,
            1.6vw,
            1.35rem
        )
        Manrope,
        sans-serif;

    letter-spacing: -0.02em;

    color: var(--text);
}


/* EDGE FADE */

.tool-marquee-fade {
    position: absolute;

    top: 0;
    bottom: 0;

    width: 9vw;

    z-index: 2;

    pointer-events: none;
}

.tool-marquee-fade-left {
    left: 0;

    background:
        linear-gradient(
            90deg,
            var(--bg),
            transparent
        );
}

.tool-marquee-fade-right {
    right: 0;

    background:
        linear-gradient(
            270deg,
            var(--bg),
            transparent
        );
}


/* MARQUEE ANIMATIONS */

@keyframes toolMarqueeLeft {

    from {
        transform:
            translateX(0);
    }

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

@keyframes toolMarqueeRight {

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

    to {
        transform:
            translateX(0);
    }
}


/* =========================================================
   14. PROJECT DETAIL PAGE
========================================================= */

.project-hero {
    margin-top: 28px;

    display: grid;

    grid-template-columns:
        1.1fr
        0.9fr;

    overflow: hidden;
}

.project-hero > img {
    width: 100%;
    height: 100%;

    min-height: 420px;

    object-fit: cover;
}

.project-hero > div {
    padding:
        clamp(
            28px,
            5vw,
            58px
        );
}

.project-hero h1 {
    margin:
        12px 0
        24px;

    font-size:
        clamp(
            2.4rem,
            5vw,
            4.8rem
        );

    line-height: 1;

    letter-spacing: -0.045em;
}

.project-media-grid {
    margin-top: 30px;

    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 24px;
}

.project-media {
    overflow: hidden;
}

.project-media img,
.project-media video {
    width: 100%;

    display: block;
}

.project-media p {
    padding:
        0 20px
        20px;
}

.video-link {
    min-height: 280px;

    display: grid;

    place-items: center;

    color: var(--accent);

    font-weight: 800;
}


/* =========================================================
   15. TESTIMONIALS
========================================================= */

.testimonial {
    margin: 0;

    padding: 28px;
}

.testimonial footer {
    display: flex;

    flex-direction: column;

    gap: 4px;
}

.testimonial footer span {
    color: var(--muted);

    font-size: 0.9rem;
}


/* =========================================================
   16. CONTACT
========================================================= */

.contact-section {
    display: grid;

    grid-template-columns:
        0.8fr
        1.2fr;

    gap: 24px;
}

.contact-copy,
.contact-form {
    padding: 34px;
}

.contact-copy a {
    display: inline-block;

    margin-top: 18px;

    color: var(--accent);

    font-weight: 700;
}

.contact-form {
    display: grid;

    gap: 14px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;

    padding:
        16px 18px;

    border: 0;

    outline: 0;

    border-radius: 16px;

    background: var(--bg);

    color: var(--text);

    box-shadow:
        inset 4px 4px 10px var(--shadow-dark),
        inset -4px -4px 10px var(--shadow-light);
}

.contact-form textarea {
    resize: vertical;
}


/* =========================================================
   17. FOOTER
========================================================= */

.footer {
    width:
        min(
            var(--max),
            calc(100% - 40px)
        );

    margin:
        20px auto
        40px;

    padding:
        28px 0;

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

    display: flex;

    justify-content: space-between;

    gap: 20px;

    color: var(--muted);
}

.footer p {
    margin:
        6px 0
        0;
}


/* =========================================================
   18. OTHER GLOBAL COMPONENTS
========================================================= */

.page-top {
    padding-top: 100px;
}

.empty {
    padding: 32px;

    color: var(--muted);
}


/* MESSAGES */

.messages {
    position: fixed;

    right: 20px;
    top: 96px;

    z-index: 80;
}

.message {
    padding:
        14px 18px;

    border-radius: 14px;

    background: var(--panel);

    box-shadow:
        8px 8px 18px var(--shadow-dark),
        -8px -8px 18px var(--shadow-light);
}


/* =========================================================
   19. VIDEO MODAL
========================================================= */

.video-modal {
    position: fixed;

    inset: 0;

    z-index: 100;

    padding: 28px;

    display: none;

    place-items: center;

    background:
        rgba(
            5,
            7,
            12,
            0.82
        );

    backdrop-filter:
        blur(8px);
}

.video-modal.open {
    display: grid;
}

.modal-inner {
    width:
        min(
            980px,
            100%
        );

    aspect-ratio:
        16 / 9;

    overflow: hidden;

    border-radius: 20px;

    background: #000;

    box-shadow:
        0 30px 100px
        rgba(0, 0, 0, 0.5);
}

.modal-inner video,
.modal-inner iframe {
    width: 100%;
    height: 100%;

    border: 0;

    display: block;
}

.modal-close {
    position: fixed;

    right: 24px;
    top: 18px;

    border: 0;

    background: none;

    color: #fff;

    font-size: 2.6rem;

    cursor: pointer;
}


/* =========================================================
   20. SCROLL REVEAL
========================================================= */

.reveal {
    opacity: 0;

    transform:
        translateY(18px);

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

.reveal.is-visible {
    opacity: 1;

    transform: none;
}


/* =========================================================
   21. TABLET
========================================================= */

@media (max-width: 980px) {

    .hero,
    .about-grid,
    .contact-section {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 48px;
    }

    .profile-frame {
        min-height: 360px;
    }


    /* QUICK CARDS */

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


    /* GRIDS */

    .card-grid.three,
    .portfolio-grid,
    .video-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .card-grid.four {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }


    /* NAV */

    .nav {
        display: none;

        position: absolute;

        left: 0;
        right: 0;
        top: 80px;

        padding: 20px;

        flex-direction: column;

        background: var(--panel);

        border-radius: 22px;

        box-shadow:
            10px 10px 24px var(--shadow-dark),
            -10px -10px 24px var(--shadow-light);
    }

    .nav.open {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }


    /* EXPERIENCE */

    .timeline-item {
        grid-template-columns: 1fr;

        gap: 10px;
    }


    /* PROJECT ORBIT */

    .project-orbit-shell {
        min-height: 560px;
    }

    .project-orbit {
        height: 470px;
    }

    .orbit-card {
        width:
            min(
                320px,
                58vw
            );
    }


    /* TOOLS */

    .tool-marquee-track {
        gap: 54px;
    }

    .tool-logo-item {
        flex:
            0 0
            140px;

        width: 140px;
        height: 84px;
    }

    .tool-logo-item img {
        max-width: 125px;
        max-height: 56px;
    }
}


/* =========================================================
   22. MOBILE
========================================================= */

@media (max-width: 640px) {

    .shell {
        width:
            min(
                calc(100% - 24px),
                var(--max)
            );
    }


    /* HEADER */

    .site-header {
        width:
            calc(100% - 20px);

        top: 10px;

        margin-top: 10px;
    }


    /* HERO */

    .hero {
        padding-top: 38px;
    }

    .hero-copy {
        padding:
            30px 24px;
    }

    .hero h1 {
        font-size:
            clamp(
                2.65rem,
                15vw,
                4.2rem
            );
    }

    .profile-frame {
        min-height: 320px;
    }


    /* QUICK CARDS */

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

    .mini-card {
        min-height: 100px;

        padding:
            18px 20px;
    }

    .mini-icon {
        width: 46px;
        height: 46px;

        min-width: 46px;
    }


    /* SECTIONS */

    .section {
        padding:
            44px 0;
    }

    .row-heading {
        align-items: flex-start;

        flex-direction: column;
    }


    /* CARDS */

    .card-grid.three,
    .card-grid.four,
    .portfolio-grid,
    .video-grid {
        grid-template-columns: 1fr;
    }

    .empty-showcase {
        align-items: flex-start;
    }


    /* PROJECT ORBIT */

    .project-orbit-shell {
        min-height: 500px;

        border-radius: 26px;
    }

    .project-orbit {
        height: 420px;
    }

    .orbit-card {
        width:
            min(
                290px,
                76vw
            );

        min-width: 230px;
    }

    .orbit-card-body p {
        display: none;
    }

    .orbit-hint {
        bottom: 4px;
    }


    /* TOOLS */

    .tools-heading {
        align-items: flex-start;
    }

    .tool-marquee {
        padding:
            14px 0;
    }

    .tool-marquee-track {
        gap: 38px;

        animation-duration: 26s;
    }

    .tool-marquee-track.reverse {
        animation-duration: 30s;
    }

    .tool-logo-item {
        flex:
            0 0
            108px;

        width: 108px;
        height: 70px;
    }

    .tool-logo-item img {
        max-width: 98px;
        max-height: 44px;
    }

    .tool-wordmark {
        font-size: 0.92rem;
    }

    .marquee-pause {
        width: 42px;
        height: 42px;
    }


    /* PROJECT DETAIL */

    .project-hero,
    .project-media-grid {
        grid-template-columns: 1fr;
    }

    .project-hero > img {
        min-height: 260px;
    }


    /* FOOTER */

    .footer {
        width:
            calc(100% - 28px);

        flex-direction: column;
    }
}


/* =========================================================
   23. ACCESSIBILITY
========================================================= */

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

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;

        transform: none;

        transition: none;
    }

    .orbit-card,
    .orbit-image-wrap img {
        transition: none !important;
    }

    .tool-marquee-track {
        animation-play-state:
            paused !important;
    }
}
/* =========================================================
   FLOATING WHATSAPP BUTTON
========================================================= */

.whatsapp-float {
    position: fixed;

    right: 24px;
    bottom: 24px;

    z-index: 90;

    width: 58px;
    height: 58px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: #25D366;
    color: #fff;

    box-shadow:
        0 12px 30px rgba(37, 211, 102, 0.35);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;

    cursor: pointer;
}

.whatsapp-float:hover {
    transform:
        translateY(-4px)
        scale(1.05);

    box-shadow:
        0 16px 36px rgba(37, 211, 102, 0.45);
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;

    fill: currentColor;
}

@media (max-width: 640px) {
    .whatsapp-float {
        right: 16px;
        bottom: 16px;

        width: 54px;
        height: 54px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}