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

:root {
    --dark-bg: #1a1a1a;
    --darker-bg: #0f0f0f;
    --text-light: #e0e0e0;
    --text-muted: #999999;
    --accent: #00bcd4;
    --accent-dark: #0097a7;
    --border: #333333;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    letter-spacing: 0.5px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 40px;
}

/* Header */
header {
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

header h1 {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.name {
    font-weight: 400;
    color: var(--text-light);
}

header .subtitle {
    color: var(--accent);
    font-size: 0.95rem;
    letter-spacing: 1px;
    font-weight: 300;
}

/* Bio Section */
.bio {
    margin-bottom: 80px;
}

.bio-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: flex-start;
}

.bio-text {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 0.95rem;
}

.bio-text p {
    margin-bottom: 16px;
}

.bio-text p:last-child {
    margin-bottom: 0;
}

.research-link {
    color: #77d7ff;
    text-decoration: none;
    transition: var(--transition);
}

.research-link:hover,
.research-link:focus {
    color: #77d7ff;
    text-decoration: underline;
}

.bio-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bio-images img {
    width: 100%;
    border-radius: 4px;
    opacity: 0.9;
    transition: var(--transition);
}

.bio-images img:hover {
    opacity: 1;
}

/* Hobbies Section */
.hobbies {
    margin-bottom: 80px;
}

.hobbies h2 {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 40px;
    color: var(--text-light);
}

.hobbies-text {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.hobby-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
}

.hobby-image-wrapper {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.hobby-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: var(--transition);
    opacity: 0.85;
}

.hobby-item:hover img {
    opacity: 1;
    transform: scale(1.02);
}

/* Location overlay - appears on hover */
.hobby-location {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: var(--accent);
    padding: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    transform: translateY(100%);
    transition: var(--transition);
}

.hobby-item:hover .hobby-location {
    transform: translateY(0);
}

/* Info button */
.hobby-info-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(0, 188, 212, 0.2);
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 1.2rem;
    font-weight: 300;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    z-index: 10;
}

.hobby-item:hover .hobby-info-btn {
    opacity: 1;
}

.hobby-info-btn:hover {
    background-color: rgba(0, 188, 212, 0.4);
    transform: scale(1.1);
}

.hobby-caption {
    display: none;
}

/* Modal Styles */
.photo-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-modal.active {
    display: flex;
    opacity: 1;
}

.photo-modal-content {
    position: relative;
    background-color: var(--dark-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.photo-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-modal-close:hover {
    color: var(--accent);
}

#modalText {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1rem;
    margin: 0;
}

/* Publications Section */
.publications {
    margin-bottom: 60px;
}

.publications h2 {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 40px;
    color: var(--text-light);
}

.publications-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.section-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 40px 0;
}

.publication {
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border);
}

.publication:last-child {
    border-bottom: none;
}

.pub-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 8px;
}

.pub-header h3 {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-light);
}

.year {
    color: var(--text-muted);
    font-size: 0.9rem;
    white-space: nowrap;
}

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

.venue {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.pub-links {
    display: flex;
    gap: 10px;
}

.btn {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 3px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition);
}

.btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background-color: rgba(0, 188, 212, 0.05);
}

/* Projects Section */
.projects {
    margin-bottom: 60px;
}

.projects h2 {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 40px;
    color: var(--text-light);
}

.projects-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.project {
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border);
}

.project:last-child {
    border-bottom: none;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 12px;
}

.project-header h3 {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-light);
}

.project-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

.project-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 4px;
    border: 1px solid var(--border);
    display: block;
}

.project-links {
    display: flex;
    gap: 10px;
}

/* Footer */
footer {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-links a {
    color: var(--text-light);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    color: var(--accent);
}

.social-links svg {
    width: 24px;
    height: 24px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 40px 24px;
    }

    header h1 {
        font-size: 2.2rem;
    }

    .bio-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .pub-header {
        flex-direction: column;
        gap: 4px;
    }

    .year {
        white-space: normal;
    }

    .social-links {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 30px 16px;
    }

    header h1 {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }

    .publications h2 {
        font-size: 1.2rem;
    }

    .bio-text {
        font-size: 0.9rem;
    }

    .pub-header h3 {
        font-size: 1rem;
    }

    .social-links {
        gap: 15px;
    }

    .social-links svg {
        width: 20px;
        height: 20px;
    }
}

