/* full stylesheet */

/* ===== NAVBAR IMPROVEMENTS ===== */
.site-header {
    background: linear-gradient(180deg, rgba(240, 244, 250, 0.98) 0%, rgba(230, 238, 248, 0.96) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.navbar {
    padding: 0.75rem 0 !important;
    min-height: 60px;
}

.brand-lockup {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-lockup:hover {
    transform: scale(1.05);
}

.brand-logo {
    max-height: 40px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.12));
    transition: filter 0.3s ease;
}

.brand-lockup:hover .brand-logo {
    filter: drop-shadow(0 4px 12px rgba(124, 58, 237, 0.25));
}

.navbar-nav {
    gap: 0.5rem;
}

.site-header .navbar-nav .nav-link {
    color: #334155 !important;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.site-header .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    width: calc(100% - 2rem);
    height: 2px;
    background: linear-gradient(90deg, #38BDF8, #7C3AED);
    border-radius: 1px;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header .navbar-nav .nav-link:hover {
    color: #1e293b !important;
    background: rgba(56, 189, 248, 0.1);
}

.site-header .navbar-nav .nav-link:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

.site-header .navbar-nav .nav-link.active {
    color: #38BDF8 !important;
    background: rgba(56, 189, 248, 0.12);
}

.site-header .navbar-nav .nav-link.active::after {
    opacity: 1;
    transform: scaleX(1);
}

/* Button color refresh */
:root {
    --cmg-btn-bg: #e2e8f0b8;
    --cmg-btn-hover-bg: #d5deebb8;
    --cmg-btn-active-bg: #c7d3e4b8;
    --cmg-btn-border: #e6eef8f5;
}

.btn,
.btn-primary,
.btn-outline-primary {
    background: var(--cmg-btn-bg);
    border-color: var(--cmg-btn-border);
    color: #1e293b;
    box-shadow: none;
}

.btn:hover,
.btn-primary:hover,
.btn-outline-primary:hover {
    background: var(--cmg-btn-hover-bg);
    border-color: var(--cmg-btn-border);
    color: #1e293b;
    box-shadow: none;
}

.btn:focus-visible,
.btn-primary:focus-visible,
.btn-outline-primary:focus-visible {
    background: var(--cmg-btn-bg);
    border-color: var(--cmg-btn-border);
    color: #1e293b;
    box-shadow: none;
}

.btn:active,
.btn.active,
.show > .btn-primary.dropdown-toggle,
.btn-primary:active,
.btn-primary.active,
.btn-outline-primary:active,
.btn-outline-primary.active {
    background: var(--cmg-btn-active-bg);
    border-color: var(--cmg-btn-border);
    color: #1e293b;
    box-shadow: none;
}

.btn-primary:focus-visible,
.btn-outline-primary:focus-visible,
.btn:focus-visible {
    box-shadow: 0 0 0 0.24rem rgba(37, 99, 235, 0.16);
}

/* Button styling in navbar */
.navbar .btn-primary {
    padding: 0.5rem 1.2rem !important;
    font-size: 0.9rem !important;
    font-weight: 600;
    border-radius: 0.6rem !important;
    background: var(--cmg-btn-bg);
    border: 1px solid var(--cmg-btn-border);
    transition: all 0.3s ease;
    box-shadow: none;
}

.navbar .btn-primary:hover {
    background: var(--cmg-btn-hover-bg);
    border-color: var(--cmg-btn-border);
    box-shadow: none;
    transform: translateY(-2px);
}

/* Navbar toggler for mobile */
.navbar-toggler {
    padding: 0.35rem 0.65rem !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    border-radius: 0.5rem !important;
}

.navbar-toggler-icon {
    filter: invert(0.2) saturate(1.2) contrast(1.2);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(56, 189, 248, 0.14) !important;
}

/* ===== SECTION DIFFERENTIATION ===== */
main > section {
    position: relative;
}

main > section + section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(92%, 1180px);
    height: 1px;
    background: linear-gradient(90deg, rgba(148,163,184,0), rgba(148,163,184,0.45), rgba(148,163,184,0));
}

.section-tone-hero {
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.92) 0%, rgba(241, 246, 255, 0.86) 100%);
}

.section-tone-plain {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 252, 255, 0.98) 100%);
}

.section-tone-soft {
    background: linear-gradient(180deg, rgba(241, 246, 255, 0.95) 0%, rgba(236, 243, 253, 0.95) 100%);
}

.section-tone-accent {
    background: radial-gradient(circle at 92% 8%, rgba(56,189,248,0.12), transparent 30%), radial-gradient(circle at 8% 92%, rgba(124,58,237,0.1), transparent 35%), linear-gradient(180deg, rgba(248, 251, 255, 0.98) 0%, rgba(242, 248, 255, 0.98) 100%);
}

/* Icon and Service Card Styling */
.icon-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(56,189,248,0.10));
    border: 1px solid rgba(124,58,237,0.22);
    transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s ease;
}

.service-card:hover .icon-chip {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 24px rgba(124,58,237,0.15);
}

.service-icon {
    width: 2rem;
    height: 2rem;
    color: #38BDF8;
    filter: drop-shadow(0 0 8px rgba(56,189,248,0.3));
    transition: color .3s ease, filter .3s ease;
}

.service-card:hover .service-icon {
    color: #7C3AED;
    filter: drop-shadow(0 0 12px rgba(124,58,237,0.4));
}

/* SVG Icon styling - ensure icons display properly */
.service-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-mockup {
    max-width: 44rem;
}

.hero-mockup-image {
    width: 100%;
    border-radius: 1.35rem;
    box-shadow: 0 40px 90px rgba(0,0,0,0.55), 0 0 0 1px rgba(124,58,237,0.22), 0 0 50px rgba(124,58,237,0.14), 0 0 80px rgba(56,189,248,0.08);
    animation: hero-float 6s ease-in-out infinite;
}

.hero-floating {
    position: absolute;
    z-index: 2;
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(148,163,184,0.35);
    backdrop-filter: blur(18px);
    box-shadow: 0 16px 36px rgba(15,23,42,0.12);
}

.hero-floating-top { top: 1rem; left: 1rem; }
.hero-floating-left { bottom: 1.5rem; left: 1rem; }
.hero-floating-right { bottom: 2.2rem; right: 1rem; }

.logo-chip,
.stat-card,
.timeline-card,
.portfolio-card,
.reason-card,
.testimonial-card,
.pricing-card,
.contact-card,
.tech-panel,
.contact-form-card,
.case-card,
.service-card,
.about-panel {
    background: rgba(255, 255, 255, 0.92);
    border: 1.5px solid rgba(148,163,184,0.65);
    border-bottom: 2px solid rgba(100,116,139,0.45);
    border-right: 2px solid rgba(100,116,139,0.35);
    box-shadow: 2px 2px 0 rgba(100,116,139,0.18) !important;
    transition: all .3s cubic-bezier(.16,1,.3,1);
}

/* === SECTION-AWARE CARD BACKGROUNDS === */
/* Section with white/near-white bg → cards get soft blue gradient */
.section-tone-plain .logo-chip,
.section-tone-plain .stat-card,
.section-tone-plain .timeline-card,
.section-tone-plain .portfolio-card,
.section-tone-plain .reason-card,
.section-tone-plain .testimonial-card,
.section-tone-plain .pricing-card,
.section-tone-plain .contact-card,
.section-tone-plain .tech-panel,
.section-tone-plain .contact-form-card,
.section-tone-plain .case-card,
.section-tone-plain .service-card,
.section-tone-plain .about-panel {
    background: linear-gradient(180deg, rgba(241, 246, 255, 0.95) 0%, rgba(236, 243, 253, 0.95) 100%);
}

/* Section with soft blue bg → cards get white/near-white gradient */
.section-tone-soft .logo-chip,
.section-tone-soft .stat-card,
.section-tone-soft .timeline-card,
.section-tone-soft .portfolio-card,
.section-tone-soft .reason-card,
.section-tone-soft .testimonial-card,
.section-tone-soft .pricing-card,
.section-tone-soft .contact-card,
.section-tone-soft .tech-panel,
.section-tone-soft .contact-form-card,
.section-tone-soft .case-card,
.section-tone-soft .service-card,
.section-tone-soft .about-panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 252, 255, 0.98) 100%);
}

/* Process node cards follow the same section-aware rule */
.section-tone-plain .process-node-card {
    background: linear-gradient(180deg, rgba(241, 246, 255, 0.95) 0%, rgba(236, 243, 253, 0.95) 100%);
}

.section-tone-soft .process-node-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 252, 255, 0.98) 100%);
}

.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(124,58,237,0.1) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    border-color: rgba(124,58,237,0.5);
    border-bottom-color: rgba(124,58,237,0.55);
    border-right-color: rgba(124,58,237,0.45);
    box-shadow: 2px 2px 0 rgba(124,58,237,0.22) !important;
}

.logo-chip {
    border-radius: 0.85rem;
    padding: 0.95rem 0.75rem;
    font-weight: 600;
    color: #334155;
}

.counter-number {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1;
    font-weight: 800;
    color: #0f172a;
}

.timeline-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(124,58,237,0.18), rgba(56,189,248,0.14));
    color: #fff;
    font-weight: 800;
}

.process-flow {
    position: relative;
    display: grid;
    gap: 1.2rem;
    max-width: 72rem;
    margin-inline: auto;
}

.process-flow::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(56,189,248,0.45), rgba(124,58,237,0.35));
}

.process-node {
    position: relative;
    width: calc(50% - 2rem);
}

.process-node-left {
    justify-self: start;
}

.process-node-right {
    justify-self: end;
}

.process-node-marker {
    position: absolute;
    top: 50%;
    width: 2.25rem;
    height: 2.25rem;
    transform: translateY(-50%);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: #0f172a;
    background: linear-gradient(135deg, rgba(56,189,248,0.7), rgba(124,58,237,0.45));
    border: 1px solid rgba(255,255,255,0.8);
    box-shadow: 0 8px 18px rgba(15,23,42,0.15);
    z-index: 2;
}

.process-node:not(:last-child) .process-node-marker::after {
    content: "";
    position: absolute;
    left: 50%;
    top: calc(100% + 0.3rem);
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 0.32rem solid transparent;
    border-right: 0.32rem solid transparent;
    border-top: 0.48rem solid rgba(99, 102, 241, 0.58);
}

.process-node-left .process-node-marker {
    right: -3.15rem;
}

.process-node-right .process-node-marker {
    left: -3.15rem;
}

.process-node::before {
    content: "";
    position: absolute;
    top: 50%;
    width: 2rem;
    height: 1px;
    transform: translateY(-50%);
    background: rgba(148,163,184,0.55);
}

.process-node-left::before {
    right: -2rem;
}

.process-node-left::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -2.02rem;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 0.28rem solid transparent;
    border-bottom: 0.28rem solid transparent;
    border-left: 0.42rem solid rgba(148,163,184,0.62);
}

.process-node-right::before {
    left: -2rem;
}

.process-node-right::after {
    content: "";
    position: absolute;
    top: 50%;
    left: -2.02rem;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 0.28rem solid transparent;
    border-bottom: 0.28rem solid transparent;
    border-right: 0.42rem solid rgba(148,163,184,0.62);
}

.process-node-card {
    background: rgba(255,255,255,0.95);
    border: 1.5px solid rgba(148,163,184,0.65);
    border-bottom: 2px solid rgba(100,116,139,0.45);
    border-right: 2px solid rgba(100,116,139,0.35);
    box-shadow: 2px 2px 0 rgba(100,116,139,0.18) !important;
}

.portfolio-image {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-bottom: 1px solid rgba(96,165,250,0.12);
}

.tech-badge {
    background: linear-gradient(135deg, rgba(124,58,237,0.16), rgba(56,189,248,0.12));
    border-color: rgba(96,165,250,0.16) !important;
    color: #1e293b !important;
    font-weight: 600;
}

.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: .85rem;
}

.tech-showcase-shell {
    position: relative;
}

.tech-pill {
    appearance: none;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #334155;
    border-radius: 0.75rem;
    padding: .75rem .9rem;
    text-align: left;
    font-weight: 600;
    display: grid;
    gap: 0.1rem;
    transition: border-color .15s ease, background .15s ease;
}

.tech-pill-name {
    color: #0f172a;
    font-size: 0.95rem;
}

.tech-pill-category {
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 700;
}

.tech-pill:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.tech-pill.is-active {
    border-color: #0ea5e9;
    background: #ecf9ff;
}

.tech-pill:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}

.tech-spotlight {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.9rem;
}

.tech-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.tech-panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tech-meta-chip {
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #0369a1;
    border: 1px solid #e0f2fe;
    background: #f0f9ff;
    border-radius: 999px;
    padding: 0.3rem 0.65rem;
    font-weight: 700;
}

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

.tech-capability-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 0.6rem;
    border: 1px solid #e2e8f0;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.3rem 0.6rem;
}

/* Keep the technology detail card stable when descriptions change length. */
.tech-panel .card-body {
    min-height: 19.5rem;
}

.tech-panel [data-tech-title] {
    min-height: 2rem;
}

.tech-panel [data-tech-description] {
    min-height: 4.75rem;
}

.contact-email {
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    font-weight: 700;
    color: #1e293b;
    text-decoration: none;
}

.contact-email:hover,
.contact-email:focus-visible {
    color: #c4b5fd;
}

.site-footer {
    background: linear-gradient(180deg, rgba(240, 244, 250, 0.98) 0%, rgba(230, 238, 248, 0.96) 100%);
}

.footer-shell {
    border-radius: 1.2rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.8), rgba(245, 249, 255, 0.9));
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow: 0 20px 38px rgba(15, 23, 42, 0.08);
}

.footer-logo {
    height: 2.1rem;
    width: auto;
    object-fit: contain;
}

.footer-copy {
    color: #475569;
    line-height: 1.7;
}

.footer-heading {
    color: #0f172a;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.77rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-links {
    display: grid;
    gap: 0.55rem;
}

.footer-link {
    color: #334155;
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
}

.footer-link:hover,
.footer-link:focus-visible {
    color: #0ea5e9;
    transform: translateX(2px);
}

.footer-email {
    color: #0f172a;
    font-weight: 700;
    text-decoration: none;
}

.footer-email:hover,
.footer-email:focus-visible {
    color: #7c3aed;
}

.footer-address-link {
    color: #334155;
    text-decoration: none;
}

.footer-address-link:hover,
.footer-address-link:focus-visible {
    color: #0ea5e9;
}

.footer-link-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .65rem .95rem;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.72);
    border: 1px solid rgba(148,163,184,.4);
    color: #1e293b;
    text-decoration: none;
}

.footer-link-chip:hover,
.footer-link-chip:focus-visible {
    color: #0f172a;
    border-color: rgba(124,58,237,.5);
    background: rgba(216, 226, 240, 0.92);
}

.footer-bottom {
    border-top: 1px solid rgba(148,163,184,0.35);
    color: #475569;
}

.footer-meta-link {
    color: #334155;
    text-decoration: none;
}

.footer-meta-link:hover,
.footer-meta-link:focus-visible {
    color: #0ea5e9;
}

.faq-accordion .accordion-item {
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(148,163,184,.28);
    margin-bottom: .85rem;
    border-radius: 1rem;
    overflow: hidden;
}

.faq-accordion .accordion-button,
.faq-accordion .accordion-body {
    background: transparent;
    color: #334155;
}

.faq-accordion .accordion-button:not(.collapsed) {
    box-shadow: none;
    background: rgba(240,247,255,.96);
    color: #0f172a;
}

.faq-accordion .accordion-button::after {
    filter: none;
}

.testimonial-avatar {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid rgba(56,189,248,.28);
    background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(56,189,248,0.1));
    box-shadow: 0 4px 12px rgba(56,189,248,0.15);
    transition: transform .3s ease, box-shadow .3s ease;
}

.testimonial-card:hover .testimonial-avatar {
    transform: scale(1.08);
    box-shadow: 0 8px 20px rgba(124,58,237,0.25);
}

.testimonial-quote {
    font-size: 1rem;
    line-height: 1.75;
}

.pricing-eyebrow {
    color: #c4b5fd;
    font-weight: 600;
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}

.reveal[data-animate="left"] { transform: translateX(-20px); }
.reveal[data-animate="right"] { transform: translateX(20px); }
.reveal.is-visible { opacity: 1; transform: translate(0, 0); }

@keyframes hero-float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal,
    .reveal[data-animate="left"],
    .reveal[data-animate="right"] {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .hero-mockup-image { animation: none; }
}

@media (max-width: 991.98px) {
    .py-lg-6 { padding-top: 4.75rem; padding-bottom: 4.75rem; }

    .process-flow {
        gap: 1rem;
    }

    .process-flow::before {
        left: 1rem;
        transform: none;
    }

    .process-node,
    .process-node-left,
    .process-node-right {
        width: 100%;
        justify-self: stretch;
        padding-left: 2.4rem;
    }

    .process-node::before,
    .process-node-left::before,
    .process-node-right::before {
        left: 1rem;
        width: 1.2rem;
    }

    .process-node-left::after,
    .process-node-right::after {
        left: 2.2rem;
        right: auto;
        border-top-width: 0.24rem;
        border-bottom-width: 0.24rem;
        border-left-width: 0;
        border-right: 0.36rem solid rgba(148,163,184,0.55);
    }

    .process-node-marker,
    .process-node-left .process-node-marker,
    .process-node-right .process-node-marker {
        left: 0;
        right: auto;
        width: 2rem;
        height: 2rem;
    }

    .process-node:not(:last-child) .process-node-marker::after {
        border-left-width: 0.28rem;
        border-right-width: 0.28rem;
        border-top-width: 0.42rem;
    }

    .footer-shell {
        border-radius: 1rem;
    }

    /* Navbar adjustments for medium screens */
    .navbar {
        min-height: 55px;
    }

    .brand-logo {
        max-height: 36px;
        filter: drop-shadow(0 1.5px 4px rgba(0, 0, 0, 0.1));
    }

    .site-header .navbar-brand { margin-right: 0; max-width: min(60vw, 15rem); }
    .site-header .navbar-collapse { padding-top: 0.75rem; padding-bottom: 0.75rem; }
    .site-header .navbar-nav { align-items: flex-start !important; gap: 0.25rem; }
    .site-header .nav-link { padding: 0.5rem 0 !important; font-size: 0.9rem; color: #334155 !important; }
    .site-header .nav-link::after { display: none; }
    .site-header .navbar-nav .btn { width: 100%; justify-content: center; margin-top: 0.5rem; }
}

@media (max-width: 767.98px) {
    .py-lg-6 { padding-top: 4rem; padding-bottom: 4rem; }
    main > section,
    footer { scroll-margin-top: 5rem; }

    .footer-logo {
        height: 1.9rem;
    }

    .footer-bottom {
        text-align: center;
    }

    /* Mobile navbar */
    .navbar {
        min-height: 52px;
    }

    .brand-logo {
        max-height: 32px;
        filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.1));
    }

    .hero-mockup-image { border-radius: 1rem; }
    .hero-floating { position: static; margin-top: .75rem; }
    .hero-mockup { display: grid; gap: .75rem; }
    .tech-stack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tech-panel .card-body { min-height: 17rem; }
}

@media (max-width: 575.98px) {
    .py-lg-6 { padding-top: 3.25rem; padding-bottom: 3.25rem; }
    .hero-section .display-4 { font-size: clamp(2rem, 10vw, 2.7rem); }
    .section-heading .display-6 { font-size: clamp(1.65rem, 8vw, 2.2rem); }
    .tech-stack-grid { grid-template-columns: 1fr; }
    .tech-panel .card-body,
    .tech-panel [data-tech-description] { min-height: 0; }

    .footer-shell {
        padding: 1.25rem !important;
    }

    .footer-link-chip {
        padding: 0.55rem 0.8rem;
    }

    .process-node,
    .process-node-left,
    .process-node-right {
        padding-left: 2.15rem;
    }

    .process-node-marker,
    .process-node-left .process-node-marker,
    .process-node-right .process-node-marker {
        width: 1.85rem;
        height: 1.85rem;
        font-size: 0.72rem;
    }

    .process-node-left::after,
    .process-node-right::after {
        border-top-width: 0.22rem;
        border-bottom-width: 0.22rem;
        border-right-width: 0.32rem;
    }

    /* Extra small navbar */
    .navbar {
        min-height: 50px;
    }

    .brand-logo {
        max-height: 28px;
        filter: drop-shadow(0 0.5px 2px rgba(0, 0, 0, 0.1));
    }
    .site-header .navbar-nav .nav-link {
        padding: 0.4rem 0.75rem !important;
        font-size: 0.85rem;
    }
}

