.main-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    flex-grow: 1; 
    margin-top: 50px; 
    text-align: center; 
}

.page-heading {
    margin-top: 20px;
    color: #f6d29b; 
    text-align: center;
    width: 100%;
}

.content-1, .content-2 {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 20px; 
}

.left-section-1, .right-section-2 {
    width: 30%;
    text-align: center;
}

.right-section-1, .left-section-2 {
    width: 70%;
    padding: 20px;
    text-align: center; 
    color: white;
    line-height: 1.6;
}

.left-section-1 img, .right-section-2 img {
    max-width: 100%;
    max-height: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.right-section-1, .left-section-2 {
    padding: 20px;
    text-align: left; 
}

.right-section-1 p, .left-section-2 p {
    color: white;
    line-height: 1.6;
}

.content-3 {
    width: 100%;
    text-align: center;
    color: white;
    margin-top: 20px; 
    padding: 20px;
    line-height: 1.6;
    box-sizing: border-box;
    word-wrap: break-word;
}

.skills-container {
    padding: 20px;
    margin-top: -10px;
    margin-bottom: -20px;
    background-color: rgba(29, 29, 29, 0.9);
    border-radius: 10px;
}

.skills-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    padding: 20px;
}

.skill-tag {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: default;
}

.skills-column:nth-of-type(1) .skill-tag {
    background-color: rgba(246, 210, 155, 0.1);
    border: 1px solid #f6d29b;
    color: #f6d29b;
}

.skills-column:nth-of-type(1) .skill-tag:hover {
    background-color: #f6d29b;
    color: #1d1d1d;
    transform: translateY(-2px);
}

.skills-column:nth-of-type(2) .skill-tag {
    background-color: rgba(255, 191, 128, 0.1);
    border: 1px solid #ffbf80;
    color: #ffbf80;
}

.skills-column:nth-of-type(2) .skill-tag:hover {
    background-color: #ffbf80;
    color: #1d1d1d;
    transform: translateY(-2px);
}

.skills-column:nth-of-type(3) .skill-tag {
    background-color: rgba(200, 200, 200, 0.1);
    border: 1px solid #c8c8c8;
    color: #c8c8c8;
}

.skills-column:nth-of-type(3) .skill-tag:hover {
    background-color: #c8c8c8;
    color: #1d1d1d;
    transform: translateY(-2px);
}

.skills-column:nth-of-type(4) .skill-tag {
    background-color: rgba(255, 215, 180, 0.1);
    border: 1px solid #ffd7b4;
    color: #ffd7b4;
}

.skills-column:nth-of-type(4) .skill-tag:hover {
    background-color: #ffd7b4;
    color: #1d1d1d;
    transform: translateY(-2px);
}

.skills-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: -20px;
}

.skills-column {
    min-width: 0;
}

.skills-column h3 {
    color: white;        
    text-align: center;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
}

@media (min-width: 1000px) {
    .skills-columns {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 601px) and (max-width: 999px) {
    .skills-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 801px) {
    .left-section-1 img {
        max-height: 200px; 
    }

    .right-section-2 img {
        max-height: 200px; 
    }

    .content-3 {
        width: 90%; 
    }
}

@media (max-width: 800px) {
    .content-1 {
        flex-direction: column-reverse; 
        align-items: center; 
    }

    .content-2 {
        flex-direction: column; 
        align-items: center; 
    }

    .left-section-1, .right-section-1, .left-section-2, .right-section-2 {
        width: 100%;
    }

    .right-section-1, .left-section-2 {
        text-align: center; 
    }

    .left-section-1 img, .right-section-2 img {
        max-width: 50%;
        margin: 0 auto; 
    }

    .content-3 {
        width: 100%;
        padding: 10px;
    }

    .skills-cloud {
        gap: 10px;
    }

    .skill-tag {
        font-size: 12px;
        padding: 6px 12px;
    }

    .skills-columns {
        flex-direction: column;
        align-items: center;  
        margin-bottom: -50px;      
    }

    .skills-column {
        width: 100%;            
        margin-bottom: 0px;   
    }
}

@media (max-width: 600px) {
    .skills-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .skills-cloud {
        gap: 10px;
        padding: 15px;
    }

    .skill-tag {
        font-size: 12px;
        padding: 6px 12px;
    }

    .skills-container {
        padding: 30px 15px;
    }
}