/* ======================================
   GLOBAL FONT
====================================== */

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
span,
small,
button{
    font-family:'Syne',sans-serif !important;
}

.portfolio-archive{
    padding:120px 8%;
    background:#255259;
    color:#fff;
}

.archive-label{
    color:#9da582;
    letter-spacing:3px;
    font-size:14px;
}

.portfolio-head h1{ font-size:clamp(4rem,10vw,9rem); line-height:.9; margin:20px 0 140px!important; color:#fff; }

.portfolio-list{
    border-top:1px solid rgba(255,255,255,.15);
}

.project-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:40px 0;
    border-bottom:1px solid rgba(255,255,255,.15);
    text-decoration:none;
    color:#fff;
}

.project-id{
    width:80px;
    color:#9da582;
    font-size:22px;
}

.project-info{
    flex:1;
}

.project-info h2{
    font-family:'Syne',sans-serif !important;
    font-weight:300;
    letter-spacing:-2px;
}

.project-info h2{
    font-size:clamp(2rem,5vw,5rem);
    margin:0;
    color:#fff;
    
}

.project-info p{
    margin-top:10px;
    color:#9da582;
}

.project-arrow{
    width:60px;
    height:60px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.project-arrow svg{
    width:50px;
    height:50px;
    color:#9da582;
        transition:all .35s ease;

}

.project-row:hover .project-arrow svg{
    transform:rotate(45deg) scale(1.1);
}

.project-arrow{
    position:relative;
    width:60px;
    height:60px;
}

.arrow-default,
.arrow-hover{
    position:absolute;
    transition:all .35s ease;
}

.arrow-hover{
    opacity:0;
    transform:translateX(-15px);
}

.project-row:hover .arrow-default{
    opacity:0;
    transform:translateX(15px);
}

.project-row:hover .arrow-hover{
    opacity:1;
    transform:translateX(0);
}

.portfolio-preview{
    position:fixed;
    width:420px;
    height:600px;
    pointer-events:none;
    z-index:9999;
    opacity:0;
    transform:translate(-50%,-50%) scale(.9);
    transition:.3s;
}

.portfolio-preview.active{
    opacity:1;
    transform:translate(-50%,-50%) scale(1);
}

.portfolio-preview img{
    width:100%;
    height:100%;
    object-fit:cover;
    border-radius:20px;
}

.project-info h2{
    text-decoration:none !important;
}

.project-row:hover .project-info h2{
    text-decoration:none !important;
}

.project-row{
    transition:.4s ease;
}

.project-row:hover{
    padding-left:30px;
}

.project-row:hover h2{
    color:#9da582;
}

/* FORCE PORTFOLIO DESIGN */

.portfolio-archive .project-row{
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    text-decoration:none !important;
    background:none !important;
}

.portfolio-archive .project-row:hover{
    padding-left:0 !important;
}

.portfolio-archive .project-info h2{
    font-family:'Syne',sans-serif !important;
    font-size:clamp(3rem,6vw,4rem) !important;
    font-weight:300 !important;
    line-height:1 !important;
    letter-spacing:-2px !important;
    margin:0 !important;
    color:#ffffff !important;
    text-decoration:none !important;
    border:none !important;
}

.portfolio-archive .project-info h2:hover{
    text-decoration:none !important;
}

.portfolio-archive .project-info p{
    color:#9da582 !important;
    font-size:18px !important;
}

.portfolio-archive .project-row:hover .project-info h2{
    color:#9da582 !important;
    text-decoration:none !important;
}

.portfolio-archive .project-arrow{
    background:none !important;
    border:none !important;
    box-shadow:none !important;
    color:#9da582 !important;
    font-size:60px !important;
    width:auto !important;
    height:auto !important;
    line-height:1 !important;
}

.portfolio-archive .project-arrow:before,
.portfolio-archive .project-arrow:after{
    display:none !important;
}

.portfolio-archive a{
    text-decoration:none !important;
}

.portfolio-archive a:hover{
    text-decoration:none !important;
}

.project-arrow,
.sbp-arrow{
    all: unset !important;
    color:#9da582 !important;
    font-size:60px !important;
    display:block !important;
}

.portfolio-filters{
    display:flex;
    gap:50px;
    margin-bottom:120px;
}

.portfolio-filters a{
    position:relative;
    color:#9da582;
    text-decoration:none;
    text-transform:uppercase;
    letter-spacing:2px;
    font-size:18px;
    transition:.4s ease;
}

.portfolio-filters a::after{
    content:'';
    position:absolute;
    left:0;
    bottom:-8px;
    width:0;
    height:1px;
    background:#fff;
    transition:.4s ease;
}

.portfolio-filters a:hover{
    color:#fff;
}

.portfolio-filters a:hover::after{
    width:100%;
}

/* Add explicit transition limits to your base layout row */
.portfolio-archive .project-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    text-decoration: none !important;
    background: none !important;
    
    /* Smooth transitions for size and fade styles */
    opacity: 1;
    visibility: visible;
    max-height: 250px; /* Adjust to comfortably clear your tallest text row heights */
    padding: 40px 0 !important;
    transform: scaleY(1);
    transform-origin: top;
    overflow: hidden;
    transition: opacity .4s ease, transform .4s ease, max-height .4s ease, padding .4s ease, visibility .4s ease !important;
}

/* Elegant, smooth collapsing hidden state that forces out Betheme parameters */
body .portfolio-archive .project-row.sbp-hidden-project {
    display: flex !important; /* Keep flex context alive so it can transition smoothly */
    opacity: 0 !important;
    visibility: hidden !important;
    max-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    transform: scaleY(0);
    border-bottom: 1px solid rgba(255,255,255,0) !important; /* Fade out border line */
    pointer-events: none !important; /* Stop mouse events during collapse */
}

/* Update your archive project row base styles */
.portfolio-archive .project-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    text-decoration: none !important;
    background: none !important;
    padding: 40px 0 !important;
    
    /* Smooth Transition Setup */
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease !important;
}

/* Elegant, smooth fading hidden state */
body .portfolio-archive .project-row.sbp-hidden-project {
    opacity: 0 !important;
    transform: translateY(15px); /* Gentle slide-down effect while fading */
    visibility: hidden !important;
    pointer-events: none !important; /* Stop mouse events immediately */
    
    /* Optional: If you want the hidden items to fully collapse their space 
       so the remaining items slide up smoothly together, add these lines:
    */
    /*
    max-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-bottom-color: transparent !important;
    */
}