* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px 0px 30px 0px;
    position: sticky;
    top: 0px;
    background-color: white;
    z-index: 1000;

}

@font-face {
    font-family: "bauhaus";
    src: url("fonts/Bauhaus 93 Regular.ttf") format("truetype");
}

h1 a {
    text-decoration: none;
    color: black;
}

.name {
    font-family: "bauhaus";
    font-size: 25px;
    text-align: center;
    margin-left: 10px;
}

.nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;

    text-align: center;
}

.nav a {
    text-decoration: none;
    color: black;
    font-size: 1.5rem;
    margin: 0 0.8rem;
    transition: all 0.3s ease;
    font-weight: bold;
}

.nav a:hover {
    text-decoration: underline;
}

.nav li {
    list-style: none;
}

.nav a.active {
    color: #D4A373;
    font-style: italic;
}

.project {
    text-align: center;
    font-size: 64px;
    font-family: "Montserrat", sans-serif;
    margin-top: 50px;
    animation: grow 1s ease-in-out forwards;
}

@keyframes grow {
    0% {
        font-size: 20px;
        opacity: 0.5;
    }

    100% {
        font-size: 4rem;
        opacity: 1;
    }
}

.container {
    display: flex;
    gap: 50px;
    justify-content: center;
    margin-top: 50px;
    width: 100%;
    flex-wrap: wrap;
}

.card {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    padding: 10px;
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.5s ease;
}

.card.animate {
    transform: scale(1);
    opacity: 1;
}

.card:hover {
    transform: scale(1.1);
}

@keyframes scaleUp {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.card-text {
    font-weight: bold;
    text-align: center;
}

.card img {
    height: 80%;
}


/* carousel */
.custom-carousel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.carousel-content {
    background: white;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    width: 50%;
    max-width: 600px;
}

.carousel-inner {
    position: relative;
    overflow: hidden;
}

.carousel-inner img {
    width: 100%;
    display: none;
    border-radius: 10px;
}

.carousel-inner img.active {
    display: block;
}

.carousel-control-prev,
.carousel-control-next {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: black;
    cursor: pointer;
    margin: 10px;
    font-weight: bolder;
    z-index: 2;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 13px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: black;
    z-index: 2;
}

@media (max-width: 1246px) {
    .name {
        font-size: 1.2rem;
    }

    .nav a {
        font-size: 1rem;
    }

}

@media (max-width: 990px) {
    .header {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .name {
        font-size: 1rem;
    }

    .nav a {
        font-size: 1rem;
    }

    @keyframes grow {
        0% {
            font-size: 20px;
            opacity: 0;
        }

        100% {
            font-size: 2rem;
            opacity: 1;
        }
    }

    .project {
        margin-top: 10px;
        animation: grow 1s ease-in-out forwards;
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

}

@media (max-width: 514px) {
    .nav a {
        font-size: 0.8rem;
    }

    .carousel-content {
        width: 100%;
    }

    .nav a:hover {
        text-decoration: underline;
        font-size: 0.9rem;
    }
}

@media (min-width: 396px) and (max-width: 432px) {
    nav {
        width: 95%;
    }

    .nav a {
        font-size: 0.79rem;
    }

}

@media (max-width: 397px) {
    .nav {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: nowrap;
        text-align: center;
        width: 100%;
        padding: 0px;
    }

    .nav li {
        padding: 0px;
    }

    .nav li a {
        padding: 0px;
    }

    .nav a {
        font-size: 0.7rem;
        font-weight: bold;
    }

    .name {
        font-size: 1rem;
    }

    .name {
        font-size: 1rem;
    }

}