/* ---------- Base ---------- */
body {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    background: #f6f8fb;
    color: #1f2937;
    -webkit-font-smoothing: antialiased;
}

/* Prevent long emails/URLs from overflowing on mobile */
a {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* ---------- Container ---------- */
.container {
    max-width: 920px;
    margin: 60px auto;
    background: #ffffff;
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

/* ---------- Header ---------- */
header {
    text-align: center;
    margin-bottom: 50px;
}

.profile-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 4px solid #f3f4f6;
}

header h1 {
    margin: 0;
    font-size: 2.6em;
    font-weight: 600;
    color: #111827;
    letter-spacing: -0.5px;
}

header p {
    margin: 8px 0;
    color: #6b7280;
    font-weight: 400;
}

/* ---------- Navigation ---------- */
nav {
    margin-bottom: 50px;
    text-align: center;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 15px;
    flex-wrap: wrap;
}

nav ul li a {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 6px 4px;
}

nav ul li a:hover {
    color: #111827;
    border-bottom: 2px solid #111827;
}

/* ---------- Sections ---------- */
section {
    margin-bottom: 50px;
}

section h2 {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 8px;
    margin-bottom: 25px;
    color: #111827;
    font-weight: 600;
    font-size: 1.6em;
}

/* ---------- Links ---------- */
a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #1e40af;
}

/* ---------- Articles ---------- */
article {
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

article h3 {
    margin: 0 0 8px;
    font-size: 1.3em;
    font-weight: 600;
    color: #111827;
}

article p em {
    color: #9ca3af;
    font-size: 0.9em;
}

article p {
    margin: 10px 0;
    color: #374151;
}

/* ---------- Welcome Section ---------- */
.welcome-section {
    display: flex;
    justify-content: center;
    padding: 60px 20px;
    background: #f9fafb;
}

.welcome-card {
    background: #ffffff;
    max-width: 900px;
    padding: 50px;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.04);
    line-height: 1.75;
    color: #1f2937;
}

.welcome-card h2 {
    font-size: 1.9rem;
    color: #111827;
    margin-bottom: 25px;
    font-weight: 600;
}

.intro-text,
.research-text {
    font-size: 1.05rem;
    margin-bottom: 22px;
}

.navigation-hint {
    font-size: 0.95rem;
    color: #6b7280;
    font-style: italic;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    /* Make the main layout feel full-width on mobile */
    .container {
        max-width: 100%;
        margin: 0;
        padding: 25px 18px;
        border-radius: 0;
        box-shadow: none;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .profile-photo {
        width: 120px;
        height: 120px;
    }

    header h1 {
        font-size: 2em;
    }

    .welcome-section {
        padding: 30px 15px;
    }

    /* Reduce padding/shadow so it doesn't feel like a narrow "card" on phone */
    .welcome-card {
        padding: 20px;
        border-radius: 12px;
        box-shadow: none;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    /* Slightly tighter padding for very small screens */
    .container {
        padding: 20px 16px;
    }

    header p {
        font-size: 0.95em;
    }

    article h3 {
        font-size: 1.1em;
    }

    .welcome-card {
        padding: 18px;
    }
}