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

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #e63946;
    --accent-color: #e63946;
    --text-dark: #2d2d2d;
    --text-light: #666666;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation Bar */
.navbar {
    background-color: var(--bg-white);
    color: var(--primary-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
    border-bottom: 3px solid var(--secondary-color);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-brand .university-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.nav-brand .university-logo:hover {
    transform: scale(1.05);
}

.nav-brand .logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.nav-brand:hover .logo {
    transform: scale(1.05);
}

.nav-brand h1 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

.nav-menu a:hover {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
}

@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
        font-size: 0.9rem;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.6) 0%, rgba(230, 57, 70, 0.6) 100%),
                url('images/units_background.png') center top/cover no-repeat;
    background-attachment: fixed;
    color: white;
    padding: 6rem 0;
    text-align: center;
    position: relative;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    opacity: 0.95;
}

.hero .subtitle {
    font-size: 1rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .hero h2 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section.alternate {
    background-color: var(--bg-light);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    border-bottom: 4px solid var(--secondary-color);
    padding-bottom: 1rem;
    display: inline-block;
}

.subsection {
    margin-bottom: 3rem;
}

.subsection h3 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    border-left: 4px solid var(--secondary-color);
    padding-left: 1rem;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.team-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.team-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.2);
}

.team-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.team-card .role {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-card .bio {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.contact-info {
    font-size: 0.9rem;
    text-align: left;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info a {
    color: var(--secondary-color);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Collaborators List */
.collaborators-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.collaborator-item {
    background-color: var(--bg-white);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
    border-left: 4px solid var(--secondary-color);
    box-shadow: var(--shadow);
}

.collaborator-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.collaborator-item .research-area {
    color: var(--text-light);
    font-size: 0.9rem;
    font-style: italic;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    border-top: 4px solid var(--secondary-color);
    border-left: 4px solid transparent;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-left 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--secondary-color);
}

.project-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.project-meta {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.project-card p {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.project-details {
    background-color: var(--bg-light);
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
}

.project-details p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Publications Section */
.scholar-profile {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.scholar-profile p {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.scholar-stats {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-top: 1rem;
}

.btn-large {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-large:hover {
    background-color: var(--primary-color);
    box-shadow: 0 6px 12px rgba(230, 57, 70, 0.3);
    transform: translateY(-2px);
}

.section-intro {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    font-style: italic;
}

.publications-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.publication-item {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
    box-shadow: var(--shadow);
    transition: box-shadow 0.3s ease;
}

.publication-item:hover {
    box-shadow: var(--shadow-lg);
}

.publication-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
}

.publication-item .authors {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.publication-item .venue {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.publication-item .abstract {
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.publication-links {
    display: flex;
    gap: 1rem;
}

.btn-small {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-small:hover {
    background-color: var(--primary-color);
    box-shadow: 0 4px 8px rgba(230, 57, 70, 0.3);
}

/* Infrastructure Section */
.infrastructure-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.infra-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    border-top: 4px solid var(--accent-color);
    box-shadow: var(--shadow);
}

.infra-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    border-top: 4px solid var(--secondary-color);
    box-shadow: var(--shadow);
}

.infra-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.infra-card ul {
    list-style: none;
    padding-left: 0;
}

.infra-card li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-dark);
}

.infra-card li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.infra-note {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-item {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.contact-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-item a {
    color: var(--secondary-color);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
}

.footer p {
    margin-bottom: 0.5rem;
}

.footer a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Visiting Researchers List */
.visiting-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.visiting-item {
    background-color: var(--bg-light);
    padding: 1rem;
    border-radius: 6px;
    border-left: 3px solid var(--secondary-color);
}

.visiting-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.visiting-item p {
    color: var(--text-dark);
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
    line-height: 1.4;
}

.visiting-item a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
}

.visiting-item a:hover {
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .visiting-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .visiting-list {
        grid-template-columns: 1fr;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
    }

    .subsection h3 {
        font-size: 1.3rem;
    }

    .team-grid,
    .projects-grid,
    .collaborators-list {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 2rem;
}
