/* Font Faces */
@font-face {
    font-family: 'Sofia Pro';
    src: url('Assets/sofia-pro/Sofia Pro Light Az.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Sofia Pro';
    src: url('Assets/sofia-pro/Sofia Pro Regular Az.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Sofia Pro';
    src: url('Assets/sofia-pro/Sofia Pro Semi Bold Az.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Sofia Pro';
    src: url('Assets/sofia-pro/Sofia Pro Bold Az.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Sofia Pro', sans-serif;
    font-weight: 300;
    color: #000;
    line-height: 1.6;
}

/* Main Page */
.main-page {
    min-height: 100vh;
    background-color: #f6f6ee;
    position: relative;
    padding: 30px 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-page::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    max-width: 100%;
    height: 90%;
    background-image: url('Assets/background-01.png');
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: auto 100%;
    pointer-events: none;
    z-index: 0;
}

.main-page header,
.main-page .header-line,
.main-page .content-wrapper {
    width: 100%;
    max-width: 900px;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 3px;
    color: #333;
}

.nav-link {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 2px;
    color: #333;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    opacity: 0.7;
}

.header-line {
    height: 1px;
    background-color: #333;
    margin-bottom: 60px;
}

/* Content Wrapper */
.content-wrapper {
    position: relative;
    z-index: 1;
}

/* About Section */
.about-section {
    margin-bottom: 60px;
}

.about-section h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 30px;
}

.about-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.bio {
    flex: 1;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.8;
    color: #555;
}

.photo-placeholder {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

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

/* Publications Section */
.publications-section h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
}

.publication-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 35px;
}

.pub-content {
    flex: 1;
}

.pub-line {
    height: 2px;
    background: linear-gradient(to right, #c2c1f8 60%, transparent 100%);
    margin-bottom: 10px;
    max-width: 300px;
}

.pub-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.pub-authors {
    font-size: 16px;
    font-weight: 300;
    color: #555;
    line-height: 1.7;
    margin-bottom: 4px;
}

.pub-venue {
    font-size: 16px;
    font-weight: 400;
    font-style: italic;
    color: #666;
    margin-bottom: 4px;
}

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

.pub-button {
    font-size: 14px;
    font-weight: 400;
    color: #333;
    text-decoration: none;
    border: 1px solid #333;
    padding: 5px 12px 3px;
    border-radius: 3px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.pub-button:hover {
    background-color: #333;
    color: #fff;
}

/* Contact Page */
.contact-page {
    background-color: #e8e8f4;
    position: relative;
    padding: 30px 50px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-page::before {
    display: none;
}

.contact-page header,
.contact-page .header-line {
    width: 100%;
    max-width: 900px;
}

.contact-page .header-line {
    margin-bottom: 0;
}

.contact-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.contact-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 40px;
}

.contact-text {
    font-size: 18px;
    font-weight: 300;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.8;
}

.email-link {
    font-size: 18px;
    font-weight: 400;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #333;
    padding-bottom: 2px;
    transition: opacity 0.3s ease;
}

.email-link:hover {
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .main-page,
    .contact-page {
        padding: 20px 30px;
    }

    .about-content {
        flex-direction: column-reverse;
        align-items: center;
    }

    .photo-placeholder {
        width: 150px;
        height: 150px;
    }

    .main-page::before,
    .contact-page::before {
        height: 50%;
    }
}
