/* Homepage-specific styles. Shared rules live in common.css. */

/* Social icons row */
.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    border: none;
    outline: none;
    transition: transform 0.2s ease;
    overflow: hidden;
}

.social-icons img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(30%);
    transition: filter 0.3s ease;
}

.social-icons a:hover img {
    filter: invert(57%) sepia(95%) saturate(388%) hue-rotate(98deg) brightness(96%) contrast(94%);
}

/* Intro section */
.intro {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin-top: 50px;
}

.profile-pic {
    width: 120px;
    height: 120px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

.intro-text-block {
    text-align: left;
}

.highlighted-text {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: bold;
    position: relative;
    display: inline-block;
    padding: 5px 10px;
    margin: 0 0 6px;
}

.highlighted-text::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0px;
    background-color: #c5f5d4;
    z-index: -1;
    border-radius: 3px;
}

.intro-text {
    font-family: sans-serif, sans-serif;
    font-size: 16px;
    color: #111111;
    max-width: 520px;
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 640px) {
    .intro {
        flex-direction: column;
        text-align: center;
    }
    .intro-text-block {
        text-align: center;
    }
}

/* Tag filter row above the project grid */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 10px;
    max-width: 100%;
}

.projects-section {
    text-align: center;
    margin-top: 50px;
}

.projects-section .highlighted-text {
    margin-bottom: 15px;
    display: inline-block;
}

.tag-button {
    font-family: 'Poppins', sans-serif;
    background-color: #f5f5f5;
    color: black;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: normal;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
    min-width: 120px;
    text-align: center;
    white-space: nowrap;
}

.tag-button.active {
    background-color: black;
    color: white;
}

/* Project grid */
.project-grid-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;

    width: 80%;
    max-width: calc(100% - 80px);
    min-width: 100px;
    margin: auto;
    height: auto;
    overflow: visible;

    margin-bottom: 100px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    justify-content: center;
    align-content: start;
    max-width: 1400px;
    width: 100%;

    min-height: 100px;
    height: auto;
}

@media (min-width: 1200px) {
    .project-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 900px) and (max-width: 1199px) {
    .project-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 701px) and (max-width: 899px) {
    .project-grid {
        grid-template-columns: repeat(2, minmax(300px, 1fr));
        justify-content: center;
    }
}

@media (max-width: 700px) {
    .project-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

.project-card {
    cursor: pointer;
    display: block;
    width: 100%;
    max-width: 350px;
    background-color: #1c1c1c;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    color: inherit;
    text-decoration: none;
}

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

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-bottom: 2px solid white;
}

.project-info {
    padding: 0px;
    color: #fff;
    text-align: center;
    margin: 0px;
}

.project-name {
    font-size: 16px;
    font-weight: bold;
    font-family: 'Poppins', sans-serif;
    color: #ffffff;
    margin-top: 20px;
    margin-bottom: 0px;
}

.project-tags {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    color: #bbbbbb;
    margin-top: 4px;
    margin-bottom: 12px;
    padding: 0px;
}

.project-time {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    color: #747474;
    margin-top: 0px;
    margin-bottom: 0px;
}

#no-projects-message {
    display: none;
    text-align: center;
    font-size: 18px;
    color: #bbb;
    min-height: 100px;
    justify-content: center;
    align-items: center;
}

/* Footer contact area lives in common.css (shared with project detail page). */
