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

html,
body {
    height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Ubuntu Mono', monospace;
    background-color: #8c2e37;
    color: white;
    min-height: 100vh;
    padding: 2rem;
}

.header {
    text-align: center;
    margin-bottom: 3rem;
}

.header h1 {
    font-size: 2.5rem;
    text-shadow: 0 0 1rem greenyellow;
    margin-bottom: 1rem;
}

.header p {
    font-size: 1.2rem;
    color: #faffdc;
    margin-bottom: 2rem;
}

.back-button {
    background-color: #f4bf4f;
    font-family: 'Ubuntu Mono', monospace;
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
    box-shadow: 0.2rem 0.2rem 0.2rem black;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 2rem;
}

.makeYours {
    background-color: #f4bf4f;
    font-family: 'Ubuntu Mono', monospace;
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.3s;
    box-shadow: 0.3rem 0.3rem 0.3rem black;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 2rem;
}

.back-button:hover {
    background-color: #692229;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background-color: #692129;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0.5rem 0.5rem 1rem rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 3px solid #241f1f;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0.7rem 0.7rem 1.5rem rgba(0, 0, 0, 0.6);
}

.card-image {
    width: 100%;
    height: 200px;
    background-color: #241f1f;
    position: relative;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-slide .placeholder {
    font-size: 3rem;
    color: #8c2e37;
    opacity: 0.7;
}

.carousel-nav {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-dot.active {
    background-color: #f4bf4f;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.carousel-arrow:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.carousel-arrow.prev {
    left: 10px;
}

.carousel-arrow.next {
    right: 10px;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.3rem;
    color: #f4bf4f;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 0.5rem rgba(244, 191, 79, 0.3);
}

.card-description {
    color: #faffdc;
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.card-author {
    color: #faffdc;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.card-actions {
    display: flex;
    justify-content: center;
    padding-top: 1rem;
    border-top: 1px solid #241f1f;
}

.github-button {
    background-color: #f4bf4f;
    color: #241f1f;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
    font-family: 'Ubuntu Mono', monospace;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.github-button:hover {
    background-color: #7bc4e0;
}

.featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #f4bf4f;
    color: #241f1f;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.filter-bar {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-button {
    background-color: transparent;
    color: #faffdc;
    border: 2px solid #f4bf4f;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-family: 'Ubuntu Mono', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-button:hover,
.filter-button.active {
    background-color: #f4bf4f;
    color: #241f1f;
}

@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    .header h1 {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .filter-bar {
        gap: 0.5rem;
    }

    .filter-button {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}