body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background-color: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

header {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.profile-pic {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 30px;
    border: 5px solid #fff;
    box-shadow: 0 0 15px rgba(0,0,0,0.15);
    transition: transform 0.3s;
}

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

.header-text {
    text-align: left;
}

header h1 {
    font-size: 4em;
    margin: 0;
    color: #1a1a1a;
}

header p {
    font-size: 1.5em;
    color: #666;
    margin-top: 5px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 1.1em;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

.social-link i {
    margin-right: 10px;
    font-size: 1.5em;
}

.linkedin {
    background-color: #0e76a8;
}

.youtube {
    background-color: #ff0000;
}

.instagram {
    background-size: 200% auto;
    background-image: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    transition: background-position 0.5s;
}

.instagram:hover {
    background-position: right center;
}

section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    opacity: 0; /* Start hidden for JS animation */
}

section h2 {
    font-size: 2em;
    color: #333;
    margin-bottom: 20px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    position: relative;
}

section h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background-color: #ff007f;
    transition: width 0.5s;
}

section:hover h2::after {
    width: 100%;
}

.about p {
    font-size: 1.1em;
}

.education ul, .experience ul {
    list-style: none;
    padding: 0;
}

.education li, .experience .job {
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.experience .job:hover {
    transform: translateX(5px);
}

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

.skill-category h3 {
    font-size: 1.4em;
    color: #007bff;
    margin-bottom: 10px;
}

.skill-category ul {
    list-style: none;
    padding: 0;
}

.skill-category li {
    background: #e9ecef;
    padding: 8px 12px;
    border-radius: 5px;
    margin-bottom: 8px;
    transition: background-color 0.3s, transform 0.3s;
}

.skill-category li:hover {
    background-color: #007bff;
    color: #fff;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    header {
        flex-direction: column;
        text-align: center;
    }

    .profile-pic {
        width: 150px;
        height: 150px;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .header-text {
        text-align: center;
    }

    header h1 {
        font-size: 3em;
    }

    header p {
        font-size: 1.2em;
    }

    .social-links {
        flex-direction: column;
        gap: 15px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }
}