/* ==========================================================================
   Personal Portfolio — Main Stylesheet
   ========================================================================== */

:root {
    --bg: #ffffff;
    --bg-soft: #f7f8fa;
    --surface: #ffffff;
    --border: #e6e8ec;
    --text: #0f172a;
    --text-muted: #5b6475;
    --text-subtle: #8a93a3;
    --accent: #4f46e5;
    --accent-hover: #4338ca;
    --accent-soft: rgba(79, 70, 229, 0.08);
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 10px 30px -12px rgba(15, 23, 42, 0.18);
    --radius: 14px;
    --radius-sm: 10px;
    --nav-h: 72px;
    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-display: "Plus Jakarta Sans", var(--font);
}

body.dark-mode {
    --bg: #0b0f17;
    --bg-soft: #111723;
    --surface: #141b28;
    --border: #232c3b;
    --text: #e8ecf3;
    --text-muted: #a3adbf;
    --text-subtle: #6f7a8e;
    --accent: #818cf8;
    --accent-hover: #a5b4fc;
    --accent-soft: rgba(129, 140, 248, 0.12);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 14px 34px -14px rgba(0, 0, 0, 0.7);
}

/* Base
   ========================================================================== */

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-h);
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    padding-top: var(--nav-h);
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.25s ease, color 0.25s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--text);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

p {
    color: var(--text-muted);
}

a {
    color: var(--accent);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-hover);
    text-decoration: none;
}

img {
    max-width: 100%;
}

::selection {
    background: var(--accent);
    color: #fff;
}

.container {
    max-width: 1140px;
}

/* Buttons
   ========================================================================== */

.btn-pf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-pf .uil {
    font-size: 18px;
}

.btn-pf-primary {
    background: var(--accent);
    color: #fff;
}

.btn-pf-primary:hover,
.btn-pf-primary:focus {
    background: var(--accent-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -8px var(--accent);
}

body.dark-mode .btn-pf-primary,
body.dark-mode .btn-pf-primary:hover {
    color: #0b0f17;
}

.btn-pf-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.btn-pf-outline:hover,
.btn-pf-outline:focus {
    border-color: var(--text);
    color: var(--text);
}

.btn-pf-sm {
    padding: 9px 16px;
    font-size: 14px;
}

.btn-pf:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-pf:focus {
    outline: none;
}

.btn-pf:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Navbar
   ========================================================================== */

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.25s ease, background-color 0.25s ease;
}

.site-nav.is-scrolled {
    border-bottom-color: var(--border);
}

.site-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    color: var(--text);
    letter-spacing: -0.01em;
}

.brand:hover {
    color: var(--text);
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links a {
    display: block;
    padding: 8px 14px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: 999px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
    background: var(--bg-soft);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.icon-btn:hover {
    background: var(--bg-soft);
}

.icon-btn:focus {
    outline: none;
}

.icon-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.theme-toggle .icon-sun {
    display: none;
}

body.dark-mode .theme-toggle .icon-sun {
    display: inline;
}

body.dark-mode .theme-toggle .icon-moon {
    display: none;
}

.nav-toggle {
    display: none;
}

@media (max-width: 991.98px) {
    .nav-toggle {
        display: grid;
    }

    .nav-links {
        position: absolute;
        top: var(--nav-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 12px 16px 20px;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        display: none;
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links a {
        padding: 12px 14px;
        border-radius: var(--radius-sm);
    }
}

/* Sections
   ========================================================================== */

.section {
    padding: 112px 0;
}

.section-alt {
    background: var(--bg-soft);
}

.section-head {
    max-width: 640px;
    margin: 0 auto 56px;
    text-align: center;
}

.section-head.text-left {
    margin-left: 0;
    text-align: left;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

.section-title {
    font-size: clamp(28px, 3.4vw, 40px);
    margin-bottom: 14px;
}

.section-lead {
    font-size: 17px;
    margin: 0;
}

@media (max-width: 767.98px) {
    .section {
        padding: 80px 0;
    }

    .section-head {
        margin-bottom: 40px;
    }
}

/* Hero
   ========================================================================== */

.hero {
    min-height: min(calc(100vh - var(--nav-h)), 760px);
    display: flex;
    align-items: center;
    padding: 64px 0 96px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(600px circle at 85% 20%, var(--accent-soft), transparent 60%),
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: auto, 56px 56px, 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
    opacity: 0.55;
    pointer-events: none;
}

.hero .container {
    position: relative;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}

.hero-title {
    font-size: clamp(36px, 5.4vw, 60px);
    line-height: 1.08;
    letter-spacing: -0.035em;
    margin-bottom: 22px;
}

.hero-desc,
.hero-desc p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 560px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.hero-visual {
    position: relative;
    max-width: 440px;
    margin-left: auto;
}

.hero-visual img {
    width: 100%;
    display: block;
}

@media (max-width: 991.98px) {
    .hero {
        min-height: auto;
        padding: 48px 0 80px;
        text-align: center;
    }

    .hero-desc,
    .hero-desc p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        margin: 48px auto 0;
        max-width: 360px;
    }
}

/* About
   ========================================================================== */

/* Portrait with arch backdrop — the cut-out photo rises above the arch */
.portrait {
    position: relative;
    max-width: 420px;
    margin: 0 auto;
    padding-top: 24px;
    isolation: isolate;
}

.portrait-arch {
    position: absolute;
    left: 6%;
    right: 6%;
    bottom: 0;
    height: 80%;
    border-radius: 999px 999px 28px 28px;
    background:
        radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, 0.18), transparent 55%),
        linear-gradient(160deg, #6366f1 0%, #4338ca 45%, #1e1b4b 100%);
    box-shadow: 0 30px 60px -24px rgba(67, 56, 202, 0.55);
    z-index: -1;
    transition: transform 0.5s ease;
}

.portrait-outline {
    position: absolute;
    left: 6%;
    right: 6%;
    bottom: 0;
    height: 80%;
    border-radius: 999px 999px 28px 28px;
    border: 1.5px solid color-mix(in srgb, var(--accent) 45%, transparent);
    transform: translate(18px, -18px);
    z-index: -2;
    transition: transform 0.5s ease;
}

.portrait-dots {
    position: absolute;
    left: -6px;
    top: 30%;
    width: 110px;
    height: 110px;
    background-image: radial-gradient(color-mix(in srgb, var(--accent) 55%, transparent) 1.6px, transparent 1.6px);
    background-size: 14px 14px;
    -webkit-mask-image: radial-gradient(circle, #000 40%, transparent 72%);
    mask-image: radial-gradient(circle, #000 40%, transparent 72%);
    z-index: -3;
}

.portrait-img {
    position: relative;
    display: block;
    width: 88%;
    margin: 0 auto;
    border-radius: 0 0 28px 28px;
    filter: drop-shadow(0 18px 30px rgba(15, 23, 42, 0.28));
    transition: transform 0.5s ease;
    transform-origin: bottom center;
}

.portrait:hover .portrait-img {
    transform: scale(1.025);
}

.portrait:hover .portrait-outline {
    transform: translate(24px, -24px);
}

.portrait-badge {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 10px 10px;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    line-height: 1.25;
    animation: portrait-float 6s ease-in-out infinite;
    white-space: nowrap;
}

.portrait-badge strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.portrait-badge small {
    display: block;
    font-size: 12px;
    color: var(--text-subtle);
}

.portrait-badge-top {
    top: 30%;
    right: -14px;
}

.portrait-badge-bottom {
    bottom: 12%;
    left: -18px;
    animation-delay: -3s;
}

.portrait-badge-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    font-size: 18px;
    color: var(--accent);
    background: var(--accent-soft);
}

.portrait-badge-icon.is-green {
    color: #16a34a;
    background: rgba(34, 197, 94, 0.12);
}

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

@media (max-width: 575.98px) {
    .portrait {
        max-width: 320px;
    }

    .portrait-badge {
        padding: 6px 10px 6px 6px;
        gap: 8px;
        border-radius: 12px;
    }

    .portrait-badge strong {
        font-size: 12px;
    }

    .portrait-badge small {
        font-size: 11px;
    }

    .portrait-badge-icon {
        width: 28px;
        height: 28px;
        font-size: 15px;
        border-radius: 8px;
    }

    .portrait-badge-top {
        top: 52%;
        right: -10px;
    }

    .portrait-badge-bottom {
        bottom: 6%;
        left: -10px;
    }
}

.about-body,
.about-body p {
    font-size: 17px;
    color: var(--text-muted);
}

.about-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

@media (max-width: 991.98px) {
    .portrait {
        margin-bottom: 56px;
    }
}

/* Experience timeline
   ========================================================================== */

.timeline {
    max-width: 860px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 7px;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    padding-left: 44px;
    margin-bottom: 24px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 28px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-soft);
    border: 3px solid var(--accent);
}

.timeline-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 28px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.timeline-card:hover {
    box-shadow: var(--shadow-md);
}

.timeline-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px 16px;
}

.timeline-role {
    font-size: 19px;
    margin: 0 0 4px;
}

.timeline-company {
    font-size: 15px;
    font-weight: 500;
    color: var(--accent);
}

.timeline-date {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-soft);
    border: 1px solid var(--border);
    padding: 5px 12px;
    border-radius: 999px;
    white-space: nowrap;
}

.timeline-date.is-current {
    color: #15803d;
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.25);
}

body.dark-mode .timeline-date.is-current {
    color: #4ade80;
}

.timeline-summary {
    margin-top: 16px;
    font-size: 15px;
    color: var(--text-muted);
}

.timeline-summary p:last-child,
.timeline-summary ul:last-child,
.timeline-summary ol:last-child {
    margin-bottom: 0;
}

.timeline-summary ul,
.timeline-summary ol {
    padding-left: 20px;
}

.timeline-summary li {
    margin-bottom: 4px;
}

@media (max-width: 575.98px) {
    .timeline-item {
        padding-left: 32px;
    }

    .timeline-card {
        padding: 20px;
    }
}

/* Projects
   ========================================================================== */

.project-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.project-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

.project-card:hover .project-thumb img {
    transform: scale(1.04);
}

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

.project-title {
    font-size: 18px;
    margin: 0 0 16px;
}

.project-actions {
    margin-top: auto;
    display: flex;
    gap: 8px;
}

.project-col.is-hidden {
    display: none;
}

.projects-more {
    text-align: center;
    margin-top: 48px;
}

/* Project modal */
.modal-content {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
}

.modal-header {
    border-bottom: 1px solid var(--border);
    padding: 18px 24px;
    align-items: center;
}

.modal-title {
    font-size: 18px;
}

.modal-header .close {
    color: var(--text);
    text-shadow: none;
    opacity: 0.6;
    font-size: 26px;
    font-weight: 400;
}

.modal-header .close:hover {
    color: var(--text);
    opacity: 1;
}

.modal-body {
    padding: 24px;
}

.modal-backdrop.show {
    opacity: 0.6;
}

.project-detail-img {
    width: 100%;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.project-detail-desc {
    font-size: 15px;
    color: var(--text-muted);
}

.project-detail-desc img {
    height: auto;
}

.project-detail-desc ul,
.project-detail-desc ol {
    padding-left: 20px;
}

.modal-loading {
    display: grid;
    place-items: center;
    min-height: 200px;
    color: var(--text-muted);
}

@media (max-width: 767.98px) {
    .project-detail-img {
        margin-bottom: 20px;
    }
}

/* Skills & tools
   ========================================================================== */

.skill-card {
    height: 100%;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.skill-card:hover {
    border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
    box-shadow: var(--shadow-md);
}

.skill-icon {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    padding: 10px;
}

body.dark-mode .skill-icon,
body.dark-mode .tool-icon {
    background: #e8ecf3;
}

.skill-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.skill-name {
    font-size: 17px;
    margin: 2px 0 6px;
}

.skill-desc,
.skill-desc p {
    font-size: 15px;
    margin: 0;
    color: var(--text-muted);
}

.tools-block {
    margin-top: 80px;
}

.tools-title {
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-subtle);
    font-family: var(--font);
    margin-bottom: 28px;
}

.tools-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.tool-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.tool-chip:hover {
    border-color: var(--text-subtle);
    transform: translateY(-2px);
}

.tool-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--bg-soft);
    padding: 5px;
}

.tool-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Contact
   ========================================================================== */

.contact-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.contact-intro {
    height: 100%;
    padding: 48px;
    background: var(--text);
    color: var(--bg);
    display: flex;
    flex-direction: column;
}

.contact-intro .eyebrow {
    color: color-mix(in srgb, var(--bg) 65%, transparent);
}

.contact-intro h2 {
    color: var(--bg);
    font-size: clamp(26px, 3vw, 34px);
    margin-bottom: 16px;
}

.contact-intro p {
    color: color-mix(in srgb, var(--bg) 72%, transparent);
}

.contact-intro-img {
    margin-top: auto;
    padding-top: 32px;
    max-width: 280px;
}

.contact-form {
    padding: 48px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.form-field {
    margin-bottom: 20px;
}

.form-input {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input::placeholder {
    color: var(--text-subtle);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

textarea.form-input {
    resize: vertical;
    min-height: 150px;
}

.form-error {
    font-size: 13px;
    color: #dc2626;
    margin-top: 6px;
}

.form-submit {
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 991.98px) {
    .contact-intro,
    .contact-form {
        padding: 32px 24px;
    }

    .contact-intro-img {
        display: none;
    }
}

/* Footer
   ========================================================================== */

.site-footer {
    border-top: 1px solid var(--border);
    padding: 32px 0;
}

.site-footer .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.site-footer p {
    margin: 0;
    font-size: 14px;
    color: var(--text-subtle);
}

.footer-top {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-top:hover {
    color: var(--text);
}

@media (max-width: 575.98px) {
    .site-footer .container {
        justify-content: center;
        text-align: center;
    }
}

/* Reveal on scroll
   ========================================================================== */

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

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

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

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

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* SweetAlert dark mode */
body.dark-mode .swal2-popup {
    background: var(--surface);
    color: var(--text);
}

body.dark-mode .swal2-title,
body.dark-mode .swal2-content {
    color: var(--text);
}

/* Inline SVG illustrations
   ========================================================================== */

.illus {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
}

.illus .il-surface { fill: var(--surface); }
.illus .il-soft { fill: var(--bg-soft); }
.illus .il-stroke { stroke: var(--border); stroke-width: 1.5; }
.illus .il-shadow { filter: drop-shadow(0 12px 24px rgba(15, 23, 42, 0.12)); }
.illus .il-text { fill: var(--text); opacity: 0.85; }
.illus .il-muted { fill: var(--text-subtle); opacity: 0.5; }
.illus .il-accent { fill: var(--accent); }
.illus .il-accent-soft { fill: var(--accent-soft); }
.illus .il-accent-stroke { stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.illus .il-success { fill: #22c55e; }
.illus .il-dot-red { fill: #ff5f57; }
.illus .il-dot-yellow { fill: #febc2e; }
.illus .il-dot-green { fill: #28c840; }

.illus .il-editor { fill: #0f172a; filter: drop-shadow(0 20px 40px rgba(15, 23, 42, 0.28)); }
body.dark-mode .illus .il-editor { fill: #1b2333; stroke: var(--border); stroke-width: 1.5; }
.illus .il-code-label { fill: #64748b; font-size: 11px; font-family: var(--font); }
.illus .il-ln { fill: #475569; }
.illus .il-kw { fill: #c4b5fd; }
.illus .il-fn { fill: #7dd3fc; }
.illus .il-str { fill: #86efac; }
.illus .il-pl { fill: #cbd5e1; }
.illus .il-caret { fill: #a5b4fc; animation: il-blink 1.1s steps(1) infinite; }

.illus .il-card-label { fill: var(--text-subtle); font-size: 11px; font-weight: 600; font-family: var(--font); }
.illus .il-card-value { fill: var(--text); font-size: 24px; font-weight: 700; font-family: var(--font-display); }
.illus .il-line { stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; fill: none; }
.illus .il-ring-bg { stroke: var(--border); stroke-width: 4; fill: none; }
.illus .il-ring { stroke: #22c55e; stroke-width: 4; stroke-linecap: round; fill: none; }

.illus .il-float { animation: il-float 6s ease-in-out infinite; }
.illus .il-float-slow { animation: il-float 8s ease-in-out infinite reverse; }
.illus .il-float-fast { animation: il-float 5s ease-in-out infinite 0.6s; }

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

@keyframes il-blink {
    50% { opacity: 0; }
}

.hero-visual {
    max-width: 500px;
}

/* Social links
   ========================================================================== */

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.social-links a {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    font-size: 17px;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.social-links a:hover,
.social-links a:focus-visible {
    color: var(--accent);
    border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
    background: var(--accent-soft);
    transform: translateY(-2px);
}

.hero-social {
    margin-top: 28px;
}

@media (max-width: 991.98px) {
    .hero-social {
        justify-content: center;
    }
}

.social-links-sm a {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 14px;
}

.social-links-inverse {
    margin-top: 8px;
}

.social-links-inverse a {
    background: color-mix(in srgb, var(--bg) 8%, transparent);
    border-color: color-mix(in srgb, var(--bg) 18%, transparent);
    color: var(--bg);
}

.social-links-inverse a:hover,
.social-links-inverse a:focus-visible {
    background: var(--bg);
    border-color: var(--bg);
    color: var(--text);
}
