:root {
    --sc-bg-deep: #05080e;
    --sc-bg-panel: rgba(8, 18, 38, 0.85);
    --sc-bg-panel-solid: #081226;
    --sc-surface: rgba(20, 40, 80, 0.35);
    --sc-surface-hover: rgba(30, 60, 110, 0.45);

    --sc-blue: #1e90ff;
    --sc-blue-bright: #4db8ff;
    --sc-blue-glow: #00aaff;
    --sc-blue-dim: #0d3b6e;
    --sc-cyan: #00e5ff;


    --sc-border: rgba(30, 144, 255, 0.2);
    --sc-border-bright: rgba(30, 144, 255, 0.5);
    --sc-border-hover: rgba(0, 229, 255, 0.4);


    --sc-text: #c8daf0;
    --sc-text-bright: #e8f4ff;
    --sc-text-muted: #6a8aaa;
    --sc-text-dim: #3a5a7a;

    --font-display: 'Tektur', Arial, sans-serif;
    --font-body: 'Tektur', Arial, sans-serif;
    --font-mono: 'Tektur', 'Courier New', monospace;


    --glow-blue: 0 0 8px rgba(0, 170, 255, 0.4), 0 0 20px rgba(0, 170, 255, 0.15);
    --glow-cyan: 0 0 8px rgba(0, 229, 255, 0.5), 0 0 25px rgba(0, 229, 255, 0.15);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--sc-bg-deep);
    color: var(--sc-text);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
    font-weight: 400;
}

a {
    color: inherit;
    text-decoration: none;
}

.bg-image {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image: url('img/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.6;
}

.bg-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(0, 100, 200, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 30%, rgba(0, 170, 255, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(0, 0, 0, 0.4) 0%, transparent 50%),
        linear-gradient(180deg, rgba(5, 8, 14, 0.45) 0%, rgba(10, 15, 26, 0.6) 100%);
    pointer-events: none;
}

.scanlines {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(0, 170, 255, 0.015) 2px,
            rgba(0, 170, 255, 0.015) 4px);
    animation: scanline-scroll 8s linear infinite;
}

@keyframes scanline-scroll {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 200px;
    }
}

.grid-overlay {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0.03;
    background-image:
        linear-gradient(rgba(0, 170, 255, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 170, 255, 0.3) 1px, transparent 1px);
    background-size: 60px 60px;
}

#particleCanvas {
    position: fixed;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: stretch;
    height: 56px;
}

.nav-edge-left,
.nav-edge-right {
    width: 30px;
    flex-shrink: 0;
    position: relative;
}

.nav-edge-left {
    background: linear-gradient(135deg, var(--sc-blue) 0%, transparent 70%);
    clip-path: polygon(0 0, 100% 0, 70% 100%, 0 100%);
    opacity: 0.6;
}

.nav-edge-right {
    background: linear-gradient(225deg, var(--sc-blue) 0%, transparent 70%);
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
    opacity: 0.6;
}

.nav-inner {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    background: var(--sc-bg-panel);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--sc-border);
    position: relative;
}

.nav-inner::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--sc-blue) 20%,
            var(--sc-cyan) 50%,
            var(--sc-blue) 80%,
            transparent 100%);
    opacity: 0.5;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.brand-icon {
    width: 28px;
    height: 28px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo {
    width: 26px;
    height: 26px;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 4px rgba(0, 229, 255, 0.5))
            drop-shadow(0 0 10px rgba(0, 170, 255, 0.3));
    animation: logo-pulse 3s ease-in-out infinite;
}

@keyframes logo-pulse {
    0%, 100% {
        filter: drop-shadow(0 0 4px rgba(0, 229, 255, 0.5))
                drop-shadow(0 0 10px rgba(0, 170, 255, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.8))
                drop-shadow(0 0 20px rgba(0, 170, 255, 0.5))
                drop-shadow(0 0 35px rgba(0, 229, 255, 0.2));
    }
}

.brand-glow {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.25) 0%, rgba(0, 170, 255, 0.1) 40%, transparent 70%);
    animation: glow-pulse 3s ease-in-out infinite;
    z-index: 0;
}

@keyframes glow-pulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}

.brand-text {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--sc-text-bright);
    text-transform: uppercase;
}

.brand-accent {
    color: var(--sc-cyan);
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    list-style: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 0.85rem;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sc-text-muted);
    border: 1px solid transparent;
    transition: var(--transition);
    position: relative;
    clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
    background: transparent;
}

.nav-link:hover,
.nav-link.active {
    color: var(--sc-cyan);
    background: rgba(0, 229, 255, 0.06);
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 8px;
    right: 8px;
    height: 1px;
    background: var(--sc-cyan);
    box-shadow: 0 0 6px var(--sc-cyan);
}

.nav-chevron {
    font-size: 0.65rem;
    transition: transform var(--transition);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown>.dropdown-trigger {
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 190px;
    background: var(--sc-bg-panel-solid);
    border: 1px solid var(--sc-border-bright);
    padding: 0.4rem;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), var(--glow-blue);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
    z-index: 1000;
}

.nav-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 8px;
    background: transparent;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown:hover .nav-chevron {
    transform: rotate(180deg);
}

.dropdown-menu li a {
    display: block;
    padding: 0.4rem 0.75rem;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sc-text-muted);
    border-left: 2px solid transparent;
    transition: var(--transition);
}

.dropdown-menu li a:hover {
    color: var(--sc-cyan);
    border-left-color: var(--sc-cyan);
    background: rgba(0, 229, 255, 0.05);
    padding-left: 1rem;
    text-shadow: 0 0 6px rgba(0, 229, 255, 0.3);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--sc-blue-bright);
    border-radius: 1px;
    transition: var(--transition);
    box-shadow: 0 0 4px rgba(0, 170, 255, 0.4);
}

.main-content {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    padding-top: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-grid {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 1.2rem 2.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1rem;
    align-content: center;
}

.hud-panel {
    position: relative;
    background: var(--sc-bg-panel);
    border: 1px solid var(--sc-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.5rem;
    clip-path: polygon(0 12px, 12px 0, calc(100% - 12px) 0, 100% 12px,
            100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px));
    transition: var(--transition);
}

.hud-panel:hover {
    border-color: var(--sc-border-hover);
    box-shadow: var(--glow-blue);
}

.panel-corner {
    position: absolute;
    width: 14px;
    height: 14px;
    z-index: 5;
}

.panel-corner::before,
.panel-corner::after {
    content: '';
    position: absolute;
    background: var(--sc-blue);
    box-shadow: 0 0 4px var(--sc-blue-glow);
}

.panel-corner.tl {
    top: -1px;
    left: -1px;
}

.panel-corner.tl::before {
    top: 0;
    left: 0;
    width: 14px;
    height: 1px;
}

.panel-corner.tl::after {
    top: 0;
    left: 0;
    width: 1px;
    height: 14px;
}

.panel-corner.tr {
    top: -1px;
    right: -1px;
}

.panel-corner.tr::before {
    top: 0;
    right: 0;
    width: 14px;
    height: 1px;
}

.panel-corner.tr::after {
    top: 0;
    right: 0;
    width: 1px;
    height: 14px;
}

.panel-corner.bl {
    bottom: -1px;
    left: -1px;
}

.panel-corner.bl::before {
    bottom: 0;
    left: 0;
    width: 14px;
    height: 1px;
}

.panel-corner.bl::after {
    bottom: 0;
    left: 0;
    width: 1px;
    height: 14px;
}

.panel-corner.br {
    bottom: -1px;
    right: -1px;
}

.panel-corner.br::before {
    bottom: 0;
    right: 0;
    width: 14px;
    height: 1px;
}

.panel-corner.br::after {
    bottom: 0;
    right: 0;
    width: 1px;
    height: 14px;
}

.panel-scanline {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--sc-cyan), transparent);
    opacity: 0.5;
    animation: panel-scan 4s ease-in-out infinite;
    z-index: 5;
}

@keyframes panel-scan {

    0%,
    100% {
        top: 0;
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    50% {
        opacity: 0.3;
    }

    90% {
        opacity: 0.6;
    }

    95% {
        top: calc(100% - 2px);
        opacity: 0;
    }
}

.hero-section {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

.hero-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.7rem;
    min-height: 220px;
}

.hero-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--sc-cyan);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.8;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--sc-cyan);
    box-shadow: 0 0 8px var(--sc-cyan);
    animation: status-blink 2s ease-in-out infinite;
}

@keyframes status-blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--sc-text-bright);
    text-shadow: 0 0 20px rgba(0, 170, 255, 0.3), 0 0 60px rgba(0, 170, 255, 0.1);
    line-height: 1.1;
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: clamp(0.85rem, 1.2vw, 1.05rem);
    color: var(--sc-text-muted);
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0, 170, 255, 0.15);
}

.hero-subtitle a,
.section-title a,
.prose a:not(.tool-card):not(.nav-link):not(.hero-cta) {
    color: var(--sc-cyan);
    border-bottom: 1px dashed var(--sc-cyan);
    transition: var(--transition);
}

.hero-subtitle a:hover,
.section-title a:hover,
.prose a:hover:not(.tool-card):not(.nav-link):not(.hero-cta) {
    color: #fff;
    border-bottom: 1px solid #fff;
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.6);
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.4rem;
    padding: 0.75rem 1.6rem;
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.2) 0%, rgba(0, 229, 255, 0.1) 100%);
    border: 1px solid var(--sc-blue);
    color: var(--sc-cyan);
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    width: fit-content;
    position: relative;
    transition: var(--transition);
    clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
    cursor: pointer;
    overflow: hidden;
}

.hero-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.15) 0%, rgba(30, 144, 255, 0.25) 100%);
    opacity: 0;
    transition: var(--transition);
}

.hero-cta:hover {
    border-color: var(--sc-cyan);
    color: #fff;
    box-shadow: var(--glow-cyan);
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
    transform: translateY(-1px);
}

.hero-cta:hover::before {
    opacity: 1;
}

.cta-text {
    position: relative;
    z-index: 1;
}

.cta-icon {
    position: relative;
    z-index: 1;
    font-size: 0.7rem;
    transition: transform var(--transition);
}

.hero-cta:hover .cta-icon {
    transform: translateX(4px);
}

.cta-edge-l,
.cta-edge-r {
    display: none;
}

.stats-section {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
    align-content: center;
}

.stat-card {
    position: relative;
    background: var(--sc-bg-panel);
    border: 1px solid var(--sc-border);
    padding: 0.9rem 1rem;
    clip-path: polygon(0 8px, 8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
    transition: var(--transition);
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--sc-blue), transparent);
}

.stat-card:hover {
    border-color: var(--sc-border-hover);
    background: var(--sc-surface-hover);
    box-shadow: var(--glow-blue);
}

.stat-corner {
    position: absolute;
    width: 8px;
    height: 8px;
}

.stat-corner::before {
    content: '';
    position: absolute;
    background: var(--sc-blue);
    box-shadow: 0 0 3px var(--sc-blue-glow);
}

.stat-corner.tl {
    top: 0;
    left: 0;
}

.stat-corner.tl::before {
    width: 8px;
    height: 1px;
}

.stat-corner.tr {
    top: 0;
    right: 0;
}

.stat-corner.tr::before {
    right: 0;
    width: 8px;
    height: 1px;
}

.stat-corner.bl {
    bottom: 0;
    left: 0;
}

.stat-corner.bl::before {
    bottom: 0;
    width: 8px;
    height: 1px;
}

.stat-corner.br {
    bottom: 0;
    right: 0;
}

.stat-corner.br::before {
    right: 0;
    bottom: 0;
    width: 8px;
    height: 1px;
}

.stat-label {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--sc-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.3rem;
}

.stat-number {
    font-family: var(--font-mono);
    font-size: clamp(1.5rem, 2vw, 2rem);
    text-align: center;
    font-weight: 400;
    color: var(--sc-cyan);
    text-shadow: 0 0 12px rgba(0, 229, 255, 0.4);
    line-height: 1.2;
}

.stat-bar-track {
    margin-top: 0.5rem;
    height: 2px;
    background: rgba(30, 144, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--sc-blue), var(--sc-cyan));
    box-shadow: 0 0 6px var(--sc-cyan);
    transition: width 2.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card.animated .stat-bar-fill {
    width: 100%;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--sc-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.7rem;
}

.title-icon {
    color: var(--sc-blue);
    font-size: 0.6rem;
    text-shadow: 0 0 6px var(--sc-blue-glow);
    animation: icon-pulse 2.5s ease-in-out infinite;
}

@keyframes icon-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.title-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--sc-border-bright), transparent);
}

.publications-section {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
}

.pub-panel {
    padding: 1.2rem 1.5rem;
}

.year-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.tools-section {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

.tools-panel {
    padding: 1.2rem 1.5rem;
}

.tools-grid {
    display: flex;
    gap: 0.6rem;
}

.tool-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 0.6rem;
    background: var(--sc-surface);
    border: 1px solid var(--sc-border);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--sc-blue), transparent);
    opacity: 0;
    transition: var(--transition);
}

.tool-card:hover {
    border-color: var(--sc-border-hover);
    background: var(--sc-surface-hover);
    box-shadow: var(--glow-blue);
}

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

.tool-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition);
}

.tool-card:hover .tool-glow {
    opacity: 1;
}

.tool-hex {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sc-blue-bright);
    transition: var(--transition);
}

.tool-hex svg {
    width: 22px;
    height: 22px;
}

.tool-card:hover .tool-hex {
    color: var(--sc-cyan);
    filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.5));
    transform: scale(1.1);
}

.tool-name {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sc-text-muted);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.tool-card:hover .tool-name {
    color: var(--sc-text-bright);
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glitchIn {
    0% {
        opacity: 0;
        transform: translateX(-5px);
        filter: blur(4px);
    }

    40% {
        opacity: 0.8;
        filter: blur(0);
    }

    60% {
        opacity: 0.5;
        transform: translateX(2px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-section {
    animation: glitchIn 0.8s ease-out;
}

.stats-section {
    animation: fadeInUp 0.6s ease-out 0.15s both;
}

.publications-section {
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.tools-section {
    animation: fadeInUp 0.6s ease-out 0.45s both;
}

@media (max-width: 1024px) {
    .nav-inner {
        padding: 0 1.5rem;
    }

    .content-grid {
        padding: 1rem 1.5rem;
        gap: 0.8rem;
    }

    .hud-panel {
        padding: 1.2rem;
    }
}

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

    .nav-edge-left,
    .nav-edge-right {
        display: none;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(8, 18, 38, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--sc-border);
        padding: 0.5rem;
        gap: 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        padding: 0.7rem 1rem;
        width: 100%;
        clip-path: none;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        background: transparent;
        border: none;
        box-shadow: none;
        padding-left: 1rem;
        display: none;
        clip-path: none;
    }

    .nav-dropdown.open .dropdown-menu {
        display: block;
        transform: none;
    }

    .main-content {
        align-items: flex-start;
    }

    .content-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
        padding: 1rem;
        gap: 1rem;
        min-height: auto;
        padding-top: 1.5rem;
    }

    .hero-section {
        grid-column: 1;
        grid-row: 1;
    }

    .stats-section {
        grid-column: 1;
        grid-row: 2;
    }

    .publications-section {
        grid-column: 1;
        grid-row: 3;
    }

    .tools-section {
        grid-column: 1;
        grid-row: 4;
    }

    .hero-panel {
        text-align: center;
        align-items: center;
    }

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

    .tools-grid {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .stats-section {
        grid-template-columns: 1fr 1fr;
    }

    .stat-number {
        font-size: 1.1rem;
    }

    .tools-grid {
        flex-wrap: wrap;
    }

    .tool-card {
        min-width: 80px;
    }
}