/* ==========================================================================
   PORTFOLIO-STYLES.CSS — HIGH-TECH AI & LIQUID GOLD EDITION
   ========================================================================== */

body {
    background-color: #050507 !important;
    color: #FFFFFF !important;
}

.portfolio-header {
    background: radial-gradient(circle at 50% 25%, rgba(255, 208, 0, 0.16) 0%, #040406 70%);
    position: relative;
    padding: 170px 0 90px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    overflow: hidden;
    color: white;
    text-align: center;
}

.portfolio-header h1 {
    font-size: clamp(2.8rem, 5vw, 4.4rem);
    font-weight: 800;
    color: white;
    margin-bottom: 1.2rem;
}

.portfolio-header h1 span.gold {
    background: var(--gradient-loreal);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.portfolio-header p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto;
}

.portfolio-main {
    padding: 80px 0;
    background: #050507;
}

.portfolio-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.portfolio-sidebar {
    width: 290px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
}

.filter-box {
    background: var(--obsidian-card);
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 24px;
    padding: 26px;
}

.search-bar {
    position: relative;
    margin-bottom: 24px;
}

.search-bar i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--bright-gold);
}

.search-bar input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 100px;
    font-size: 0.92rem;
    outline: none;
    background: rgba(255, 255, 255, 0.04);
    color: #FFFFFF;
    transition: all 0.3s ease;
}

.search-bar input:focus {
    border-color: var(--bright-gold);
    box-shadow: 0 0 0 3px rgba(255, 208, 0, 0.14);
}

.filter-title {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--bright-gold);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 16px;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 12px;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.94rem;
    color: rgba(255, 255, 255, 0.85);
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
}

.checkmark {
    height: 18px;
    width: 18px;
    background-color: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(255, 215, 0, 0.4);
    border-radius: 5px;
    margin-right: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: var(--primary-gold);
    border-color: var(--primary-gold);
}

.cat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 10px;
}

.cat-name { flex-grow: 1; }
.cat-count {
    font-size: 0.78rem;
    color: var(--bright-gold);
    background: rgba(255, 208, 0, 0.12);
    padding: 2px 8px;
    border-radius: 100px;
    font-weight: 700;
}

.portfolio-grid-area { flex-grow: 1; }

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.project-card {
    background: var(--obsidian-card);
    border: 1px solid rgba(255, 215, 0, 0.22);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s var(--ease-fluid);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    border-color: var(--bright-gold);
    transform: translateY(-8px);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.65), 0 0 30px rgba(255, 208, 0, 0.2);
}

.project-image-wrapper {
    width: 100%;
    height: 230px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-fluid);
}

.project-card:hover .project-image {
    transform: scale(1.06);
}

.project-image-placeholder {
    width: 100%;
    height: 100%;
    background: #111118;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    color: var(--bright-gold);
}

.project-content {
    padding: 26px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.project-desc {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.96rem;
    line-height: 1.65;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 7, 0.82);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s var(--ease-fluid);
}

.project-card:hover .project-overlay {
    opacity: 1;
    visibility: visible;
}

.overlay-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.overlay-btn.primary {
    background: var(--gradient-loreal);
    color: #050507;
}

.overlay-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cta-section {
    padding: 110px 0;
    background: radial-gradient(circle at 50% 100%, rgba(255, 208, 0, 0.18) 0%, #040406 70%);
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    text-align: center;
}

.cta-section h2 {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.15rem;
    margin: 0 auto 2.5rem;
    max-width: 650px;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--gradient-loreal);
    color: #050507;
    padding: 15px 34px;
    font-size: 1rem;
    font-weight: 800;
    border-radius: 100px;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(255, 208, 0, 0.3);
    transition: all 0.35s var(--ease-fluid);
}

.btn-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(255, 224, 0, 0.5);
}

@media (max-width: 992px) {
    .portfolio-layout { flex-direction: column; }
    .portfolio-sidebar { width: 100%; position: static; }
    .projects-grid { grid-template-columns: 1fr; }
}
