﻿@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes dynamicBackground {
    0% {
        background: linear-gradient(135deg, #F5F6F8, #EAECEE);
    }
    25% {
        background: linear-gradient(135deg, #FF6F61, #FF3F34);
    }
    50% {
        background: linear-gradient(135deg, #6A82FB, #FC5C7D);
    }
    75% {
        background: linear-gradient(135deg, #00C9FF, #92FE9D);
    }
    100% {
        background: linear-gradient(135deg, #F5F6F8, #EAECEE);
    }
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    animation: fadeIn 1s ease-in-out, dynamicBackground 15s ease infinite;
    background-size: 400% 400%;
    color: #34495e; /* Default text color */
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.menu {
    background-color: rgba(52, 152, 219, 0.8); /* Semi-transparent for a modern look */
    display: flex;
    justify-content: center;
    padding: 15px;
    backdrop-filter: blur(10px); /* Blur effect for a glassmorphism style */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.menu:hover {
    background-color: rgba(52, 152, 219, 1);
}

.menu-item {
    color: #fff;
    text-decoration: none;
    padding: 15px 20px;
    margin: 0 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.menu-item:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.menu-item:after {
    content: '';
    display: block;
    height: 2px;
    width: 0;
    background: #fff;
    transition: width 0.3s ease;
    margin: auto;
}

.menu-item:hover:after {
    width: 100%;
}

#container {
    background: rgba(255, 255, 255, 1); /* Slightly transparent for depth */
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 800px;
    padding: 30px;
    text-align: center;
    animation: slideIn 0.5s ease-in-out;
}

h1 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 2.5em;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

h1:after {
    content: '';
    display: block;
    width: 50%;
    height: 4px;
    background: #3498db;
    margin: 10px auto;
    border-radius: 5px;
}

p {
    color: #34495e;
    line-height: 1.8;
    font-size: 1.2em; /* Increased size for readability */
    transition: color 0.3s ease;
}

p:hover {
    color: #2980b9;
}

.abstract {
    background: #f9f9f9;
    border: 1px solid #dcdcdc;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.abstract:hover {
    transform: translateY(-3px);
}

.quote-block {
    background: rgba(52, 152, 219, 0.1);
    border-left: 4px solid #3498db;
    padding: 15px 20px;
    margin: 15px 0;
    font-size: 0.9em;
    border-radius: 8px;
    color: #333;
    text-align: left;
    transition: all 0.3s ease;
}

.quote-block:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

 .button {
    display: inline-block;
    padding: 15px 25px;
    margin-top: 20px;
    border-radius: 8px;
    font-size: 1em;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}


#downloadAlgorithmBtn,
#downloadVisioBtn,
#downloadWordBtn {
    display: inline-block;
    padding: 15px 25px;
    margin-top: 20px;
    border-radius: 8px;
    font-size: 1em;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #2ecc71; /* Default background for download buttons */
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

#viewPdfBtn {
    display: inline-block;
    padding: 15px 25px;
    margin-top: 20px;
    border-radius: 8px;
    font-size: 1em;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #3498db; /* Specific background for view PDF button */
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Hover effects for all button types */
#downloadAlgorithmBtn:hover,
#downloadVisioBtn:hover,
#downloadWordBtn:hover,
#viewPdfBtn:hover {
    background-color: #2980b9; /* Darker color on hover for download buttons */
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.slideshow-container {
    position: relative;
    max-width: 800px;
    margin: auto;
    overflow: hidden;
    margin-bottom: 20px;
}

.slide {
    display: none;
    position: absolute;
    width: 100%;
    height: auto;
}

.slide img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    border-radius: 50%;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.6);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.next {
    right: 0;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.gallery-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
}

.gallery-thumbnail {
    flex: 1;
    max-width: calc(25% - 15px);
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-thumbnail img {
    width: 100%;
    height: auto;
    transition: transform 0.4s ease, opacity 0.4s ease;
    border-radius: 12px;
}

.gallery-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.gallery-thumbnail:hover img {
    transform: scale(1.1);
    opacity: 0.9;
}

.main-photo {
    max-width: 800px;
    margin: auto;
    text-align: center;
}

.main-photo img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.icon-links {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.icon-links a {
    margin: 0 15px;
    font-size: 28px;
    color: #3498db;
    transition: color 0.3s ease, transform 0.3s ease;
}

.icon-links a:hover {
    color: #2980b9;
    transform: scale(1.2);
}

@media screen and (max-width: 600px) {
    #container {
        max-width: 90%;
        padding: 20px;
    }

    .menu-item {
        font-size: 0.9em;
        padding: 10px 15px;
    }

    h1 {
        font-size: 2em;
    }

    p {
        font-size: 1em;
    }

    .gallery-thumbnail {
        max-width: calc(50% - 10px);
    }

    .icon-links a {
        font-size: 24px;
    }
}

.paperBox {
    border: 1px solid #000;
    width: 250px;
    padding: 10px;
    margin: 10px auto;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.paperBox:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.coverPhoto {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.paperDetails h2 {
    margin-top: 10px;
    font-size: 1.2em;
}

.paperDetails p {
    margin: 0;
    font-size: 14px;
}