h1,
h2,
h3,
h4,
p {
    font-family: "Titillium Web", sans-serif;
}

#navbarNav {
    justify-content: center;
}

.nav-item {
    margin: 0px 25px;
}

.logo {
    text-align: center;
    width: 100%;
    height: auto;
}

.logo img {
    border-radius: 15px;
    padding: 2%;
    width: 10rem;
    height: 10rem;
}

body {
    background-image: url("../assets/images/bg.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
}

/* contact form */
.contactForm {
    margin: 2% 10px;
    padding: 5% 3%;
    /* background-color: rgb(250, 250, 250); */
    display: flex;
    border-radius: 30px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

    /* From https://css.glass */
    background: rgba(255, 255, 255, 0.38);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.contactForm form {
    width: 50%;
}

.contactForm form div {
    margin-top: 15px;
}

/* about container */
.aboutContainer {
    /* background-color: rgb(250, 250, 250); */
    padding: 4%;
    border-radius: 35px;

    /* From https://css.glass */
    background: rgba(255, 255, 255, 0.38);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.lead {
    text-align: justify;
    margin-top: 2.1rem;
}

.font-weight-bold {
    font-weight: bold;
}

.text-underline {
    text-decoration: underline;
}

.aboutImg {
    text-align: center;
}

.aboutImg img {
    width: 20%;
    height: auto;
    height: auto;
    border-radius: 15px;
}

/* main page Projects  */

.cardContainer {
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    background-image: linear-gradient(
        to right bottom,
        #fbfbfb,
        #f9f9f9,
        #f7f8f7,
        #f6f6f6,
        #f4f4f4
    );
}

.cardContainer img {
    height: 35vh;
    border-radius: 5px;
}

.cardContainer img:hover {
    opacity: 0.3;
}

/* btns on Projects (cards) */
.btn-group button {
    text-decoration: none;
    color: gray;
}

.btn-group button:hover {
    color: white;
}

/* Project Details Screen */

.project_detail_container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    /* background-color: rgba(234, 236, 237, 0.676); */

    /* From https://css.glass */
    background: rgba(192, 193, 195, 0.64);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(7.6px);
    -webkit-backdrop-filter: blur(7.6px);
    border: 1px solid rgba(192, 193, 195, 0.3);

    box-shadow: rgb(186, 187, 189) 6px 6px 12px 0px inset,
        rgba(255, 255, 255, 0.5) -6px -6px 12px 2px inset;
}

.project_detail_img {
    margin-top: 10%;
    padding: 2.5rem;
}

.project_detail_img p {
    text-align: center;
}

.project_detail_img img {
    width: 100%;
    height: auto;
    margin-top: 5%;
}

.project_detail_desc {
    margin-top: 10%;
}

.project_detail_desc p {
    text-align: justify;
    margin: 0 5%;
}

.project_detail_desc p a {
    font-size: 0.9em;
}

.visit-btn {
    display: inline-block;
    padding: 10px 25px;
    margin: 15px 0;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    background-color: #17a2b8;
    color: #fff;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
}

.visit-btn:hover {
    background-color: #d5e6e9;
    transform: translateY(-3px);
}

.visit-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.visit-btn:focus {
    outline: none;
}

.admin_heading {
    font-size: 2.3rem;
    text-align: center;
}

.admin_mail {
    font-size: 1.2rem;
    text-align: center;
}

.btns {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.btns button {
    margin: 10px 5px;
    padding: 8px;
}

.contZ {
    background-color: silver;
    width: 2.5rem;
    text-align: center;
    padding: 1%;
    border-radius: 0.7rem;
}

.contZ:hover {
    background-color: rgba(192, 192, 192, 0.768);
}

/* message screen styling */
.container1 {
    color: green;
    text-align: center;
}

.container1 h2 {
    font-size: 2.1rem;
    margin-top: 6rem;
}

.container1 p {
    text-align: center;
}

.container1 p a {
    background-color: rgba(34, 205, 34, 0.712);
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    padding: 1%;
    border-radius: 45px;
}

.container1 p a:hover {
    background-color: rgba(34, 205, 34, 0.488);
}

.container1a {
    text-align: center;
}

.projects-container {
    /* From https://css.glass */
    background: rgba(224, 224, 224, 0.12);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(7.8px);
    -webkit-backdrop-filter: blur(7.8px);
    border: 1px solid rgba(224, 224, 224, 0.4);
}

/* Scroll Down Icon Styling */
.scroll-down-icon {
    display: block;
    margin: 0 auto;
    width: 25px;
    height: auto;
    cursor: pointer;
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 1.5s infinite;
}

/* Bouncing animation */
@keyframes bounce {
    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px); /* Moves the image down */
    }
}

.animated-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Bouncing effect for the image */
.bouncing-img {
    width: 50px;
    height: auto;
    animation: bounce-icon 2.3s infinite;
}

/* Bouncing animation */
@keyframes bounce-icon {
    0%,
    100% {
        transform: translateY(1);
    }
    50% {
        transform: translateY(-10px);
    }
}

@media screen and (max-width: 650px) {
    .nav-item {
        margin: 0px 0px;
    }

    .aboutImg img {
        width: 100%;
        height: auto;
    }

    .project_detail_container {
        border-radius: 25px;
    }

    .project_detail_img {
        margin-top: 2%;
    }

    .project_detail_img img {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .project_detail_img p,
    .url {
        text-align: justify;
        font-size: 0.9em;
        margin: 0 0;
    }
}
