@import url('https://fonts.googleapis.com/css2?family=Montserrat+Alternates:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/*General style*/
* {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat Alternates';
    list-style-type: none;
    text-decoration: none;
    scroll-behavior: smooth;
    border: none;
}

html, body {
    height: 100%;
}

body {
    background: linear-gradient(to bottom, #1A1632, #170925);
    background-attachment: fixed;
}

main {
    color: #fff;
}

main h1, h2, h3 {
    font-style: italic;
}

main p {
    text-align: justify;
}

.hero {
    display: fit-content;
    padding: 140px 0 100px 0;
    background: url('../images/hero.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: left;
}

.hero-content {
    border-radius: 10px;
    width: 50vw;
    margin: 0 100px;
    font-size: 18px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    text-shadow: 1px 2px 3px rgba(0, 0, 0, 0.5);
}

.hero-content h1 {
    font-size: 48px;
}

.button {
    background-color: rgb(20, 102, 199); /*Change to #1466C7*/
    color: #fff;
    font-size: 16px;
    padding: 12px 18px;
    border-radius: 10px;
    width: fit-content;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* for Safari */
    cursor: pointer;
    user-select: none;
    font-weight: 600;
    outline: 1px solid transparent;
    transition: background-color 0.3s ease-in-out, outline 0.2s ease-in-out;
}

.button:hover, .button:focus {
    background-color: rgb(30, 112, 213);
    outline: 1px solid rgb(200, 200, 200);
}

.button:active {
    outline-width: 5px;
}

.explore {
    font-size: 20px;
    padding: 12px 30px;
    border: 1px solid transparent;
    animation: pulseBorder 3s infinite ease-in-out;
}

.explore:hover, .explore:focus {
    animation: none ease-in-out;
}

.main-content {
    margin: 50px 100px;
    gap: 80px;
    display: flex;
    flex-direction: column;
}

.main-content .background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: -1;
}

/* PANELS */

.panel {
    flex: 1 1 30%; /* 3 per row */
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* for Safari */
    border: 1px transparent;
    border-top: 1px solid rgba(204, 204, 204, 0.2);
    border-bottom: 1px solid rgba(204, 204, 204, 0.2);
    padding: 20px;
    border-radius: 30px;
    max-width: 500px;
    transition: background-color .3s ease-in-out, border .3s ease-in-out;
}

.panel:hover, .panel:focus {
    background-color: rgba(204, 204, 204, 0.2);
    outline: 1px solid rgba(204, 204, 204, 0.4);
}

.panel-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    justify-content: center;
}

.panel-title {
    padding-right: 20px;
}

.panel-title p {
    margin-top: 5px;
    font-size: 16px;
    font-weight: 500;
    font-style: italic;
}

.panel-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.panel h3 {
    margin-top: 10px;
}

.panel-header img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    outline: 2px solid rgba(255, 255, 255, 0.2);
    user-select: none;
}

.panel p a {
    color: #fff;
    text-decoration: underline;
}

.panel-meta {
    font-size: 12px;
    color: #ccc;
    margin-top: 10px;
}

.panel-links {
    display: flex;
    flex-direction: column;
}

.panel-links a {
    display: inline-block;
    margin-bottom: 5px;
}

.panel-info {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    max-width: 100%;
}

.panel-info img {
    max-height: 40px;
    padding-right: 20px;
}


.reverse {
    flex-direction: row-reverse;
}

.article {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.article h2 {
    text-transform: capitalize;
    font-size: 32px;
}

.article-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
    font-size: 18px;
    max-width: 1100px;
}

.article-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.article-image img {
    width: 400px;
    height: 400px;
    border-radius: 20px;
}

.article-image label {
    display: block;
    text-align: center;
    margin-top: 5px;
    font-size: 14px;
    color: #ddd;
}

/* Go to Top button styles */
#toTopBtn {
    background: rgba(255, 255, 255, 0.2);
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: none;
    transition: all 0.3s ease-in-out;
    z-index: 9999;
}

#toTopBtn:hover {
    background: rgba(255, 255, 255, 0.3);
    outline: 1px solid rgba(204, 204, 204, 0.4);
}

.email {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    user-select: text;
}

.email a {
    color: #fff;
}

.link {
    color: #fff;
    text-decoration: underline;
}

.outbound {
    filter: invert();
    height: 14px;
    transform: translateY(3px);
}

/* ANIMATIONS */

@keyframes pulseBorder {
  0% {
    border-color: rgba(255, 255, 255, 0);
  }
  50% {
     border-color: rgba(255, 255, 255, 0.4);
  }
  100% {
    border-color: rgba(255, 255, 255, 0);
  }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(190, 22, 22, 0.7);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 10px 5px rgba(190, 22, 22, 0.3);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(190, 22, 22, 0);
    }
}


/* MOBILE */

@media (max-width: 480px) {
    .hero {
        height: fit-content;
        padding: 100px 0;
    }

    .hero-content {
        width: 100vw;
        margin: 0 20px;
    }

    .panel {
        flex: 1 1 100%; /* 1 per row */
    }

    .panel-links a {
        margin-bottom: 12px;
        font-size: 18px;
    }

    .article-image img {
        width: 300px;
        height: 300px;
    }

    .article {
        flex-direction: column;
    }

    .main-content {
        margin: 0 20px;
        padding: 50px 0;
    }

    iframe {
        height: 250px;
        width: 100%;
    }

    #toTopBtn {
        display: none;
        visibility: hidden;
        pointer-events: none;
    }
}