@import url('https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,600;1,9..40,300&family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,600;1,9..144,300&display=swap');

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

* {
    transition: background-color 0.4s ease,
                color 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease;
}

/* Disable click/tap highlight */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Remove focus outline */
*:focus {
    outline: none;
}

/* Disable button click animation */
button,
a,
input,
label {
    -webkit-tap-highlight-color: transparent;
}

/* ─── LIGHT MODE (day 19 palette, i numbered all days i changed palletes) ─── */
:root {
    --bg-main:       #f5f2eb;
    --bg-primary:    #f5f2eb;
    --bg-secondary:  #ede9e0;
    --bg-glass:      rgba(245, 242, 235, 0.7);

    --text-main:     #1a1814;
    --text-muted:    #7a7060;
    --link:          #1a1814;

    --card-bg:       #ffffff;
    --card-border:   rgba(26, 24, 20, 0.14);
    --card-lg:       linear-gradient(145deg, #f0ece2, #e8e3d8);

    --hover-bg:      rgba(26, 24, 20, 0.04);
    --shadow:        0px 0px 15px #00000098;

    --accent:        #d4521a;
    --accent-soft:   rgba(212, 82, 26, 0.10);
    --primary:       #d4521a;
    --gradient:      linear-gradient(135deg, #d4521a, #b83e08);

    --font-display:  'Fraunces', serif;
    --font-body:     'DM Sans', sans-serif;
    --font-mono:     'DM Mono', monospace;

    --speed:         0.35s;

}

/* ─── DARK MODE ─── */
.dark-mode {
    --bg-main:       #0f0e0c;
    --bg-primary:    #0f0e0c;
    --bg-secondary:  #1a1916;
    --bg-glass:      rgba(15, 14, 12, 0.8);

    --text-main:     #e8e4da;
    --text-muted:    #7a7468;
    --link:          #1a1916;

    --card-bg:       #1a1916;
    --card-border:   rgba(232, 228, 218, 0.08);
    --card-lg:       linear-gradient(145deg, #1a1916, #141210);

    --hover-bg:      rgba(232, 228, 218, 0.04);
    --shadow:        0 2px 16px rgba(0, 0, 0, 0.5),
                     0 1px 4px rgba(0, 0, 0, 0.4);

    --accent:        #e06535;
    --accent-soft:   rgba(224, 101, 53, 0.12);
    --primary:       #e06535;
    --gradient:      linear-gradient(135deg, #e06535, #c44e1f);

    .icon-g { filter: invert(1);}
    .top { filter: invert(1); }
}

body {
    font-family: var(--font-body);
    background: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
}

/* default – light mode */
.logo-light,
.logo-dark {
    height: 40px;
    width: 150px;
    margin-left: 10px;
}

.logo-light {
    display: block;
}

.logo-dark {
    display: none;
}

/* Dark theme */
body.dark-mode .logo-light {
    display: none;
}

body.dark-mode .logo-dark {
    display: block;
}

/* when the body has the.dark‑mode class (your JS toggle) */
body.dark-mode.logo-light {display:none;}
body.dark-mode.logo-dark {display:block;}



/* optional fallback for users who rely on the OS setting */
@media (prefers-color-scheme: dark) {
    .logo-light {
        display: block;
    }

    .logo-dark {
        display: none;
    }
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: var(--card-border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ─── MAIN GRID ─── */
main {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    background: var(--bg-main);
    color: var(--text-main);
    position: relative;
}

/* ─── MOBILE NAV DRAWER ─── */
.navbar-mobile {
    position: fixed;
    top: 0;
    right: -100vw;
    opacity: 0;
    padding-top: 1rem;
    width: min(280px, 88vw);
    height: fit-content;
    background: var(--bg-main);
    border-left: 1.5px solid var(--text-main);
    border-bottom: 1.5px solid var(--text-main);
    border-radius: 0 0 0 18px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 100;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.navbar-mobile.active {
    opacity: 1;
    right: 0;
}

.nav-mobile-links {
    display: flex;
    flex-direction: column;
    padding: 6px 0;
}

.ico { margin-right: 0.35rem; color: var(--accent); }

.m-link {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px 18px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    font-family: var(--font-body);
    border-left: 2px solid transparent;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.m-link:hover {
    color: var(--accent);
    background: var(--hover-bg);
    border-left-color: var(--accent);
}

.m-link-icon {
    width: 33px;
    height: 33px;
    border-radius: 8px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    transition: transform 0.5s ease;
}

.m-link:hover .m-link-icon {
    transform: rotate(360deg) scale(1.2);
}

.m-link-arrow {
    margin-left: auto;
    font-size: 18px;
    color: var(--text-muted);
    transition: transform 0.2s ease;
    line-height: 1;
}

.m-link:hover .m-link-arrow {
    transform: translateX(3px);
    color: var(--accent);
}

/* ─── TOGGLE (dark mode switch) ─── */
.toggle-btn {
    appearance: none;
    -webkit-appearance: none;
    width: 38px;
    height: 18px;
    background: var(--bg-secondary);
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    outline: none;
    border: 1.5px solid var(--card-border);
    transition: background 0.4s ease;
}

.toggle-btn::before {
    content: "";
    position: absolute;
    top: 1.5px;
    left: 3px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--accent);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-btn:checked {
    background: #1a1916;
    border-color: rgba(232, 228, 218, 0.15);
}

.toggle-btn:checked::before {
    transform: translateX(18px);
    background: #e8e4da;
}

#toggle {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    z-index: 4;
}

/* ─── HAMBURGER ─── */
#menu { display: none; }

.menu {
    width: 22px;
    height: 14px;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    position: absolute;
    top: 0.65rem;
    right: .5rem;
    z-index: 999;
    transition: transform 0.4s ease;
}

.menu:hover { transform: scale(1.1); }

.bars {
    height: 2px;
    width: 100%;
    background: var(--text-main);
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

#menu:checked + .menu #bar1 { transform: translateY(6px) rotate(45deg); }
#menu:checked + .menu #bar2 { opacity: 0; transform: scaleX(0); }
#menu:checked + .menu #bar3 { transform: translateY(-6px) rotate(-45deg); }
.menu:active { transform: scale(0.92); }

/* ─── BACK TO TOP ─── */
.top-wrapper {
    position: fixed;
    bottom: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--text-main);
    z-index: 50;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow);
}

.top {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.top img { width: 20px; height: 20px;}

.top-wrapper:hover { transform: translateY(-3px) scale(1.05); }

/* ─── SIDEBAR / HEADER ─── */
.header {
    position: relative;
    background: var(--bg-main);
    border-right: 1.5px solid var(--card-border);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0;
}

.icon { width: 150px; height: 40px; }

.navbar {
    display: flex;
    flex-direction: column;
    border: 1.5px solid var(--card-border);
    border-radius: 12px;
    padding: 0.3rem;
    margin: 0.5rem;
    background: var(--bg-main);
    box-shadow: var(--shadow);
}

.ink {
    color: var(--text-main);
    text-decoration: none;
    margin: 0.25rem;
    font-weight: 400;
    font-size: 0.95rem;
    font-family: var(--font-body);
    opacity: 0.8;
    border-radius: 8px;
    border: 1.5px solid transparent;
    padding: 0.4rem 0.6rem;
    transition: all 0.2s ease;
}

.ink:hover {
    opacity: 1;
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateX(3px);
}

.ink i {
    margin-right: 0.4rem;
    font-size: 1rem;
    display: inline-block;
    transition: transform 0.5s ease;
}

.ink:hover i { transform: rotate(360deg) scale(1.1); }


/* ─── HERO / PROFILE ─── */
.hero {
    position: relative;
    padding: 0 0.5rem;
    background: var(--bg-main);
}

.blank {
    width: 90%;
    height: 6rem;
    background-image: url(../images/devs/jih.png);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 0 0 10px 10px;
    margin-bottom: 4.5rem;
    position: relative;
    border-bottom: 1.5px solid var(--card-border);
}

.mine {
    width: 130px;
    height: 130px;
    border: 3px solid var(--bg-main);
    object-fit: cover;
    border-radius: 50%;
    position: absolute;
    left: 1rem;
    bottom: -65px;
    box-shadow: var(--shadow);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.mine:hover {
    transform: scale(1.06) rotate(2deg);
    box-shadow: 0 8px 24px rgba(26, 24, 20, 0.15);
}

.got-link {
    position: absolute;
    right: 1rem;
    top: 7rem;
}

.git-link {
    color: var(--bg-main);
    text-decoration: none;
    background: var(--text-main);
    padding: 0.35rem 0.8rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    font-size: 0.9rem;
    font-family: var(--font-mono);
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    border: 1.5px solid transparent;
}

.git-link:hover {
    background: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(212, 82, 26, 0.3);
}

.icon-g { width: 16px; height: 16px;}

.about-me { padding: 0 0.5rem 0.5rem; }

.my-name {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}

.user {
    opacity: 0.45;
    font-size: 0.9rem;
    font-family: var(--font-mono);
    margin-bottom: 0.4rem;
}

.first {
    margin: 0.3rem 0;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    font-family: var(--font-display);
    font-style: italic;
    color: var(--accent);
    font-weight: 300;
}

.second {
    letter-spacing: 0.5px;
    font-size: clamp(0.8rem, 1.2vw, 0.95rem);
    color: var(--text-muted);
    font-family: var(--font-body);
    margin-bottom: 0.4rem;
}

.st, .rd { color: var(--accent); font-weight: 600; }
.nd, .th { color: var(--text-main); font-weight: 600; }

.third {
    opacity: 0.65;
    font-size: clamp(0.75rem, 1vw, 0.85rem);
    font-family: var(--font-mono);
    line-height: 1.8;
}

.followin {
    opacity: 0.4;
    font-family: var(--font-display);
    font-style: italic;
    text-align: center;
    margin: 0.6rem 0 0.2rem;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

/* ─── FEED / POSTS ─── */
.p-meta {
    margin: 0.8rem 0 0.4rem 0.5rem;
    opacity: 0.5;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.feeds {
    position: relative;
    border-radius: 12px;
    padding: 0.5rem;
    margin: 0.4rem 0.5rem 0.8rem;
    background: var(--bg-main);
    border: 1.5px solid var(--card-border);
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.5s ease forwards;
    animation-delay: 0.3s;
    box-shadow: var(--shadow);
    transition: transform .4s;
}

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

.feed-meta {
    display: flex;
    flex-direction: row;
    padding: 0.3rem;
    gap: 0.5rem;
}

.p-img {
    width: 34px;
    height: 34px;
    object-fit: cover;
    border: 1.5px solid var(--card-border);
    border-radius: 50%;
    flex-shrink: 0;
}

.h-meta {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-main);
}

.feel {
    display: inline-block;
    background: var(--accent-soft);
    padding: 0.1rem 0.5rem;
    border-radius: 20px;
    color: var(--accent);
    font-size: 0.75rem;
    font-family: var(--font-mono);
    margin: 0.2rem 0;
}

.main-head {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.4rem;
    color: var(--text-main);
}

.main-meta {
    opacity: 0.6;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    font-family: var(--font-body);
    line-height: 1.7;
}

/* ─── FOOTER ─── */
.footer {
    padding: 2rem 1rem 1.5rem;
    background: var(--bg-main);
    border-top: 1.5px solid var(--card-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#footer-header {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-family: var(--font-mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer-icons {
    display: flex;
    flex-direction: row;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: center;
}

#copyright {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-family: var(--font-mono);
}

.footer-link {
    width: 38px;
    height: 38px;
    background: var(--bg-secondary);
    border: 1.5px solid var(--card-border);
    border-radius: 50%;
    display: flex;
    text-decoration: none;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.25s ease;
}

.footer-link:hover {
    transform: translateY(-3px) scale(1.1);
    background: var(--text-main);
    border-color: var(--text-main);
}

.footer-link::before {
    content: attr(data-social);
    position: absolute;
    background: var(--text-main);
    color: var(--bg-main);
    padding: 0.15rem 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    border-radius: 6px;
    white-space: nowrap;
    transform: translateY(-30px) scale(0.85);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.42, 0, 0.44, 1.5);
}

.footer-link:hover::before {
    opacity: 1;
    transform: translateY(-36px) scale(1);
}

.fa-tiktok, .fa-envelope, .fa-square-github { color: var(--text-main); font-size: 1rem; }
.fa-discord { color: rgb(0, 128, 255); font-size: 1rem; }
.fa-paper-plane, .fa-bluesky { color: rgb(0, 128, 255); font-size: 1rem; }
.fa-instagram, .fa-dribbble { color: #e1306c; font-size: 1rem; }

.footer-link:hover .fa-tiktok,
.footer-link:hover .fa-envelope,
.footer-link:hover .fa-square-github,
.footer-link:hover .fa-discord,
.footer-link:hover .fa-paper-plane,
.footer-link:hover .fa-bluesky,
.footer-link:hover .fa-instagram,
.footer-link:hover .fa-dribbble { color: var(--bg-main); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1070px) {
    main { grid-template-columns: 200px minmax(0, 1fr); }
    .second { font-size: clamp(0.75rem, 1vw, 0.9rem); }
}

@media (max-width: 985px) {
    main { grid-template-columns: 170px minmax(0, 1fr); }
    .mine { width: 110px; height: 110px; }
    .ink { font-size: 0.85rem; }
    .blank { height: 5rem;}
}

@media (max-width: 780px) {
    .git-link { font-size: 0.75rem; }
    .third { font-size: clamp(0.7rem, 1vw, 0.85rem); }
    .user { font-size: 0.7rem; }
}

@media (max-width: 680px) {
    .mine { width: 90px; height: 90px; bottom: -45px; }
    .blank { margin-bottom: 3.5rem; }
    .blank { height: 4rem;}
}

@media (max-width: 620px) {
    main { grid-template-columns: 1fr; }
    .header { display: none; }
    .menu { display: flex; }
    #toggle { top: 0.5rem; right: 3.2rem; }
}

@media (max-width: 430px) {
    .footer-link { width: 34px; height: 34px; }
    .fa-tiktok, .fa-envelope, .fa-square-github,
    .fa-discord, .fa-paper-plane, .fa-bluesky,
    .fa-instagram, .fa-dribbble { font-size: 0.85rem; }
}
/* ─── NEW: SIDEBAR + IN-PAGE LINKS ─── */
html { scroll-behavior: smooth; }
.content { min-width: 0; }
.header .navbar { position: sticky; top: 0.5rem; max-height: calc(100vh - 1rem); overflow-y: auto; }
.nav-label, .m-label {
    font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--text-muted);
}
.nav-label { margin: 0.7rem 0.4rem 0.1rem; padding-top: 0.6rem; border-top: 1.5px dashed var(--card-border); }
.m-label { display: block; padding: 12px 18px 2px; }
.ink.active { opacity: 1; color: var(--accent); background: var(--accent-soft); border-color: var(--accent); }
.navbar-mobile { max-height: 100dvh; overflow-y: auto; }
[id] { scroll-margin-top: 1rem; }

/* ─── NEW: SERVICES / PRICING / STACK ─── */
.svc-section { padding: 3rem 0.5rem 1rem; }
.svc-eyebrow { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.svc-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 3.2vw, 2.3rem); line-height: 1.15; margin: 0.3rem 0 0.6rem; }
.svc-title em { font-weight: 300; color: var(--text-muted); }
.svc-lead { max-width: 60ch; color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 1rem; margin-top: 1.5rem; }
.svc-card, .price-card, .stk { border: 1.5px solid var(--card-border); border-radius: 14px; background: var(--card-bg); transition: transform var(--speed), border-color var(--speed); }
.svc-card { padding: 1.2rem; }
.svc-card:hover, .stk:hover { transform: translateY(-4px); border-color: var(--accent); }
.svc-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-size: 1.1rem; margin-bottom: 0.8rem; }
.svc-card h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; margin-bottom: 0.3rem; }
.svc-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.55; }
.svc-card ul, .price-card ul { list-style: none; display: grid; gap: 0.35rem; font-size: 0.8rem; }
.svc-card ul { margin-top: 0.7rem; }
.svc-card li::before, .price-card li::before { content: "✓"; color: var(--accent); margin-right: 0.5rem; }
.price-grid { margin-top: 1.8rem; }
.price-card { position: relative; display: flex; flex-direction: column; padding: 1.4rem; border-radius: 16px; }
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.price-tag { position: absolute; top: -0.7rem; right: 1rem; padding: 0.25rem 0.65rem; border-radius: 20px; background: var(--accent); color: #fff; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; }
.price-card h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }
.price-note { font-size: 0.75rem; color: var(--text-muted); }
.price-amt { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; margin: 0.6rem 0 0; }
.price-amt small { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 400; color: var(--text-muted); margin-right: 0.35rem; }
.price-card ul { margin: 1rem 0; flex: 1; gap: 0.5rem; }
.price-btn { display: inline-block; text-align: center; padding: 0.65rem 1.1rem; border-radius: 10px; border: 1.5px solid var(--accent); color: var(--accent); font-size: 0.82rem; font-weight: 600; text-decoration: none; transition: all var(--speed); }
.price-btn:hover, .featured .price-btn, .price-btn.solid { background: var(--accent); color: #fff; }
.price-btn:hover { transform: translateY(-2px); }
.addons { margin-top: 2rem; }
.addons h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; margin-bottom: 0.4rem; }
.addon-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 0 2rem; }
.addon { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1.5px dashed var(--card-border); font-size: 0.85rem; }
.addon b { font-family: var(--font-mono); font-weight: 500; color: var(--accent); white-space: nowrap; }
.price-foot { margin-top: 1.2rem; font-size: 0.78rem; color: var(--text-muted); line-height: 1.6; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.2rem; }
.stk-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 0.8rem; }
.stk { text-align: center; padding: 1.2rem 0.6rem; background: var(--bg-secondary); }
.stk i { font-size: 2.2rem; color: var(--c, var(--accent)); }
.stk svg { width: 2.6rem; height: 1.6rem; color: var(--c); }
.stk h3 { margin-top: 0.5rem; font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; }
.stk p { font-size: 0.72rem; color: var(--text-muted); }
.stk.next { border-style: dashed; background: none; }
.stk.next i { color: var(--text-muted); }
@media (max-width: 620px) { .svc-section { padding-top: 2.2rem; } }

/* ─── FLOATING CONTACT ICONS + SCROLL-TO-TOP ─── */
.fab-stack { position: fixed; right: 16px; bottom: 16px; z-index: 50; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.fab-stack .top-wrapper { position: static; opacity: 0; visibility: hidden; transform: translateY(10px) scale(0.8); pointer-events: none; transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s; }
.fab-stack .top-wrapper.show { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.fab-stack .top-wrapper.show:hover { transform: translateY(-3px) scale(1.05); }
.fab-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1.1rem; cursor: pointer; box-shadow: var(--shadow); transition: transform 0.3s ease; }
.fab-btn:hover { transform: scale(1.12); }
.fab-wa { background: #25d366; }
.fab-call { background: var(--accent); }

/* ─── QUOTE POPUP ─── */
.q-dialog { margin: auto; padding: 0; width: min(92vw, 380px); border: 1.5px solid var(--card-border); border-radius: 18px; background: var(--bg-main); color: var(--text-main); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35); }
.q-dialog::backdrop { background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(3px); }
.q-dialog[open] { animation: qpop 0.28s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes qpop { from { opacity: 0; transform: translateY(16px) scale(0.96); } }
.q-box { position: relative; padding: 1.4rem 1.3rem 1.3rem; }
.q-close { position: absolute; top: 0.5rem; right: 0.8rem; background: none; border: 0; font-size: 1.7rem; line-height: 1; color: var(--text-muted); cursor: pointer; }
.q-box h3 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; }
.q-plan { font-size: 0.85rem; color: var(--text-muted); }
.q-plan b { color: var(--accent); font-weight: 600; }
.q-sub { margin: 0.9rem 0 0.6rem; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.q-options { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.q-opt { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; padding: 0.95rem 0.5rem; border: 1.5px solid var(--card-border); border-radius: 12px; background: var(--card-bg); color: var(--text-main); font-size: 0.85rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform 0.25s ease, border-color 0.25s ease; }
.q-opt i { font-size: 1.5rem; color: var(--c, var(--accent)); }
.q-opt:hover { transform: translateY(-3px); border-color: var(--c, var(--accent)); }
@media (max-width: 620px) { .q-dialog { margin: auto auto 0; width: 100%; max-width: none; border-radius: 18px 18px 0 0; } }

/* ─── REDESIGNED PROJECT CARDS ─── */
.projects .project-cards.pj-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 1rem; padding: 1.2rem; }
.pj { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1.5px solid var(--card-border); border-radius: 18px; background: var(--card-lg); color: var(--text-main); text-decoration: none; transition: transform 0.35s ease, border-color 0.3s ease, box-shadow 0.3s ease; }
.pj:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 14px 34px rgba(212, 82, 26, 0.14); }
.pj-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.pj-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.pj-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0, 0, 0, 0.55)); }
.pj:hover .pj-media img { transform: scale(1.07); }
.pj-tags { position: absolute; left: 0.7rem; bottom: 0.6rem; z-index: 1; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.pj-tags i { font-style: normal; padding: 0.18rem 0.55rem; border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.18); backdrop-filter: blur(6px); color: #fff; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.06em; }
.pj-body { display: flex; flex-direction: column; gap: 0.45rem; flex: 1; padding: 1rem 1rem 1.1rem; }
.pj-body h4 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; line-height: 1.25; }
.pj-body p { font-size: 0.82rem; line-height: 1.55; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pj-go { margin-top: auto; padding-top: 0.5rem; display: flex; align-items: center; justify-content: space-between; font-family: var(--font-mono); font-size: 0.74rem; font-weight: 500; color: var(--accent); }
.pj-go b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--accent); transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease; }
.pj:hover .pj-go b { background: var(--accent); color: #fff; transform: rotate(-45deg); }
@media (min-width: 900px) { .pj.feature { grid-column: span 2; } .pj.feature .pj-media { aspect-ratio: 21 / 9; } }
@media (prefers-reduced-motion: reduce) { .pj, .pj *, .fab-stack *, .q-dialog { transition: none !important; animation: none !important; } }
.fab-btn, .fab-btn:hover, .fab-btn:focus { text-decoration: none; }
.fab-btn i { line-height: 1; text-decoration: none; }

/* ─── DESKTOP SIDEBAR: navbar fills the full height, logo centred over it ─── */
.header .side { position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; }
.header .logo-light, .header .logo-dark { flex: none; width: min(150px, calc(100% - 1rem)); height: 40px; margin: 0.9rem auto 0.4rem; object-fit: contain; }
.header .side .navbar { position: static; flex: 1; min-height: 0; max-height: none; overflow-y: auto; margin: 0.5rem; }

