/* ==========================================================================
   Theme overrides — slate palette, content-first layout.
   Loaded last so it wins the cascade over the legacy stylesheets.
   ========================================================================== */

:root {
    --bg: #08090c;
    --bg-2: #14161a;
    --bg-3: #2c2f35;
    --card: #ffffff;
    --text-light: #e6e7ea;
    --muted: #9a9fa8;
    --accent: #9aa1ac;
    --accent-2: #6a6f78;
}

/* ==========================================================================
   Foundation — minimal primitives that replace Bootstrap (now removed)
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

.container {
    width: 100%;
    max-width: 1170px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

.container-fluid {
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

.clearfix::after {
    content: '';
    display: table;
    clear: both;
}

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

.pull-left {
    float: left;
}

.pull-right {
    float: right;
}

/* Fixed top navbar (Bootstrap used to provide the full-width fixed bar + flex) */
.navbar {
    position: relative;
}

.navbar-fixed-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1050;
}

.navbar > .container-fluid {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.navbar-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-nav > li {
    list-style: none;
}

.navbar-nav > li > a {
    display: block;
    text-decoration: none;
}

/* Toggle: hidden on desktop, shown on mobile (≤767 block below) */
.navbar-toggle {
    display: none;
    background: transparent;
    border: 0;
    padding: 10px 12px;
    cursor: pointer;
}

.navbar-default .navbar-toggle .icon-bar {
    display: block;
    width: 26px;
    height: 2px;
    margin: 5px auto;
    border-radius: 2px;
    background-color: #e6e7ea;
}

/* Buttons (store links) no longer inherit Bootstrap's .btn reset */
.btn {
    display: inline-block;
    cursor: pointer;
    text-decoration: none;
}

.btn-store {
    text-decoration: none;
}

/* ---- Lift the pure-black backgrounds to a softer charcoal ---------------- */

html {
    overflow-x: hidden;
}

body {
    background-color: var(--bg) !important;
    overflow-x: hidden;
}

/* Slate stays up top (hero + "Currently Coding In"); everything below shifts blue */
#languages {
    background: var(--bg-2) !important;
    padding: 68px 0;
}

#featured {
    background: linear-gradient(180deg, var(--bg-2) 0%, #0a1827 220px) !important;
}

#about {
    background: #0a1827 !important;
    padding: 60px 0 76px;
}

#contact {
    background: #091522 !important;
    padding: 62px 0 86px;
}

.navbar-default,
.navbar-inner {
    background-color: rgba(8, 9, 12, 0.6) !important;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 0 !important;
    box-shadow: none !important;
}

/* ---- Nav buttons -------------------------------------------------------- */

.navbar-default .navbar-nav > li > a {
    position: relative;
    color: var(--text-light) !important;
    font-weight: 500;
    letter-spacing: .4px;
    padding: 20px 16px;
    transition: color .2s ease;
}

.navbar-default .navbar-nav > li > a::after {
    content: '';
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 14px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .25s ease;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
    color: #ffffff !important;
    background: transparent !important;
}

.navbar-default .navbar-nav > li > a:hover::after,
.navbar-default .navbar-nav > li > a:focus::after {
    transform: scaleX(1);
}

@media (max-width: 979px) {
    /* Collapsed mobile menu — keep the underline subtle, lift on tap */
    .navbar-default .navbar-nav > li > a::after {
        left: 30px;
        right: auto;
        width: 40px;
    }
}

/* ==========================================================================
   Mobile slide-out menu (custom off-canvas drawer, replaces BS collapse)
   ========================================================================== */

.navbar-default.navbar-fixed-top {
    z-index: 1050;
}

@media (max-width: 767px) {
    /* Transparent header so the hero photo flows up behind the hamburger */
    body {
        padding-top: 0 !important;
    }
    .navbar-default.navbar-fixed-top {
        background-color: transparent !important;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        transition: background-color .25s ease;
    }
    /* Once scrolled off the hero, give the header a solid slate bar */
    body.scrolled .navbar-default.navbar-fixed-top {
        background-color: rgba(8, 9, 12, 0.9) !important;
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }
    /* Toggle on the left; drawer is off-canvas so the bar only holds the toggle */
    .navbar > .container-fluid {
        justify-content: flex-start;
    }

    /* The menu becomes a panel that slides in from the left */
    #navbar.navbar-collapse {
        display: block !important;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px;
        max-width: 82vw;
        height: 100vh;
        max-height: 100vh;
        margin: 0;
        padding: 86px 0 24px;
        background: #0c0e12;
        border-right: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 16px 0 48px rgba(0, 0, 0, 0.55);
        overflow-y: auto;
        z-index: 2;
        transform: translateX(-105%);
        transition: transform .34s cubic-bezier(.4, 0, .2, 1);
    }

    body.nav-open #navbar.navbar-collapse {
        transform: translateX(0);
    }

    #navbar .navbar-nav {
        margin: 0;
        padding: 0;
        float: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .navbar-toggle {
        display: block !important;
        float: left !important;
        margin-left: 15px !important;
        margin-right: 0 !important;
    }

    #navbar .navbar-nav > li {
        float: none;
        width: 100%;
        opacity: 0;
        transform: translateX(-16px);
        transition: opacity .3s ease, transform .3s ease;
    }

    /* Links stagger in once the panel is open */
    body.nav-open #navbar .navbar-nav > li {
        opacity: 1;
        transform: translateX(0);
    }

    body.nav-open #navbar .navbar-nav > li:nth-child(1) { transition-delay: .10s; }
    body.nav-open #navbar .navbar-nav > li:nth-child(2) { transition-delay: .16s; }
    body.nav-open #navbar .navbar-nav > li:nth-child(3) { transition-delay: .22s; }
    body.nav-open #navbar .navbar-nav > li:nth-child(4) { transition-delay: .28s; }
    body.nav-open #navbar .navbar-nav > li:nth-child(5) { transition-delay: .34s; }

    #navbar .navbar-nav > li > a {
        padding: 13px 28px !important;
        font-size: 18px;
    }

    #navbar .navbar-nav > li > a::after {
        display: none;
    }

    /* Dimmed backdrop behind the panel */
    body::after {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        opacity: 0;
        pointer-events: none;
        transition: opacity .3s ease;
        z-index: 1040;
    }

    body.nav-open::after {
        opacity: 1;
        pointer-events: auto;
    }

    /* Hamburger morphs into an X */
    .navbar-toggle {
        position: relative;
        z-index: 3;
    }

    .navbar-toggle .icon-bar {
        transition: transform .3s ease, opacity .2s ease;
    }

    body.nav-open .navbar-toggle .icon-bar:nth-child(2) {
        transform: translateY(6px) rotate(45deg);
    }

    body.nav-open .navbar-toggle .icon-bar:nth-child(3) {
        opacity: 0;
    }

    body.nav-open .navbar-toggle .icon-bar:nth-child(4) {
        transform: translateY(-6px) rotate(-45deg);
    }
}

/* ---- Intro / hero ------------------------------------------------------- */

#intro:before {
    background-image:
        linear-gradient(rgba(8, 9, 12, 0.3), rgba(8, 9, 12, 0.46)),
        url('../img/main-intro1.jpg');
    background-blend-mode: normal;
    background-size: cover;
    background-position: center right;
    filter: brightness(1.1);
}

/* Full-bleed photo behind a centered-left glass panel: give it breathing room */
#intro > div {
    padding: 0 6% !important;
}

/* Mid range: keep side-by-side but narrow the bubble so the text wraps and
   stops crowding the photo (fixes the cramped look around ~1161px) */
@media (min-width: 768px) and (max-width: 1169px) {
    #intro .intro-text {
        max-width: 48% !important;
    }
}

/* Phones (≤767): photo as a banner on top that fades into the background,
   with the glass bubble fully BELOW it */
@media (max-width: 767px) {
    #intro {
        display: block;
        min-height: 0;
    }
    #intro:before {
        height: 380px;
        background-image: url('../img/main-intro-sm.jpg');
        background-position: center 28%;
        -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
        mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
    }
    #intro > div {
        display: block !important;
        padding: 392px 18px 44px !important;
    }
    #intro .intro-text {
        max-width: 100% !important;
        padding: 26px 24px;
        border-radius: 22px;
    }
    #intro h2 {
        font-size: 30px !important;
        line-height: 1.12 !important;
    }
    #intro h3 {
        font-size: 16px !important;
    }
}

/* Very small phones: shorter banner + more compact card */
@media (max-width: 480px) {
    #intro:before {
        height: 300px;
    }
    #intro > div {
        padding: 312px 16px 34px !important;
    }
    #intro .intro-text {
        padding: 22px 20px;
        border-radius: 18px;
    }
    #intro h2 {
        font-size: 26px !important;
    }
    #intro h3 {
        font-size: 15px !important;
    }
    #intro .intro-lead {
        font-size: 14px;
    }
}

#intro hr {
    border: 0;
    height: 3px;
    width: 70%;
    margin: 18px 0 !important;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 3px;
    opacity: .9;
}

#intro h2 {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
    padding-left: 0 !important;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin: 0 0 10px !important;
}

#intro h3 {
    color: #dde0e6 !important;
    padding-left: 0 !important;
    font-weight: 500;
    letter-spacing: .2px;
    line-height: 1.45;
    margin: 0 !important;
}

@media (min-width: 768px) {
    #intro h2 {
        font-size: 46px !important;
        line-height: 1.06 !important;
    }
    #intro h3 {
        font-size: 19px !important;
    }
}

/* Two-column intro — constrained to the left so it never reaches the photo.
   #intro is a legacy display:table; without width:100% it shrinks to the
   capped content and centers, so pin it full-width to keep text left. */
#intro {
    width: 100%;
}

#intro .intro-text {
    max-width: 600px;
    padding: 36px 40px;
    background: rgba(13, 15, 19, 0.55);
    -webkit-backdrop-filter: blur(14px) saturate(115%);
    backdrop-filter: blur(14px) saturate(115%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

/* Use a controlled flex layout instead of Bootstrap's .row (its negative
   margins were pulling the left column off-screen). */
#intro .intro-cols {
    display: flex;
    gap: 28px;
    margin: 0;
    padding-left: 10px;
}

#intro .intro-cols p {
    flex: 1;
    margin: 0;
    padding: 0;
}

#intro .intro-lead {
    padding-left: 0;
    margin-bottom: 0;
    font-size: 15px;
    color: #9a9fa8;
    line-height: 1.75;
}

/* Hero CTA row */
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 150px;
    padding: 14px 26px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    background: #eef1f6;
    color: #0d0f13 !important;
    border: 1px solid #eef1f6;
    text-shadow: none;
    transition: transform .15s ease, background .2s ease, border-color .2s ease;
}

.hero-btn:hover,
.hero-btn:focus {
    transform: translateY(-2px);
    background: #ffffff;
    color: #0d0f13 !important;
}

.hero-btn-ghost {
    background: transparent;
    color: #e6e7ea !important;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-btn-ghost:hover,
.hero-btn-ghost:focus {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff !important;
}

/* ---- Section headings --------------------------------------------------- */

#about > h1,
#featured > h1,
#languages h1,
#contact h1 {
    color: var(--text-light);
    position: relative;
    padding-bottom: 18px;
}

#about > h1::after,
#featured > h1::after,
#languages h1::after,
#contact h1::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    border-radius: 4px;
    background: var(--accent);
}

/* ==========================================================================
   Featured work — spotlight cards above the full timeline
   ========================================================================== */

#featured {
    padding: 10px 0 46px;
}

.featured-grid {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 15px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.featured-card {
    display: flex;
    flex-direction: column;
    background: #122236;
    border: 1px solid #26374e;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease;
}

.featured-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 44px rgba(150, 153, 160, 0.22), 0 12px 28px rgba(0, 0, 0, 0.4);
}

.featured-media {
    background: #08090c;
    line-height: 0;
}

.featured-media img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin: 0;
    border-radius: 0;
}

.featured-media-empty {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #14243d, #1f3f6b);
}

.featured-media-empty i {
    font-size: 60px;
    color: rgba(255, 255, 255, 0.88);
}

/* ---- Footer ------------------------------------------------------------- */

.site-footer {
    background: #08090c;
    text-align: center;
    padding: 34px 20px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer p {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 13px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.footer-links a {
    color: #cfd3da;
    font-size: 14px;
    text-decoration: none;
    transition: color .2s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.featured-media-empty .cd-initial {
    position: static;
    transform: none;
    color: #fff;
    font-weight: 700;
    font-size: 46px;
}

.featured-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px 22px 24px;
}

.featured-tag {
    align-self: flex-start;
    margin-bottom: 12px;
    padding: 4px 11px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #9a9fa8;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;
}

.featured-card h2 {
    color: #e6e7ea;
    font-weight: 600;
    font-size: 22px;
    line-height: 1.25;
    margin: 0 0 10px;
}

.featured-card p {
    color: #d2d5da;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 12px;
}

.featured-impact {
    color: #e6e7ea !important;
    font-weight: 600;
    font-size: 14px !important;
    background: rgba(150, 153, 160, 0.1);
    border-left: 3px solid var(--accent);
    padding: 9px 12px;
    border-radius: 0 6px 6px 0;
}

.featured-card .appstores-container {
    margin-top: 16px;
}

/* ==========================================================================
   Skills — replaces the old single-bar "Currently Coding In" chart
   ========================================================================== */

.skills {
    max-width: 940px;
    margin: 0 auto;
    padding-bottom: 10px;
}

.skills-lead {
    color: var(--muted);
    text-align: center;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 auto 26px;
    max-width: 640px;
}

.skills-primary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 0;
    margin: 0 0 40px;
}

.skills-more {
    text-align: center;
    margin: 28px 0 0;
}

.skills-more a {
    color: var(--accent);
    font-weight: 600;
    font-size: 15px;
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease;
}

.skills-more a:hover {
    border-bottom-color: var(--accent);
}

.skills-primary li {
    list-style: none;
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid rgba(59, 130, 246, 0.55);
    background: rgba(59, 130, 246, 0.16);
    color: #cfe0fb;
    font-weight: 600;
    font-size: 15px;
    transition: background .2s ease, border-color .2s ease;
}

.skills-primary li:hover {
    background: rgba(59, 130, 246, 0.26);
    border-color: rgba(59, 130, 246, 0.8);
    color: #eaf2ff;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 26px 32px;
    text-align: left;
}

.skills-group h4 {
    color: var(--accent);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 700;
    margin: 0 0 8px;
}

.skills-group p {
    color: #9a9fa8;
    font-size: 15px;
    line-height: 1.65;
    margin: 0;
}

/* Category skills as small pills */
.skill-tags {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tags li {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: #cfd6e6;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.13);
    transition: border-color .2s ease, color .2s ease;
}

.skill-tags li:hover {
    color: #fff;
    border-color: rgba(150, 153, 160, 0.5);
}

/* ==========================================================================
   Timeline — clean single-column, content-first (no zig-zag, no bounce)
   ========================================================================== */

#cd-timeline {
    position: relative;
    padding: 1em 0 2em;
}

/* No center spine / no card arrow in the flat layout */
#cd-timeline::before,
.cd-timeline-content::before {
    display: none;
}

/* Each row: project logo + card, stacked in a centered column */
.cd-timeline-block {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    max-width: 820px;
    margin: 0 auto 26px;
    position: relative;
}

@media only screen and (min-width: 1170px) {
    .cd-timeline-block {
        margin: 0 auto 26px;
    }
}

/* ---- Logo avatar -------------------------------------------------------- */

.cd-timeline-img {
    position: static;
    left: auto;
    top: auto;
    margin: 4px 0 0;
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
    transition: transform .25s ease, box-shadow .25s ease;
}

@media only screen and (min-width: 1170px) {
    .cd-timeline-img {
        left: auto;
        margin: 4px 0 0;
        width: 54px;
        height: 54px;
        transform: none;
    }
}

.cd-timeline-img img {
    position: static;
    left: auto;
    top: auto;
    margin: 0;
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.cd-timeline-block:hover .cd-timeline-img {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(150, 153, 160, 0.35);
}

@media only screen and (min-width: 1170px) {
    .cd-timeline-block:hover .cd-timeline-img {
        transform: translateY(-2px);
    }
}

/* Placeholder avatars use an initial instead of a logo image */
.cd-timeline-img.cd-placeholder {
    background: #2c2f35;
}

.cd-initial {
    position: static;
    transform: none;
    color: #fff;
    font-weight: 700;
    font-size: 17px;
    font-family: 'Open Sans', sans-serif;
}

/* ---- Cards -------------------------------------------------------------- */

.cd-timeline-content {
    position: relative;
    float: none;
    width: 100%;
    margin: 0;
    background: #122236;
    border: 1px solid #26374e;
    border-radius: 14px;
    border-left: 4px solid var(--accent);
    padding: 1.5em 1.6em;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.28);
    transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease, border-left-color .3s ease;
}

.cd-timeline-content:hover {
    border-left-color: var(--accent);
}

@media only screen and (min-width: 1170px) {
    .cd-timeline-content {
        float: none;
        width: 100%;
        padding: 1.5em 1.6em;
    }
    .cd-timeline-block:nth-child(even) .cd-timeline-content {
        float: none;
    }
}

.cd-timeline-content:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

.cd-timeline-content h2 {
    color: #e6e7ea;
    font-weight: 600;
    margin: 0 0 .55em;
    line-height: 1.25;
}

.cd-timeline-content p {
    color: #d2d5da;
}

.cd-timeline-content img,
.cd-timeline-content iframe {
    border-radius: 10px;
    margin-bottom: 10px;
}

/* iPhone bezel around phone-shaped demo clips */
.cd-timeline-content .phone-wrap {
    display: block;
    max-width: 300px;
    margin: 0 auto 10px;
    padding: 8px;
    border-radius: 42px;
    background: #0a0a0c;
    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: 0 0 0 3px #17171c, 0 18px 40px rgba(0, 0, 0, .45);
}

.cd-timeline-content .phone-wrap img {
    display: block;
    width: 100%;
    border-radius: 34px;
    margin-bottom: 0;
}

/* Date — a quiet caption at the foot of the card (no absolute float) */
.cd-timeline-content .cd-date,
.cd-timeline-block:nth-child(even) .cd-timeline-content .cd-date {
    position: static;
    display: block;
    width: auto;
    left: auto;
    right: auto;
    top: auto;
    margin-top: 10px;
    padding: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .6px;
    text-transform: uppercase;
    text-align: left;
    opacity: 1;
}

/* Tech stack — pill chip (timeline + featured cards) */
.cd-timeline-content .cd-stack,
.featured-card .cd-stack {
    display: inline-block;
    margin: 10px 0 0;
    padding: 5px 13px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    color: #e6e7ea;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .2px;
}

/* Placeholder note for projects still awaiting copy */
.cd-todo {
    display: inline-block;
    margin-top: 6px;
    padding: 3px 9px;
    font-size: 12px;
    font-weight: 600;
    color: #8a6d00;
    background: rgba(255, 196, 0, 0.15);
    border: 1px dashed rgba(255, 196, 0, 0.6);
    border-radius: 6px;
}

/* ---- App store / link buttons ------------------------------------------ */

.btn-store {
    display: inline-grid !important;
    grid-template-columns: auto auto;
    align-items: center;
    column-gap: 12px;
    width: auto !important;
    min-width: 0 !important;
    color: #fff !important;
    background: #08090c;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 12px;
    padding: 8px 18px !important;
    margin: 4px 8px 4px 0;
    white-space: nowrap;
    text-align: left;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

.btn-store .fa {
    grid-column: 1;
    grid-row: 1 / 3;
    float: none !important;
    margin: 0 !important;
    color: #fff !important;
    font-size: 28px;
    line-height: 1;
}

.btn-store .btn-label {
    grid-column: 2;
    grid-row: 1;
    color: #d2d5da;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
    line-height: 1.3;
}

.btn-store .btn-caption {
    grid-column: 2;
    grid-row: 2;
    color: #fff;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.1;
}

.btn-store:hover,
.btn-store:focus {
    color: #fff !important;
    background: #000 !important;
    border-color: var(--accent) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

/* ==========================================================================
   Reveal animation — subtle fade-up instead of the old bounce
   ========================================================================== */

.cssanimations .cd-timeline-img.is-hidden,
.cssanimations .cd-timeline-content.is-hidden {
    visibility: hidden;
}

.cssanimations .cd-timeline-img.bounce-in,
.cssanimations .cd-timeline-content.bounce-in,
.cssanimations .cd-timeline-block:nth-child(even) .cd-timeline-content.bounce-in {
    visibility: visible;
    animation: cd-fade-up .55s ease both !important;
}

@keyframes cd-fade-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Contact form (mailto-based — opens the visitor's email client)
   ========================================================================== */

.contact-form {
    max-width: 620px;
    margin: 8px auto 18px;
    text-align: left;
}

.contact-row {
    display: flex;
    gap: 14px;
}

.contact-row input {
    flex: 1;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    margin-bottom: 14px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    color: var(--text-light);
    font-size: 15px;
    font-family: inherit;
    transition: border-color .2s ease, background .2s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #6a6f78;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(150, 153, 160, 0.06);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form .h-captcha {
    margin-bottom: 16px;
}

.contact-submit {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid #3c4047;
    border-radius: 10px;
    background: #2c2f35;
    color: #e6e7ea;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .3px;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.contact-submit:hover {
    background: #3c4047;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
}

@media (max-width: 600px) {
    .contact-row {
        flex-direction: column;
        gap: 0;
    }
}

.contact-status {
    margin: 12px 0 0;
    font-size: 14px;
    min-height: 18px;
}

.contact-status.success {
    color: var(--accent);
}

.contact-status.error {
    color: #ff6b6b;
}

/* Version label under a project title (e.g. "Version 2") */
.proj-version {
    display: block;
    margin: -4px 0 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
}
