/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Proxima Nova', sans-serif;
    line-height: 1.5;
    background-color: #E8E5E3; 
    color: #25303D;
    padding: 1em 5%; /* Add padding to avoid content sticking to the edges */
}

/* Header */

.main-header {
    text-align: left;
    margin-bottom: 1em;
    margin-top: 2em;
    width: 36rem; /* Adjust this value to control the width of the portfolio section */
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    /* color: #FF9874; */
}

.main-header h1 {
    /* font-family: 'Backshire Swash', serif; */
    font-size: 2em;
    margin-bottom: 0.1em;
    text-align: left;
}

.main-header p {
    font-size: 1em;
    color: #D36F5A;
    text-align: left;
}

/* Introduction Section */
.introduction {
    margin-bottom: 2em;
    width: 36rem; /* Adjust this value to control the width of the portfolio section */
    margin-left: auto;
    margin-right: auto;
    font-size: 1em;
    text-align: left;
}

/* Portfolio Section */
.portfolio {
    margin-top: 2em;
    margin-bottom: 1em;
}

/* .portfolio h2 {
    font-family: 'Backshire Swash', serif;
} */

.portfolio-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.portfolio-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* align-items: center; */ 
    margin-bottom: 0;
    padding: 0.2em 0;
    border-radius: 5px;
    transition: transform 0.3s ease, background-color 0.3s ease; /* Smooth hover effect */
    /* width: 100%; */
}

.portfolio-icon {
    align-items:center;
    margin-right: 1em;
    flex-shrink: 0;
    transition: transform 0.2s ease; /* Hover effect */
}


.portfolio-icon img {
    width: 64px;
    height: 64px; 
    object-fit:contain;
}

.portfolio-header {
    transition: background-color 0.3s ease;
}

.portfolio-header p {
    color: #43525B;
    font-style: italic ;
}

.portfolio-header:hover {
    /* transform: scale(1.03); */
    background-color: #E3B5A1; /* Light hover feedback */
    border: 1px solid #E8E5E3;
    color: #25303D;
    /* width: 100%; */
}

.portfolio-item h3 {
    margin-bottom: 0.2em;
    /* font-size: 1.2em; */
}

/* Aligning Portfolio to the Left */
.portfolio {
    width: 36rem; /* Adjust this value to control the width of the portfolio section */
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

/* Expanding content */
.toggle-btn {
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    width: 100%;
    text-align: left;
}

.toggle-btn img {
    margin-right: 15px;
}

.portfolio-header {
    display: flex;
    align-items: top;
    cursor: pointer;
    padding: 15px;
    cursor: pointer;    
    border-radius: 5px;
    border: 1px solid #E8E5E3;
    /* transition: background-color 0.3s ease; */
    width: 100%;
}
.portfolio-header h3 {
    margin: 0;
    font-size: 1em;
}

.portfolio-header img {
    width: 64px;
    height: 64px; 
    object-fit:contain;
}

.portfolio-item.open {
    border-bottom: 1px solid #E3B5A1;
    border-bottom-style:dashed ;
}

.portfolio-details {
    display: none;
    margin-top: 0.2em;
    margin-bottom: 0.5rem;
    font-size: 1em;
    padding-bottom:10px;
    /* border: 1px solid #3e4f72; /* Optional border for clarity */
    border-radius: 5px;
}

.portfolio-details p {
    margin: 0;
    margin: 0 0 10px;
    line-height: 1.5;
}

.portfolio-details img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.portfolio-description {
    display: flex;
    flex-direction: row;
    width: 100%;
    
}

.portfolio-description-details {
    padding-right: 1rem;
    min-width: 15%;
    font-size: 0.9em;
    line-height: 1.5;
}



.portfolio-item.open .portfolio-details {
    display: block;
}

/* Footer */
.main-footer {
    text-align: left;
    width: 36rem; 
    margin-top: 1em;
    margin-bottom: 4em;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.9em;
}

/* Hyperlink */
.portfolio-detail-page a {
    color: #43525B;
    padding: 0.5rem 1rem 0.5rem 1rem;
    border: 1px solid #43525B; /* Optional border for clarity */
    transition: background-color 0.2s ease;
    border-radius: 5px;
    text-decoration: none;
}

.portfolio-detail-page a:hover {
    color: #E3B5A1;
    border: 1px solid #43525B;
    background-color: #43525B;
}

.main-footer a {
    color:#D36F5A;
    text-decoration: none;
}

.main-footer a:hover {
    color:#3e4f72;
}

/* Responsive Design */
@media (max-width:36rem) {
    body {
        padding: 1em;
    }

    .main-header {
        width: 100%;
        text-align: left;
    }

    .main-header h1 {
        font-size: 2em;
    }

    .introduction {
        width: 100%;
        text-align: left;
    }

    .portfolio {
        width: 100%;
        text-align: left;
    }

    .portfolio-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .portfolio-header {
        padding: 0.5rem;
        border-color: #E8E5E3;
    }


    .portfolio-description {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .portfolio-header img {
        width: 72px;
        height: 72px; 
        object-fit: cover;
    }

    .portfolio-detail-page  {
        background-color: none;
    }

    .main-footer {
        width: 100%;
        text-align: left;
        margin-bottom: 2em;
    }
}
