.portfolio {

padding: 120px 0;

background: #ffffff;

}

.portfolio-container {

max-width: 1200px;

margin: auto;

padding: 0 40px;

}

.portfolio-grid {

display: grid;

grid-template-columns: repeat(auto-fit,minmax(340px,1fr));

gap: 32px;

margin-top: 60px;

margin-bottom: 40px;

}


/* CARD */

.portfolio-card {

background: white;

border-radius: 18px;

overflow: hidden;

border: 1px solid #e2e8f0;

transition: all 0.35s ease;

cursor: pointer;

}

.portfolio-card:hover {

transform: translateY(-10px);

box-shadow: 0 25px 60px rgba(0,0,0,0.12);

}


/* IMAGE */

.portfolio-image {

position: relative;

height: 220px;

overflow: hidden;

}

.portfolio-image img {

width: 100%;
height: 100%;

object-fit: cover;

transition: transform 0.4s ease;

}

.portfolio-card:hover img {

transform: scale(1.05);

}


/* BADGE */
/* 
.portfolio-badge {

position: absolute;

top: 16px;
left: 16px;

padding: 6px 12px;

border-radius: 20px;

font-size: 12px;

font-weight: 600;

background: rgba(99,102,241,0.1);

color: #6366f1;

backdrop-filter: blur(6px);

} */


/* CONTENT */

.portfolio-content {

padding: 24px;

}

.portfolio-content h3 {

font-size: 20px;

margin-bottom: 8px;

color: #0f172a;

}

.portfolio-content p {

font-size: 14px;

color: #64748b;

line-height: 1.6;

margin-bottom: 16px;

}


/* BUTTON */

.portfolio-btn {

background: linear-gradient(90deg,#6366f1,#7c3aed);

color: white;

padding: 10px 18px;

border-radius: 10px;

border: none;

font-size: 14px;

cursor: pointer;

transition: 0.3s;

}

.portfolio-btn:hover {

transform: translateY(-2px);

box-shadow: 0 10px 25px rgba(99,102,241,0.4);

}

.case-study-container
{
max-width:900px;
margin:60px auto;
padding:40px;

background:white;
border-radius:16px;

box-shadow:
0 20px 60px rgba(0,0,0,0.08);

line-height:1.7;
font-size:17px;
}














.case-study-container{
padding:120px 0;
background:#f8fafc;
min-height:100vh;
}

.case-study-inner{
max-width:900px;
margin:auto;
padding:40px;
background:white;
border-radius:16px;
box-shadow:0 20px 60px rgba(0,0,0,0.08);
}

.case-study-back{
background:none;
border:none;
color:#6366f1;
font-weight:600;
cursor:pointer;
margin-bottom:30px;
font-size:16px;
}

.case-study-back:hover{
text-decoration:underline;
}






.case-study-page{
padding:120px 20px;
background:#f8fafc;
min-height:100vh;
}

.case-study-wrapper{
max-width:900px;
margin:auto;
background:white;
padding:50px;
border-radius:16px;
box-shadow:0 20px 60px rgba(0,0,0,0.08);
}

.case-study-hero{
width:100%;
border-radius:12px;
margin-bottom:30px;
}

.case-study-content h1{
font-size:32px;
margin-bottom:20px;
}

.case-study-content h2{
font-size:26px;
margin-top:30px;
margin-bottom:10px;
}

.case-study-content h3{
font-size:20px;
margin-top:20px;
}

.case-study-content p{
color:#475569;
line-height:1.7;
margin-bottom:16px;
}

.case-study-content ul{
padding-left:20px;
margin-bottom:16px;
}

.case-back-btn{
display:inline-block;
margin-bottom:30px;
color:#6366f1;
font-weight:600;
text-decoration:none;
}

.case-back-btn:hover{
text-decoration:underline;
}




/* smooth height animation */

.portfolio-grid-wrapper{
overflow: hidden;
transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-grid{
opacity: 1;
transition: opacity 0.3s ease;
}

.portfolio-grid.fading{
opacity: 0;
}