html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    color: #e2e8f0;
    line-height: 1.6;
    min-height: 100vh;
    background-color: transparent; 
}

.astro-widget {
    position: fixed;
    top: 120px;
    right: 40px;
    width: 220px;
    padding: 20px;

    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;

    z-index: 100;

    color: #cbd5e1;
    font-size: 0.9rem;
}

.astro-widget h4 {
    font-family: 'Lora', serif;
    color: #fff;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 8px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.astro-widget p {
    margin: 10px 0 0 0;
    line-height: 1.4;
}

.astro-widget strong {
    color: #38bdf8;
    font-weight: 500;
}

.moon-strip {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    margin-bottom: 15px;
    font-size: 1.2rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 5px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.moon-icon {
    opacity: 0.3;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.moon-icon.active {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.3);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.sky-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: linear-gradient(135deg, #020308 0%, #0a0e17 100%);
    overflow: hidden;
}

.star {
    position: absolute;
    background-color: #fff;
    border-radius: 50%;
    animation: pulsate infinite alternate;
    box-shadow: 0 0 6px 1px rgba(255, 255, 255, 0.7);
}

@keyframes pulsate {
    0% { opacity: 0.2; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1.4); }
}

.comet {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 12px 3px rgba(255, 255, 255, 0.9);
    opacity: 0;
}

.comet::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 2px;
    width: 180px;
    height: 2px;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.8), transparent);
    transform: translateY(-50%);
}

@keyframes shooting {
    0% { transform: rotate(155deg) translateX(0); opacity: 1; }
    10% { transform: rotate(155deg) translateX(2500px); opacity: 0; }
    100% { transform: rotate(155deg) translateX(2500px); opacity: 0; }
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 50px;
    font-size: 0.9rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(2, 3, 8, 0.50);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    font-family: 'Lora', serif;
    font-size: 1.2rem;
    color: #fff;
    text-decoration: none;
}

nav a {
    color: #94a3b8;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s;
}

nav a:hover {
    color: #38bdf8;
}

main {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

h1, h2, h3, h4 {
    font-family: 'Lora', serif;
    font-weight: 400;
    color: #fff;
    margin: 0;
}

.page-title {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

hr {
    border: 0;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 30px 0;
}

.bio-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.bio-text {
    flex: 1;
    padding-right: 20px;
}

.bio-text h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.bio-text p {
    margin: 5px 0;
    font-size: 0.9rem;
    color: #cbd5e1;
}

.bio-text a {
    color: #38bdf8;
    text-decoration: none;
}

.bio-text a:hover {
    text-decoration: underline;
}

.bio-image-wrapper {
    width: 150px;
    text-align: center;
}

.bio-image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.bio-image-caption {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 5px;
    font-family: 'Lora', serif;
    font-style: italic;
}

.abstract-section {
    font-size: 0.95rem;
    color: #cbd5e1;
    margin-bottom: 40px;
}

.small-caps {
    font-variant: small-caps;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.5px;
}

.keywords {
    margin-top: 15px;
    font-size: 0.9rem;
}

.toc-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.toc-list a {
    color: #cbd5e1;
    text-decoration: none;
    display: flex;
}

.toc-list a:hover {
    color: #38bdf8;
}

.toc-num {
    width: 25px;
    color: #a855f7;
    font-family: 'Inter', sans-serif;
}

.section-header {
    display: flex;
    align-items: baseline;
    margin-bottom: 20px;
}

.section-number {
    font-family: 'Inter', sans-serif;
    color: #a855f7;
    font-size: 1.2rem;
    margin-right: 20px;
    width: 20px;
}

section {
    margin-bottom: 60px;
}

section p {
    padding-left: 40px;
    color: #cbd5e1;
}

section ul {
    padding-left: 60px;
    color: #cbd5e1;
}

section li {
    margin-bottom: 10px;
}

.academic-entry {
    display: flex;
    margin-bottom: 40px;
    padding-left: 10px;
}

.entry-index {
    color: #94a3b8;
    font-family: 'Inter', monospace;
    width: 40px;
    flex-shrink: 0;
    padding-top: 2px;
}

.entry-body {
    flex: 1;
}

.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 5px;
}

.entry-title {
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    color: #fff;
    font-weight: 600;
}

.entry-title-link {
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.4);
    text-underline-offset: 4px;
}

.entry-title-link:hover {
    color: #38bdf8;
    text-decoration-color: #38bdf8;
}

.entry-date {
    font-family: 'Inter', monospace;
    font-size: 0.85rem;
    color: #94a3b8;
}

.entry-meta {
    font-size: 0.9rem;
    color: #94a3b8;
    font-style: italic;
    margin-bottom: 10px;
}

.entry-desc {
    color: #cbd5e1;
    font-size: 0.95rem;
    margin-bottom: 10px;
    margin-top: 0;
}

.entry-link-btn {
    font-size: 0.75rem;
    color: #cbd5e1;
    text-decoration: none;
    border-bottom: 1px solid #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 1px;
}

.entry-link-btn:hover {
    color: #38bdf8;
    border-bottom-color: #38bdf8;
}

.project-entry {
    margin-bottom: 40px;
    padding-left: 50px; 
}

footer {
    text-align: center;
    padding: 40px;
    font-size: 0.85rem;
    color: #64748b;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 450px; 
    margin: 40px auto 20px auto;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.image-before, .image-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

.image-after {
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

.slider-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0; 
    cursor: ew-resize;
    z-index: 10;
    margin: 0;
}

.slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background-color: #38bdf8;
    box-shadow: 0 0 10px #38bdf8;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrows {
    background-color: #38bdf8;
    color: #020308;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.astro-data-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 40px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    border-color: #38bdf8;
}

.gallery-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 8px;
    background: rgba(2, 3, 8, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #e2e8f0;
    font-size: 0.85rem;
    text-align: center;
    box-sizing: border-box;
    pointer-events: none; 
}

.placeholder-img {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #64748b;
    font-style: italic;
}

.lightbox-overlay {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(2, 3, 8, 0.95);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    margin-top: 5vh;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    animation: zoomIn 0.3s ease;
}

#lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    text-align: center;
    color: #cbd5e1;
    padding: 15px 0;
    font-family: 'Lora', serif;
    font-size: 1.1rem;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.closer-lightbox:hover {
    color: #38bdf8;
}

@keyframes zoomIn {
    from {transform: scale(0.9); opacity: 0;}
    to {transform: scale(1); opacity: 1}
}