﻿:root {
    --bg-main: #020617;
    --bg-layer: #0f172a;
    --primary: #22c55e;
    --accent: #4ade80;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --border-soft: rgba(148, 163, 184, 0.18);
    --shadow-glow: 0 0 0 1px rgba(74, 222, 128, 0.08), 0 18px 60px rgba(34, 197, 94, 0.14);
    --transition: all 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: "Manrope", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(34, 197, 94, 0.10), transparent 30%),
        radial-gradient(circle at 85% 15%, rgba(74, 222, 128, 0.08), transparent 22%),
        linear-gradient(180deg, #020617 0%, #06101f 45%, #020617 100%);
    color: var(--text-main);
    line-height: 1.7;
}

h1, h2, h3, .navbar-brand {
    font-family: "Space Grotesk", sans-serif;
    letter-spacing: -0.03em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.site-shell {
    position: relative;
    overflow-x: hidden;
}

.custom-navbar {
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.custom-navbar.is-scrolled {
    background: rgba(2, 6, 23, 0.92);
    border-color: rgba(148, 163, 184, 0.12);
    box-shadow: 0 12px 40px rgba(2, 6, 23, 0.35);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.brand-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 0 18px rgba(74, 222, 128, 0.85);
}

.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-main);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.2rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transform: scaleX(0);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.hero-section {
    position: relative;
    padding: 7rem 0 4rem;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 88%);
    pointer-events: none;
}

.eyebrow,
.section-kicker,
.panel-badge,
.chip {
    display: inline-flex;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

.hero-title {
    font-size: clamp(2.2rem, 4.8vw, 4rem);
    line-height: 1.05;
    max-width: 12ch;
    margin: 1rem 0 1.5rem;
}

.hero-intro {
    display: grid;
    grid-template-columns: minmax(140px, 240px) minmax(0, 1fr);
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.hero-intro-copy .hero-title {
    margin-bottom: 0;
}

.hero-title-th {
    font-family: "Kanit", "Manrope", sans-serif;
    letter-spacing: 0;
}

.hero-text,
.section-heading p,
.glass-card p,
.feature-card p,
.article-body p,
.resource-card p,
.project-card p {
    color: var(--text-muted);
}

.subsection-title {
    margin: 1.5rem 0 1rem;
    font-size: 1rem;
    color: var(--text-main);
}

.subsection-card-title {
    margin-top: 1.5rem;
}

.glass-card > .subsection-card-title:first-of-type {
    margin-top: 0;
}

.timeline-list {
    display: grid;
    gap: 1rem;
}

.timeline-item {
    padding-left: 1rem;
    border-left: 2px solid rgba(74, 222, 128, 0.3);
}

.timeline-period {
    display: inline-block;
    margin-bottom: 0.35rem;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.speaking-bullet-list {
    margin: 0;
    padding-left: 1.35rem;
    display: grid;
    gap: 0.9rem;
}

.speaking-bullet-list li {
    color: var(--text-muted);
    padding-left: 0.2rem;
}

.speaking-bullet-list li::marker {
    color: var(--accent);
}

.speaking-bullet-list strong {
    display: block;
    color: var(--text-main);
    margin-bottom: 0.18rem;
    font-weight: 700;
}

.speaking-bullet-list span {
    display: block;
}

.speaking-plain-list {
    padding-left: 1.5rem;
}

.award-list {
    margin: 0;
    padding-left: 1.35rem;
    display: grid;
    gap: 0.9rem;
}

.award-list li {
    color: var(--text-muted);
}

.award-list li::marker {
    color: var(--accent);
}

.hero-text {
    max-width: 60ch;
    font-size: 1.08rem;
}

.btn {
    border-radius: 14px;
    font-weight: 700;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    color: #02120a;
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(34, 197, 94, 0.25);
    color: #02120a;
}

.btn-glow {
    box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.25), 0 0 26px rgba(34, 197, 94, 0.28);
}

.btn-soft {
    border-color: rgba(226, 232, 240, 0.18);
    color: var(--text-main);
    background: rgba(15, 23, 42, 0.55);
}

.btn-soft:hover,
.btn-soft:focus {
    border-color: rgba(74, 222, 128, 0.45);
    background: rgba(15, 23, 42, 0.9);
    color: var(--accent);
}

.metric-card,
.glass-card,
.feature-card,
.article-card,
.resource-card,
.project-card {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.72));
    border: 1px solid var(--border-soft);
    border-radius: 24px;
    box-shadow: var(--shadow-glow);
}

.metric-card,
.feature-card,
.resource-card,
.project-card {
    padding: 1.5rem;
}

.metric-card strong {
    display: block;
    margin-bottom: 0.4rem;
}

.metric-card span { color: var(--text-muted); }

.glass-card {
    padding: 2rem;
    backdrop-filter: blur(12px);
}

.hero-panel h2 {
    font-size: 1.8rem;
    margin: 1rem 0;
}

.hero-profile-photo {
    width: min(100%, 240px);
    margin: 0 auto 1.5rem;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(74, 222, 128, 0.22);
    box-shadow: 0 18px 50px rgba(2, 6, 23, 0.36);
    background: rgba(2, 6, 23, 0.55);
}

.hero-profile-trigger {
    display: block;
    padding: 0;
    cursor: zoom-in;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.hero-profile-trigger:hover,
.hero-profile-trigger:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(74, 222, 128, 0.5);
    box-shadow: 0 22px 60px rgba(2, 6, 23, 0.42);
    outline: none;
}

.hero-profile-photo img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.hero-profile-photo-left {
    margin: 0 0 1.5rem;
}

.profile-photo-modal .modal-content {
    background: rgba(2, 6, 23, 0.94);
    border: 1px solid rgba(74, 222, 128, 0.18);
    border-radius: 28px;
    box-shadow: 0 24px 80px rgba(2, 6, 23, 0.55);
}

.profile-photo-modal .modal-header {
    padding: 1rem 1rem 0;
}

.profile-photo-modal .modal-title {
    color: var(--text-main);
}

.profile-photo-modal .modal-body {
    padding: 1rem;
}

.profile-photo-modal .modal-body img {
    max-height: 80vh;
    object-fit: contain;
}

.panel-title-th {
    font-family: "Kanit", "Manrope", sans-serif;
    letter-spacing: 0;
}

.panel-list {
    display: grid;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.panel-list i,
.resource-icon,
.contact-list i,
.social-links a:hover {
    color: var(--accent);
}

.content-section {
    padding: 6rem 0;
}

.section-alt {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.34), rgba(15, 23, 42, 0.12));
}

.section-heading {
    max-width: 760px;
    margin-bottom: 3rem;
}

.section-heading h2,
.contact-section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0.75rem 0 1rem;
}

.feature-card,
.article-card,
.resource-card,
.project-card {
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.feature-card:hover,
.article-card:hover,
.resource-card:hover,
.project-card:hover,
.glass-card:hover {
    transform: translateY(-6px);
    border-color: rgba(74, 222, 128, 0.28);
}

.chip {
    margin-bottom: 1rem;
}

.feature-card h3,
.article-body h3,
.resource-card h3,
.project-card h3,
.card-title {
    font-size: 1.35rem;
    margin-bottom: 0.85rem;
}

.card-link {
    color: var(--accent);
    font-weight: 700;
}

.card-link:hover {
    color: #9cf3b8;
}

.article-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.article-thumb {
    min-height: 180px;
    padding: 1.25rem;
    display: flex;
    align-items: flex-end;
    background:
        linear-gradient(135deg, rgba(34, 197, 94, 0.24), rgba(2, 6, 23, 0.1)),
        radial-gradient(circle at top right, rgba(74, 222, 128, 0.22), transparent 35%),
        #0b1324;
}

.article-thumb span {
    padding: 0.5rem 0.9rem;
    border: 1px solid rgba(74, 222, 128, 0.18);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.5);
    color: var(--text-main);
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.article-body {
    padding: 1.5rem;
}

.resource-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, 0.08);
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
}

.project-line {
    width: 70px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    margin-bottom: 1.3rem;
}

.project-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: 16px;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.18);
    color: var(--accent);
    font-size: 1.25rem;
}

.publication-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(34, 197, 94, 0.10), transparent 30%),
        radial-gradient(circle at 85% 15%, rgba(74, 222, 128, 0.08), transparent 22%),
        linear-gradient(180deg, #020617 0%, #06101f 45%, #020617 100%);
}

.publication-hero {
    padding-top: 7rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1.25rem;
    color: var(--text-main);
    font-weight: 700;
}

.publication-header {
    max-width: 960px;
}

.publication-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    margin: 0.9rem 0 1rem;
}

.publication-intro {
    max-width: 72ch;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.publication-note {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-muted);
}

.publication-note + .publication-note {
    margin-top: 0.75rem;
}

.publication-note i {
    color: var(--accent);
    margin-top: 0.15rem;
}

.publication-list-card {
    padding: 2.2rem;
}

.publication-list {
    margin: 0;
    padding-left: 1.4rem;
    display: grid;
    gap: 1rem;
}

.publication-list li {
    color: var(--text-main);
    line-height: 1.8;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag-cloud span {
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.18);
    color: var(--text-main);
    font-weight: 600;
}

.contact-list {
    display: grid;
    gap: 0.9rem;
    color: var(--text-main);
}

.form-label {
    color: var(--text-main);
    font-weight: 600;
}

.form-control {
    background: rgba(2, 6, 23, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 16px;
    color: var(--text-main);
    padding: 0.9rem 1rem;
}

.form-control::placeholder {
    color: #64748b;
}

.form-control:focus {
    background: rgba(2, 6, 23, 0.92);
    color: var(--text-main);
    border-color: rgba(74, 222, 128, 0.45);
    box-shadow: 0 0 0 0.25rem rgba(34, 197, 94, 0.12);
}

.site-footer {
    padding: 1.8rem 0 2.5rem;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    color: var(--text-muted);
}

.footer-links,
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
}

.footer-links a:hover,
.social-links a:hover {
    color: var(--text-main);
}

.social-links a {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.45);
}

@media (max-width: 991.98px) {
    .custom-navbar .navbar-collapse {
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 18px;
        background: rgba(15, 23, 42, 0.95);
        border: 1px solid rgba(148, 163, 184, 0.12);
    }

    .hero-section {
        padding-top: 6.5rem;
    }

    .hero-title {
        max-width: 14ch;
    }

    .hero-intro {
        grid-template-columns: 1fr;
        justify-items: start;
    }
}

@media (max-width: 767.98px) {
    .content-section {
        padding: 4.5rem 0;
    }

    .glass-card,
    .feature-card,
    .resource-card,
    .project-card,
    .metric-card,
    .article-body {
        padding: 1.35rem;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .site-footer,
    .footer-links,
    .social-links {
        justify-content: center;
        text-align: center;
    }
}

body.lang-th {
    font-family: "Kanit", "Manrope", sans-serif;
}

body.lang-th h1,
body.lang-th h2,
body.lang-th h3,
body.lang-th .navbar-brand {
    font-family: "Kanit", "Manrope", sans-serif;
    letter-spacing: 0;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.lang-pill {
    min-width: 46px;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 800;
    text-align: center;
    letter-spacing: 0.05em;
}

.lang-separator {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.lang-pill:hover {
    color: var(--text-main);
    background: rgba(74, 222, 128, 0.08);
}

.lang-pill.is-active {
    color: #02120a;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 0 24px rgba(34, 197, 94, 0.25);
}

@media (max-width: 991.98px) {
    .lang-switch {
        margin-top: 0.75rem;
        width: fit-content;
    }
}



.nav-link,
.eyebrow,
.section-kicker,
.panel-badge,
.chip,
.btn,
.card-title,
.form-label {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.navbar-nav .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.navbar-nav .nav-link i {
    font-size: 0.95rem;
    color: var(--accent);
    opacity: 0.95;
}

.dropdown-menu {
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.45);
    padding: 0.5rem;
}

.dropdown-item {
    color: var(--text-main);
    border-radius: 12px;
    font-weight: 500;
    padding: 0.6rem 0.85rem;
}

.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item:active {
    color: var(--accent);
    background: rgba(74, 222, 128, 0.1);
}

.app-meta {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 1.25rem;
}

.hero-actions .btn,
.project-card .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.cv-summary-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.9rem;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(226, 232, 240, 0.14);
}

.cv-summary-label {
    color: var(--text-main);
    font-size: 0.92rem;
    font-weight: 700;
}

.cv-summary-links {
    display: inline-flex;
    gap: 0.45rem;
}

.cv-summary-links .btn {
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 800;
}

.cv-summary-btn {
    border: none;
    color: #ffffff;
}

.cv-summary-btn:hover,
.cv-summary-btn:focus {
    color: #ffffff;
    transform: translateY(-1px);
}

.cv-summary-btn-th {
    background: linear-gradient(135deg, #f97316, #fb923c);
    box-shadow: 0 10px 22px rgba(249, 115, 22, 0.28);
}

.cv-summary-btn-th:hover,
.cv-summary-btn-th:focus {
    background: linear-gradient(135deg, #ea580c, #f97316);
}

.cv-summary-btn-en {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.28);
}

.cv-summary-btn-en:hover,
.cv-summary-btn-en:focus {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
}

.metric-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.9rem;
    border-radius: 14px;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.12);
    color: var(--accent);
    font-size: 1.1rem;
}

.landing-title {
    max-width: 15ch;
}

.page-home {
    background:
        radial-gradient(circle at 18% 16%, rgba(34, 197, 94, 0.18), transparent 26%),
        radial-gradient(circle at 86% 12%, rgba(20, 184, 166, 0.12), transparent 24%),
        radial-gradient(circle at 58% 72%, rgba(74, 222, 128, 0.08), transparent 28%),
        linear-gradient(180deg, #020617 0%, #03110c 44%, #020617 100%);
}

.landing-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.landing-background::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(74, 222, 128, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74, 222, 128, 0.035) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 86%);
}

.landing-background::after {
    content: "";
    position: absolute;
    inset: -20%;
    background:
        conic-gradient(from 180deg at 50% 50%, transparent 0deg, rgba(74, 222, 128, 0.09) 42deg, transparent 84deg, transparent 360deg);
    animation: landingSpin 28s linear infinite;
    opacity: 0.7;
}

.landing-radar {
    position: absolute;
    border-radius: 999px;
    border: 1px solid rgba(74, 222, 128, 0.14);
    box-shadow: inset 0 0 80px rgba(34, 197, 94, 0.08), 0 0 80px rgba(34, 197, 94, 0.06);
}

.landing-radar-one {
    width: 38rem;
    height: 38rem;
    right: -10rem;
    top: 6rem;
}

.landing-radar-two {
    width: 28rem;
    height: 28rem;
    left: -11rem;
    bottom: 12rem;
}

.landing-scanline {
    position: absolute;
    left: 0;
    right: 0;
    top: 18%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(74, 222, 128, 0.6), transparent);
    animation: landingScan 7s ease-in-out infinite;
    opacity: 0.55;
}

.page-home .site-shell {
    isolation: isolate;
}

.page-home header,
.page-home main,
.page-home footer {
    position: relative;
    z-index: 1;
}

.page-home header {
    z-index: 20;
}

.page-home .custom-navbar {
    background: rgba(2, 6, 23, 0.62);
    border-bottom: 1px solid rgba(74, 222, 128, 0.08);
    z-index: 1040;
}

.page-home .home-landing {
    min-height: 100vh;
}

.page-home .hero-grid {
    background-image:
        linear-gradient(rgba(74, 222, 128, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74, 222, 128, 0.045) 1px, transparent 1px);
    background-size: 56px 56px;
}

.home-landing .hero-text {
    font-size: 1.15rem;
}

.landing-showcase {
    position: relative;
    display: grid;
    gap: 1rem;
}

.landing-visual-frame {
    position: relative;
    justify-self: center;
    width: min(100%, 390px);
    padding: 0.55rem;
    border-radius: 34px;
    background:
        linear-gradient(135deg, rgba(74, 222, 128, 0.28), rgba(15, 23, 42, 0.08), rgba(34, 197, 94, 0.18));
    border: 1px solid rgba(74, 222, 128, 0.2);
    box-shadow: 0 30px 90px rgba(2, 6, 23, 0.58), 0 0 70px rgba(34, 197, 94, 0.14);
}

.landing-visual-frame::before,
.landing-visual-frame::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: rgba(74, 222, 128, 0.8);
    box-shadow: 0 0 24px rgba(74, 222, 128, 0.8);
}

.landing-visual-frame::before {
    width: 10px;
    height: 10px;
    left: 1.3rem;
    top: 1.3rem;
}

.landing-visual-frame::after {
    width: 7px;
    height: 7px;
    right: 1.4rem;
    bottom: 1.4rem;
}

.landing-portrait {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 28px;
    border: 1px solid rgba(74, 222, 128, 0.22);
    box-shadow: 0 24px 70px rgba(2, 6, 23, 0.5);
    justify-self: center;
    filter: saturate(1.08) contrast(1.04);
}

.landing-visual-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.62rem 0.82rem;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.78);
    border: 1px solid rgba(74, 222, 128, 0.26);
    color: var(--text-main);
    font-size: 0.82rem;
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.landing-visual-chip i {
    color: var(--accent);
}

.landing-visual-chip-top {
    right: -0.75rem;
    top: 12%;
}

.landing-visual-chip-bottom {
    left: -0.75rem;
    bottom: 16%;
}

.showcase-card {
    position: absolute;
    right: -1rem;
    bottom: 1.25rem;
    width: min(90%, 360px);
}

.showcase-card h2 {
    margin: 0.8rem 0 0;
    font-size: 1.35rem;
    line-height: 1.35;
}

.landing-signal-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.landing-signal-row span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.62rem 0.9rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.58);
    border: 1px solid rgba(74, 222, 128, 0.16);
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 800;
}

.landing-signal-row i {
    color: var(--accent);
}

.landing-feature-card {
    min-height: 280px;
}

.landing-feature-card::before,
.tool-link-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(74, 222, 128, 0.12), transparent 38%),
        radial-gradient(circle at 90% 8%, rgba(74, 222, 128, 0.16), transparent 28%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.landing-feature-card:hover::before,
.tool-link-card:hover::before {
    opacity: 1;
}

.landing-card-index {
    position: absolute;
    right: 1.1rem;
    top: 1rem;
    color: rgba(226, 232, 240, 0.14);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.tool-card {
    display: flex;
    flex-direction: column;
}

.tool-link-card {
    position: relative;
    overflow: hidden;
    color: var(--text-main);
}

.tool-link-card:hover,
.tool-link-card:focus {
    color: var(--text-main);
}

.tool-link-card .qr-preview {
    transition: var(--transition);
}

.tool-link-card:hover .qr-preview,
.tool-link-card:focus .qr-preview {
    border-color: rgba(74, 222, 128, 0.48);
    background: rgba(34, 197, 94, 0.1);
}

.tool-link-card-disabled {
    cursor: not-allowed;
    opacity: 0.62;
    filter: grayscale(0.35);
}

.tool-link-card-disabled:hover {
    transform: none;
    border-color: var(--border-soft);
}

.tool-link-card-disabled .qr-preview {
    border-color: rgba(148, 163, 184, 0.24);
}

.qr-preview {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1.25rem;
    border-radius: 20px;
    border: 1px dashed rgba(74, 222, 128, 0.28);
    background: rgba(2, 6, 23, 0.42);
    color: var(--text-muted);
    text-align: center;
}

.qr-preview > i {
    color: var(--accent);
    font-size: 3rem;
}

.qr-preview img {
    width: min(100%, 260px);
    height: auto;
    padding: 0.8rem;
    border-radius: 20px;
    background: #ffffff;
}

.tool-alert,
.short-result {
    padding: 0.95rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(74, 222, 128, 0.2);
    background: rgba(34, 197, 94, 0.08);
    color: var(--text-main);
}

.short-result {
    display: grid;
    gap: 0.35rem;
}

.short-result span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.short-result a {
    color: var(--accent);
    font-weight: 800;
    overflow-wrap: anywhere;
}

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

.gallery-carousel {
    overflow: hidden;
    margin-bottom: 1.25rem;
    border-radius: 28px;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-glow);
    background: rgba(15, 23, 42, 0.72);
}

.gallery-carousel .carousel-item {
    aspect-ratio: 8 / 3;
    height: auto;
    max-height: 720px;
}

.gallery-carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.gallery-carousel .carousel-caption {
    left: 1.5rem;
    right: auto;
    bottom: 1.5rem;
    padding: 0;
    text-align: left;
}

.gallery-carousel .carousel-caption span {
    display: inline-flex;
    padding: 0.8rem 1rem;
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.76);
    border: 1px solid rgba(226, 232, 240, 0.14);
    color: var(--text-main);
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.gallery-carousel .carousel-indicators {
    margin-bottom: 1rem;
}

.gallery-carousel .carousel-indicators [data-bs-target] {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    border: 0;
    background-color: rgba(226, 232, 240, 0.58);
}

.gallery-carousel .carousel-indicators .active {
    width: 28px;
    background-color: var(--accent);
}

.gallery-item {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid var(--border-soft);
    background: rgba(15, 23, 42, 0.72);
    box-shadow: var(--shadow-glow);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-6px);
    border-color: rgba(74, 222, 128, 0.28);
}

.gallery-preview-trigger {
    width: 100%;
    height: 240px;
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.gallery-item img {
    width: 100%;
    height: 240px;
    display: block;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.gallery-item:hover img {
    transform: scale(1.04);
    filter: saturate(1.1);
}

.gallery-item figcaption {
    padding: 1rem;
    min-height: 76px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.76));
    border-top: 1px solid rgba(226, 232, 240, 0.1);
    color: var(--text-main);
    font-weight: 800;
    display: flex;
    align-items: center;
}

.section-kicker i,
.eyebrow i,
.panel-badge i,
.chip i,
.card-title i,
.form-label i {
    color: var(--accent);
}

@media (max-width: 991.98px) {
    .navbar-nav .nav-link i {
        width: 18px;
        text-align: center;
    }

    .showcase-card {
        position: static;
        width: 100%;
    }

    .landing-visual-chip-top {
        right: 0.5rem;
    }

    .landing-visual-chip-bottom {
        left: 0.5rem;
    }

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

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

@keyframes landingScan {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.12;
    }

    50% {
        transform: translateY(46vh);
        opacity: 0.55;
    }
}

@media (max-width: 575.98px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item,
    .gallery-item img,
    .gallery-preview-trigger {
        height: 220px;
    }

    .gallery-carousel .carousel-item {
        aspect-ratio: 8 / 3;
        min-height: 220px;
    }

    .gallery-carousel .carousel-caption {
        left: 1rem;
        bottom: 1rem;
    }
}
