/* fonts */
@import url('https://fonts.googleapis.com/css2?family=Baloo+2&display=swap');

* {
    font-family: 'Baloo 2', cursive;
    margin-bottom: 0 !important;
}

:root {
    --primary-color: #ffa500;
    --secondary-color: #fff;
    --lower-secondary-color: #000;
}

.topbar {
    padding: 0.4rem 0;
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.topbar a {
    text-decoration: none;
    color: var(--secondary-color);
}

.topbar a:hover {
    color: var(--secondary-color);
}

.topbar .float-end a:hover {
    text-decoration: underline;
}

.navbar-brand span {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
    color: var(--lower-secondary-color);
}

.navbar-nav .nav-link:hover {
    color: rgba(var(--lower-secondary-color));
    font-weight: bolder;
}

.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.nav-item {
    margin: auto 12px;
}

#home-carousel {
    width: 100% !important;
    height: calc(90vh) !important;
}

.carousel-inner,
.carousel-item,
.carousel-item img {
    height: 100% !important;
    width: 100% !important;
}

.carousel-control-prev,
.carousel-control-next {
    background-color: var(--secondary-color);
    color: black !important;
    width: 6vh;
    height: 6vh;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 20px;
}

.carousel-control-prev span,
.carousel-control-next span {
    width: 1.5rem;
    height: 1.5rem;
    filter: invert(100%);
}

.carousel-caption {
    filter: drop-shadow(0 0 25px black) !important;
}

.carousel-caption h5{
    font-weight: bold;
}

.about-img {
    clip-path: polygon(15% 0px, 100% 0%, 100% 100%, 12px 100%);
}

#work .container h1 {
    background-color: orange;
    padding: 0.5rem;
    text-align: center;
    color: #fff;
}

.work-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
}

.work {
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.work img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 10px;
    transition: transform 0.5s;
}

.layer {
    width: 100%;
    height: 0;
    position: absolute;
    left: 0;
    bottom: 0;
    color: var(--secondary-color);
    font-size: 14px;
    padding: 0 40px;
    text-align: center;
    border-radius: 10px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(255, 165, 0, 0.5));
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.work:hover img {
    transform: scale(1.1);
}

.work:hover .layer {
    height: 100%;
    display: flex;
}

.layer h3 {
    font-weight: 500;
    margin-bottom: 20px;
}

.layer a {
    width: 60px;
    height: 60px;
    margin-top: 20px;
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 20px;
    line-height: 60px;
    text-decoration: none;
    background-color: var(--secondary-color);
}

.gallery:hover .layer {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: end;
    background: transparent;
    margin: 0 !important;
    padding: 0 !important;
}

.gallery .layer h5 {
    color: var(--secondary-color);
    background-color: var(--primary-color);
    padding: 5px;
    text-align: center;
}

/* Chrome, Safari, Edge, Opera */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

#gallery-page .item {
    overflow: hidden;
    transition: filter scale ease-in-out 0.5s;
}

#gallery-page .item:hover {
    filter: brightness(100%);
}

#gallery-page .item:hover img {
    transform: scale(1.1);
}

#achievement-page .item {
    border-radius: 10px;
    overflow: hidden;
}

#achievement-page .item img {
    border-radius: 10px;
    border: 2px solid rgba(67, 106, 209, 0.2);
}

footer {
    background-color: #ffa500;
}

footer a {
    color: #fff;
    text-decoration: none;
}

.social-links {
    display: flex !important;
    align-items: center !important;
}

.social-links li {
    margin-top: 5px;
    background: rgb(108, 117, 125);
}

.social-links li:hover {
    background-color: var(--secondary-color);
}

.social-links li a {
    color: #fff;
}

.social-links li:first-child:hover i {
    color: #0072b1;
}

.social-links li:nth-child(2):hover i {
    color: #CD201F;
}

.social-links li:nth-child(3):hover i {
    color: #3b5998;
}

.social-links li:last-child:hover {
    background: linear-gradient(#4f5bd5, #962fbf, #d62976, #fa7e1e, #feda75);
}

footer .quick-links a {
    color: #000;
    font-weight: 500;
    position: relative;
    transition: all 0.5s;
}

footer .quick-links a:hover {
    left: 5px;
    font-weight: bold;
}

footer .quick-links hr {
    margin: 0 !important;
    margin-bottom: 1rem !important;
}

footer .made-by {
    color: #000;
}

footer .made-by:hover {
    font-weight: bold;
}

footer .copyright {
    padding: 1rem;
    background-color: var(--primary-color);
    text-align: center;
}

.copyright .bi-heart-fill {
    color: red;
}

/* media queries to make responsive */
@media only screen and (max-width:768px) {
    #home-carousel {
        height: 100% !important;
    }

    .about-img {
        clip-path: none;
        margin-top: 20px;
        border-radius: 10px !important;
    }

    .about-img img {
        border-radius: 10px !important;

    }
}

@media only screen and (min-height: 600px) and (max-height: 1600px) {

    #about,
    #work {
        margin: 3rem 0 !important;
        min-height: 75vh !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }

}