* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #000000;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.section {
    background-color: rgba(22,22,24,255);
    margin: 15px;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(22,22,24,255);
}

.header {
    text-align: center;
    
    padding: 40px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    position: sticky;
}

.profile-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 20px;
    object-fit: cover;
    border: 3px solid rgba(44,44,46,255);
}

.header h1 {
    font-size: 24px;
    margin: 10px 10px;
}
.highlight {
    font-weight: bold;
}
.header p {
    font-size: 16px;
    color: #bbb;
    width: 100%;
    margin-bottom: 20px !important;
}

h2 {
    font-size: 16px;
    margin-bottom: 10px;
}

.about p {
    font-size: 14px;
    line-height: 1.5;
    color: #bbb;
}


/*========================*/
.skill {
    background-color: rgba(44,44,46,255);
    width: 100px;
    height: fit-content;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.skill:hover {
    transform: translateY(-5px);
    background-color: rgba(55,55,58,255);
}

.skill i {
    font-size: px;
    margin-bottom: 0px;
}

.skill-text {
    color: #bbb;
    font-size: 10px;
    text-align: center;
    margin: -5px;
}
/*========================*/

.social-icons, .posts {
    display: flex;
    justify-content: center;/* Increase gap between icons */
}

.icon {
    width: 50px;
    height: 50px;
    background-color: rgba(44,44,46,255);
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-size: 12px;
    text-align: center;
    text-decoration: none; /* Add this line to remove underline */
}

.posts .post {
    background-color: rgba(44,44,46,255);
    border-radius: 10px;
    padding: 10px;
    flex: 1;
    margin: 5px;
    text-align: center;
}

.post h3 {
    font-size: 14px;
    margin-bottom: 10px;
}

.post p {
    font-size: 12px;
    line-height: 1.4;
    color: #aaa;
    margin-bottom: 10px;
}

button {
    background-color: #414046;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #4b4a4f;
}

.contact {
    text-align: center;
}

.contact button {
    margin-top: 10px;
    width: 100%;
}

@media screen and (min-width: 600px) and (max-width: 767px) {
    .header {
        flex-direction: column;
        height: auto;
        margin: 15px;
    }
    
    .profile-img {
        width: 120px;
        height: 120px;
        margin: 0 0 15px 0;
    }
}
@media screen and (min-width: 768px) {
    .container {
        max-width: 1200px;
        width: 100%;
        margin: 0 auto;
        padding: 20px;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        gap: 20px;
    }

    .header {
        width: 300px;
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        position: sticky;
        top: 10%;
    }

    .mine {
        max-width: 50%;
        width: 50%;
    }
    .profile-img {
        width: 180px;
        height: 180px;
        margin: 0 0 20px 0;
        border-width: 4px;
        transition: transform 0.3s ease;
    }

    .profile-img:hover {
        transform: scale(1.05);
    }

    .header h1 {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .header p {
        font-size: 18px;
        max-width: 250px;
        margin: 0 auto;
    }

    .social-icons {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
        gap: 10px;
        padding: 10px;
    }

    .icon {
        width: 60px;
        height: 60px;
        margin: 0 auto;
    }
    .skill {
        width: 100px;
        height: 100px;
        padding: 10px;
    }
    .skill-icons {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(100px, 0fr));
        gap: 10px;
        justify-content: center;
        padding: 10px;
    }

    .posts {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .post {
        margin: 0;
    }

    .post h3 {
        font-size: 18px;
    }

    .post p {
        font-size: 14px;
    }

    button {
        padding: 10px 20px;
        font-size: 14px;
    }

    .contact button {
        width: auto;
        min-width: 200px;
    }

    h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .about p {
        font-size: 16px;
        line-height: 1.6;
    }
}

.portfolio {
    overflow: hidden;
    margin: 15px;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(22,22,24,255);
    background-color: rgba(22,22,24,255);
    grid-column: 2; /* Ensure portfolio is in the second column */
}

/* Adjust the slider container */
.slider-container {
    overflow: hidden; /* Hide the scrollbar */
    padding-bottom: 10px;
}

.slider-images {
    display: flex;
    gap: 15px;
    padding: 10px 0;
    flex-wrap: nowrap;
}

.slide {
    flex: 0 0 auto;
    min-width: 250px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.slide img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.slide:hover img {
    transform: scale(1.05);
}

/* Custom scrollbar for slider */
.slider-container::-webkit-scrollbar {
    height: 8px;
}

.slider-container::-webkit-scrollbar-track {
    background: rgba(44,44,46,255);
    border-radius: 10px;
}

.slider-container::-webkit-scrollbar-thumb {
    background: #666;
    border-radius: 10px;
}

.slider-container::-webkit-scrollbar-thumb:hover {
    background: #888;
}

/* Skeleton loading animation */
.skeleton {
    background-color: #333;
    border-radius: 4px;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

.skeleton::after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: -150px;
    height: 100%;
    width: 150px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -150px;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

/* Skeleton specific styles */
.skeleton-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
}

.skeleton-text {
    width: 80%;
    height: 20px;
}

.skeleton-button {
    width: 100px;
    height: 40px;
    border-radius: 20px;
}

/* Mobile View Adjustments */
@media screen and (max-width: 767px) {
    .container {
        display: flex;
        flex-direction: column; /* Stack sections vertically */
        padding: 10px; 
        max-width: 90%;/* Reduce padding for smaller screens */
    }

    .header {
        position: static; /* Remove sticky positioning in mobile view */
        margin: 10px 0; /* Adjust margin */
        padding: 15px; /* Reduce padding */
        text-align: center;
    }

    .profile-img {
        width: 100px; /* Adjust profile image size */
        height: 100px;
        margin: 0 0 10px 0; /* Adjust margin */
    }

    .header h1 {
        font-size: 22px; /* Adjust font size */
    }

    .header p {
        font-size: 14px; /* Adjust font size */
    }

    .section {
        margin: 10px 0; /* Adjust margin for sections */
        padding: 20px; /* Reduce padding */
    }

    .social-icons, .skill-icons {
        display: flex;
        justify-content: center; /* Center icons */
        gap: 10px; /* Adjust gap between icons */
    }

    .icon {
        width: 50px; /* Adjust icon size */
    }
    .skill {
        width: 100px;
        height: 80px;
        padding: 15px;
    }

    .portfolio {
        margin: 10px 0; /* Adjust margin */
        padding: 10px; /* Reduce padding */
    }

    .slider-container {
    overflow-x: hidden;
     } /* Ensure horizontal scrolling works */

    .slider-images {
            gap: 10px; /* Adjust gap between slides */
        }
    
    .slide {
            min-width: 200px; /* Adjust slide width */
        }
    
    .slide img {
            height: 150px; /* Adjust image height */
        }
    }