/* --- Home Page Specifics --- */

.section_hp-hero {
    position: relative;
    z-index: 2;
}

/* --- Category Filter Bar --- */
.project-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 2.5rem 0 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

@media screen and (max-width: 767px) {
    .project-filter-bar {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.12);
        margin: 1.5rem 0 0;
        padding-bottom: 0;
    }
    .project-filter-bar::-webkit-scrollbar {
        display: none;
    }
    .filter-btn {
        flex-shrink: 0;
        font-size: 0.7rem;
        padding: 0.5rem 0.9rem;
    }
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.25rem;
    border: none;
    border-bottom: 2px solid transparent;
    background: transparent;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.35);
    margin-bottom: -1px;
    transition: color 0.2s, border-bottom-color 0.2s;
    white-space: nowrap;
}

.filter-btn:hover {
    color: rgba(0, 0, 0, 0.75);
}

.filter-btn.is-active {
    color: #111;
    border-bottom-color: #111;
    background: transparent;
}

/* Re-enable pointer events inside the #projects anchor wrapper */
.section_hp-projects,
.project-filter-bar,
.filter-btn,
.hp_project-item-container a,
.hp_project-item-container button {
    pointer-events: auto !important;
}

/* Hide filtered-out categories */
.project-category-block {
    display: block;
}

.project-category-block.is-hidden {
    display: none;
}

/* Sidebar top breathing room */
.hp_sidebar {
    padding-top: 2rem !important;
}
.hp_project-item-container:last-child .divider-dotted {
    display: none;
}

.hp-hero_logo.text-logo {
    font-size: 5.8vw;
    font-weight: 1000;
    margin-bottom: 0rem;
    letter-spacing: -0.04em;
    line-height: 1.1;
    padding-left: 0.5vw;
    margin-left: -0.03em; /* Optical alignment for heavy letters */
    text-align: center;
   
}

@media screen and (max-width: 991px) {
    .hp-hero_logo.text-logo {
        font-size: 14vw;
        padding-left: 5vw;
    }
}

/* --- Hero Bottom (tagline + links) --- */
.hp-hero_bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 0 !important;
}

.hp-hero_bottom .max-width-medium {
    margin-bottom: 0;
    padding-bottom: 0;
}

.hp-hero_bottom .heading-style-h5 {
    margin-bottom: 0;
}

/* --- Social Links (Hero) --- */
.social-links-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.social-link-item {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #000;
    text-decoration: none;
    opacity: 0.55;
    padding: 0.4rem 1.2rem 0.4rem 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    position: relative;
    z-index: 11;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform, opacity;
    cursor: pointer !important;
}

.social-link-item * {
    pointer-events: none;
}

.social-link-item:first-child {
    padding-left: 0;
}

.social-link-item:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.social-link-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.social-divider {
    width: 1px;
    height: 1rem;
    background-color: rgba(0, 0, 0, 0.2);
    margin: 0 1rem 0 0;
    flex-shrink: 0;
}

@media screen and (max-width: 479px) {
    .social-links-container {
        gap: 0;
    }

    .social-link-item {
        font-size: 0.75rem;
        padding-right: 0.8rem;
    }

    .social-divider {
        margin-right: 0.8rem;
    }
}

/* --- AI / IoT Project Badge --- */
.ai-project-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    width: 160px;
    height: 120px;
    background: #0d0d0d;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    flex-shrink: 0;
}

.ai-project-badge__label {
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.45;
    font-family: monospace;
}

@media screen and (max-width: 991px) {
    .ai-project-badge {
        display: none;
    }
}

/* --- Project Images --- */
.hp_projects-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
}

.hp_project-image {
    max-width: 450px;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
}

/* Multi-phone showcase for project cards */
.phone-showcase {
    display: flex;
    gap: 0.875rem;
    align-items: flex-end;
    justify-content: center;
    background: #0d0d0d;
    border-radius: 16px;
    padding: 2rem 1.5rem 0;
    overflow: hidden;
    max-width: 450px;
    width: 100%;
}

.phone-showcase img {
    flex: 1;
    min-width: 0;
    width: 33% !important;
    max-width: none !important;
    height: 250px !important;
    max-height: none !important;
    border-radius: 14px 14px 0 0;
    object-fit: cover;
    object-position: top center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.phone-showcase img.phn-center {
    height: 295px !important;
    box-shadow: 0 14px 50px rgba(0, 0, 0, 0.7);
}

@media screen and (max-width: 991px) {
    .phone-showcase {
        max-width: 100%;
        padding: 1.5rem 1rem 0;
    }

    .phone-showcase img {
        height: 185px !important;
    }

    .phone-showcase img.phn-center {
        height: 218px !important;
    }
}

@media screen and (max-width: 991px) {
    .hp_projects-item {
        flex-direction: column-reverse;
        gap: 2rem;
        align-items: flex-start;
    }
    
    .hp_project-image {
        max-width: 100%;
        max-height: 400px;
    }
}
