/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    /* box-sizing: border-box; */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    position: relative;
}

/* Language Toggle */
.language-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.lang-btn:active {
    transform: translateY(0);
}

.title {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

.authors-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    margin: 40px 0 20px 0;
    justify-items: center;
}

.author-card {
    text-align: center;
    transition: transform 0.3s ease;
}

.author-card:hover {
    transform: translateY(-5px);
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.3);
    margin: 0 auto 15px auto;
    transition: border-color 0.3s ease;
}

.author-card:hover .author-avatar {
    border-color: rgba(255, 255, 255, 0.6);
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-name {
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 500;
}

.author-role {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0;
}

.institution {
    font-size: 1rem;
    opacity: 0.9;
    margin-top: 20px;
    text-align: center;
}

/* Overview Section */
.overview {
    padding: 80px 0;
    background: white;
}

.overview .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.project-image {
    text-align: center;
}

.overview-img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); */
}

.description h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: #2c3e50;
    font-weight: 300;
}

.description p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #555;
    text-align: justify;
}

/* Research Areas Section */
.research-areas {
    padding: 80px 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #2c3e50;
    font-weight: 300;
}

.research-area {
    margin-bottom: 80px;
    padding: 40px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.research-area:last-child {
    margin-bottom: 0;
}

.area-title {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 400;
    text-align: center;
}

.area-description {
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    margin-bottom: 40px;
    font-style: italic;
}

.area-gallery {
    position: relative;
}

.gallery-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.algorithm-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
}

.algorithm-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-image {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.algorithm-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 20px;
    text-align: center;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.card-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

/* Navigation Buttons */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(102, 126, 234, 0.9);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.nav-btn:hover {
    background: rgba(102, 126, 234, 1);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: -80px;
}

.next-btn {
    right: -80px;
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.nav-btn:disabled:hover {
    transform: translateY(-50%) scale(1);
}

/* Pagination */
.pagination {
    text-align: center;
    margin-top: 30px;
}

.page-info {
    font-size: 1rem;
    color: #666;
    background: white;
    padding: 10px 20px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 40px 0;
}

.footer p {
    margin-bottom: 5px;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 1080px) {
    .title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .overview .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .research-area {
        padding: 20px;
        margin-bottom: 40px;
    }

    .area-title {
        font-size: 1.5rem;
    }

    .author-info {
        flex-direction: column;
        gap: 15px;
    }

    .author-details {
        text-align: center;
    }

    .nav-btn {
        display: none;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 15px;
    }

    .research-area {
        padding: 15px;
        margin-bottom: 30px;
    }

    .area-title {
        font-size: 1.3rem;
    }

    .area-description {
        font-size: 1rem;
    }
}
