/* === CSS Variables === */
:root {
    --bg: #1a1d3a;
    --bg-secondary: #242850;
    --card: rgba(255,255,255,0.04);
    --text: #e4e4f0;
    --text-muted: #a8a8c4;
    --muted: #a8a8c4;
    --accent: #b89cef;
    --accent-light: #c9b0f5;
    --primary: #e8917a;
    --border: rgba(255,255,255,0.1);
    --dark: #1a1d3a;
}

body {
    background: var(--bg);
    color: var(--text);
    transition: background 0.4s ease, color 0.4s ease;
}

/* LIGHT THEME */
body.light {
    --bg: #f3f0f8;
    --bg-secondary: #ffffff;
    --card: rgba(0,0,0,0.03);
    --text: #2d2a3e;
    --text-muted: #6b6880;
    --muted: #6b6880;
    --border: rgba(0,0,0,0.08);
}

body.light {
    background: var(--bg) !important;
    color: var(--text) !important;
}

/* === Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Geologica', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.7;
    position: relative;
}

/* === Galaxy Canvas === */
#starCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* === Floating Galaxies (Nebulae) === */
.galaxy {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.22;
    z-index: 1;
    pointer-events: none;
    animation: floatGalaxy 25s ease-in-out infinite;
}

.galaxy-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #d48fb0 0%, transparent 70%);
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.galaxy-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #9b85d6 0%, transparent 70%);
    top: 40%;
    right: -8%;
    animation-delay: -5s;
}

.galaxy-3 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #7fb5e0 0%, transparent 70%);
    bottom: 15%;
    left: 20%;
    animation-delay: -10s;
}

.galaxy-4 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #e0a08a 0%, transparent 70%);
    top: 65%;
    right: 25%;
    animation-delay: -15s;
}

.galaxy-5 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #b89cef 0%, transparent 70%);
    top: 20%;
    left: 50%;
    animation-delay: -20s;
}

@keyframes floatGalaxy {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(40px, -30px) scale(1.05); }
    50% { transform: translate(-30px, 40px) scale(0.95); }
    75% { transform: translate(30px, 30px) scale(1.02); }
}

h1, h2 {
    text-shadow: 0 0 20px rgba(192,132,252,0.3);
}

.research-card,
.project-card,
.publication-item {
    box-shadow: 0 0 30px rgba(139,92,246,0.08);
}

body.light .research-card,
body.light .project-card,
body.light .publication-item,
body.light .entry {
    background: rgba(255,255,255,0.7) !important;
    border-color: rgba(0,0,0,0.08) !important;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.03), transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(184,156,239,0.04), transparent 40%);
    pointer-events: none;
    z-index: 0;
}

/* === Container === */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

.pad {
    padding: 4rem 0;
}

/* === Navigation – теперь всегда полупрозрачная === */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: all 0.4s ease;
    /* вместо transparent – полупрозрачный фон с размытием */
    background: rgba(10, 14, 39, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

header nav.wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* при скролле делаем чуть плотнее, но всё равно прозрачно */
header.scrolled {
    background: rgba(10, 14, 39, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 1rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Светлая тема для навигации */
body.light header {
    background: rgba(246, 247, 251, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.light header.scrolled {
    background: rgba(246, 247, 251, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.brand {
    text-decoration: none;
}

.logo {
    font-family: 'Geologica', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo em {
    font-style: italic;
}

.logo .d {
    color: var(--accent);
}

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

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.3s ease;
}

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

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--accent);
    font-weight: 600;
}

.nav-link.active::after {
    width: 100%;
}

.day-toggle {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.day-toggle:hover {
    border-color: var(--accent);
    transform: scale(1.1);
}

body.light .day-toggle {
    border-color: rgba(0,0,0,0.15) !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger .bar {
    width: 25px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s ease;
}

/* === Page switching === */
.page {
    display: none;
    position: relative;
    z-index: 10;
    padding-top: 120px;
}

.page.active {
    display: block;
    animation: fadeInPage 0.5s ease;
}

.page#about {
    padding-top: 0;
}

@keyframes fadeInPage {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === Hero Section === */
.hero-content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 6rem 2rem 2rem;
}

.star-hero {
    width: 100%;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-text {
    flex: 1 1 60%;
    text-align: left;
}

.hero-text .bio {
    margin-left: 0;
    margin-right: 0;
}

.hero-text .chips {
    justify-content: flex-start;
}

.hero-inner .avatar {
    flex: 0 0 220px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(192,132,252,0.3);
    box-shadow: 0 0 40px rgba(192,132,252,0.2);
}

.hero-inner .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-name {
    font-family: 'Geologica', sans-serif;
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #ff7e5f 30%, #feb47b 50%, #c084fc 70%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 8s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.role {
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.bio {
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.chips a {
    color: var(--text);
    text-decoration: none;
    padding: 0.6rem 1.3rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
}

.chips a:hover {
    border-color: var(--primary);
    background: rgba(255, 126, 95, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 126, 95, 0.2);
}

body.light .chips a {
    border-color: #6b6880;
}

.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-hint span {
    font-size: 1.2rem;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* === Sections === */
.section {
    padding: 6rem 0;
    position: relative;
    z-index: 10;
}

.section-alt {
    background: rgba(20, 24, 54, 0.4);
    backdrop-filter: blur(5px);
}

body.light .section-alt {
    background: rgba(255,255,255,0.5);
}

.section-title {
    font-family: 'Geologica', sans-serif;
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 400;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    background: linear-gradient(135deg, #ffffff, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light .section-title {
    background: linear-gradient(135deg, #1a1a2e, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
}

#about-content .section-title::after {
    display: none;
}

.section-divider {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    margin: 0 auto 2rem;
    border-radius: 2px;
}

.section-head {
    text-align: center;
    margin-bottom: 3rem;
}

.sechead {
    font-family: 'Geologica', sans-serif;
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 400;
    background: linear-gradient(135deg, #ffffff, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

body.light .sechead {
    background: linear-gradient(135deg, #1a1a2e, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
}

.lead {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* === About Section === */
.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 1.2rem;
    color: var(--text-muted);
    font-size: 1.02rem;
    line-height: 1.9;
}

.about-content .avatar {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(192, 132, 252, 0.3);
    box-shadow: 0 0 40px rgba(192, 132, 252, 0.2);
    order: 2;
}

.about-content .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    .about-content .avatar {
        order: -1;
        width: 180px;
        height: 180px;
    }
}

.interests {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
    margin-top: 2rem;
}

.tag {
    padding: 0.4rem 1rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--accent-light);
    letter-spacing: 0.5px;
}

/* === Research Grid === */
.research-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.research-card {
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.research-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 126, 95, 0.05), rgba(139, 92, 246, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.research-card:hover {
    transform: translateY(-5px);
    border-color: rgba(192, 132, 252, 0.3);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.15);
}

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

.research-number {
    font-family: 'Geologica', sans-serif;
    font-size: 3rem;
    font-weight: 300;
    color: rgba(255, 126, 95, 0.3);
    position: absolute;
    top: 1rem;
    right: 1.5rem;
}

.research-card h3 {
    font-family: 'Geologica', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--text);
    position: relative;
}

.research-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    position: relative;
}

/* === Light block (for Talks, Software) === */
.light-block {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    margin: 4rem auto;
    max-width: 1100px;
}

body.light .light-block {
    background: rgba(255,255,255,0.6);
}

/* === Talks entries === */
.entry {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    margin-bottom: 2rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    transition: all 0.3s ease;
    align-items: flex-start;
}

body.light .entry {
    background: rgba(255,255,255,0.7);
    border-color: rgba(0,0,0,0.08);
}

.entry:hover {
    border-color: rgba(192,132,252,0.3);
    transform: translateX(5px);
}

.figbox {
    flex-shrink: 0;
    width: 200px;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
}

.figbox img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ec {
    flex: 1;
}

.meta-top {
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.ec h3 {
    font-family: 'Geologica', sans-serif;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.authors {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 0.8rem;
}

.abstract {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

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

.chip {
    padding: 0.4rem 1rem;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
}

.chip.solid {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    color: white;
}

.chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(192,132,252,0.2);
}

/* === Publications === */
.publications-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.publication-item {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.publication-item:hover {
    border-color: rgba(255, 126, 95, 0.3);
    transform: translateX(5px);
}

.pub-year {
    font-family: 'Geologica', sans-serif;
    font-size: 2rem;
    font-weight: 300;
    color: var(--primary);
    min-width: 80px;
    padding-top: 0.3rem;
}

.pub-content h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text);
    line-height: 1.4;
}

.pub-authors {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.pub-authors strong {
    color: var(--accent-light);
}

.pub-journal {
    color: var(--text-muted);
    font-size: 0.88rem;
    font-style: italic;
    margin-bottom: 0.8rem;
}

.pub-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.pub-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.3rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.pub-links a:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.pub-links a i {
    margin-right: 0.3rem;
}

.pub-type {
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 0.3rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

/* === Projects Grid (для Code & Data) === */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.project-card {
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 126, 95, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 126, 95, 0.3);
    box-shadow: 0 15px 40px rgba(255, 126, 95, 0.1);
}

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

.project-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.project-card h3 {
    font-family: 'Geologica', sans-serif;
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--text);
    position: relative;
}

.project-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    position: relative;
}

.project-link {
    color: var(--accent-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    position: relative;
}

.project-link:hover {
    color: var(--primary);
}

.project-link i {
    margin-right: 0.3rem;
}

/* === Sub-sections для Code & Data === */
.sub-section {
    margin-bottom: 3rem;
}
.sub-section:last-child {
    margin-bottom: 0;
}

.sub-heading {
    font-family: 'Geologica', sans-serif;
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}
.sub-heading::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

/* === Footer === */
.footer {
    background: var(--bg-secondary);
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 10;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-contact i {
    color: var(--accent);
}

.footer-contact a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.footer-contact a:hover {
    color: var(--accent);
}

body.light .footer {
    background: var(--bg-secondary) !important;
}

/* === Animations on scroll === */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Responsive === */
@media (max-width: 968px) {
    .about-content {
        gap: 2rem;
    }
    
    .research-grid, .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(10, 14, 39, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        gap: 2rem;
    }

    body.light .nav-links {
        background: rgba(246,247,251,0.95);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .publication-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .pub-year {
        font-size: 1.5rem;
    }

    .entry {
        flex-direction: column;
    }

    .figbox {
        width: 100%;
        height: 200px;
    }

    .hero-inner {
        flex-direction: column;
        text-align: center;
    }
    .hero-text {
        text-align: center;
    }
    .hero-text .chips {
        justify-content: center;
    }
    .hero-inner .avatar {
        flex: 0 0 180px;
        width: 180px;
        height: 180px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .section {
        padding: 4rem 0;
    }
    
    .hero-name {
        font-size: 3rem;
    }
    
    .chips {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}