.portfolio-container {
    display: flex;
    gap: 2rem;
    padding: 2em 0 0 7em;
    font-family: 'Inter', sans-serif;
    align-items: center;
    width: 100%;
    height: 100vh;
}

.portfolio-section {
    display: flex;
    flex: 1;
    max-width: 1200px;
    background-color: #E8F5E9;
}

.portfolio-title {
    color: #2E8B57;
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 800;
    text-align: justify;
}

.portfolio-subtitle {
    color: #2E8B57;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.portfolio-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    flex-direction: column;
    margin: 1rem;
}

.portfolio-image {
    width: 400px;
    height: auto;
}

.portfolio-grid-container {
    position: relative;
    width: 100%;
    /* overflow-x: auto; */
    /* Grid wraps, so we need vertical scroll, not horizontal */
    overflow-y: auto;
    max-height: 70vh;
    /* Restrict height to fit within section */
    padding: 1rem;
    /* Space for scrollbar */
}

/* Hide scrollbar but keep functionality */
.portfolio-grid-container::-webkit-scrollbar {
    height: 8px;
}

.portfolio-grid-container::-webkit-scrollbar-track {
    background: #dcedc8;
    border-radius: 4px;
}

.portfolio-grid-container::-webkit-scrollbar-thumb {
    background: #2E8B57;
    border-radius: 4px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    min-width: min-content;
}

.portfolio-item {
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1rem;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    transition-delay: 0s !important;
}

.portfolio-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sidebar-section {
    flex: 0 0 25%;
}

@media (max-width: 968px) {
    .portfolio-container {
        flex-direction: column;
        padding: 2rem 1rem;
        height: 100vh;
        background-color: #E8F5E9;
        overflow: hidden;
    }

    .portfolio-section {
        max-width: 100%;
        width: 100%;
        background-color: transparent;
        display: flex;
        flex-direction: column;
        align-items: center;
        height: 100%;
    }

    .portfolio-header {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        margin: 0 0 1.5rem 0;
        width: 100%;
    }

    .portfolio-image {
        width: 80px;
        height: auto;
    }

    .portfolio-title {
        font-size: 1.5rem;
        margin: 0;
        text-align: left;
        line-height: 1.2;
    }

    .portfolio-subtitle {
        display: none;
    }

    /* Portfolio carousel container */
    .portfolio-grid-container {
        position: relative;
        width: 100%;
        max-height: none;
        height: auto;
        overflow: visible;
        padding: 0;
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .portfolio-grid {
        display: flex;
        width: 280px;
        height: 280px;
        background-color: white;
        border-radius: 15px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        align-items: center;
        justify-content: center;
        grid-template-columns: none;
        gap: 0;
    }

    .portfolio-item {
        width: 100%;
        height: 100%;
        padding: 1rem;
        box-shadow: none;
    }

    .portfolio-item:hover {
        transform: none;
    }

    /* Hide all items except first by default - will be controlled by Swiper */
    .portfolio-item:not(:first-child) {
        display: none;
    }
}