/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

:root {
    --primary-color: #0d47a1; /* A deeper blue */
    --secondary-color: #f5f5f5; /* Light grey background */
    --font-color: #333;
    --light-color: #fff;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
}

html {
    scroll-behavior: smooth;
}

/* General Body Styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--font-color);
    line-height: 1.8;
    background-image: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), url('images/ladacfondo.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.container {
    width: 85%;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: var(--primary-color);
    color: var(--light-color);
    padding-top: 10px;
    padding-bottom: 10px;
    min-height: 80px;
    border-bottom: 5px solid #0b3a82; /* Darker blue for subtle contrast */
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

#header-logo {
    height: 100px;
}

header nav {
    margin-top: 0;
}

header ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

header li {
    display: inline;
    padding: 0 20px;
}

header a {
    color: var(--light-color);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
    font-weight: 700;
    transition: color 0.3s ease;
}

header a:hover {
    color: var(--secondary-color);
}

/* Main Content Styles */
main.container {
    display: block;
}

/* Hero Section */
#hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/ladacfondo.png') no-repeat center center/cover;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-color);
}

#hero h2 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

#hero p {
    font-size: 1.5rem;
    font-weight: 300;
}

/* Main Content Sections */
main section {
    background: var(--light-color);
    margin: 30px 0;
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    scroll-margin-top: 50px;
}

#about {
    scroll-margin-top: 15px;
}

main section h3 {
    color: var(--primary-color);
    font-size: 2rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Publication Styles */
.publication-item {
    padding-left: 50px;
    text-indent: -50px;
}

.publication-item i {
    font-style: italic;
}

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

/* Team Member Card Styles */
.team-member-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

.team-member-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 4px solid var(--primary-color);
}

.team-member-card h4 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin: 10px 0 5px;
}

.team-member-card p {
    font-size: 1rem;
    color: #666;
    margin: 0;
}

.team-member-card .description {
    font-size: 0.9rem;
    color: #777;
    margin-top: 10px;
    line-height: 1.5;
}

/* Social Media Section */
#social {
    text-align: center;
}

.social-links {
    display: inline-block;
    margin-top: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--font-color);
    font-size: 1.2rem;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: scale(1.05);
}

.social-icon {
    width: 40px;
    height: 40px;
    margin-right: 15px;
}

/* Footer Styles */
footer {
    padding: 30px;
    margin-top: 40px;
    color: var(--light-color);
    background: #333;
    text-align: center;
}
