@charset "UTF-8";

.projects-header {
    width: 100%;
    background: var(--bg-secondary);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* PROJECTS TITLE */
.messages-projects {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px;
}

/* TITLE BACKGROUND */
.code-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.18;
    z-index: 0;
}

.messages-projects h1 {
    margin-bottom: 20px;
}

#projects-container {
    display: block;
}

.projects-card {
    width: 100%;
    min-height: 70vh;
    margin: auto;
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: space-between;
    padding: 30px;
    position: sticky;
    top: 90px;
    background-color: var(--bg-card);
    border-radius: 20px;
    margin: 30px 0;
    border: 2px solid var(--bg-main);
}

.project-content {
    padding: 30px;
    width: 50%;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
}

.project-tech img {
    width: clamp(24px, 4vw, 40px);
    height: clamp(24px, 4vw, 40px);
    object-fit: contain;
}

.project-image {
    max-width: 40%;
    max-height: 70vh;
    overflow: hidden;
    border-radius: 6px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.project-image img:hover {
    transform: scale(1.05);
}

.project-card {
    opacity: 0;
    transform: translateY(80px);
    animation: reveal .8s ease forwards;
}

.project-buttons a {
    font-family: "JetBrains Mono", monospace;
    font-size: clamp(14px, 1rem + 0.3vw, 16px);
    color: var(--accent-badges-link);
    text-decoration: none;
    opacity: 0.8;
    transition: 0.3s;
}
