.portfolio-head {
   text-align: center;
   font-size:xxx-large;
}
.portfolio-para{
    text-align: center;
    color: #555;
    line-height: 1.6;
    width: 44%;
    margin: auto;
    
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f7f7f7;
    margin: 0;
    padding: 20px;
}

/* --- A. Grid Layout --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 50px auto;
    padding: 0;
}

/* --- B. Individual Card Styling --- */
.portfolio-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Image */
.card-image-container {
    height: 200px;
    overflow: hidden;
}

.card-image-container img {
    width: 100%;
    height: 100%;
    object-fit:contain;
}

/* --- C. Content and Typography --- */
.card-content {
    padding: 20px 25px 30px;
}

.category {
    font-size: 0.8em;
    color: #888;
    margin: 0 0 5px 0;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.portfolio-card h3 {
    font-size: 1.3em;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
}

.description {
    font-size: 0.9em;
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Case Study Link Styling */
.case-study-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 0.95em;
    padding: 5px 0;
}

.case-study-link .arrow {
    margin-left: 8px;
    font-size: 1.2em;
    transition: transform 0.2s;
    line-height: 1;
}

.case-study-link:hover .arrow {
    transform: translateX(3px);
    color: #7a52b6;
    /* Highlight arrow on hover */
}

/* --- D. Scroll-to-Top Button --- */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: #7a52b6;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.2em;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 100;
    text-decoration: none;
}