body {
    background-color: black;
    background-image: url('../images/portfolio.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

.nav-colour {
    background-color: transparent !important;
}

.navbar .nav-link {
    color: rgb(255, 255, 255);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: end;
    transition: color 0.2s ease, transform 0.2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: rgb(255, 215, 0);
}

@media (hover: hover) and (pointer: fine) {
    .navbar .nav-link:hover,
    .navbar .nav-link:focus {
        transform: scale(1.2);
    }
}

.navbar .navbar-brand,
.navbar .navbar-brand:hover,
.navbar .navbar-brand:focus {
    color: rgb(255, 255, 255);
}

.navbar-toggler {
    border-color: rgb(255, 255, 255);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgb%28255%2c%20255%2c%20255%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar,
.navbar * {
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
}

.text-colour {
    color: rgb(255, 255, 255);
}

.text-center {
    text-align: center;
    padding: 2rem 20%;
    font-size: 1.2rem;
    line-height: 1.5;
}

.heading-center {
    text-align: center;
    padding: 2rem 20%;
    line-height: 1.5;
}

.sub-heading-center {
    text-align: center;
    padding: 0 20%;
    line-height: 1.5;
}

.about-button,
.about-button:hover,
.about-button:focus,
.about-button:active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background-color: transparent !important;
    border-color: rgb(255, 215, 0) !important;
    color: rgb(255, 255, 255) !important;
    cursor: default;
    border-width: 2px;
    padding: 1rem 2rem;
    font-size: 1.4rem;
    border-radius: 5rem;
    box-shadow: none !important;
}

.icon {
    /* margin-right: 2rem; */
    margin: 1rem 2rem 0 0;
    font-size: 1.9rem;
    display: inline-block;
    transition: transform 0.2s ease;
    /* Smooth transition for the transform effect */
}

.about-button .icon {
    margin: 0;
    font-size: 1.6rem;
}

.project-links {
    color: rgb(255, 255, 255);
    font-size: 1.6rem;
    text-decoration: none;
}

.project-links:hover,
.project-links:focus-visible {
    color: rgb(255, 215, 0) !important;
}

.project-links:hover .icon,
.project-links:focus-visible .icon {
    transform: scale(1.4);
    /* Scale up the icon on hover/focus */
}

.projects-github-link {
    transform: translateX(-1rem);
}

.demo-image:hover,
.demo-image:focus-visible {
    transform: translateX(-1rem) scale(1.2);
    /* Move left and scale up the image on hover/focus */
    transition: transform 0.2s ease;
    /* Smooth transition for the transform effect */
    content: url('../images/demoyellow.png');

}

.demo-image {
    width: 3rem;
    height: 3rem;
    margin: 1rem;
    background-color: transparent;
    color: rgb(255, 255, 255);
    transform: translateX(-1rem);
    /* move slightly left */

}

.media-links {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
}

.media-links a:hover,
.media-links a:focus-visible {
    color: rgb(255, 215, 0) !important;
}

.media-links a:focus:not(:focus-visible) {
    color: inherit !important;
}

h5 {
    padding-right: 2rem;
}

.contact-icons {
    display: inline-block;
    transition: transform 0.2s ease;
}

.cloudinary-logo {
    width: 1.5rem;
    height: 1.5rem;
}

.contact-icons:hover,
.contact-icons:focus-visible {
    transform: scale(1.3);
}

.contact-icons:focus:not(:focus-visible) {
    transform: none;
}

.cv-images {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.cv-images img {
    width: min(100%, 700px);
    height: auto;
}

#download-cv {
    background-color: transparent;
    display: flex;
    justify-content: center;
    color: rgb(255, 255, 255);
    padding: 0.5rem 1rem;
    text-decoration: none;
    font-weight: 600;
}

#download-cv a:hover,
#download-cv a:focus-visible {
    color: rgb(255, 215, 0);
    transform: scale(1.3);
    transition: transform 0.2s ease;
}

#download-cv a:focus:not(:focus-visible) {
    color: inherit;
    transform: none;
}

.projects-text-center {
    text-align: center;
    padding: 1rem;
}

.projects-text-center ul {
    list-style-position: inside;
    padding-left: 0;
    display: inline-block;
    text-align: left;
}

.project-end {
    margin-bottom: 7rem;
}

.project-images {
    display: block;
    width: 70%;
    height: auto;
    margin: 1rem auto 0;
}
/* needs to be looked at for diploma*/
.certificate-section {
    margin-bottom: 4rem;
}

.certificate-card {
    width: min(100%, 700px);
    background: transparent;
    border: 0;
}

.certificate-image {
    width: 100%;
    height: auto;
    display: block;
}
/*ends*/

/* Responsive Styles for mobile devices */
@media (max-width: 375px) {
    .navbar .nav-link:hover,
    .navbar .nav-link:focus {
        transform: none;
    }

    .text-center,
    .heading-center,
    .sub-heading-center {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .about-button {
        padding: 0.6rem 1rem;
        font-size: 1rem;
    }

    .icon {
        font-size: 1.2rem;
    }

    .project-links {
        font-size: 1rem;
    }

    .demo-image {
        width: 2rem;
        height: 2rem;
    }

    /*needs to be looked at for diploma*/
    .certificate-card {
        width: min(100%, 280px);
    }
}

/* Responsive Styles for tablets*/
@media (max-width: 768px) {
    .text-center,
    .heading-center,
    .sub-heading-center {
        padding: 1rem;
    }

    .about-button {
        padding: 0.8rem 1.5rem;
        font-size: 1.2rem;
    }

    .icon {
        font-size: 1.5rem;
    }

    .project-links {
        font-size: 1.2rem;
    }

    .demo-image {
        width: 2.5rem;
        height: 2.5rem;
    }

    .projects-text-center ul {
        display: block;
        text-align: center;
    }

    .project-images {
        width: 100%;
    }
}
