/* ==========================
   Portfolio styles
   Rich & Accessible (2026-01)
   ========================== */

/* --------------------------
   Design tokens
   -------------------------- */

:root {
    --accent: #2563eb;
    --accent-light: #dbeafe;
    --accent-hover: #1d4ed8;
    --accent-subtle: rgba(37, 99, 235, 0.08);

    --bg: #f8fafc;
    --bg-alt: #ffffff;
    --surface: #ffffff;
    --surface-raised: #ffffff;

    --text: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --border: #e2e8f0;
    --border-light: #f1f5f9;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 28px rgba(0, 0, 0, 0.10), 0 4px 10px rgba(0, 0, 0, 0.05);

    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;

    --container: 1100px;
    --px: clamp(20px, 5vw, 48px);
    --section-gap: clamp(56px, 8vw, 80px);

    --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --accent: #60a5fa;
        --accent-light: rgba(96, 165, 250, 0.15);
        --accent-hover: #93bbfd;
        --accent-subtle: rgba(96, 165, 250, 0.10);

        --bg: #0f172a;
        --bg-alt: #1e293b;
        --surface: #1e293b;
        --surface-raised: #334155;

        --text: #f1f5f9;
        --text-secondary: #cbd5e1;
        --text-muted: #64748b;

        --border: #334155;
        --border-light: #1e293b;

        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
        --shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
        --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.25), 0 1px 3px rgba(0, 0, 0, 0.2);
        --shadow-lg: 0 10px 28px rgba(0, 0, 0, 0.35), 0 4px 10px rgba(0, 0, 0, 0.2);
    }
}

/* --------------------------
   Reset & base
   -------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 72px;
}

body {
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--bg);
    line-height: 1.75;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.3;
    color: var(--text);
}

p {
    margin: 0.6em 0;
    color: var(--text-secondary);
}

ul {
    margin: 0.5em 0;
    padding-left: 0;
    list-style: none;
}

a {
    color: var(--accent);
    text-decoration: none;
    text-underline-offset: 3px;
}

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

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

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

/* --------------------------
   Splash
   -------------------------- */

#splash {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: url('image/background.jpg') no-repeat center center / cover;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 1s ease, visibility 1s ease;
    z-index: 1000;
    opacity: 1;
    visibility: visible;
}

#splash::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

#splash.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.splash-content h1 {
    font-size: clamp(2.4rem, 6vw, 3.6rem);
    margin: 0;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.14em;
    text-shadow: 0 2px 16px rgba(255, 255, 255, 0.15), 0 2px 12px rgba(0, 0, 0, 0.3);
}

.splash-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.3em;
    margin-top: 12px;
    font-weight: 500;
}

/* --------------------------
   Navbar
   -------------------------- */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    background: rgba(248, 250, 252, 0.85);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
}

.navbar.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

@media (prefers-color-scheme: dark) {
    .navbar {
        background: rgba(15, 23, 42, 0.88);
        border-bottom-color: var(--border);
    }
}

.navbar ul {
    display: flex;
    justify-content: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar li {
    display: flex;
}

.navbar a {
    display: block;
    padding: 18px 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    letter-spacing: 0.04em;
    position: relative;
}

.navbar a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
    transition: width 0.2s ease;
}

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

.navbar a:hover::after,
.navbar a.active::after {
    width: 24px;
}

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

/* --------------------------
   Language Switcher
   -------------------------- */

.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 6px 14px;
    border-radius: 999px;
    z-index: 1001;
    font-family: var(--font-sans);
    background: rgba(255, 255, 255, 0.80);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.language-switcher a {
    text-decoration: none;
    font-weight: 700;
    color: var(--text-muted);
    padding: 0 4px;
    font-size: 13px;
    letter-spacing: 0.02em;
}

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

.language-switcher span {
    margin: 0 2px;
    color: var(--text-muted);
    opacity: 0.5;
}

.language-switcher a.active-lang {
    color: var(--accent);
    cursor: default;
}

@media (prefers-color-scheme: dark) {
    .language-switcher {
        background: rgba(30, 41, 59, 0.85);
        border-color: var(--border);
    }
}

/* --------------------------
   Main content
   -------------------------- */

.main-content {
    width: 100%;
    opacity: 1;
}

/* --------------------------
   Top hero
   -------------------------- */

.top {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.95);
}

.top::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('image/background.jpg');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.top::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.55) 0%,
        rgba(30, 41, 59, 0.45) 100%
    );
    z-index: 0;
}

.top > * {
    position: relative;
    z-index: 1;
}

.top-inner {
    width: 100%;
    max-width: var(--container);
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 0 var(--px);
}

.top-img {
    border-radius: 50%;
    width: 190px;
    height: 190px;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.top-text h1 {
    margin: 0;
    font-size: 42px;
    font-weight: 700;
    color: white;
    letter-spacing: 0.03em;
}

.top-text .sub-name {
    color: rgba(255, 255, 255, 0.75);
    font-size: 17px;
    margin-top: 4px;
    letter-spacing: 0.06em;
}

.top-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 17px;
}

.sns-links {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.sns-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: white;
    text-decoration: none;
    border-radius: 999px;
    padding: 9px 18px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.12);
    font-weight: 600;
    font-size: 14px;
}

.sns-links a:hover {
    background: rgba(255, 255, 255, 0.20);
    border-color: rgba(255, 255, 255, 0.40);
    color: white;
    text-decoration: none;
}

.sns-links a:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.75);
    outline-offset: 3px;
}

/* --------------------------
   Sections (shared)
   -------------------------- */

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

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

.section-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: var(--section-gap) var(--px);
}

/* Section heading */

.section-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 40px;
}

.section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--accent-subtle);
    color: var(--accent);
    font-size: 18px;
    flex-shrink: 0;
}

.section-heading h2 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin: 0;
}

/* --------------------------
   Card (shared)
   -------------------------- */

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

/* --------------------------
   Profile
   -------------------------- */

.profile-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

.card-header i {
    color: var(--accent);
    font-size: 18px;
}

.card-header h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
}

.timeline-list {
    list-style: none;
    padding: 0;
}

.timeline-list li {
    padding: 10px 0;
    color: var(--text-secondary);
    font-size: 14.5px;
    line-height: 1.6;
}

.timeline-list li + li {
    border-top: 1px solid var(--border-light);
}

.timeline-year {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 2px;
}

.hobby-list {
    list-style: none;
    padding: 0;
}

.hobby-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 15px;
}

.hobby-list li + li {
    border-top: 1px solid var(--border-light);
}

.hobby-list li i {
    color: var(--accent);
    font-size: 14px;
    width: 20px;
    text-align: center;
}

/* --------------------------
   Research
   -------------------------- */

.research-title-banner {
    text-align: center;
    background: var(--accent-light);
    color: var(--text);
    padding: 20px 24px;
    font-size: 19px;
    font-weight: 700;
    border-radius: var(--radius);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid var(--border);
}

.research-title-banner i {
    color: var(--accent);
    font-size: 16px;
    opacity: 0.7;
}

.research-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.research-card {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 0;
    overflow: hidden;
}

.research-card-img {
    flex: 0 0 48%;
    max-width: 48%;
}

.research-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.research-card-body {
    flex: 1;
    padding: 24px 24px 24px 0;
}

.research-card-body h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.research-card-body h3 i {
    color: var(--accent);
    font-size: 16px;
}

.research-card-body p {
    font-size: 14.5px;
    line-height: 1.8;
}

.research-card-text-only {
    display: block;
    padding: 24px;
}

.research-card-text-only .research-card-body {
    padding: 0;
}

/* --------------------------
   Works
   -------------------------- */

.work-grid-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 0;
}

.work-grid-two .work-item {
    display: flex;
    flex-direction: column;
}

.work-grid-two .work-description-full {
    flex: 1;
}

.work-grid-two .work-image-full img {
    width: 80%;
}

.work-item {
    margin-top: 0;
}

.work-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.work-header h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.work-tag {
    display: inline-block;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    letter-spacing: 0.03em;
}

.work-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.work-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.work-description {
    font-size: 15px;
}

.work-description h4 {
    font-size: 15px;
    font-weight: 700;
    margin: 18px 0 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
}

.work-description h4 i {
    color: var(--accent);
    font-size: 14px;
}

.work-description ul {
    padding-left: 0;
    list-style: none;
}

.work-description ul li {
    position: relative;
    padding: 4px 0 4px 20px;
    color: var(--text-secondary);
    font-size: 14.5px;
}

.work-description ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.5;
}

.work-links {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.work-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
}

.work-status {
    display: inline-block;
    font-size: 12px;
    color: var(--text-muted);
    background: var(--border-light);
    padding: 3px 10px;
    border-radius: 999px;
}

.work-status-active {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #16a34a;
    background: rgba(22, 163, 74, 0.10);
    border: 1px solid rgba(22, 163, 74, 0.25);
    padding: 3px 10px;
    border-radius: 999px;
}

@media (prefers-color-scheme: dark) {
    .work-status-active {
        color: #4ade80;
        background: rgba(74, 222, 128, 0.12);
        border-color: rgba(74, 222, 128, 0.25);
    }
}

.work-image-full {
    margin-bottom: 18px;
    text-align: center;
}

.work-image-full img {
    width: 60%;
    display: inline-block;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
}

@media (prefers-color-scheme: dark) {
    .work-status {
        background: var(--surface-raised);
    }
}

/* --------------------------
   Work: Learn More toggle
   -------------------------- */

.work-details[hidden] {
    display: none;
}

.work-details {
    margin-top: 12px;
}

.btn-learn-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    background: transparent;
    border: 1.5px solid var(--accent);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.btn-learn-more:hover {
    background: var(--accent);
    color: #fff;
}

.btn-learn-more i {
    font-size: 11px;
    transition: transform 0.3s;
}

.btn-learn-more.active i {
    transform: rotate(180deg);
}

/* --------------------------
   Work: divider between items
   -------------------------- */

.work-divider {
    height: 1px;
    background: var(--border);
    margin: 40px 0;
}

/* Work: full-width description (no image) */

.work-description-full {
    font-size: 15px;
}

.work-description-full h4 {
    font-size: 15px;
    font-weight: 700;
    margin: 20px 0 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
}

.work-description-full h4 i {
    color: var(--accent);
    font-size: 14px;
}

.work-description-full ul {
    padding-left: 0;
    list-style: none;
}

.work-description-full ul li {
    position: relative;
    padding: 6px 0 6px 20px;
    color: var(--text-secondary);
    font-size: 14.5px;
    line-height: 1.7;
}

.work-description-full ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.5;
}

.work-description-full ul li strong {
    color: var(--text);
}

/* Language badges */

.work-lang-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 4px;
}

.lang-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--accent-light);
    color: var(--accent);
    letter-spacing: 0.02em;
}

/* Setup steps */

.work-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 12px;
}

.work-step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    font-size: 13px;
    font-weight: 700;
    margin-top: 2px;
}

.step-body {
    flex: 1;
    min-width: 0;
}

.step-body h5 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--text);
}

.step-body p {
    font-size: 14px;
    margin: 4px 0;
}

/* Code blocks */

pre {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    padding: 12px 16px;
    overflow-x: auto;
    margin: 8px 0;
}

code {
    font-family: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", Menlo, Consolas,
        "Liberation Mono", monospace;
    font-size: 13px;
    color: var(--text);
}

p code,
li code {
    background: var(--accent-subtle);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

@media (prefers-color-scheme: dark) {
    pre {
        background: rgba(0, 0, 0, 0.3);
        border-color: var(--border);
    }
}

/* --------------------------
   Role chips
   -------------------------- */

.role-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.role-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--surface-raised);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.role-chip i {
    color: var(--accent);
    font-size: 12px;
}

/* Role list with descriptions */

.role-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.role-item {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.role-item .role-chip {
    flex-shrink: 0;
}

.role-item p {
    margin: 0;
    font-size: 13.5px;
    color: var(--text-secondary);
    flex: 1;
    min-width: 180px;
}

/* --------------------------
   Achievement grid
   -------------------------- */

.achievement-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 12px;
}

.achievement-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
}

.achievement-card h5 {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 7px;
}

.achievement-card h5 i {
    color: var(--accent);
    font-size: 13px;
}

.achievement-card p {
    font-size: 13px;
    line-height: 1.7;
    margin: 0;
}

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

    .role-chips {
        gap: 8px;
    }
}

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

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 16px;
}

.skill-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.skill-badge i {
    font-size: 28px;
    color: var(--accent);
}

.skill-badge span {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.01em;
}

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

.site-footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 28px var(--px);
    text-align: center;
}

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

/* --------------------------
   Responsive
   -------------------------- */

@media (max-width: 768px) {
    .top-inner {
        flex-direction: column;
        text-align: center;
    }

    .top-img {
        width: 150px;
        height: 150px;
    }

    .sns-links {
        justify-content: center;
    }

    .navbar a {
        padding: 14px 14px;
        font-size: 13px;
    }

    .section-heading {
        margin-bottom: 28px;
    }

    .section-heading h2 {
        font-size: 24px;
    }

    .profile-cards {
        grid-template-columns: 1fr;
    }

    .research-card {
        flex-direction: column;
    }

    .research-card-img {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .research-card-img img {
        border-radius: var(--radius) var(--radius) 0 0;
    }

    .research-card-body {
        padding: 20px;
    }

    .work-grid-two {
        grid-template-columns: 1fr;
    }

    .work-grid-two .work-image-full img {
        width: 60%;
    }

    .work-content {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 12px;
    }

    .skill-badge {
        padding: 18px 12px;
    }

    .skill-badge i {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .navbar ul {
        gap: 0;
    }

    .navbar a {
        padding: 12px 10px;
        font-size: 12px;
    }

    .section-icon {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }
}

/* --------------------------
   Reduced motion
   -------------------------- */

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

    #splash,
    .navbar {
        transition: none !important;
    }
}
