.projects-area, .resume-area{
    margin: 50px auto 80px;
}

.projects-area>h1, .resume-area>h1{
    text-align: center;
    margin-bottom: 80px;
}

.ux-projects, .work-experiences{
    margin-top: 50px;
}

.ux-projects>h2, .work-experiences>h2{
    margin-bottom: 50px;
}

/* New project layout matching resume page */
.project-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 30px;
    margin-bottom: 40px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(56, 121, 125, 0.2);
    opacity: 0;
    animation: slideInResume 0.8s ease forwards;
}

.project-number {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.project-number .number {
    font-size: 24px;
    font-weight: bold;
    color: rgb(56, 121, 125);
}

/* Project content container */
.project-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.project-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-width: 300px;
}

.project-info .case-study-btn {
    margin-top: 8px;
    align-self: flex-start;
}

.project-info .title {
    font-weight: bold;
    font-size: 18px;
    color: rgb(56, 121, 125);
}

.project-info .project-type {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.project-info .collaboration {
    font-size: 14px;
    color: #6a6a6a;
    font-style: italic;
}

.project-text {
    margin-top: 15px;
    line-height: 1.6;
    color: #333;
}

.project-image {
    flex-shrink: 0;
    width: 600px;
}

.project-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    border: 2px solid rgba(56, 121, 125, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-image img:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.project-image-with-button {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.case-study-btn {
    background-color: rgb(56, 121, 125);
    color: rgb(254, 252, 241);
    border: none;
    padding: 5px 15px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.case-study-btn:hover {
    background-color: rgba(56, 121, 125, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(56, 121, 125, 0.3);
}

/* Animation delays for staggered effect */
.project-item:nth-child(1) { animation-delay: 0.1s; }
.project-item:nth-child(2) { animation-delay: 0.2s; }
.project-item:nth-child(3) { animation-delay: 0.3s; }
.project-item:nth-child(4) { animation-delay: 0.4s; }
.project-item:nth-child(5) { animation-delay: 0.5s; }
.project-item:nth-child(6) { animation-delay: 0.6s; }
.project-item:nth-child(7) { animation-delay: 0.7s; }
.project-item:nth-child(8) { animation-delay: 0.8s; }

/* Project page section headings animation */
.projects-area h1, .projects-area h2 {
    opacity: 0;
    animation: fadeInResume 1s ease forwards;
}

.graphic-projects{
    margin-top: 80px;
}

.graphic-designs{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin: 50px;
}

.design>img{
    width: 100%;
    border-radius: 25px;
    border: 3px solid black;
    animation: slideIn 1s ease forwards; /* Apply the slideIn animation */
}

.image-caption{
    text-align: center;
    margin: 15px 0 20px;
    animation: slideIn 1s ease forwards; /* Apply the slideIn animation */
}

.web-software-projects{
    margin: 80px 0 230px;
}

.web-software-projects>h2>a, .graphic-projects>h2>a{
    color: black;
}

.web-software-projects>h2>a:hover{
    color: rgba(56, 121, 125, 0.797);
}

/* Keyframes for slideIn animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(50px); /* Slide in from right */
    }
    to {
        opacity: 1;
        transform: translateX(0); /* Slide to its original position */
    }
}

/* Keyframes animation for fadeIn */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px); /* Slide in from 20px below */
    }
    to {
        opacity: 1;
        transform: translateX(0); /* Slide to its original position */
    }
}

/* Responsive design */
@media screen and (max-width: 1099px){
    .graphic-designs{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .project-item {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: left;
    }
    
    .project-number {
        justify-content: flex-start;
    }
    
    .project-info .title {
        font-size: 16px;
    }
    
    .project-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .project-info {
        min-width: auto;
    }
    
    .project-image {
        width: 100%;
        max-width: 800px;
        align-self: center;
    }
    
    .project-image img {
        max-width: 100%;
    }
    
    .project-image-with-button {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .case-study-btn {
        align-self: flex-start;
    }
    
    .graphic-designs{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .design>img{
        width: 550px;
        margin-left: 20px;
    }
}

@media screen and (max-width: 899px){
    .project-image {
        width: 100%;
        max-width: 700px;
        align-self: center;
    }
}

@media screen and (max-width: 799px){
    .project-image {
        width: 100%;
        max-width: 700px;
        align-self: center;
    }
}

@media screen and (max-width: 699px){
    .design>img{
        width: 500px;
        margin-left: 5px;
    }
}

@media screen and (max-width: 549px){
    .design>img{
        width: 450px;
    }
}

@media screen and (max-width: 499px){
    .design>img{
        width: 400px;
    }
}

@media screen and (max-width: 449px){
    .design>img{
        width: 350px;
        margin-right: 5px;
    }
}