/* ==========================================================================
   weidner.se – Web Development & Digital Solutions
   Built on Bootstrap 5.3 (assets/vendor/bootstrap). This file only holds
   theme overrides and site-specific components.
   ========================================================================== */

/* ---------- Theme (Bootstrap variables + own tokens) ---------- */
:root {
    --bs-primary: #2563eb;
    --bs-primary-rgb: 37, 99, 235;
    --bs-link-color: #2563eb;
    --bs-link-color-rgb: 37, 99, 235;
    --bs-link-hover-color: #1d4ed8;
    --bs-link-hover-color-rgb: 29, 78, 216;
    --bs-link-decoration: none;
    --bs-body-color: #0f172a;
    --bs-body-color-rgb: 15, 23, 42;
    --bs-secondary-color: #55627a;
    --bs-border-color: #e3e8f0;
    --bs-body-font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --bs-font-monospace: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --bs-body-font-size: 1.0625rem;
    --bs-body-line-height: 1.65;
    --bs-border-radius: 10px;
    --bs-border-radius-lg: 16px;

    --bg-alt: #f5f7fb;
    --primary-strong: #1d4ed8;
    --accent: #06b6d4;
    --dark: #0b1020;
    --dark-2: #121a33;
    --gradient: linear-gradient(135deg, var(--bs-primary), var(--accent));
    --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, .12);
    --header-h: 72px;
}

/* Smooth scrolling is handled in main.js (eased); native smooth scrolling would interfere */
html { scroll-padding-top: var(--header-h); scroll-behavior: auto !important; }

/* Language switch: cross-fade between old and new page (View Transitions API) */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: .4s; animation-timing-function: ease; }

/* Fallback for browsers without View Transitions: fade body in/out over a white canvas */
html { background: #fff; }
.page-fade body { opacity: 0; transition: opacity .3s ease; }
.page-fade body.is-ready { opacity: 1; }
.page-fade body.is-leaving { opacity: 0; }
body { -webkit-font-smoothing: antialiased; }

h1, h2, h3, h4 { line-height: 1.2; margin-bottom: .6em; letter-spacing: -.02em; font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.2rem; }

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    --bs-btn-padding-x: 1.5em;
    --bs-btn-padding-y: .85em;
    --bs-btn-font-weight: 600;
    --bs-btn-border-radius: 999px;
    transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .2s; }
.btn:hover .icon { transform: translateX(3px); }
.btn-gradient { background: var(--gradient); color: #fff; border: 0; box-shadow: 0 8px 24px rgba(37, 99, 235, .35); }
.btn-gradient:hover, .btn-gradient:focus-visible { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(37, 99, 235, .45); }
.btn-gradient:disabled { color: #fff; background: var(--gradient); opacity: .6; }
.btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .3); }
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .5); }

/* ---------- Header ---------- */
.site-header {
    height: var(--header-h);
    transition: background .3s, box-shadow .3s;
}
/* Stays dark blue (like the hero) when scrolled */
.site-header.scrolled {
    background: rgba(18, 26, 51, .92);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .08), 0 8px 24px rgba(11, 16, 32, .25);
}
.site-header .navbar { --bs-navbar-nav-link-padding-x: .85em; }

.brand { color: var(--bs-emphasis-color); }
.brand:hover, .brand:focus { color: var(--bs-emphasis-color); }
.brand-mark { display: block; width: 46px; height: 46px; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-text { line-height: 1.15; }
.brand-name { font-weight: 700; font-size: 1.05rem; }
.brand-tagline { font-size: .72rem; opacity: .7; letter-spacing: .02em; }

.site-header .nav-link { font-size: .95rem; font-weight: 500; border-radius: 999px; }
.site-header .nav-link:hover { background: rgba(127, 127, 127, .12); }
.site-header .nav-cta { background: rgba(255, 255, 255, .12); color: var(--bs-emphasis-color); margin-left: 6px; }
.site-header.scrolled .nav-cta { background: var(--gradient); color: #fff; }
.site-header.scrolled .nav-cta:hover { background: var(--gradient); color: #fff; box-shadow: 0 6px 18px rgba(37, 99, 235, .4); }

.lang-switch { padding: 3px; border-radius: 999px; border: 1px solid rgba(127, 127, 127, .3); width: max-content; }
.lang-switch a { color: inherit; font-size: .75rem; font-weight: 600; padding: .3em .65em; border-radius: 999px; opacity: .65; }
.site-header .lang-switch a { color: var(--bs-emphasis-color); }
.lang-switch a:hover { opacity: 1; }
.lang-switch a[aria-current] { opacity: 1; background: var(--gradient); color: #fff !important; }

/* Active menu item (Bootstrap scrollspy) */
.site-header .nav-link.active { color: #67e8f9; }
.site-header .nav-cta.active { color: #fff; }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    padding: calc(var(--header-h) + 56px) 0 72px;
    background: var(--dark);
    color: #fff;
}
.hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(60% 60% at 80% 30%, rgba(6, 182, 212, .28), transparent 60%),
        radial-gradient(50% 60% at 10% 90%, rgba(37, 99, 235, .35), transparent 60%),
        linear-gradient(180deg, rgba(11, 16, 32, .86), rgba(18, 26, 51, .94));
}
.hero-bg::after {
    content: ""; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at 75% 45%, #000 15%, transparent 65%);
    -webkit-mask-image: radial-gradient(ellipse at 75% 45%, #000 15%, transparent 65%);
}
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.6rem); max-width: 14em; margin-bottom: .45em; letter-spacing: -.035em; }
.hero .lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: rgba(255, 255, 255, .75); max-width: 36em; }
.eyebrow {
    display: inline-block;
    font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
    padding: .45em 1em; margin-bottom: 1.6em;
    border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px;
    background: rgba(255, 255, 255, .05);
    color: #a5f3fc;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2em; }


/* Full logo on the right (hidden below lg, see markup) */
/* Slightly wider than its column and pulled left, so it sits closer to the text */
.hero-logo { display: block; width: 115%; max-width: 620px; height: auto; margin-left: -8%; filter: drop-shadow(0 10px 40px rgba(6, 182, 212, .25)); }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-label {
    display: inline-flex; align-items: center; gap: .6em;
    font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--bs-primary); margin-bottom: 1em;
}
.section-label::before { content: ""; width: 24px; height: 2px; background: linear-gradient(90deg, var(--bs-primary), var(--accent)); }
.lead, .text-large { font-size: 1.15rem; font-weight: 400; color: var(--bs-secondary-color); }

.card-soft {
    --bs-card-border-color: var(--bs-border-color);
    --bs-card-border-radius: var(--bs-border-radius-lg);
    --bs-card-spacer-x: 1.75rem;
    --bs-card-spacer-y: 1.75rem;
    box-shadow: var(--shadow);
}

/* About */
.check-list li { position: relative; padding-left: 28px; margin-bottom: .5em; }
.check-list li::before {
    content: ""; position: absolute; left: 0; top: .45em;
    width: 16px; height: 16px; border-radius: 50%;
    background: var(--gradient);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm3.7 6.2-4.2 4.2a.8.8 0 0 1-1.1 0L4.3 8.3a.8.8 0 1 1 1.1-1.1l1.5 1.5 3.7-3.6a.8.8 0 0 1 1.1 1.1z'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm3.7 6.2-4.2 4.2a.8.8 0 0 1-1.1 0L4.3 8.3a.8.8 0 1 1 1.1-1.1l1.5 1.5 3.7-3.6a.8.8 0 0 1 1.1 1.1z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.lang-list li { padding: .6em 0; border-bottom: 1px dashed var(--bs-border-color); }
.lang-list li:last-child { border-bottom: 0; }
.lang-list span { color: var(--bs-secondary-color); text-align: right; }

/* Key figures (about section) */
.stats { display: flex; flex-wrap: wrap; gap: 40px; margin: 40px 0 0; }
.stats div { border-left: 2px solid var(--bs-border-color); padding-left: 16px; }
.stats dt { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats dd { margin: 0; font-size: .9rem; color: var(--bs-secondary-color); }

/* Code window (about section) */
.code-window {
    border-radius: var(--bs-border-radius-lg);
    background: var(--dark);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.code-window-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); background: var(--dark-2); }
.code-window-bar .dot { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.code-window-bar .dot:nth-child(1) { background: #f87171; }
.code-window-bar .dot:nth-child(2) { background: #fbbf24; }
.code-window-bar .dot:nth-child(3) { background: #34d399; }
.code-window-file { margin-left: 10px; font: .78rem var(--bs-font-monospace); color: rgba(255, 255, 255, .5); }
.code-window pre {
    margin: 0; padding: 18px 20px 20px 0;
    overflow-x: auto;
    font: clamp(12px, 1.1vw, 14px)/1.75 var(--bs-font-monospace);
    color: rgba(255, 255, 255, .8);
    counter-reset: line;
}
.code-window .ln { counter-increment: line; }
.code-window .ln::before {
    content: counter(line);
    display: inline-block; width: 3.2em; padding-right: 1.4em;
    text-align: right; color: rgba(255, 255, 255, .25);
    user-select: none;
}
.code-window .k { color: #c084fc; }
.code-window .c { color: #67e8f9; }
.code-window .f { color: #93c5fd; }
.code-window .s { color: #86efac; }

/* Services */
.service { transition: transform .25s, box-shadow .25s, border-color .25s; }
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service p { color: var(--bs-secondary-color); font-size: .97rem; }
.service-icon {
    display: grid; place-items: center;
    width: 52px; height: 52px; margin-bottom: 20px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(37, 99, 235, .12), rgba(6, 182, 212, .12));
    color: var(--bs-primary);
}
.service-icon .icon { width: 26px; height: 26px; }

.services-cta {
    padding: 22px 28px;
    border: 1px solid var(--bs-border-color); border-left: 4px solid var(--bs-primary);
    border-radius: var(--bs-border-radius-lg);
    background: #fff;
    box-shadow: var(--shadow);
}
.services-cta p { font-size: 1.1rem; font-weight: 600; }

.stack-group { height: 100%; padding-top: 20px; border-top: 1px solid var(--bs-border-color); }
.stack-group h3 { display: flex; align-items: center; gap: .6em; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--bs-secondary-color); margin-bottom: 16px; }
.tags li {
    display: inline-flex; align-items: center; gap: .55em;
    font: 600 .9rem var(--bs-font-monospace);
    padding: .5em 1em;
    border: 1px solid var(--bs-border-color); border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    transition: border-color .2s, transform .2s;
}
.tags li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gradient); }
.tags li:hover { border-color: var(--bs-primary); transform: translateY(-2px); }

/* Career / Timeline */
.timeline-title { font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; color: var(--bs-secondary-color); margin-bottom: 28px; }
.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--bs-primary), var(--accent), var(--bs-border-color)); border-radius: 2px; }
.timeline > li { position: relative; padding: 0 0 32px 40px; }
.timeline > li:last-child { padding-bottom: 0; }
.timeline > li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--bs-body-bg); border: 3px solid var(--bs-primary); }
.timeline-date { display: inline-block; font: 600 .8rem var(--bs-font-monospace); color: var(--bs-primary); background: rgba(37, 99, 235, .08); padding: .2em .6em; border-radius: 6px; margin-bottom: .5em; }
.timeline h4 { font-size: 1.08rem; margin-bottom: .2em; }
.timeline-place { color: var(--bs-secondary-color); font-size: .95rem; margin-bottom: .5em; }
.timeline ul { margin: .4em 0 0; padding-left: 1.1em; color: var(--bs-secondary-color); font-size: .95rem; }
.timeline ul li { margin-bottom: .25em; }

/* References (masonry via CSS columns) */
.quote-grid { columns: 3 300px; column-gap: 20px; }
.quote { break-inside: avoid; margin: 0 0 20px; display: block; }
.quote .icon { width: 28px; height: 28px; color: var(--accent); margin-bottom: 14px; }
.quote blockquote { margin: 0 0 16px; font-size: 1.02rem; }
.quote figcaption { font-weight: 700; font-size: .95rem; }
.quote figcaption::before { content: "— "; color: var(--bs-secondary-color); font-weight: 400; }
.quote-you { --bs-card-spacer-x: 1.75rem; --bs-card-spacer-y: 1.75rem; background: var(--gradient); color: #fff; border: 0; border-radius: var(--bs-border-radius-lg); }
.quote-you p { color: rgba(255, 255, 255, .9); }
.quote-you .btn-light { color: var(--bs-primary); }

/* Contact */
.section-contact { position: relative; overflow: hidden; background: var(--dark); color: #fff; }
.section-contact::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(120deg, rgba(11, 16, 32, .94) 30%, rgba(11, 16, 32, .7)); }
.section-contact > .container { z-index: 2; }
.contact-map {
    position: absolute; z-index: 1; left: 0; top: 30%; bottom: 0; width: 50%;
    pointer-events: none;
    -webkit-mask-image: radial-gradient(closest-side, #000 35%, transparent 100%);
            mask-image: radial-gradient(closest-side, #000 35%, transparent 100%);
}
.contact-map img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.contact-map-pin { position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #67e8f9; box-shadow: 0 0 12px #67e8f9; }
.contact-map-pin::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid #67e8f9; animation: map-pulse 2.4s ease-out infinite; }
@keyframes map-pulse { from { transform: scale(.4); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.contact-map-label { position: absolute; left: 50%; top: calc(50% + 18px); transform: translateX(-50%); white-space: nowrap; text-align: center; font: 600 .72rem/1.5 var(--bs-font-monospace); color: rgba(165, 243, 252, .8); }
.contact-map-credit { position: absolute; z-index: 2; left: 12px; bottom: 8px; font-size: .68rem; color: rgba(255, 255, 255, .35); }
.contact-map-credit:hover { color: rgba(255, 255, 255, .7); }
.section-contact h2 { color: #fff; }
.section-contact .section-label { color: #67e8f9; }
.section-contact .lead { color: rgba(255, 255, 255, .72); }
.section-contact .contact-direct { color: rgba(255, 255, 255, .6); }
.section-contact .contact-direct a { color: #67e8f9; }
.section-contact .contact-direct a:hover { color: #fff; }
.section-contact .contact-form { box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.contact-direct { margin-top: 2em; color: var(--bs-secondary-color); }
.contact-direct a { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; font-size: 1.1rem; margin-top: .3em; }

.contact-form { --bs-card-spacer-x: 2rem; --bs-card-spacer-y: 2rem; }
.contact-form .form-label { font-size: .9rem; font-weight: 600; margin-bottom: 6px; }
.contact-form .form-control { padding: .75em 1em; background: var(--bg-alt); }
.contact-form .form-control:focus { background: #fff; border-color: var(--bs-primary); box-shadow: 0 0 0 4px rgba(37, 99, 235, .12); }
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form .form-check-label { color: var(--bs-secondary-color); }
.contact-form .form-check-input:checked { background-color: var(--bs-primary); border-color: var(--bs-primary); }
.contact-form .invalid { border-color: var(--bs-danger) !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-weight: 600; min-height: 1.5em; }
.form-status.error { color: var(--bs-danger); }

/* Thank-you card shown instead of the form after sending */
.contact-thanks { --bs-card-spacer-x: 2rem; --bs-card-spacer-y: 3.5rem; text-align: center; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); outline: none; }
.contact-thanks[hidden] { display: none; }
.contact-thanks-icon { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; margin-bottom: 1.25rem; border-radius: 50%; background: var(--gradient); color: #fff; box-shadow: 0 12px 30px rgba(37, 99, 235, .35); }
.contact-thanks-icon .icon { width: 36px; height: 36px; stroke-width: 2.5; }
.contact-thanks h3 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin-bottom: .5rem; }
.contact-thanks p { color: var(--bs-secondary-color); font-size: 1.1rem; max-width: 26em; margin-inline: auto; }
.contact-thanks.appear { animation: thanks-in .6s ease both; }
.contact-thanks.appear .contact-thanks-icon { animation: thanks-pop .5s .25s cubic-bezier(.34, 1.56, .64, 1) both; }
@keyframes thanks-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes thanks-pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Parallax ---------- */
/* Photo layer behind a section; main.js sizes and moves it (data-parallax = speed) */
.parallax-media { position: absolute; left: 0; right: 0; top: 0; bottom: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.parallax-media picture, .parallax-media img { display: block; width: 100%; height: 100%; }
.parallax-media img { object-fit: cover; }
.parallax-media.is-active { bottom: auto; overflow: visible; will-change: transform; }

/* Floating code glyphs in the hero */
.hero-glyphs { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-glyphs span {
    position: absolute; left: var(--x); top: var(--y);
    font: 700 var(--s)/1 var(--bs-font-monospace);
    color: rgba(165, 243, 252, .14);
    will-change: transform;
}
.hero-glyphs span:nth-child(odd) { color: rgba(147, 197, 253, .12); }

/* Photo bands between sections */
.band {
    position: relative; overflow: hidden;
    min-height: 45vh; min-height: 45svh;
    display: flex; align-items: center;
    padding: 56px 0;
    background: var(--dark);
    color: #fff;
}
.band::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.band-quote::before { background: linear-gradient(90deg, rgba(11, 16, 32, .75), rgba(11, 16, 32, .25) 70%); }
.band-terminal::before { background: linear-gradient(180deg, rgba(11, 16, 32, .55), rgba(11, 16, 32, .8)); }
.band-inner { position: relative; z-index: 2; }

.band-text {
    max-width: 14em; margin: 0;
    font-size: clamp(2rem, 5vw, 3.75rem); font-weight: 800; line-height: 1.1; letter-spacing: -.035em;
    text-shadow: 0 4px 30px rgba(0, 0, 0, .4);
}

.band-end::before { background: linear-gradient(270deg, rgba(11, 16, 32, .8), rgba(11, 16, 32, .25) 70%); }
.band-end .band-text { margin-left: auto; text-align: right; }
@media (min-width: 992px) {
    .band-text { max-width: none; white-space: nowrap; font-size: clamp(2rem, 3.6vw, 3.25rem); }
}

.terminal {
    max-width: 720px; margin-inline: auto;
    border-radius: var(--bs-border-radius-lg);
    background: rgba(11, 16, 32, .82);
    border: 1px solid rgba(255, 255, 255, .12);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, .45);
    overflow: hidden;
    font: clamp(.85rem, 1.6vw, 1.05rem)/1.7 var(--bs-font-monospace);
}
.terminal-bar { display: flex; align-items: center; gap: 7px; padding: 11px 16px; background: rgba(255, 255, 255, .04); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.terminal-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.terminal-bar .dot:nth-child(1) { background: #f87171; }
.terminal-bar .dot:nth-child(2) { background: #fbbf24; }
.terminal-bar .dot:nth-child(3) { background: #34d399; }
.terminal-title { flex: 1; text-align: center; margin-right: 40px; font-size: .75rem; color: rgba(255, 255, 255, .45); }
.terminal-line, .terminal-output { margin: 0; padding: 0 22px; }
.terminal-line { padding-top: 18px; color: #fff; overflow-wrap: anywhere; }
.terminal-output { padding-bottom: 20px; color: #86efac; }
.terminal-prompt { color: #67e8f9; }
.terminal-cursor { display: inline-block; width: .6em; height: 1.15em; margin-left: 2px; vertical-align: text-bottom; background: #fff; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
/* While typing (JS) the output is hidden, then fades in */
.terminal.is-typing .terminal-output { opacity: 0; }
.terminal .terminal-output { transition: opacity .5s ease; }

/* Footer */
.site-footer { background: var(--dark); color: rgba(255, 255, 255, .6); font-size: .9rem; }
.site-footer a { color: rgba(255, 255, 255, .75); }
.site-footer a:hover { color: #fff; }

/* Modal */
.modal { --bs-modal-border-radius: var(--bs-border-radius-lg); --bs-modal-border-width: 0; }
.modal-backdrop { --bs-backdrop-bg: #0b1020; --bs-backdrop-opacity: .6; }
.modal-title { font-size: 1.5rem; margin: 0; }
.modal-body { color: var(--bs-secondary-color); font-size: .95rem; }
.modal-body h4 { font-size: 1rem; margin: 1.4em 0 .4em; color: var(--bs-body-color); }

/* Reveal animation */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
.no-reveal .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }

@media (prefers-reduced-motion: reduce) {
    .terminal-cursor, .contact-map-pin::after, .contact-thanks.appear, .contact-thanks.appear .contact-thanks-icon { animation: none; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    * { transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (min-width: 992px) {
    .hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
}

/* Mobile menu (below Bootstrap's lg breakpoint) */
@media (max-width: 991.98px) {
    .contact-map { top: 0; width: 100%; opacity: .5; }
    .site-header .navbar-collapse {
        position: absolute; top: var(--header-h); left: 0; right: 0;
        padding: 16px 20px 8px;
        background: var(--dark-2);
        box-shadow: 0 20px 40px rgba(11, 16, 32, .35);
    }
    .site-header.menu-open { background: var(--dark-2); }
    .site-header .nav-link { padding: .8em 1em; }
    .site-header .nav-cta { background: var(--gradient); color: #fff; margin: 8px 0 0; text-align: center; }
}

@media (max-width: 575.98px) {
    :root { --bs-body-font-size: 1rem; }
    .stats { gap: 24px; }
    .code-window pre { padding-right: 14px; }
    .code-window .ln::before { width: 2.4em; padding-right: 1em; }
    .stats dt { font-size: 1.6rem; }
    .card-soft, .contact-form, .contact-thanks, .quote-you { --bs-card-spacer-x: 1.375rem; --bs-card-spacer-y: 1.375rem; }
}
