/* General styles */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Titillium Web', sans-serif;
    margin: 0;
    padding: 0;
}

/* Hero section styles */
.hero-section {
    background-image: url('../assets/imgs/bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.view-background-button {
    position: absolute;
    top: 5rem;
    right: 1rem;
    background-color: #3ACEC5;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.view-background-button:hover {
    background-color: #2C928C;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hero-content {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    padding: 6rem 2rem;
    border-radius: 2rem;
    text-align: center;
    max-width: 56rem;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.hero-scroll-button {
    font-size: 2.5rem;
    color: black;
    text-decoration: none;
    transition: color 0.2s;
}

.hero-scroll-button:hover {
    color: #3ACEC5;
}

.research-topics-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 2rem;
}

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

.research-topics-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-align: center;
}

.research-topics-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    text-align: center;
}

.research-topics-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.research-topic {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.research-topic-button {
    background-color: #3ACEC5;
    border: none;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s;
    flex-shrink: 0;
}

.research-topic-button:hover {
    background-color: #2C928C;
}

.research-topic-button .iconify {
    font-size: 1.5rem;
    color: black;
}

.research-topic-text {
    font-size: 1.2rem;
    line-height: 1.4;
}

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

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 1rem;
    border-radius: 0.5rem;
    max-width: 48rem;
    max-height: 90vh;
    overflow: auto;
    text-align: center;
}

.modal-image-container {
    position: relative;
    border: 4px solid #3ACEC5;
    border-radius: 0.5rem;
    padding: 0.5rem;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-image {
    width: 100%;
    height: auto;
    max-height: 50vh;
    border-radius: 0.5rem;
}

.modal-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(58, 206, 197, 0.75);
    color: white;
    border: none;
    border-radius: 9999px;
    padding: 0.5rem;
    font-size: 2rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.modal-nav-button:hover {
    background-color: rgba(58, 206, 197, 1);
}

.modal-prev-button {
    left: 1rem;
}

.modal-next-button {
    right: 1rem;
}

.modal-image-count {
    text-align: center;
    margin-top: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.modal-text {
    font-size: 1.125rem;
    margin-top: 1.5rem;
}

.modal-close-button {
    display: block;
    margin: 1.5rem auto 0;
    background-color: #3ACEC5;
    color: white;
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.modal-close-button:hover {
    background-color: #2C928C;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Responsive design */
@media (max-width: 768px) {

    .hero-title {
        font-size: 2rem;
    }

    .intro-section,
    .research-topics-section {
        padding: 4rem 1rem;
    }

    .intro-title,
    .research-topics-title {
        font-size: 2.5rem;
    }

    .intro-text {
        font-size: 1.25rem;
    }

    .footer-title {
        font-size: 2.5rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-links {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 3rem 1rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .intro-title,
    .research-topics-title {
        font-size: 2rem;
    }

    .intro-text {
        font-size: 1rem;
    }

    .research-topic-text {
        font-size: 1rem;
    }
}

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

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

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

/* Utility classes */
.hidden {
    display: none;
}

