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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    scroll-behavior: smooth;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 60px;
}

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

header {
    background: linear-gradient(135deg, #004d00 0%, #006100 50%, #003d00 100%);
    box-shadow: 0 4px 20px rgba(0,97,0,0.3);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

header .container {
    display: flex;
    align-items: center;
    padding: 10px 0;
    max-width: none;
    margin: 0;
}

.logo {
    margin-right: auto;
    padding-left: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-text {
    text-decoration: none;
}

.header-text h1 {
    color: white;
    font-size: 1em;
    margin: 0;
}

.header-text h2 {
    color: rgba(255,255,255,0.9);
    font-size: 0.8em;
    margin: 0;
    font-weight: normal;
}

nav {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav li {
    margin-left: 30px;
}

nav a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

nav a:hover::before {
    left: 100%;
}

nav a:hover {
    background: rgba(0,97,0,0.2);
    transform: translateY(-2px);
}

main {
    margin-top: 80px;
    flex: 1;
}

.hero {
    text-align: center;
    padding: 100px 0;
    background: linear-gradient(135deg, #004d00 0%, #006100 50%, #003d00 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><polygon points="20,15 25,25 15,25" fill="rgba(144,238,144,0.3)" transform="rotate(45 20 20)"/><polygon points="70,30 78,45 62,45" fill="rgba(152,251,152,0.2)" transform="rotate(120 70 37)"/><polygon points="40,70 48,85 32,85" fill="rgba(173,255,47,0.25)" transform="rotate(200 40 77)"/><polygon points="80,80 85,90 75,90" fill="rgba(144,238,144,0.2)" transform="rotate(300 80 85)"/></svg>');
    animation: clayFloat 25s infinite linear;
}

@keyframes clayFloat {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-120px) rotate(360deg); }
}

.group-photo {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.group-photo:hover {
    transform: scale(1.05) rotateY(5deg);
}

.hero h1 {
    font-size: 4em;
    margin-bottom: 10px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: slideInDown 1s ease-out;
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 1.6em;
    color: rgba(255,255,255,0.9);
    margin: 0 auto 30px auto;
    animation: slideInUp 1s ease-out 0.2s both;
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
    display: block;
    left: 0;
    right: 0;
}

.hero p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto;
    color: rgba(255,255,255,0.95);
    animation: fadeIn 1s ease-out 0.4s both;
    position: relative;
    z-index: 1;
}

@keyframes slideInDown {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

section {
    scroll-margin-top: 80px;
    padding: 80px 0;
    transition: all 0.3s ease;
    display: none;
}

section.active {
    display: block;
}

section:nth-child(even) {
    background: linear-gradient(135deg, #f0f9f0 0%, #e6f7e6 50%, #d4f4d4 100%);
}

section h2 {
    font-size: 2.8em;
    margin-bottom: 30px;
    color: #2c3e50;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #004d00, #006100);
    border-radius: 2px;
    animation: expandWidth 0.6s ease-out;
}

@keyframes expandWidth {
    from { width: 0; }
    to { width: 60px; }
}

section p {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

footer {
    background: linear-gradient(135deg, #004d00 0%, #006100 100%);
    color: white;
    text-align: center;
    padding: 15px 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    overflow: hidden;
}

.scroll-indicator {
    position: fixed;
    bottom: 70px;
    right: 20px;
    background: rgba(0,97,0,0.8);
    color: white;
    padding: 10px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
    display: none;
    animation: bounce 2s infinite;
}

.scroll-indicator:hover {
    background: rgba(0,97,0,1);
    transform: scale(1.1);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.lang-selector {
    margin-left: 20px;
    margin-right: 10px;
}

.lang-selector select {
    padding: 8px 15px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 25px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lang-selector select:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.05);
}

.lang-selector select option {
    background: #1e3a8a;
    color: white;
}

.lang-selector select option:checked {
    background: rgba(255,255,255,0.3);
    color: white;
    font-weight: bold;
}

.lang-selector select option:not(:checked) {
    background: #1e3a8a;
    color: rgba(255,255,255,0.7);
}

.team-intro {
    font-size: 1.2em;
    margin-bottom: 50px;
    color: #555;
    font-style: italic;
}

.research-intro {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: #555;
    font-style: italic;
}

.links-list {
    max-width: 800px;
    margin: 0 auto;
}

.links-list a {
    display: block;
    font-size: 1.2em;
    margin-bottom: 20px;
    color: #1e3a8a;
    text-decoration: none;
    font-style: italic;
    transition: color 0.3s ease;
}

.links-list a:hover {
    color: #3b82f6;
    text-decoration: underline;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-member {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(30,58,138,0.1), transparent);
    transition: left 0.6s;
}

.team-member:hover::before {
    left: 100%;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(30,58,138,0.2);
}

.member-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #1e3a8a;
    transition: all 0.3s ease;
}

.member-photo:hover {
    transform: scale(1.1);
    border-color: #3b82f6;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.team-member h3 {
    color: #1e3a8a;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.team-member .position {
    color: #3b82f6;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 0.95em;
}

.team-member .bio {
    color: #666;
    line-height: 1.5;
    font-size: 0.9em;
    text-align: left;
}

.team-member {
    cursor: pointer;
}

.team-member .email {
    color: #1e3a8a;
    font-size: 0.9em;
    margin-top: 10px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow-y: auto;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    overflow-y: auto;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #666;
    z-index: 2001;
}

.close:hover {
    color: #1e3a8a;
}

.modal-body {
    display: flex;
    padding: 30px;
    gap: 30px;
}

.modal-photo {
    flex-shrink: 0;
}

.modal-photo img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #1e3a8a;
}

.modal-info h3 {
    color: #1e3a8a;
    margin-bottom: 10px;
    font-size: 1.5em;
}

.modal-position {
    color: #3b82f6;
    font-weight: 600;
    margin-bottom: 10px;
}

.modal-email {
    color: #1e3a8a;
    margin-bottom: 20px;
    font-weight: 500;
}

.modal-bio {
    color: #666;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .modal-body {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .modal-photo img {
        width: 120px;
        height: 120px;
    }
}

.research-lines {
    max-width: 800px;
    margin: 0 auto;
}

.research-lines p {
    font-size: 1.1em;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: left;
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .team-member {
        padding: 20px;
    }
    
    header .container {
        flex-direction: column;
        padding: 15px 20px;
    }
    
    nav ul {
        margin-top: 15px;
    }
    
    nav li {
        margin: 0 15px;
    }
    
    main {
        margin-top: 120px;
    }
    
    .hero h1 {
        font-size: 2em;
    }
    
    .hero h2 {
        font-size: 1.2em;
    }
}
/* Publications Section */
.publications-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.publication-item {
    background: #f8f9fa;
    border-left: 4px solid #007bff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    line-height: 1.5;
}
/* Projects Section */
.projects-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.project-item {
    background: #f8f9fa;
    border-left: 4px solid #007bff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    line-height: 1.5;
}
