/* Navbar */
.navbar {
    width: 95%;
    max-width: 1200px;
    height: 70px;
    background-color: rgba(161, 176, 204, 0.9);
    margin: 10px auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-radius: 35px;
    padding: 0 20px;
    position: sticky;
    top: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.left {
    display: flex;
    align-items: center;
}

.left img {
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease;
}

.left:hover img {
    transform: scale(1.1);
}

.hamb-menu {
    display: none;
    /* Hidden by default, shown in media query */
    width: 30px;
    height: 25px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    position: relative;
    flex-direction: column;
    justify-content: space-around;
}

.hamb-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #38445E;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

.right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.right a {
    text-decoration: none;
    color: #38445E;
    font-size: 1.1em;
    font-weight: 700;
    padding: 10px 15px;
    position: relative;
    transition: color 0.3s ease;
}

.right a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #E3E9F9;
    transition: all 0.3s ease-out;
    transform: translateX(-50%);
}

.right a:hover::after {
    width: 100%;
}

.right a:hover {
    color: white;
}


/* Footer */
.footer {
    width: 95%;
    max-width: 1200px;
    background-color: #242E3A;
    margin: 40px auto 10px auto;
    padding: 30px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.3);
}

.top {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 25px;
    text-align: center;
}

.footer-top-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.footer-top-left div {
    display: flex;
    flex-direction: column;
    align-items: center;
}


#footer-pp {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #596888;
}

.footer h3 {
    margin-bottom: 15px;
    color: #E3E9F9;
    font-size: 1.6em;
}

.footer p {
    font-size: 1em;
    color: #C0C0C0;
}

.footer-top-right-link {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 30px;
}

.footer-top-right-link a {
    text-decoration: none;
    color: #C0C0C0;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.footer-top-right-link a:hover {
    color: #E3E9F9;
}

hr {
    width: 80%;
    border: none;
    border-top: 1px solid #596888;
    margin: 25px 0;
}

.bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 100%;
    margin: 0 auto 20px auto;
}

.link-image {
    width: 35px;
    height: 35px;
    transition: transform 0.2s ease;
}

.link-image:hover {
    transform: scale(1.15);
}

#copyright {
    font-size: 0.9em;
    color: #888;
    margin-top: 20px;
}

/* Responsive adjustments */
@media(max-width: 768px) {
    .hamb-menu {
        display: flex;
    }

    .right {
        display: none;
        flex-direction: column;
        gap: 0;
        width: 100%;
        background-color: #A1B0CC;
        position: absolute;
        top: 80px;
        left: 0;
        padding: 10px 0;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
        border-radius: 0 0 18px 18px;
    }

    .right.active {
        display: flex;
    }

    .right a {
        text-align: center;
        width: 100%;
        padding: 15px 0;
        border-bottom: 1px solid #596888;
    }

    .right a:last-child {
        border-bottom: none;
    }

    .right a:hover {
        background-color: #596888;
        color: #fff;
    }

    .right a::after {
        display: none;
    }
}

@media(min-width: 768px) {
    .top {
        flex-direction: row;
        justify-content: space-evenly;
        align-items: flex-start;
        text-align: left;
    }

    .footer-top-left {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 20px;
    }

    .footer-top-left div {
        align-items: flex-start;
    }

    .footer-top-right {
        text-align: left;
    }

    .footer-top-right-link {
        justify-content: flex-start;
    }
}