/* =========================================================
   Eunice Muturi — Portfolio
   Palette: gold on black
   ========================================================= */

:root {
    --bg: #050505;
    --bg-soft: #0d0b06;
    --panel: rgba(255, 255, 255, 0.028);
    --panel-strong: rgba(255, 255, 255, 0.05);
    --text: #f4f4f4;
    --muted: #b9b5ab;
    --accent: #c8a13a;
    --accent-soft: #f5d878;
    --accent-deep: #8a6a1e;
    --border: rgba(200, 161, 58, 0.28);
    --border-soft: rgba(255, 255, 255, 0.08);
    --gold-grad: linear-gradient(135deg, #f5d878 0%, #c8a13a 48%, #8a6a1e 100%);
    --radius: 20px;
    --max-content: 1180px;
    --header-height: 78px;
    --shadow: 0 24px 55px rgba(0, 0, 0, 0.55);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
    background-color: var(--bg);
    background-image:
        radial-gradient(circle at 88% -5%, rgba(200, 161, 58, 0.22) 0%, transparent 42%),
        radial-gradient(circle at 2% 30%, rgba(138, 106, 30, 0.14) 0%, transparent 38%),
        radial-gradient(circle at 60% 110%, rgba(200, 161, 58, 0.1) 0%, transparent 45%);
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
}

a {
    color: inherit;
}

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

h1, h2, h3, h4 {
    line-height: 1.2;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--accent-soft);
    outline-offset: 3px;
}

.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;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    z-index: 2000;
    background: var(--accent);
    color: #111;
    padding: 0.6rem 1rem;
    border-radius: 0 0 10px 0;
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus {
    left: 0;
}

main section[id] {
    scroll-margin-top: calc(var(--header-height) + 20px);
}

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

.section-title {
    text-align: center;
    margin: 0;
    font-size: clamp(1.75rem, 4.2vw, 2.85rem);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.section-title span {
    background: linear-gradient(120deg, #f5d878, #c8a13a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-sub {
    text-align: center;
    max-width: 62ch;
    margin: 0.75rem auto 0;
    color: var(--muted);
    font-size: 0.98rem;
}

.eyebrow {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent-soft);
    font-size: 0.74rem;
    font-weight: 600;
}

/* ---------------- Buttons ---------------- */

.header-button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    border: none;
    border-radius: 999px;
    background: var(--gold-grad);
    color: #120e04;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.93rem;
    padding: 0.7rem 1.35rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    cursor: pointer;
    white-space: nowrap;
}

.header-button:hover,
.btn:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 0 22px rgba(245, 216, 120, 0.32), 0 12px 26px rgba(0, 0, 0, 0.45);
}

.btn-alt {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-alt:hover {
    background: rgba(200, 161, 58, 0.16);
    filter: none;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

/* ---------------- Header ---------------- */

header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.8rem clamp(1rem, 4vw, 3rem);
    background: rgba(5, 5, 5, 0.72);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
    background: rgba(5, 5, 5, 0.92);
    border-bottom-color: rgba(200, 161, 58, 0.24);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    font-size: clamp(1.15rem, 2.4vw, 1.5rem);
    font-weight: 700;
    white-space: nowrap;
}

.logo-mark {
    display: inline-flex;
}

.logo-text span {
    color: var(--accent);
    text-shadow: 0 0 14px rgba(200, 161, 58, 0.5);
}

.menu-toggle {
    display: none;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 1.05rem;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

nav {
    flex: 1;
}

.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(0.6rem, 1.6vw, 1.4rem);
}

.navbar a {
    position: relative;
    text-decoration: none;
    font-size: 0.94rem;
    color: var(--muted);
    padding: 0.3rem 0.1rem;
    transition: color 0.25s ease;
}

.navbar a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    border-radius: 2px;
    background: var(--gold-grad);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.navbar a:hover,
.navbar a.active {
    color: var(--accent-soft);
}

.navbar a:hover::after,
.navbar a.active::after {
    transform: scaleX(1);
}

.header-actions {
    display: flex;
    align-items: center;
}

main {
    padding-top: calc(var(--header-height) + 1rem);
}

/* ---------------- Hero ---------------- */

.hero-section {
    position: relative;
    width: min(100% - 2rem, var(--max-content));
    margin-inline: auto;
    min-height: calc(100svh - var(--header-height));
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3rem);
    padding-block: clamp(2rem, 5vw, 3.5rem);
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: -1;
}

.glow-a {
    width: 320px;
    height: 320px;
    top: -60px;
    right: -40px;
    background: rgba(200, 161, 58, 0.3);
}

.glow-b {
    width: 260px;
    height: 260px;
    bottom: 0;
    left: -80px;
    background: rgba(138, 106, 30, 0.28);
}

.hello {
    margin: 0 0 0.5rem;
    color: var(--accent-soft);
    font-size: 0.95rem;
    letter-spacing: 0.1em;
}

.hero-text h1 {
    margin: 0;
    font-size: clamp(2rem, 5.4vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    min-height: 1.2em;
}

.typed {
    background: linear-gradient(120deg, #f5d878, #c8a13a 60%, #f5d878);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.caret {
    display: inline-block;
    width: 3px;
    height: 0.95em;
    margin-left: 4px;
    vertical-align: -0.12em;
    background: var(--accent-soft);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-role {
    margin: 0.7rem 0 0.85rem;
    font-size: clamp(1rem, 2.2vw, 1.3rem);
    font-weight: 500;
    color: #ece9e0;
}

.hero-copy {
    margin: 0;
    color: var(--muted);
    max-width: 58ch;
}

.hero-form {
    margin-top: 1.6rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    max-width: 430px;
    padding: 0.4rem 0.4rem 0.4rem 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 999px;
}

.hero-form input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    color: var(--text);
    font-family: inherit;
    font-size: 0.92rem;
    padding: 0.55rem 0.6rem;
}

.hero-form input::placeholder {
    color: #8d8a82;
}

.hero-form input:focus {
    outline: none;
}

.hero-form:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(200, 161, 58, 0.15);
}

.hero-form-status {
    min-height: 1.3rem;
    margin: 0.45rem 0 0;
    font-size: 0.86rem;
    color: var(--accent-soft);
}

.hero-form-status.error {
    color: #ffb3b3;
}

.social-icons {
    margin-top: 1.2rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--accent-soft);
    text-decoration: none;
    font-size: 0.98rem;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.social-icons a:hover {
    background: var(--gold-grad);
    color: #120e04;
    transform: translateY(-3px);
    box-shadow: 0 0 18px rgba(245, 216, 120, 0.35);
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    position: relative;
    z-index: 1;
    width: min(360px, 78vw);
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(200, 161, 58, 0.85);
    box-shadow: 0 0 24px rgba(245, 216, 120, 0.28), 0 0 70px rgba(200, 161, 58, 0.32);
}

.hero-image-ring {
    position: absolute;
    width: min(420px, 88vw);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    border: 1px dashed rgba(200, 161, 58, 0.4);
    animation: spin 26s linear infinite;
}

.hero-image-ring::before {
    content: "";
    position: absolute;
    inset: 22px;
    border-radius: 50%;
    border: 1px solid rgba(200, 161, 58, 0.14);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.float-chip {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.42rem 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--accent-soft);
    background: rgba(10, 8, 3, 0.9);
    border: 1px solid var(--border);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
    animation: bob 5s ease-in-out infinite;
}

.chip-1 { top: 8%; left: 0; }
.chip-2 { bottom: 16%; left: 2%; animation-delay: 1.2s; }
.chip-3 { top: 28%; right: 0; animation-delay: 2.4s; }

@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}

.spark {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-soft);
    box-shadow: 0 0 14px rgba(245, 216, 120, 0.8);
    animation: bob 4s ease-in-out infinite;
}

.spark-1 { top: 12%; right: 22%; }
.spark-2 { bottom: 10%; right: 30%; width: 6px; height: 6px; animation-delay: 1.6s; }

/* ---------------- Expertise panel ---------------- */

.expertise {
    width: min(100% - 2rem, var(--max-content));
    margin: clamp(1rem, 4vw, 2.5rem) auto 0;
}

.expertise-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 2.4vw, 2rem);
    padding: clamp(1.5rem, 3.5vw, 2.6rem);
    border-radius: 26px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow);
}

.expertise-item h3 {
    margin: 0.85rem 0 0.5rem;
    font-size: 1.08rem;
    font-weight: 600;
}

.expertise-item p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.expertise-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    font-size: 1.05rem;
    color: var(--accent-soft);
    background: rgba(200, 161, 58, 0.14);
    border: 1px solid var(--border);
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.expertise-item:hover .expertise-icon {
    background: var(--gold-grad);
    color: #120e04;
    transform: translateY(-3px) rotate(-6deg);
}

/* ---------------- About + stats ---------------- */

.about-section {
    width: min(100% - 2rem, var(--max-content));
    margin: clamp(2.5rem, 6vw, 4.5rem) auto 0;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3rem);
}

.about-copy h2 {
    margin: 0.6rem 0 1rem;
    font-size: clamp(1.6rem, 3.6vw, 2.4rem);
}

.about-copy h2 span {
    color: var(--accent);
}

.about-copy p {
    margin: 0 0 1rem;
    color: var(--muted);
    max-width: 60ch;
}

.about-points {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.2rem;
    margin: 0 0 1.4rem;
    font-size: 0.9rem;
}

.about-points i {
    color: var(--accent);
    margin-right: 0.35rem;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.stat-card {
    padding: 1.4rem 1.2rem;
    border-radius: 18px;
    text-align: center;
    background: linear-gradient(155deg, rgba(200, 161, 58, 0.14), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.45);
}

.stat-card strong {
    display: block;
    font-size: clamp(1.7rem, 4vw, 2.35rem);
    font-weight: 800;
    background: var(--gold-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-card span {
    font-size: 0.83rem;
    color: var(--muted);
}

/* ---------------- Featured project ---------------- */

.featured-project {
    width: min(100% - 2rem, var(--max-content));
    margin: clamp(2.5rem, 6vw, 4.5rem) auto 0;
}

.featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    background: linear-gradient(145deg, rgba(90, 67, 21, 0.55), rgba(14, 12, 6, 0.92));
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.featured-image img {
    width: 100%;
    height: 100%;
    min-height: clamp(230px, 30vw, 340px);
    object-fit: cover;
}

.featured-content {
    padding: clamp(1.3rem, 3vw, 2.2rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
}

.featured-content h2 {
    margin: 0;
    font-size: clamp(1.3rem, 2.6vw, 1.85rem);
}

.featured-summary {
    margin: 0;
    color: var(--muted);
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.tech-badges span {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
    font-size: 0.78rem;
    color: var(--accent-soft);
    background: rgba(200, 161, 58, 0.1);
}

/* ---------------- Projects ---------------- */

.portfolio-section {
    width: min(100% - 2rem, var(--max-content));
    margin: clamp(2.5rem, 6vw, 4.5rem) auto 0;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin: 1.6rem 0 1.8rem;
}

.filter-btn {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    font-family: inherit;
    font-size: 0.86rem;
    padding: 0.5rem 1.15rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.filter-btn:hover {
    color: var(--accent-soft);
    border-color: var(--accent);
}

.filter-btn.active {
    background: var(--gold-grad);
    color: #120e04;
    border-color: transparent;
    font-weight: 600;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
}

.project-box {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    background: #100d06;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.project-box[hidden] {
    display: none;
}

.project-box:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.project-box img {
    width: 100%;
    height: clamp(230px, 26vw, 300px);
    object-fit: cover;
    transition: transform 0.45s ease;
}

.project-box:hover img {
    transform: scale(1.07);
}

.project-content {
    position: absolute;
    inset: 0;
    padding: 1.1rem;
    background: linear-gradient(to top, rgba(5, 4, 1, 0.97) 30%, rgba(5, 4, 1, 0.55));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.3rem;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.project-box:hover .project-content,
.project-box:focus-within .project-content {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.project-tag {
    align-self: flex-start;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-soft);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.15rem 0.6rem;
    margin-bottom: 0.35rem;
}

.project-content h3 {
    margin: 0;
    font-size: 1.08rem;
}

.project-content p {
    margin: 0.3rem 0 0.75rem;
    font-size: 0.86rem;
    color: #d5d2c9;
}

.project-content .btn {
    padding: 0.5rem 1rem;
    font-size: 0.84rem;
}

.filter-empty {
    text-align: center;
    color: var(--muted);
    margin-top: 1.5rem;
}

.portfolio-more {
    margin: 1.6rem auto 0;
    max-width: 78ch;
    text-align: center;
    font-size: 0.88rem;
    color: var(--muted);
}

.portfolio-more a {
    color: var(--accent-soft);
    font-weight: 500;
}

/* ---------------- Skills ---------------- */

.skills-section {
    width: min(100% - 2rem, 980px);
    margin: clamp(2.5rem, 6vw, 4.5rem) auto 0;
}

.skills-wrapper {
    margin-top: 1.8rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.skill-category {
    padding: 1.3rem;
    border-radius: 18px;
    background: var(--panel);
    border: 1px solid var(--border-soft);
}

.skill-category h3 {
    margin: 0 0 1rem;
    font-size: 0.82rem;
    color: var(--accent-soft);
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.skills-wrapper .bar {
    margin: 0 0 1rem;
}

.skills-wrapper .bar:last-child {
    margin-bottom: 0;
}

.bar-name {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.4rem;
    font-size: 0.86rem;
}

.bar-percent {
    color: var(--accent-soft);
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--gold-grad);
    border-radius: inherit;
    transition: width 1.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.progress-bar span.animate.html { width: 90%; }
.progress-bar span.animate.css { width: 85%; }
.progress-bar span.animate.python { width: 90%; }
.progress-bar span.animate.javascript { width: 80%; }
.progress-bar span.animate.ml { width: 85%; }
.progress-bar span.animate.data { width: 85%; }
.progress-bar span.animate.backend { width: 88%; }
.progress-bar span.animate.frontend { width: 85%; }
.progress-bar span.animate.database { width: 82%; }
.progress-bar span.animate.git { width: 88%; }

/* ---------------- Packages ---------------- */

.packages {
    width: min(100% - 2rem, var(--max-content));
    margin: clamp(2.5rem, 6vw, 4.5rem) auto 0;
}

.package-grid {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
    align-items: start;
}

.package-card {
    position: relative;
    padding: 1.6rem 1.4rem;
    border-radius: 22px;
    background: var(--panel);
    border: 1px solid var(--border-soft);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.package-card:hover {
    transform: translateY(-6px);
    border-color: var(--border);
    box-shadow: var(--shadow);
}

.featured-package {
    background: linear-gradient(165deg, rgba(200, 161, 58, 0.16), rgba(255, 255, 255, 0.02));
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(200, 161, 58, 0.25), var(--shadow);
}

.package-flag {
    position: absolute;
    top: 1.5rem;
    right: 1.3rem;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    background: var(--gold-grad);
    color: #120e04;
}

.package-flag.premium {
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent-soft);
    border: 1px solid var(--border);
}

.package-card h3 {
    margin: 0;
    font-size: 1.35rem;
}

.package-note {
    margin: 0.2rem 0 0.9rem;
    color: var(--muted);
    font-size: 0.86rem;
}

.package-price {
    margin: 0 0 1.1rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-soft);
}

.package-price span {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--muted);
}

.package-card h4 {
    margin: 1.4rem 0 0.7rem;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.package-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.package-list li {
    position: relative;
    padding-left: 1.6rem;
    font-size: 0.89rem;
    color: #ddd9d0;
}

.package-list li::before {
    content: "\f058";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0.06rem;
    color: var(--accent);
    font-size: 0.85rem;
}

/* ---------------- FAQ ---------------- */

.faq-section {
    width: min(100% - 2rem, 900px);
    margin: clamp(2.5rem, 6vw, 4.5rem) auto 0;
}

.faq-list {
    margin-top: 2rem;
}

.faq-item {
    border-bottom: 1px solid var(--border-soft);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 0;
    background: none;
    border: none;
    color: var(--text);
    font-family: inherit;
    font-size: clamp(0.95rem, 2vw, 1.08rem);
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: color 0.25s ease;
}

.faq-question:hover {
    color: var(--accent-soft);
}

.faq-question i {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 0.8rem;
    color: var(--accent-soft);
    border: 1px solid var(--border);
    background: rgba(200, 161, 58, 0.1);
    transition: background 0.25s ease, color 0.25s ease;
}

.faq-item.open .faq-question i {
    background: var(--gold-grad);
    color: #120e04;
    border-color: transparent;
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
}

.faq-item.open .faq-answer {
    grid-template-rows: 1fr;
}

.faq-answer p {
    overflow: hidden;
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    max-width: 78ch;
}

.faq-item.open .faq-answer p {
    padding-bottom: 1.3rem;
}

/* ---------------- Testimonials ---------------- */

.testimonials {
    width: min(100% - 2rem, var(--max-content));
    margin: clamp(2.5rem, 6vw, 4.5rem) auto 0;
}

.testimonials-grid {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
}

.testimonial-card {
    position: relative;
    overflow: hidden;
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-soft);
    background: linear-gradient(150deg, rgba(200, 161, 58, 0.1), rgba(255, 255, 255, 0.015));
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--border);
}

.testimonial-head {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.9rem;
}

.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--gold-grad);
    color: #120e04;
    font-weight: 700;
    font-size: 0.9rem;
}

.testimonial-head h3 {
    margin: 0;
    font-size: 1rem;
}

.testimonial-head span {
    font-size: 0.82rem;
    color: var(--muted);
}

.testimonial-card p {
    margin: 0;
    color: #dcd8cf;
    font-size: 0.93rem;
}

.quote-mark {
    position: absolute;
    right: 1.1rem;
    bottom: 0.6rem;
    font-size: 2.6rem;
    color: rgba(200, 161, 58, 0.16);
}

/* ---------------- Stack strip ---------------- */

.stack-section {
    width: min(100% - 2rem, var(--max-content));
    margin: clamp(2.5rem, 6vw, 4.5rem) auto 0;
    padding: clamp(1.5rem, 3.5vw, 2.4rem);
    border-radius: 26px;
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
    border: 1px solid var(--border-soft);
}

.stack-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.6rem;
}

.stack-head h2 {
    margin: 0;
    font-size: clamp(1.3rem, 3vw, 1.9rem);
    color: var(--accent-soft);
}

.stack-link {
    text-decoration: none;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 500;
}

.stack-link:hover {
    color: var(--accent-soft);
}

.stack-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem 1.5rem;
}

.stack-logos span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    font-weight: 600;
    color: #cfcac0;
    opacity: 0.75;
    transition: opacity 0.25s ease, color 0.25s ease;
}

.stack-logos span:hover {
    opacity: 1;
    color: var(--accent-soft);
}

.stack-logos i {
    font-size: 1.25em;
    color: var(--accent);
}

/* ---------------- Currently ---------------- */

.now-section {
    width: min(100% - 2rem, var(--max-content));
    margin: clamp(2.5rem, 6vw, 4.5rem) auto 0;
    text-align: center;
}

.now-section p {
    max-width: 64ch;
    margin: 0.8rem auto 1.2rem;
    color: var(--muted);
}

.now-section .tech-badges {
    justify-content: center;
}

/* ---------------- Contact ---------------- */

.contact {
    width: min(100% - 2rem, var(--max-content));
    margin: clamp(2.5rem, 6vw, 4.5rem) auto 0;
}

.availability {
    text-align: center;
    color: var(--muted);
    margin: 0.7rem 0 0;
}

.contact-grid {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 1.2rem;
    align-items: start;
}

.contact-info {
    display: grid;
    gap: 0.8rem;
}

.contact-line {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1.1rem;
    border-radius: 16px;
    text-decoration: none;
    background: var(--panel);
    border: 1px solid var(--border-soft);
    transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.contact-line:hover {
    border-color: var(--accent);
    background: rgba(200, 161, 58, 0.08);
    transform: translateX(4px);
}

.contact-line i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(200, 161, 58, 0.14);
    color: var(--accent-soft);
}

.contact-line span {
    font-size: 0.88rem;
    color: var(--muted);
    word-break: break-word;
}

.contact-line strong {
    display: block;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 600;
}

.contact form {
    display: grid;
    gap: 0.9rem;
    padding: clamp(1.2rem, 3vw, 1.8rem);
    border-radius: 20px;
    background: var(--panel);
    border: 1px solid var(--border-soft);
}

.field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.field {
    display: grid;
    gap: 0.35rem;
}

.contact label {
    font-size: 0.85rem;
    color: var(--muted);
}

.contact input,
.contact textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border-soft);
    background: rgba(0, 0, 0, 0.35);
    color: var(--text);
    font-family: inherit;
    padding: 0.75rem 0.9rem;
    font-size: 0.93rem;
}

.contact input::placeholder,
.contact textarea::placeholder {
    color: #8d8a82;
}

.contact input:focus,
.contact textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(200, 161, 58, 0.15);
}

.contact textarea {
    min-height: 160px;
    resize: vertical;
}

.contact button[type="submit"] {
    justify-self: start;
}

.form-status {
    min-height: 1.3rem;
    margin: 0;
    color: var(--accent-soft);
    font-size: 0.88rem;
}

.form-status.error {
    color: #ffb3b3;
}

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

footer {
    margin-top: clamp(3rem, 7vw, 5rem);
    padding: 0 0 2rem;
}

.footer-panel {
    width: min(100% - 2rem, var(--max-content));
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    padding: clamp(1.8rem, 4vw, 2.8rem);
    border-radius: 26px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
    border: 1px solid var(--border-soft);
}

.footer-brand h3 {
    margin: 0 0 0.7rem;
    font-size: 1.25rem;
}

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

.footer-brand p {
    margin: 0 0 1rem;
    color: var(--muted);
    font-size: 0.88rem;
    max-width: 40ch;
}

.footer-location strong {
    color: var(--text);
}

.footer-col h4,
.footer-contact h4 {
    margin: 0 0 1rem;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-soft);
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.footer-col a {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.88rem;
    transition: color 0.25s ease, padding-left 0.25s ease;
}

.footer-col a:hover {
    color: var(--accent-soft);
    padding-left: 4px;
}

.footer-contact p {
    margin: 0 0 1rem;
    color: var(--muted);
    font-size: 0.88rem;
}

.footer-mail {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.1rem;
    color: var(--accent-soft);
    text-decoration: none;
    font-size: 0.87rem;
    word-break: break-all;
}

.footer-bottom {
    width: min(100% - 2rem, var(--max-content));
    margin: 1.5rem auto 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--border-soft);
    color: var(--muted);
    font-size: 0.85rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-socials {
    display: flex;
    gap: 0.6rem;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-soft);
    border-radius: 50%;
    text-decoration: none;
    color: var(--muted);
    transition: all 0.25s ease;
}

.footer-socials a:hover {
    color: var(--accent-soft);
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* ---------------- Back to top ---------------- */

.to-top {
    position: fixed;
    right: clamp(0.9rem, 3vw, 1.8rem);
    bottom: clamp(0.9rem, 3vw, 1.8rem);
    z-index: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    text-decoration: none;
    color: #120e04;
    background: var(--gold-grad);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ---------------- Reveal animation ---------------- */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* =========================================================
   Contact standalone page
   ========================================================= */

.contact-page {
    min-height: 100svh;
    padding: 2rem 1rem 3rem;
}

.contact-page .card {
    width: min(100%, 760px);
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: clamp(1rem, 4vw, 2rem);
}

.contact-page .link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem 1rem;
    margin-bottom: 1rem;
}

.contact-page .link-row a {
    color: var(--accent-soft);
}

/* =========================================================
   Project case study pages
   ========================================================= */

.project-page {
    min-height: 100svh;
    background: #000;
}

.project-page header {
    min-height: 88px;
    padding-block: 1rem;
}

.project-shell {
    width: min(100% - 2rem, var(--max-content));
    margin-inline: auto;
}

.project-topbar,
.project-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: min(100% - 2rem, var(--max-content));
    margin-inline: auto;
}

.project-brand {
    font-size: clamp(1.25rem, 2vw, 1.8rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--accent);
}

.project-nav {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.project-nav a,
.project-footer-links a,
.project-back-link {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.25s ease;
}

.project-nav a:hover,
.project-footer-links a:hover,
.project-back-link:hover {
    color: var(--accent-soft);
}

.project-hero {
    padding: 3rem 0 2rem;
}

.project-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1.5rem;
}

.project-title {
    margin: 0;
    color: var(--accent-soft);
    font-size: clamp(2.5rem, 7vw, 5rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
    max-width: 11ch;
}

.project-intro {
    margin: 1rem 0 1.75rem;
    max-width: 62ch;
    color: var(--muted);
    font-size: clamp(1rem, 1.5vw, 1.15rem);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.project-tags span,
.project-meta span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    color: var(--muted);
    background: rgba(255, 255, 255, 0.02);
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.project-preview-wrap {
    padding: 1rem 0 2rem;
}

.project-preview-card {
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(35, 35, 35, 0.95), rgba(17, 17, 17, 0.96));
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.project-browser-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-soft);
}

.project-browser-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 999px;
}

.project-browser-dot.red { background: #ff5f57; }
.project-browser-dot.yellow { background: #febc2e; }
.project-browser-dot.green { background: #28c840; }

.project-browser-url {
    margin-left: auto;
    margin-right: auto;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    font-size: 0.74rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.project-preview {
    position: relative;
    min-height: 420px;
    background: #0e0e0e;
}

.project-preview img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    opacity: 0.82;
    mix-blend-mode: screen;
}

.project-preview::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent 58%);
    pointer-events: none;
}

.project-info-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1rem;
    margin: 1.5rem 0 2rem;
}

.project-panel {
    padding: 1.2rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
}

.project-panel h2 {
    margin: 0 0 0.75rem;
    color: var(--accent-soft);
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.project-panel p,
.project-panel li {
    color: var(--muted);
}

.project-panel ul {
    margin: 0;
    padding-left: 1.15rem;
}

.project-footer {
    border-top: 1px solid var(--border);
    padding: 1.5rem 0 2.5rem;
}

.project-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.project-footer-copy {
    color: var(--muted);
    font-size: 0.9rem;
}

.project-page .btn {
    min-width: 150px;
}

.project-brand {
    text-decoration: none;
}

/* ---- Live embed preview ---- */

.project-browser-open {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
    color: var(--accent-soft);
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.project-browser-bar .project-browser-url {
    margin-right: 0;
}

.project-live-frame {
    position: relative;
    background: #0b0b0b;
    height: clamp(340px, 62vh, 640px);
}

.project-live-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.project-frame-note {
    width: min(100% - 2rem, var(--max-content));
    margin: 0.8rem auto 0;
    color: var(--muted);
    font-size: 0.83rem;
    text-align: center;
}

.project-frame-note a {
    color: var(--accent-soft);
}

/* ---- Case study sections ---- */

.case-section {
    margin-block: clamp(2.5rem, 6vw, 4rem);
}

.case-heading {
    margin: 0;
    font-size: clamp(1.5rem, 3.6vw, 2.2rem);
}

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

.case-lead {
    max-width: 72ch;
    margin: 0.7rem 0 1.8rem;
    color: var(--muted);
}

.project-page code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.88em;
    color: var(--accent-soft);
    background: rgba(200, 161, 58, 0.1);
    border-radius: 5px;
    padding: 0.08em 0.38em;
    word-break: break-word;
}

.case-notice {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    margin-top: 2rem;
    padding: 1.1rem 1.25rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    background: rgba(200, 161, 58, 0.08);
}

.case-notice i {
    color: var(--accent);
    margin-top: 0.28rem;
}

.case-notice p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    max-width: 82ch;
}

.case-notice strong {
    color: var(--text);
}

.case-notice a {
    color: var(--accent-soft);
}

/* ---- Metrics ---- */

.metric-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.9rem;
}

.metric-card {
    padding: 1.2rem 1rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border-soft);
    background: linear-gradient(158deg, rgba(200, 161, 58, 0.12), rgba(255, 255, 255, 0.02));
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-4px);
    border-color: var(--border);
}

.metric-card strong {
    display: block;
    font-size: clamp(1.4rem, 3vw, 1.85rem);
    font-weight: 800;
    background: var(--gold-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.metric-card span {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text);
}

.metric-card small {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.72rem;
    line-height: 1.4;
    color: var(--muted);
}

.case-callout {
    margin-top: 1.5rem;
    padding: 1.3rem 1.4rem;
    border-radius: 18px;
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.028);
}

.case-callout h3 {
    margin: 0 0 0.6rem;
    font-size: 1rem;
    color: var(--accent-soft);
}

.case-callout h3 i {
    margin-right: 0.4rem;
}

.case-callout p {
    margin: 0;
    color: var(--muted);
    font-size: 0.93rem;
    max-width: 88ch;
}

.case-callout strong {
    color: var(--text);
}

/* ---- Architecture ---- */

.arch-flow {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: stretch;
    gap: 0.8rem;
}

.arch-col {
    padding: 1.3rem;
    border-radius: 18px;
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.028);
}

.arch-col h3 {
    margin: 0 0 0.85rem;
    font-size: 0.98rem;
    color: var(--accent-soft);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.arch-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
}

.arch-col li {
    position: relative;
    padding-left: 1rem;
    font-size: 0.86rem;
    color: var(--muted);
}

.arch-col li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
}

.arch-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.1rem;
}

.module-grid {
    margin-top: 1.2rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.module-card {
    padding: 1.05rem;
    border-radius: 14px;
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.022);
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.module-card:hover {
    border-color: var(--border);
    transform: translateY(-3px);
}

.module-card i {
    color: var(--accent);
    font-size: 0.95rem;
}

.module-card h4 {
    margin: 0.5rem 0 0.3rem;
    font-size: 0.9rem;
    font-family: "SFMono-Regular", Consolas, monospace;
    color: var(--text);
}

.module-card p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--muted);
}

/* ---- Pipeline steps ---- */

.pipeline-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    counter-reset: step;
}

.pipeline-steps li {
    position: relative;
    padding: 1.4rem 1.2rem 1.2rem;
    border-radius: 18px;
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.028);
}

.step-num {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--accent);
}

.pipeline-steps h3 {
    margin: 0.35rem 0 0.45rem;
    font-size: 1.05rem;
}

.pipeline-steps p {
    margin: 0;
    font-size: 0.87rem;
    color: var(--muted);
}

/* ---- Features ---- */

.feature-columns {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
}

.feature-group {
    padding: 1.2rem;
    border-radius: 16px;
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.028);
}

.feature-group h3 {
    margin: 0 0 0.75rem;
    font-size: 0.78rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--accent-soft);
}

.feature-group ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
}

.feature-group li {
    position: relative;
    padding-left: 1.35rem;
    font-size: 0.87rem;
    color: var(--muted);
}

.feature-group li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    font-size: 0.72rem;
    color: var(--accent);
}

/* ---- Decisions ---- */

.decision-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.decision-card {
    padding: 1.3rem;
    border-radius: 18px;
    border: 1px solid var(--border-soft);
    background: linear-gradient(160deg, rgba(200, 161, 58, 0.09), rgba(255, 255, 255, 0.015));
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.decision-card:hover {
    transform: translateY(-4px);
    border-color: var(--border);
}

.decision-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    color: var(--accent-soft);
}

.decision-card p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--muted);
}

/* ---- Run locally ---- */

.run-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.run-block {
    padding: 1.3rem;
    border-radius: 18px;
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.028);
}

.run-block h3 {
    margin: 0 0 0.9rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.run-block h3 i {
    color: var(--accent);
}

.run-block pre {
    margin: 0;
    padding: 1rem;
    border-radius: 12px;
    background: #07070a;
    border: 1px solid var(--border-soft);
    overflow-x: auto;
}

.run-block pre code {
    background: none;
    padding: 0;
    color: #d8d4c9;
    font-size: 0.82rem;
    line-height: 1.75;
    white-space: pre;
}

.run-note {
    margin: 0.8rem 0 0;
    font-size: 0.83rem;
    color: var(--muted);
}

/* ---- Roadmap ---- */

.roadmap {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.roadmap-item {
    display: flex;
    gap: 1rem;
    padding: 1.2rem;
    border-radius: 16px;
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.025);
}

.roadmap-item i {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: var(--accent-soft);
    background: rgba(200, 161, 58, 0.14);
    border: 1px solid var(--border);
}

.roadmap-item h3 {
    margin: 0 0 0.3rem;
    font-size: 0.98rem;
}

.roadmap-item p {
    margin: 0;
    font-size: 0.86rem;
    color: var(--muted);
}

/* ---- Case CTA ---- */

.case-cta {
    margin: clamp(2.5rem, 6vw, 4rem) auto;
    padding: clamp(1.8rem, 4vw, 2.8rem);
    border-radius: 24px;
    text-align: center;
    border: 1px solid var(--border);
    background: linear-gradient(150deg, rgba(200, 161, 58, 0.14), rgba(255, 255, 255, 0.02));
}

.case-cta h2 {
    margin: 0 0 0.6rem;
    font-size: clamp(1.35rem, 3vw, 1.9rem);
}

.case-cta p {
    margin: 0 auto 1.4rem;
    max-width: 60ch;
    color: var(--muted);
}

.case-cta .project-actions {
    justify-content: center;
}

@media (max-width: 1100px) {
    .metric-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .arch-flow {
        grid-template-columns: 1fr;
    }

    .arch-arrow {
        transform: rotate(90deg);
    }

    .module-grid,
    .pipeline-steps,
    .decision-grid,
    .feature-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .module-grid,
    .pipeline-steps,
    .decision-grid,
    .feature-columns,
    .run-grid,
    .roadmap {
        grid-template-columns: 1fr;
    }

    .project-live-frame {
        height: 420px;
    }

    .project-browser-open span {
        display: none;
    }
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1100px) {
    .navbar {
        gap: 0.8rem;
    }

    .navbar a {
        font-size: 0.88rem;
    }

    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        min-height: auto;
    }

    .hero-copy {
        margin-inline: auto;
    }

    .hero-form {
        margin-inline: auto;
    }

    .social-icons {
        justify-content: center;
    }

    .hero-image {
        order: -1;
        margin-bottom: 1rem;
    }

    .expertise-panel,
    .project-grid,
    .skills-wrapper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .featured-card {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 960px) {
    .package-grid {
        grid-template-columns: 1fr;
        max-width: 460px;
        margin-inline: auto;
    }

    .project-topbar,
    .project-footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .project-info-grid {
        grid-template-columns: 1fr;
    }

    .project-browser-url {
        margin-left: 0;
    }

    .project-preview,
    .project-preview img {
        min-height: 320px;
    }
}

@media (max-width: 900px) {
    :root {
        --header-height: 68px;
    }

    header {
        padding: 0.7rem 1rem;
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: inline-flex;
        order: 3;
    }

    .header-actions {
        display: none;
    }

    nav {
        display: none;
        flex: 0 0 100%;
        order: 4;
    }

    header.open nav {
        display: block;
    }

    .navbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.1rem;
        margin-top: 0.7rem;
        padding: 0.6rem;
        border-radius: 14px;
        background: #0b0a06;
        border: 1px solid var(--border-soft);
        box-shadow: 0 18px 35px rgba(0, 0, 0, 0.6);
    }

    .navbar a {
        width: 100%;
        padding: 0.65rem 0.6rem;
        border-radius: 10px;
        font-size: 0.95rem;
    }

    .navbar a:hover,
    .navbar a.active {
        background: rgba(200, 161, 58, 0.1);
    }

    .navbar a::after {
        display: none;
    }

    /* Touch devices: project details always visible */
    .project-box img {
        height: clamp(190px, 42vw, 240px);
    }

    .stack-logos {
        justify-content: flex-start;
        gap: 0.9rem 1.4rem;
    }
}

@media (max-width: 700px) {
    .expertise-panel,
    .project-grid,
    .skills-wrapper,
    .testimonials-grid,
    .stat-grid,
    .footer-panel,
    .field-row {
        grid-template-columns: 1fr;
    }

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

    .expertise-item h3 br,
    .stack-head h2 br {
        display: none;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 560px) {
    body {
        line-height: 1.6;
    }

    .hero-form {
        flex-direction: column;
        align-items: stretch;
        border-radius: 18px;
        padding: 0.6rem;
        gap: 0.55rem;
    }

    .hero-form .btn {
        width: 100%;
    }

    .float-chip {
        font-size: 0.7rem;
        padding: 0.32rem 0.65rem;
    }

    .chip-1 { top: 2%; left: -2%; }
    .chip-2 { bottom: 8%; left: -2%; }
    .chip-3 { top: 24%; right: -2%; }

    .filter-row {
        gap: 0.45rem;
    }

    .filter-btn {
        font-size: 0.8rem;
        padding: 0.42rem 0.9rem;
    }

    .button-row .btn,
    .button-row .btn-alt {
        flex: 1 1 100%;
    }

    .contact button[type="submit"] {
        width: 100%;
        justify-self: stretch;
    }

    .package-card {
        padding: 1.3rem 1.1rem;
    }
}

/* Touch / no-hover devices */
@media (hover: none), (pointer: coarse) {
    .project-content {
        position: static;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        background: #0b0a05;
    }

    .project-box:hover img {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
