:root {
    --primary: #39275B;
    --accent: #c5b4e3;
    --dark: #000000;
    --light: #f7f9fc;
    --text: #333;
    --max-width: 1100px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em 0;
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2em;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    transition: color 0.3s;
}

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

/* Hero Section */
.hero {
    background-image: url('../images/rainier1.jpg');
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content {
    text-align: center;
    z-index: 2;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.button {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
    font-weight: 600;
}

.button:hover {
    background: var(--accent);
}

/* Sections */
section {
    padding: 30px 0;
    scroll-margin-top: 80px;
}

div[id$="-section"] {
    scroll-margin-top: 80px;
}

section h2 {
    font-size: 2.2em;
    margin-bottom: 15px;
    color: var(--primary);
}

section h3 {
    font-size: 1.5em;
    margin-top: 12px;
    margin-bottom: 10px;
    color: var(--primary);
}

section p {
    margin-bottom: 10px;
    line-height: 1.8;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.team-member {
    text-align: center;
    padding: 20px;
    background: var(--light);
    border-radius: 8px;
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.team-member h4 {
    color: var(--primary);
    margin-bottom: 5px;
}

.team-member .role {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.avatar-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    display: block;
}

/* Social Links / Team Member Buttons */
.social-links {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.social-links a {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
    font-weight: 600;
    font-size: 0.9em;
}

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

/* Publications List */
.publication {
    background: var(--light);
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary);
    border-radius: 4px;
}

.publication h4 {
    color: var(--primary);
    margin-bottom: 8px;
}

.publication .authors {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 8px;
}

.publication .year {
    color: #999;
    font-size: 0.9em;
}

/* Footer */
footer {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        gap: 1em;
    }

    .hero h1 {
        font-size: 2em;
    }

    section h2 {
        font-size: 1.8em;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .social-links {
        flex-direction: row;
    }
}
