/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
}

/* Sticky Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-nav .nav-item {
    margin: 0 10px;
}

.navbar-nav .nav-link {
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #007bff;
}

/* Profile Section */
.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 20px;
}

/* Sections */
section {
    padding: 60px 0;
}

section h2 {
    margin-bottom: 30px;
    font-size: 2rem;
    font-weight: bold;
}

/* Experience, Education, Projects, Blogs */
.experience-item, .education-item, .project-item, .blog-item {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}



.social-icons a {
    color: #333;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #007bff;
}

/* Contact Form */
form input, form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

form button {
    padding: 10px 20px;
    background-color: #007bff;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #0056b3;
}

/* Custom CSS for Sticky Navbar */
.sticky-top {
    position: sticky;
    top: 0;
    z-index: 1020; /* Ensure the navbar stays above other content */
}

/* Optional: Add a shadow to the navbar when scrolling */
.navbar {
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background-color: #ffffff; /* Change background color when scrolled */
}
html {
    scroll-behavior: smooth;
}
/* Home Section */
#home {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 100px 20px;
    background-color: #f8f9fa;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Profile Image */
.profile-pic {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #007bff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: slideInRight 1s ease-out;
}

/* Text Content */
.home-content {
    max-width: 600px;
    text-align: left;
    animation: slideInLeft 1s ease-out;
}

.home-content h1 {
    font-size: 3rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.home-content p {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.6;
}

/* Social Icons */
.social-icons {
    margin-top: 20px;
}

.social-icons a {
    color: #333;
    font-size: 1.5rem;
    margin-right: 15px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    color: #007bff;
    transform: translateY(-5px);
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
/* Responsive Design */
@media (max-width: 768px) {
    #home {
        flex-direction: column;
        text-align: center;
        padding: 50px 20px;
    }

    .home-content {
        text-align: center;
        margin-bottom: 30px;
    }

    .profile-pic {
        width: 200px;
        height: 200px;
    }
}
